<%@ page language="C#" autoeventwireup="true" inherits="general_Contract_Fetch_Contract, CrmCommand" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
   
        
        <table style="width: 662px" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width: 58px">
                关键字:</td>
			<td style="width: 60px"><asp:TextBox ID="TxtName" runat="server" CssClass="BigInput"></asp:TextBox>
                                    </td>
			<td style="width: 100px">
                搜索类型:</td>
			<td style="width: 80px"><asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True">
                                       
                                        <asp:ListItem Value="员工">员工姓名</asp:ListItem>
                                        <asp:ListItem Value="合同号">合同号</asp:ListItem>
                                    </asp:DropDownList>
                                    </td>
                                    <td width="160px">
                                        <asp:CheckBox ID="CheckBox1" runat="server" Text="含未归还合同" CausesValidation="True"  /></td>
			<td width="100px">
                                    <asp:Button
                                        ID="Button7" runat="server" CssClass="BigButton" Height="20px" 
                                        Text="检　索" Width="78px" OnClick="Button7_Click"  />
                                </td>
					</tr>
		<tr><td colspan='6' style="height: 173px">
		 <table align="center"  border="0" cellpadding="1" bgcolor=black  cellspacing="1"
            class="small" style="width: 662px">
            <tr>
                <td valign="top" align="center" class="TableData" colspan="2" >
                   <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server" AllowSorting="True"
                                        AutoGenerateColumns="False" CallbackOptions="Paging,Sorting,Selection" 
                                        DataKeyField="Lead_Id"   OnItemCreated="C1WebGrid1_ItemCreated"
                                        OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnSortingCommand="C1WebGrid1_SortingCommand"
                                        PageSize="10" SkinID="gridviewSkin" Width="771px" >
            <Columns>
                <C1WebGrid:C1BoundColumn DataField="Lead_UserName"  HeaderText="申请人" SortExpression="Lead_UserName">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1TemplateColumn HeaderText="合同类型"  SortExpression="Contract_TypeName" ><ItemTemplate><%#Eval("Contract_TypeName").ToString()%></ItemTemplate>
                   </C1WebGrid:C1TemplateColumn>
                     <C1WebGrid:C1TemplateColumn SortExpression="Lead_Num" HeaderText="申请数量"><ItemTemplate><%#Eval("Lead_Num").ToString()%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                                      <C1WebGrid:C1BoundColumn DataField="Exp2"  HeaderText="批准数量" SortExpression="Exp2">
                </C1WebGrid:C1BoundColumn>
                    <C1WebGrid:C1TemplateColumn HeaderText="已归还数量"  SortExpression="Exp3" ><ItemTemplate><%#Eval("Exp3").ToString()%></ItemTemplate>
                    </C1WebGrid:C1TemplateColumn>
                       <C1WebGrid:C1TemplateColumn HeaderText="申请日期"  SortExpression="Lead_DataTime" ><ItemTemplate><%#string.Format("{0:d}", Eval("Lead_DataTime"))%></ItemTemplate>
                    </C1WebGrid:C1TemplateColumn>
                    <C1WebGrid:C1TemplateColumn HeaderText="审核日期"  SortExpression="Check_Data" ><ItemTemplate><%#string.Format("{0:d}", Eval("Check_Data"))%></ItemTemplate>
                    </C1WebGrid:C1TemplateColumn>
                     <C1WebGrid:C1TemplateColumn HeaderText="操作"><ItemTemplate><%#Link(Eval("Lead_Id").ToString(), Eval("IsCheck").ToString())%></ItemTemplate></C1WebGrid:C1TemplateColumn>
            		</Columns>
        </C1WebGrid:C1WebGrid>
         
          <webdiyer:AspNetPager CssClass="anpager" CurrentPageButtonClass="cpb"  ID="AspNetPager2" runat="server" RecordCount="228"
        FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页" OnPageChanged="AspNetPager2_PageChanged" CustomInfoHTML="第 %CurrentPageIndex% / %PageCount% 页" PageSize="15" SubmitButtonText="GO" Width="100%">
    </webdiyer:AspNetPager>
                    </td>
            </tr>
           
        </table>
             
        </td></tr>
	</table>

    </form>
</body>
</html>