fair_add.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="fair_add.aspx.cs" Inherits="web_fair_index" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />    
  7.     <script type="text/javascript" language="javascript">
  8.     function selectForm()
  9.     {
  10.         var url = "approvel_select.aspx";
  11.         var features = "width=600,height=500,top=200,left=250,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  12.         var selectForm = open(url, 'selectForm', features);
  13.         selectForm.focus();
  14.     }
  15.     function setForm(formId, formValue)
  16.     {
  17.         document.all.TxtFormNo2.value=formId;
  18.         document.all.FormValue.value=formValue;
  19.     }
  20.     </script>
  21. </head>
  22. <body>
  23.     <form id="form1" runat="server">
  24.     <div>
  25.     <center>
  26.         &nbsp;</center>
  27.         <center>
  28.     <asp:Table ID="TblFairForm" runat="server" Width="580px">
  29.         <asp:TableHeaderRow runat="server" BackColor="menu">
  30.             <asp:TableHeaderCell Width="150px" runat="server" HorizontalAlign="Left" ColumnSpan="2">费用申請表</asp:TableHeaderCell>
  31.         </asp:TableHeaderRow>
  32.         <asp:TableRow>
  33.             <asp:TableCell BorderWidth="1px">單號</asp:TableCell>
  34.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  35.                 <asp:TextBox ID="TxtFormNo" runat="server" Enabled="false" Width="300px"></asp:TextBox>
  36.             </asp:TableCell>
  37.         </asp:TableRow>
  38.         <asp:TableRow>
  39.             <asp:TableCell BorderWidth="1px">申請人姓名</asp:TableCell>
  40.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  41.                 <asp:TextBox ID="TxtEmpName" runat="server" Enabled="false" Width="300px"></asp:TextBox>
  42.             </asp:TableCell>
  43.         </asp:TableRow>
  44.         <asp:TableRow>
  45.             <asp:TableCell BorderWidth="1px">申請人工號</asp:TableCell>
  46.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  47.                 <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="false" Width="300px"></asp:TextBox>
  48.             </asp:TableCell>
  49.         </asp:TableRow>
  50.         <asp:TableRow>
  51.             <asp:TableCell BorderWidth="1px">申請日期</asp:TableCell>
  52.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  53.                 <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="false" Width="300px"></asp:TextBox>
  54.             </asp:TableCell>
  55.         </asp:TableRow>
  56.         <asp:TableRow>
  57.             <asp:TableCell BorderWidth="1px">主旨</asp:TableCell>
  58.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  59.                 <asp:TextBox ID="TxtSubject" runat="server" Width="300px"></asp:TextBox>
  60.                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="主旨不能為空" ControlToValidate="TxtSubject"></asp:RequiredFieldValidator>
  61.             </asp:TableCell>
  62.         </asp:TableRow>
  63.         <asp:TableRow>
  64.             <asp:TableCell BorderWidth="1px">差旅單號</asp:TableCell>
  65.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  66.                 <asp:TextBox ID="TxtFormNo2" runat="server" Width="300px" Enabled="false"></asp:TextBox>
  67.                 <asp:HiddenField ID="FormValue" runat="server" />
  68.                 <input type="button" value="選擇" onclick="selectForm()" />
  69.             </asp:TableCell>
  70.         </asp:TableRow>
  71.         <asp:TableRow>
  72.             <asp:TableCell BorderWidth="1px">申請金額</asp:TableCell>
  73.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  74.                 <asp:TextBox ID="TxtAmount" runat="server" Width="300px"></asp:TextBox>
  75.                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="申請金額不能為空" ControlToValidate="TxtAmount"></asp:RequiredFieldValidator>
  76.             </asp:TableCell>
  77.         </asp:TableRow>
  78.         <asp:TableRow>
  79.             <asp:TableCell BorderWidth="1px">備註</asp:TableCell>
  80.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  81.                 <asp:TextBox ID="TxtRemark" runat="server" Width="400px" TextMode="MultiLine" Rows="5"></asp:TextBox>
  82.             </asp:TableCell>
  83.         </asp:TableRow>
  84.         <asp:TableRow>
  85.             <asp:TableCell BorderWidth="1px">上傳圖檔<br/>(支持gif和jpg)</asp:TableCell>
  86.             <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  87.                 <asp:FileUpload ID="FileUpload1" Width="400px" runat="server" /><br />
  88.                 <asp:FileUpload ID="FileUpload2" Width="400px" runat="server" /><br />
  89.                 <asp:FileUpload ID="FileUpload3" Width="400px" runat="server" /><br />
  90.                 <asp:FileUpload ID="FileUpload4" Width="400px" runat="server" /><br />
  91.                 <asp:FileUpload ID="FileUpload5" Width="400px" runat="server" />
  92.             </asp:TableCell>
  93.         </asp:TableRow>
  94.         <asp:TableRow>
  95.             <asp:TableCell BorderWidth="1px" ColumnSpan="2">
  96.                 <asp:Button ID="BtnOk" runat="server" Text="提交" OnClick="BtnOk_Click" />
  97.             </asp:TableCell>
  98.         </asp:TableRow>
  99.     </asp:Table>
  100.             <asp:HiddenField ID="EmpId" runat="server" Value="0" />
  101.             <asp:HiddenField ID="DepartmentId" runat="server" Value="0" />
  102.             <asp:HiddenField ID="PositionId" runat="server" Value="0" /><br />
  103.             <asp:Label ID="LblError" runat="server" ForeColor="Red"></asp:Label>
  104.         </center>
  105.     </div>
  106.     </form>
  107. </body>
  108. </html>