⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 finoutapply.aspx

📁 IntCRM客户管理系统是为网络公司量身定制的一套crm系统:强大的客户跟踪功能、完美的解决了销售人员撞单问题、优秀的合同预领功能及合同管理功能
💻 ASPX
字号:
<%@ page language="C#" autoeventwireup="true" inherits="general_MyOffice_FinOutApply, 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>
       <script language="javascript" type="text/javascript">
var menu_id=0;

function setPointer(theRow, thePointerColor,menu_id_over)
{
  if(menu_id!=menu_id_over)
  {
	if(thePointerColor == "#B3D1FF")
		theRow.className="menu_active";
	else
		theRow.className="menu_comon";
   }
}

function view_menu1()
{
 
   
 
   location.href="FinOutApply.aspx?type=unchecked"
   menu_id=1;
   menu_1.className="menu_active";
   menu_2.className="menu_comon";
  
}

function view_menu2()
{

   location.href ="FinOutApply.aspx?type=checked"
   menu_id=2;
   menu_1.className="menu_comon";
   menu_2.className="menu_active";
  
}
function setUp()
{
    if(document.form1.HidCode.value =="checked")
    {
          menu_1.className="menu_comon";
          menu_2.className="menu_active";
    }
    else
    {
           menu_1.className="menu_active";
           menu_2.className="menu_comon";
    }
}

function OpenOther(url)
{
  var R=window.showModalDialog(url,"水平","dialogWidth=500px;dialogHeight=320px");
    if(R == "ok")
           {
            
                location.href="FinIn_List.aspx?type=checked";
           }
}

</script>

</head>
<body class="bodycolor" topmargin="5" onload="setUp();">
    <form id="form1" runat="server">
   <div id="pnlMain">
    	<TABLE class="small" cellSpacing="1" cellPadding="3"   align="center" border="0" bgcolor="black" >
    	<tr>
    	<td class="TableData"  colspan=4 noWrap>
    <TABLE class="big" cellspacing="0" height="100%" width=800 bgcolor="#DDDDDD" border="1" cellpadding="1" bordercolorlight="#000000" bordercolordark="#FFFFFF">
 <TR>

   <TD title="消费支出申请" id="menu_1" onclick="view_menu1()" onmouseover="setPointer(this, '#B3D1FF',1)" onmouseout="setPointer(this, '#DDDDDD',1)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absmiddle"><b><font color="#000000"> 消费支出申请</font></b>
   </TD>

   <TD title="消费支出处理记录" id="menu_2" onclick="view_menu2()" onmouseover="setPointer(this, '#B3D1FF',2)" onmouseout="setPointer(this, '#DDDDDD',2)" style="cursor:hand">
       <img src="../images/menu/sms.gif" WIDTH="20" HEIGHT="20" align="absMiddle"><b><font color="#000000"> 消费支出处理记录</font></b>
   </TD>
   
 

   </TR>
</TABLE>
</td>
    	</tr>
  	 <span runat=server id="spanAdd"  > 
<tr>
<td class="TableData" align="center">
<table style="width: 484px" cellspacing="1" bgcolor=#000000>
		<tr>
			<td class="TableData" style="width: 79px">申请人:</td>
			<td class="TableData" align="left">
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
		</tr>
		<tr>
			<td class="TableData" style="width: 79px">支出日期:</td>
			<td class="TableData">
			<table style="width: 100%" cellspacing="0" cellpadding="0">
				<tr>
					<td class="TableData" style="width: 100px">
                        <input ID="TxtOutData" CssClass="BigInput" runat="server" readonly />
						

   						</td>
					<td class="TableData" align="left">
  	
						<img
            onclick='popUpCalendar(document.getElementById("TxtOutData"), document.getElementById("TxtOutData"), "yyyy-mm-dd")'
            src="../../App_Themes/Green/images/Calendar.gif" /></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td class="TableData" style="width: 79px">报销金额:</td>
			<td class="TableData" align="left">
  	
					<asp:TextBox ID="TxtOutMoney" CssClass="BigInput" runat="server"></asp:TextBox>
 
										元</td>
		</tr>
		<tr>
			<td class="TableData" style="width: 79px" align="left">费用类型:</td>
			<td class="TableData" align="left">
  	
					<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" style="width: 79px" >申请日期:</td>
			<td class="TableData" align="left">
  	
                <asp:TextBox ID="TxtApplyTime" CssClass="BigInput" runat="server" ReadOnly=true></asp:TextBox>

   						</td>
		</tr>
		<tr>
			<td class="TableData" style="width: 79px">备注:</td>
			<td class="TableData" align="left">
  	
            <asp:TextBox ID="TxtRemark"  CssClass="BigInput" runat="server" Height="77px" TextMode="MultiLine" Width="359px" BorderStyle="Solid" BorderColor="Silver" BorderWidth="1px"></asp:TextBox>
 
   						</td>
		</tr>
		<tr>
			<td colspan=2 class="TableData" style="height: 28px" align="center"><asp:Button ID="BtnAdd" runat="server" CssClass="BigButton" Height="26px"
                Text="提交" Width="47px" OnClientClick="return check()" OnClick="BtnAdd_Click"    />
            &nbsp; &nbsp; &nbsp;
            <input id="Reset1" type="reset" value="重置" Class="BigButton" style="height: 26px" /></td>					</tr>
	</table>

</td> 
</span> 
   <span runat=server id="spanCheck" visible=false > 	
    	<tr>
  <td class="TableData" noWrap colspan=4>
	<table style="width: 100%">
		<tr>
		<td style="width: 68px"> 
审核类型:</td>
			<td style="width: 75px" > 
      		        <asp:DropDownList ID="SelType" runat="server" OnSelectedIndexChanged="SelType_SelectedIndexChanged" AutoPostBack="True">
          <asp:ListItem Value="0">待处理</asp:ListItem>
          <asp:ListItem Value="1">已通过</asp:ListItem>
          <asp:ListItem Value="2">未通过</asp:ListItem>
      </asp:DropDownList>
            
       				</td>
       				
					<td style="width: 69px"> 
      				申请日期:</td>
					<td style="width: 90px"> 
               <input id="Text1" runat="server" style="width: 95px" type="text" readonly /></td>
					<td style="width: 14px"> 
              <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: 16px"> 
 	
            至</td>
					<td style="width: 86px"> 
	
    				<input id="Text2" runat="server" style="width: 86px" type="text" readonly  /></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="26px" OnClick="Button7_Click"
                Text="查询" Width="81px" />	
     

       				</td>
					
				</tr>
	</table>
  </td>
    	</tr>

 <TR>
					<td  colspan=4 align=center class="TableData" noWrap>
                      
   <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="Expend_Id" HScrollBarStyle="Automatic" AllowColSizing=true  VScrollBarStyle=Always
            OnSortingCommand="C1WebGrid1_SortingCommand"
             SkinID="gridviewSkin"  width="764px" 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:C1TemplateColumn HeaderText="审核日期"  SortExpression="Check_Date" ><ItemTemplate><%#Eval("Check_Date").ToString() == "2001-1-1" ? "" : string.Format("{0:d}", Eval("Check_Date"))%></ItemTemplate><ItemStyle Width=150px HorizontalAlign="Center" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" /></C1WebGrid:C1TemplateColumn>
                       <C1WebGrid:C1TemplateColumn HeaderText="审核原因">
                <ItemStyle Width="200px" />
                <ItemTemplate>
                    <asp:Label    ID="Lkb" Text='<%# Server.HtmlDecode(Eval("Exp4").ToString()).Length > 10 ? Server.HtmlDecode(Eval("Exp4").ToString()).Substring(0, 10) + "..." : Server.HtmlDecode(Eval("Exp4").ToString())%>'  ToolTip='<%#Server.HtmlDecode(Eval("Exp4").ToString())%>' runat="server"></asp:Label>
 
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
            
                
                
                
         
            </Columns>
        </C1WebGrid:C1WebGrid>
           
            </td>
    	</tr>
    	</TABLE>
</td>
  </TR>
             </span>

       </TABLE>
       </div>
      
        <input id="HidCode" type="hidden"  runat="server" />
    </form>
   
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -