<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contract.aspx.cs" Inherits="Web.cg.show.contract.Contract" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('/css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
      <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    合同管理
                      </td>

                </tr>
            </table>
            <div id="main-c-03-right02-main">
  <asp:Panel ID="plZong" runat="server" Visible="true">  
      
      <asp:Panel ID="plList" runat="server">
         <asp:Panel ID="plBid" runat="server">
<!--栏目开始 -->
         <div class ="lanmubiaoti ">竞争性采购项目列表</div>   
         
            <!--这里添加内容 -->
		<asp:GridView ID="gvBid" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" 
           Width="100%"  onselectedindexchanging="gvBid_SelectedIndexChanging">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                              <asp:BoundField DataField="bidid" HeaderText="采购编号" ReadOnly="True" />
                              <asp:BoundField DataField="bidnoticetitle" HeaderText="项目名称" ReadOnly="True" />
                                  <asp:BoundField DataField="department" HeaderText="申请机构" ReadOnly="True" />
                             
                              <asp:BoundField DataField="winbider" HeaderText="中标单位" ReadOnly="True" />
                              <asp:BoundField DataField="winbidprice" HeaderText="中标价" ReadOnly="True" />
                                <asp:CommandField HeaderText="操作" SelectText="添加合同 " ShowSelectButton="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
<!--栏目结束 -->
</asp:Panel> 

   <asp:Panel ID="plNoBid" runat="server">
<!--栏目开始 -->
           <div class ="lanmubiaoti ">直采项目列表</div>
            
            <!--这里添加内容 -->
		<asp:GridView ID="gvBidNot" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" 
          Width="100%"   onselectedindexchanging="gvBidNot_SelectedIndexChanging">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                               <asp:BoundField DataField="appiouid" HeaderText="采购编号" ReadOnly="True" />
                               <asp:BoundField DataField="title" HeaderText="项目名称" ReadOnly="True" />
                               <asp:BoundField DataField="department" HeaderText="申请机构" ReadOnly="True" />
                               <asp:BoundField DataField="staffid" HeaderText="申请人编号" ReadOnly="True" />
                               <asp:BoundField DataField="staff" HeaderText="申请人" ReadOnly="True" />
                               <asp:BoundField DataField="applicationdate" HeaderText="申请时间" ReadOnly="True" />
                               <asp:BoundField DataField="state" HeaderText="处理状态" ReadOnly="True" />
                               <asp:CommandField HeaderText="操作" SelectText="添加合同" ShowSelectButton="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
  <!--栏目结束 -->
</asp:Panel> 

            <!--这里添加内容 -->
         <div class ="lanmubiaoti ">合同列表</div>
		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" onrowdatabound="GridView1_RowDataBound"                             
       Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                            <asp:BoundField DataField="conid" HeaderText="采购编号" ReadOnly="True" />
                    <asp:TemplateField HeaderText="合同名称(点击查看）" ShowHeader="False">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlTitle" runat="server" Text='<%# Bind("conname") %>'
                          NavigateUrl ='<%#"/cg/show/contract/ContractView.aspx?iouid="+Eval("conid")%>'
                            Target ="_blank" ></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
       
                              <asp:BoundField DataField="price" HeaderText="合同价" ReadOnly="True" />
                              <asp:BoundField DataField="company" HeaderText="对方单位名称" ReadOnly="True" />
                              <asp:BoundField DataField="liaison" HeaderText="联系人" ReadOnly="True" />
                              <asp:BoundField DataField="consigner" HeaderText="签字人" ReadOnly="True" />
                              <asp:BoundField DataField="signdate" HeaderText="生效日期" ReadOnly="True" />
                              <asp:BoundField DataField="enddate" HeaderText="结束日期" ReadOnly="True" />
                              <asp:BoundField DataField="state" HeaderText="状态" ReadOnly="True" />
                                    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                        <ItemTemplate>
                  <asp:HyperLink ID="HyperLink1" runat="server"  ></asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
      </asp:Panel>

      
<!--栏目结束 -->
</asp:Panel> 
            </div>
            </div> 
        </form>
    </body>
</html>


