<%@ page language="C#" autoeventwireup="true" inherits="general_finance_Finance_OutLook, 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 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" bgcolor="black">
            <tr>
                	<td class="TableData" style="width: 775px;" ><table style="width: 100%" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width: 70px">支出日期:</td>
			<td style="width: 110px">
            <input id="Text1" runat="server" style="border: 1px solid #C0C0C0; width: 110px" readonly type="text"  /></td>
			<td style="width: 23px">
                                    <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: 114px"><input id="Text2" runat="server" style="border: 1px solid #C0C0C0; width: 110px" readonly type="text" /></td>
			<td style="width: 22px">
                                    <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="25px" OnClick="Button7_Click"
                                        Text="查看支出" Width="78px" OnClientClick="return RLtrim()" />
			</td>
		</tr>
	</table></td>
</tr>
    	<tr><td class="TableData" align="center" >  <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Paging,Sorting,Selection" CssClass="c1report"
            DataKeyField="Finance_Id" HScrollBarStyle="Automatic" VScrollBarStyle=Always AllowColSizing=true  
             OnSortingCommand="C1WebGrid1_SortingCommand"
            SkinID="gridviewSkin"  width="760px" height=500px >
            <Columns>
                
                 <C1WebGrid:C1BoundColumn DataField="Exp1" HeaderText="申请人"  SortExpression="Exp1">
                </C1WebGrid:C1BoundColumn>
               
                <C1WebGrid:C1BoundColumn DataField="Finance_Date" HeaderText="支出日期" DataFormatString="{0:d}" SortExpression="Finance_Date">
                </C1WebGrid:C1BoundColumn>
                 <C1WebGrid:C1BoundColumn DataField="Exp5" HeaderText="申请日期" DataFormatString="{0:d}" SortExpression="Exp5">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Finance_Money" HeaderText="支出金额" DataFormatString="{0:C}" SortExpression="Finance_Money">
                </C1WebGrid:C1BoundColumn>

                <C1WebGrid:C1TemplateColumn HeaderText="财务说明">
                <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>
                 <C1WebGrid:C1TemplateColumn SortExpression="Exp7" HeaderText="审核状态"><ItemTemplate><%# State(Eval("Exp7").ToString())%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                  <C1WebGrid:C1BoundColumn DataField="Exp4" HeaderText="审核人"  SortExpression="Exp4">
                  </C1WebGrid:C1BoundColumn>
                
                    
            </Columns>
        </C1WebGrid:C1WebGrid>
         <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>

</td></tr></table>
 <div id="ShowJs" runat="Server"> </div>
    </form>
</body>
</html>
