<%@ page language="C#" autoeventwireup="true" inherits="general_finance_Finance_Look, 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 language=javascript type="text/javascript">
    function RLtrim()
    {
       var t1=document.getElementById("Text1").value;
       var t2=document.getElementById("Text2").value;
       if(Trim(t1) && Trim(t2))
       {
         return true;
       }
       else
       {
         alert('日期不能为空');
         return false;
       }
    }
    </script>
</head>
<body  class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
         <table class="small" cellSpacing="1" cellPadding="1"  border="0"  style="width: 760px" align="center">
            <tr>
                <td class="TableData" style="width: 775px; height: 41px;" ><TABLE class="small" cellSpacing="1" cellPadding="1" align="center" border="0" bgcolor=#000000 style="width: 800px">
        
    	<tr><td class="TableData" style="50%">总收入实际金额:<asp:Label ID="Lblyprice" runat="server" ForeColor=red Text="Label"></asp:Label></td><td class="TableData" width="50%">待处理金额:<asp:Label ID="LblDprice" ForeColor=red  runat="server" Text="Label"></asp:Label></td></tr>
    	<tr>	<td class="TableData" style="width:100%; height: 21px;" colspan=2>                                        <table style="width: 100%" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width: 72px">入帐日期:</td>
			<td style="width: 111px">
            <input id="Text1" runat="server" style="border: 1px solid #C0C0C0; width: 110px" type="text" readonly /></td>
			<td style="width: 18px">
                                    <img border="0" onclick='popUpCalendar(document.getElementById("Text1"), document.getElementById("Text1"), "yyyy-mm-dd")'
                                        src="../../App_Themes/Green/images/Calendar.gif" style="width: 20px; height: 23px" /></td>
			<td style="width: 10px">至</td>
			<td style="width: 113px">
			<input id="Text2" runat="server" style="border: 1px solid #C0C0C0; width: 110px" type="text" readonly /></td>
			<td style="width: 24px">
                                    <img border="0" onclick='popUpCalendar(document.getElementById("Text2"), document.getElementById("Text2"), "yyyy-mm-dd")'
                                        src="../../App_Themes/Green/images/Calendar.gif" style="width: 20px; height: 23px" /></td>
			<td>
                                    <asp:Button
                                        ID="Button7" runat="server" CssClass="BigButton" Height="20px" OnClick="Button7_Click"
                                        Text="查看收入" Width="78px" OnClientClick="return RLtrim()" />
			</td>
		</tr>
		</table></td>	
</tr>
<tr>
<td colspan="2" class="TableData" >
<C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Paging,Sorting,Selection" 
            DataKeyField="Finance_Id" HScrollBarStyle="Automatic" 
            OnSortingCommand="C1WebGrid1_SortingCommand" AllowColSizing=true VScrollBarStyle=Always
             SkinID="gridviewSkin"  width="760px" height=470px >
            <Columns>
                 <C1WebGrid:C1BoundColumn DataField="Contract_Num"   HeaderText="合同编号"  SortExpression="Contract_Num">
                 <ItemStyle Width=150px HorizontalAlign="Center" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                 <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="Exp7" HeaderText="审核状态"><ItemTemplate><%# State(Eval("Exp7").ToString())%></ItemTemplate></C1WebGrid:C1TemplateColumn>
               
                <C1WebGrid:C1TemplateColumn HeaderText="财务说明"  SortExpression="Finance_Remark">
                <ItemStyle Width="250px" />
                <ItemTemplate>
                    <asp:Label     ID="Lkb" Text='<%# Server.HtmlDecode(Eval("Finance_Remark").ToString()).Length > 20 ? Server.HtmlDecode(Eval("Finance_Remark").ToString()).Substring(0, 19) + "..." : Server.HtmlDecode(Eval("Finance_Remark").ToString())%>'  ToolTip='<%# Server.HtmlDecode(Eval("Finance_Remark").ToString())%>' runat="server"></asp:Label>
 
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
                    
            </Columns>
        </C1WebGrid:C1WebGrid>
        <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
</td>
</tr>
    	</TABLE></td></tr>
    	</table>
 
    </form>
</body>
</html>
