<%@ page language="C#" autoeventwireup="true" inherits="general_MyOffice_MyExpend_Out, 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 src="../../Javascript/formCheck.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;
       }
    }
    function check()
    {
      var TxtOutData=document.getElementById("TxtOutData").value;
      var  TxtApplyTime=document.getElementById("TxtApplyTime").value;
      var TxtOutMoney=document.getElementById("TxtOutMoney").value;
      
      if(!Trim(TxtOutData))
      {
        alert('支出日期不能为空!');
        return false;
      }
      else if(!Trim(TxtApplyTime))
      {
        alert('申请日期不能为空!');
        return false;
      }
      else if(!Trim(TxtOutMoney))
      {
        alert('支出金额不能为空!');
        return false;
      }
      else if(!isMath(TxtOutMoney))
      {
        alert("支出金额必须为数字!");
        return false;
      }
      else
      {
         return true;
      }
    }
 </script>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table class="small" cellSpacing="1"  border="0" bgcolor=#000000 style="width: 760px" align="center">
    	<tr>
        <td  colspan=2 class="TableData">
           申请日期:
            <input id="Text1" runat="server" style="width: 95px" type="text" />
            <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" />
            ..<input id="Text2" runat="server" style="width: 86px" type="text" />
            <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" />&nbsp;
            <asp:Button ID="Button7" runat="server" CssClass="BigButton" Height="26px" OnClick="Button7_Click"
                OnClientClick="return RLtrim()" Text="查找" Width="81px" /></td>
    </tr>
    	<tr>
    	<td class="TableData" colspan=2 style="width: 726px; height: 42px;" >  <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Paging,Sorting,Selection" CssClass="c1report"
            DataKeyField="Expend_Id" HScrollBarStyle="Automatic"  VScrollBarStyle=Always AllowColSizing=true
            On OnSortingCommand="C1WebGrid1_SortingCommand"
            SkinID="gridviewSkin"  width="821px" height=250px >
            <Columns>
            
                
                <C1WebGrid:C1BoundColumn DataField="Expend_Type"   HeaderText="费用类型"  SortExpression="Expend_Type"></C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Apply_time" HeaderText="支出日期" DataFormatString="{0:d}" SortExpression="Apply_time">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Exp3" HeaderText="申请日期" DataFormatString="{0:d}" SortExpression="Exp3">
                </C1WebGrid:C1BoundColumn>
                
                <C1WebGrid:C1BoundColumn DataField="Expend_Money" HeaderText="报销金额" DataFormatString="{0:C}" SortExpression="Expend_Money">
                </C1WebGrid:C1BoundColumn>
                
                
                
                 <C1WebGrid:C1TemplateColumn SortExpression="Check_State" HeaderText="审核状态"><ItemTemplate><%# State(Eval("Check_State").ToString())%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                 <C1WebGrid:C1BoundColumn DataField="Check_People" HeaderText="审核人" SortExpression="Check_People">
                </C1WebGrid:C1BoundColumn>
                 <C1WebGrid:C1BoundColumn DataField="Exp4" HeaderText="审核原因" SortExpression="Exp4">
                 <ItemStyle Width=250px />
                </C1WebGrid:C1BoundColumn>
            </Columns>
        </C1WebGrid:C1WebGrid></td>
    	</tr>
    	<tr><td class="TableData" style="height: 33px;" colspan="2">
            申请人 :
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td></tr>
        <tr>
            <td class="TableData" colspan="2" style="height: 33px">
                支出日期:<asp:TextBox ID="TxtOutData" CssClass="BigInput" runat="server"></asp:TextBox><img
            onclick='popUpCalendar(document.getElementById("TxtOutData"), document.getElementById("TxtOutData"), "yyyy-mm-dd")'
            src="../../App_Themes/Green/images/Calendar.gif" /></td>
        </tr>
    	<tr><td class="TableData" colspan="2">
            报销金额:<asp:TextBox ID="TxtOutMoney" CssClass="BigInput" runat="server"></asp:TextBox>元</td></tr>
    	<tr><td class="TableData" colspan="2">
            费用类型:<asp:DropDownList ID="DropType" runat="server">
                <asp:ListItem>日常费用</asp:ListItem>
                <asp:ListItem>出差费用</asp:ListItem>
                <asp:ListItem>其它费用</asp:ListItem>
            </asp:DropDownList></td></tr>
        <tr>
            <td class="TableData" colspan="2" style="height: 16px">
                申请日期:
                <asp:TextBox ID="TxtApplyTime" CssClass="BigInput" runat="server"></asp:TextBox><img
            onclick='popUpCalendar(document.getElementById("TxtApplyTime"), document.getElementById("TxtApplyTime"), "yyyy-mm-dd")'
            src="../../App_Themes/Green/images/Calendar.gif" /></td>
        </tr>
    	<tr><td colspan=2 class="TableData" style="height: 42px">费用备注:
            <asp:TextBox ID="TxtRemark"  CssClass="BigInput" runat="server" Height="48px" TextMode="MultiLine" Width="566px"></asp:TextBox></td></tr>
    	<tr><td colspan=2 class="TableData" style="height: 28px" align="center"><asp:Button ID="Button1" runat="server" CssClass="BigButton" Height="26px"
                Text="提交" Width="47px" OnClientClick="return check()"  OnClick="Button1_Click" />
            &nbsp; &nbsp; &nbsp;
            <input id="Reset1" type="reset" value="重置" Class="BigButton" style="height: 26px" /></td></tr>
    	</TABLE>

    </form>
</body>
</html>
