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

<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="head1" runat="server">
    <title>单个合同资金审核</title>
    <script src="../../Javascript/canlendar.js" type="text/javascript"></script>
                   <script src="../../Javascript/Trim.js" type="text/javascript"></script>
                   <script src="../../Javascript/CheckALL.js" type="text/javascript"></script>
                   <script language=javascript type="text/javascript">
                   function check()
                   {
                      var TxtControlPeople=document.getElementById("TxtControlPeople").value;
                      var TxtCheckData=document.getElementById("TxtCheckData").value;
                      if(!ChkOk('form1','item'))
                      {
                         return false;
                      }
                      if(!Trim(TxtControlPeople))
                      {
                         alert("审批人不能为空!");
                         return false;
                      }
                      else if(!Trim(TxtCheckData))
                      {
                         alert("审核日期不能为空");
                         return false;
                      }
                      else
                      {
                        return true;
                      }
                   }
                   </script>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <div>
     <table class="small" cellSpacing="1" cellPadding="1"  border="0" bgcolor=#000000 style="width: 760px" align="center">
            <tr>
                <td class="TableData" style="width: 775px" ><TABLE class="small" cellSpacing="1" cellPadding="1" align="center" border="0" bgcolor=#000000 style="width: 824px">
        <tr><td class="TableData" colspan=2>合同编号:<asp:Label ID="LblConNum" runat="server" ForeColor=red Text="Label"></asp:Label></td><td class="TableData" colspan=2>客户名称:<asp:Label ID="Label1" runat="server" ForeColor=red Text="Label"></asp:Label></td></tr>
    	<tr><td class="TableData">
            合同金额:<asp:Label ID="LblTotal" runat="server" ForeColor=red Text="Label"></asp:Label></td><td class="TableData">已收金额:<asp:Label ID="Lblyprice" runat="server" ForeColor=red Text="Label"></asp:Label></td><td class="TableData">待处理金额:<asp:Label ID="LblDprice" ForeColor=red  runat="server" Text="Label"></asp:Label></td><td class="TableData" style="width: 208px">未收金额 :<asp:Label ID="LblNoMoney" runat="server" ForeColor=red Text="Label"></asp:Label></td></tr></TABLE></td></tr>
    	<tr>
                <td class="TableData" ><br>
                                <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Sorting,Selection" 
            DataKeyField="Finance_Id" 
             OnSortingCommand="C1WebGrid1_SortingCommand"
            SkinID="gridviewSkin"  width="821px"  >
            <Columns>
             
                 <C1WebGrid:C1BoundColumn DataField="Contract_Num"  HeaderText="合同编号"  SortExpression="Client_Name">
               
                </C1WebGrid:C1BoundColumn>
                   <C1WebGrid:C1BoundColumn DataField="Finance_Date" HeaderText="记帐日期" DataFormatString="{0:d}" SortExpression="Finance_Date">
                </C1WebGrid:C1BoundColumn>
                  <C1WebGrid:C1BoundColumn DataField="Finance_Money" HeaderText="入帐金额" DataFormatString="{0:C}" SortExpression="Finance_Money">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Finance_Proof"   HeaderText="财务凭证"  SortExpression="Finance_Proof"></C1WebGrid:C1BoundColumn>
              
               
              
              
                 <C1WebGrid:C1TemplateColumn SortExpression="Exp7" HeaderText="审核状态"><ItemTemplate><%# State(Eval("Exp7").ToString())%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                    <C1WebGrid:C1TemplateColumn HeaderText="审核资金">
                                                    <ItemTemplate>
                                                        <a href="FinConCheck.aspx?fid=<%#Eval("Finance_Id") %>" >
                                                           审核收入
                                                        </a>
                                                    </ItemTemplate>
                                                </C1WebGrid:C1TemplateColumn>
                    
            					</Columns>
        </C1WebGrid:C1WebGrid><br>
</td></tr> 
<tr><td align=center class="TableData"> <asp:Button ID="Button7" runat="server" CssClass="BigButton" Height="26px" OnClick="Button7_Click"
                 Text="返回" Width="81px" /></td></tr></table>
    </div>
     <div id="ShowJs" runat="Server"> </div>
    </form>
</body>
</html>

