fair_add.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="fair_add.aspx.cs" Inherits="web_fair_index" %>
- <!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 runat="server">
- <title>无标题页</title>
- <link href="../../css/style.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" language="javascript">
- function selectForm()
- {
- var url = "approvel_select.aspx";
- var features = "width=600,height=500,top=200,left=250,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
- var selectForm = open(url, 'selectForm', features);
- selectForm.focus();
- }
- function setForm(formId, formValue)
- {
- document.all.TxtFormNo2.value=formId;
- document.all.FormValue.value=formValue;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- </center>
- <center>
- <asp:Table ID="TblFairForm" runat="server" Width="580px">
- <asp:TableHeaderRow runat="server" BackColor="menu">
- <asp:TableHeaderCell Width="150px" runat="server" HorizontalAlign="Left" ColumnSpan="2">费用申請表</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">單號</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormNo" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請人姓名</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請人工號</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請日期</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="false" Width="300px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">主旨</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtSubject" runat="server" Width="300px"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="主旨不能為空" ControlToValidate="TxtSubject"></asp:RequiredFieldValidator>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">差旅單號</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormNo2" runat="server" Width="300px" Enabled="false"></asp:TextBox>
- <asp:HiddenField ID="FormValue" runat="server" />
- <input type="button" value="選擇" onclick="selectForm()" />
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">申請金額</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtAmount" runat="server" Width="300px"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="申請金額不能為空" ControlToValidate="TxtAmount"></asp:RequiredFieldValidator>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">備註</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtRemark" runat="server" Width="400px" TextMode="MultiLine" Rows="5"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">上傳圖檔<br/>(支持gif和jpg)</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:FileUpload ID="FileUpload1" Width="400px" runat="server" /><br />
- <asp:FileUpload ID="FileUpload2" Width="400px" runat="server" /><br />
- <asp:FileUpload ID="FileUpload3" Width="400px" runat="server" /><br />
- <asp:FileUpload ID="FileUpload4" Width="400px" runat="server" /><br />
- <asp:FileUpload ID="FileUpload5" Width="400px" runat="server" />
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px" ColumnSpan="2">
- <asp:Button ID="BtnOk" runat="server" Text="提交" OnClick="BtnOk_Click" />
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:HiddenField ID="EmpId" runat="server" Value="0" />
- <asp:HiddenField ID="DepartmentId" runat="server" Value="0" />
- <asp:HiddenField ID="PositionId" runat="server" Value="0" /><br />
- <asp:Label ID="LblError" runat="server" ForeColor="Red"></asp:Label>
- </center>
- </div>
- </form>
- </body>
- </html>