<%@ page language="C#" autoeventwireup="true" inherits="general_finance_Finance_Examine, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<!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>单个合同资金审核</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">
            <tr>
                <td class="TableData" style="width: 775px" ><fieldset style="width:824px" align="left"> <legend> 
基本信息
</legend><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></fieldset></td></tr>
    	<tr>
                <td class="TableData" ><fieldset style="width:768px" align="left"> <legend> 
合同付款记录
</legend><TABLE class="small" cellSpacing="1" cellPadding="1" align="center" border="0" bgcolor=#000000 style="width: 768px">
    	<tr>
    	<td class="TableData" style="width: 726px; height: 42px;" >  <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Sorting,Selection" 
            DataKeyField="Finance_Id" HScrollBarStyle="Automatic" VScrollBarStyle=Always AllowColSizing=true
             OnSortingCommand="C1WebGrid1_SortingCommand"
            SkinID="gridviewSkin"  width="821px" height=250px >
            <Columns>
                <C1WebGrid:C1TemplateColumn  HeaderText="选择">
                                                    <ItemTemplate>
                                                        <input id="item" runat="server" type="checkbox" value='<%#Eval("Finance_Id") %>' /></ItemTemplate>
                                                        <ItemStyle Width=22px />
                                                </C1WebGrid:C1TemplateColumn>
                 <C1WebGrid:C1BoundColumn DataField="Client_Name" Fixed=True  HeaderText="客户名称"  SortExpression="Client_Name">
                 <ItemStyle Width=150px HorizontalAlign="Center" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Finance_Proof"   HeaderText="财务凭证"  SortExpression="Finance_Proof"></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:C1TemplateColumn SortExpression="Exp6" HeaderText="是否审核"><ItemTemplate><%#Eval("Exp6").ToString()=="0"?"待审核":"已审核"%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                 <C1WebGrid:C1TemplateColumn SortExpression="Exp7" HeaderText="审核状态"><ItemTemplate><%# State(Eval("Exp7").ToString())%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                  <C1WebGrid:C1BoundColumn DataField="Finance_Remark" HeaderText="财务说明" SortExpression="Finance_Remark">
                  <ItemStyle Width=250px />
                </C1WebGrid:C1BoundColumn>
                    
            </Columns>
        </C1WebGrid:C1WebGrid></td>
    	</tr>
    	</TABLE>
</fieldset></td></tr>  <tr>
                <td class="TableData" style="width: 775px" ><fieldset style="width:824px" align="left"> <legend> 
审批专栏
</legend><TABLE class="small" cellSpacing="1" cellPadding="1" align="center" border="0" bgcolor=#000000 style="width: 824px"><tr><td class="TableData" colspan="2" >审批人: &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
    <asp:TextBox ID="TxtControlPeople" CssClass="BigInput" runat="server" Enabled="False"></asp:TextBox></td></tr><tr><td class="TableData" style="height: 20px" colspan="2" >审批日期: &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:TextBox ID="TxtCheckData" CssClass="BigInput" runat="server"></asp:TextBox><img
            onclick='popUpCalendar(document.getElementById("TxtCheckData"), document.getElementById("TxtCheckData"), "yyyy-mm-dd")'
            src="../../App_Themes/Green/images/Calendar.gif" />&nbsp;</td></tr>
    <tr>
        <td class="TableData" colspan="2">
            合同处理状态:<asp:CheckBox ID="Chk" runat="server" Text="已付清" /></td>
    </tr>
    <tr>
        <td class="TableData" colspan="2" style="height: 21px">
        审批原因 :&nbsp; &nbsp; &nbsp;&nbsp;
            <asp:TextBox ID="TxtRemark" CssClass="BigInput" runat="server" Height="70px" TextMode="MultiLine" Width="418px"></asp:TextBox></td>
    </tr>
    <tr>
        <td align="center" class="TableData" colspan="2">
            <asp:Button ID="Button1" runat="server" CssClass="BigButton" Text="通过" OnClientClick="return check()" OnClick="Button1_Click" />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            <asp:Button ID="Button2" runat="server" CssClass="BigButton" Text="未通过" OnClientClick="return check()" OnClick="Button2_Click" />
            <asp:Button ID="Button3" runat="server" Text="Button" OnClick="Button3_Click" /></td>
    </tr>
</table></fieldset></td></tr></table>
    </div>
    </form>
</body>
</html>
