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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<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">
                
   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%; margin-top :20px">
            <tr>
                <td class ="tabletd_right " style ="width :60px">
                                        项目名称</td>
                <td class ="tabletd_left ">
                                            <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                </td>
                          <td class ="tabletd_right " style ="width :80px">
                    办理人编号</td>
                <td class ="tabletd_left ">
                                            <asp:TextBox ID="tbStaffid" runat="server"></asp:TextBox>
                                            </td>
                <td class ="tabletd_right " style ="width :60px">
                    类别</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlCategories" runat="server">
                    </asp:DropDownList>
                                            </td>
                <td class ="tabletd_right " style ="width :60px">
                    处理状态</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlState" runat="server">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>编辑</asp:ListItem>
                        <asp:ListItem>待审核</asp:ListItem>
                        <asp:ListItem>审核通过</asp:ListItem>
                        <asp:ListItem>审核未通过</asp:ListItem>
                        <asp:ListItem>完成</asp:ListItem>
                        <asp:ListItem>无合同</asp:ListItem>
                    </asp:DropDownList>
                                            </td>
                <td class ="tabletd_right " style ="width :60px">
                    申请日期</td>
                <td class ="tabletd_left ">
               
 <asp:textbox id="date1" runat="server" Width="100px"  
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                 
        &nbsp;- <asp:textbox id="date2" runat="server" Width="100px"    
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                                          
       &nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                          ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" 
                  ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" 
                  ForeColor="Red"></asp:RegularExpressionValidator>
                                           </td>
            </tr>

            <tr>
                <td class ="tabletd_center " colspan="8">
                    <asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="cha" />
          
                </td>
            </tr>
            </table>

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

		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" onrowdatabound="GridView1_RowDataBound" 
                            
          onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                             <asp:BoundField DataField="conid" HeaderText="合同编号" ReadOnly="True" />
                    <asp:TemplateField HeaderText="合同名称" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# Bind("conname") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
       
                              <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                              <asp:BoundField DataField="price" HeaderText="合同价" ReadOnly="True" />
                              <asp:BoundField DataField="company" HeaderText="单位名称" ReadOnly="True" />
                              <asp:BoundField DataField="corporate" 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" colspan="2">&nbsp;</td></tr>
      
        </table> 
<asp:Panel ID="Panel1" runat="server" Visible="False">
            
<table border="0"  class ="tablezong"  cellpadding="0" cellspacing="0" >
      <tr>
        <td   style ="text-align :left ">

        <table  style =" width :100%" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td style ="width:80px"  class ="tabletd_right ">
                        合同编号</td>
                    <td class ="tabletd_left ">
                        <asp:Label ID="lbid" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td  class ="tabletd_right ">
                       合同名称</td>
                    <td class ="tabletd_left ">
                     <asp:Label ID="lbTitle" runat="server"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        类别</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbCategories" runat="server"></asp:Label>
                    </td>
                </tr>

                <tr>
                    <td   class ="tabletd_right ">
                        其他编号</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbOtherid" runat="server"></asp:Label>
                    </td>
                </tr>


                             <tr>
                    <td   class ="tabletd_right ">
                        单位名称</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbCompany" runat="server"></asp:Label>
                    </td>
                </tr>
                             <tr>
                    <td   class ="tabletd_right ">
                        法人代表</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbCorporate" runat="server"></asp:Label>
                    </td>
                </tr>
                             <tr>
                    <td   class ="tabletd_right ">
                        签字人</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbConsigner" runat="server"></asp:Label>
                    </td>
                </tr>
                             <tr>
                    <td   class ="tabletd_right ">
                         地址</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbAddress" runat="server"></asp:Label>
                    </td>
                </tr>
                             <tr>
                    <td   class ="tabletd_right ">
                        联系电话</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbTel" runat="server"></asp:Label>
                    </td>
                </tr>
                             <tr>
                    <td   class ="tabletd_right ">
                        邮箱</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbEmail" runat="server"></asp:Label>
                    </td>
                </tr>



                                             <tr>
                    <td   class ="tabletd_right ">
                        开户行</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbDepositbank" runat="server"></asp:Label>
                    </td>
                </tr>

                                             <tr>
                    <td   class ="tabletd_right ">
                        银行账号</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbBankaccount" runat="server"></asp:Label>
                    </td>
                </tr>

                                             <tr>
                    <td   class ="tabletd_right ">
                        社会信用代码</td>
                    <td  class="tabletd_left ">
                        <asp:Label ID="lbBusinesslicense" runat="server"></asp:Label>
                    </td>
                </tr>     
                <tr>
                    <td class ="tabletd_right " >
                        合同内容</td>
                    <td class ="tabletd_left ">
                          <div id ="viewneirong" runat ="server"  style ="width :700px; padding :5px 5px 5px 5px"  ></div>
                          <div>             <asp:Label ID="lbFujian" runat="server" Text="附件："></asp:Label>
                        <asp:BulletedList ID="blFujian" runat="server" DisplayMode="LinkButton"  
                                  onclick="blFujian_Click"></asp:BulletedList></div>
                   </td>
                </tr>
                    <tr>
                    <td class ="tabletd_right ">
                        合同价格</td>
                    <td class ="tabletd_left ">
                       <asp:Label ID="lbPrice" runat="server"></asp:Label>万元
                    </td>
                </tr>

                <tr>
                    <td class ="tabletd_right ">
                        已方签字人</td>
                    <td class ="tabletd_left ">
                             <asp:Label ID="lbSignname" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        生效日期</td>
                    <td class ="tabletd_left ">
                        <asp:Label ID="lbSigndate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        合同结束日期</td>
                    <td class ="tabletd_left ">
                       <asp:Label ID="lbEnddate" runat="server"></asp:Label>
                    </td>
                </tr>
                               <tr>
                    <td class ="tabletd_right ">
                        状态</td>
                    <td class ="tabletd_left ">
                     <asp:Label ID="lbState" runat="server"></asp:Label>
                    </td>
                </tr>

                <tr>
                    <td class="tabletd_right ">
                        录入人</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbManager" runat="server"></asp:Label>
                        <asp:Label ID="lbManagername" runat="server"></asp:Label>
                    </td>
                </tr>

                <tr>
                    <td class="tabletd_right ">
                        录入时间</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbManagertime" runat="server"></asp:Label>
                    </td>
                </tr>

                <tr>
                    <td class="tabletd_right ">
                        &nbsp;</td>
                    <td class="tabletd_left ">
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
                    </td>
                </tr>

                </table>

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


