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

<!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" />
    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
    <script type="text/javascript" src="/css/popcalendar.js"></script>
</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">  <div  class ="td10">
     <asp:DropDownList ID="ddlYears" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click"></asp:DropDownList>
                 &nbsp;机构：<asp:DropDownList ID="DdlDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DdlDepartment_SelectedIndexChanged">
              </asp:DropDownList>
              &nbsp;
              采购人：<asp:DropDownList ID="ddlManager" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
              </asp:DropDownList>
     合同名称:<asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                &nbsp;对方单位名称：<asp:TextBox ID="tbCom" runat="server"></asp:TextBox>
                &nbsp;<asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="cha" />
          
                </div>      
   

  <asp:Panel ID="plZong" runat="server" Visible="true">   
<!--栏目开始 -->
            
            <!--这里添加内容 -->

		<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="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" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
         <table border="0" cellpadding="4" cellspacing="1"  style ="width :100% ; text-align :right ">
        <tr><td  id ="allowpage" runat ="server" 
                style ="text-align :right ;  padding-right  :5px">&nbsp;</td></tr>      
        </table> 
 
<!--栏目结束 -->
</asp:Panel> 
            </div>
            </div> 
        </form>
    </body>
</html>


