<%@ page language="C#" autoeventwireup="true" inherits="general_Contract_Lead_Case, CrmCommand" %>
<%@ 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">
    <div>
        <table align="center"  border="0" cellpadding="1" bgcolor=black cellspacing="1"
            class="small" style="width: 662px">
            <tr>
                <td align="center" class="TableData" colspan="2" style="height: 8px">
                    <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Sorting,Selection"
            DataKeyField="Lead_Id" HScrollBarStyle="Automatic" VScrollBarStyle=Always 
        AllowColSizing=true OnSortingCommand="C1WebGrid1_SortingCommand"
             SkinID="gridviewSkin"  width="750px" height=480px >
            <Columns>
                <C1WebGrid:C1BoundColumn DataField="Lead_UserName" Fixed=True  HeaderText="领用人" SortExpression="Lead_UserName">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1TemplateColumn HeaderText="合同类型"  SortExpression="Contract_TypeName" ><ItemTemplate><%#Link(Eval("IsCheck").ToString(),Eval("Lead_Id").ToString(),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><%# Eval("IsCheck").ToString() == "待审核" ? "" : string.Format("{0:d}", Eval("Check_Data"))%></ItemTemplate> 
                    </C1WebGrid:C1TemplateColumn>                     <C1WebGrid:C1TemplateColumn HeaderText="是否审核"  SortExpression="IsCheck" ><ItemTemplate><%#Eval("IsCheck").ToString()%></ItemTemplate>
                    </C1WebGrid:C1TemplateColumn>   
                    <C1WebGrid:C1BoundColumn DataField="Check_People"   HeaderText="审核人" SortExpression="Check_People">
                </C1WebGrid:C1BoundColumn>    
            		</Columns>
        </C1WebGrid:C1WebGrid>
                    </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
