o_form.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:11k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="o_form.aspx.cs" Inherits="web_approvel_ch_o_form" %>
- <!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 selectEmployee()
- {
- var url = "../../personnel/curricula_vitae/employee_select_single_index.aspx";
- var features = "width=500,height=400,top=200,left=250,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
- var employee = open(url, 'selectDepartment', features);
- employee.focus();
- }
- function setValue(id, name)
- {
- document.all.TxtDelegate.value=name;
- document.all.DelegateId.value=id;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- <asp:Table ID="TblForm" runat="server" Width="580px">
- <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
- <asp:TableHeaderCell ID="TableHeaderCell1" Height="20px" HorizontalAlign="Left" ColumnSpan="4" BackColor="Menu" runat="server">流通事業群中幹請假單</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label1" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormId" runat="server" Enabled="false"></asp:TextBox></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server"><asp:Label ID="Label2" runat="server" Text="假別"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:DropDownList ID="DdlOffType" runat="server" DataSourceID="SqlDataSource1"
- DataTextField="name" DataValueField="id" Style="position: relative">
- </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_CH_OFF_TYPE] ORDER BY [sequence]"></asp:SqlDataSource>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label14" runat="server" Style="position: relative" Text="申請人"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label3" runat="server" Style="position: relative" Text="開始時間"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBeginTime" runat="server" Style="position: relative"></asp:TextBox>
- <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/calbtn.gif"
- OnClick="ImageButton1_Click" Style="position: relative" />
- <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="180px" OnSelectionChanged="Calendar1_SelectionChanged"
- Style="position: relative" Visible="False" Width="200px">
- <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
- <SelectorStyle BackColor="#CCCCCC" />
- <WeekendDayStyle BackColor="#FFFFCC" />
- <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
- <OtherMonthDayStyle ForeColor="#808080" />
- <NextPrevStyle VerticalAlign="Bottom" />
- <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
- <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
- </asp:Calendar>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label13" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label4" runat="server" Style="position: relative" Text="結束時間"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEndTime" runat="server" Style="position: relative"></asp:TextBox>
- <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/calbtn.gif"
- OnClick="ImageButton2_Click" Style="position: relative" />
- <asp:Calendar ID="Calendar2" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="180px" OnSelectionChanged="Calendar2_SelectionChanged"
- Style="position: relative" Visible="False" Width="200px">
- <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
- <SelectorStyle BackColor="#CCCCCC" />
- <WeekendDayStyle BackColor="#FFFFCC" />
- <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
- <OtherMonthDayStyle ForeColor="Gray" />
- <NextPrevStyle VerticalAlign="Bottom" />
- <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
- <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
- </asp:Calendar>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label12" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartment" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label5" runat="server" Style="position: relative" Text="休假時數"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtHours" runat="server" Style="position: relative"></asp:TextBox>小時</asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label11" runat="server" Style="position: relative" Text="職務代理人"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDelegate" runat="server"></asp:TextBox>
- <input type="button" value="選擇" onclick="selectEmployee()" />
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server"> </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server"> </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label10" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left" Enabled="false">
- <asp:TextBox ID="TxtPosition" runat="server" Style="position: relative"></asp:TextBox></asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server"> </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server"> </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label8" runat="server" Style="position: relative" Text="附帶公務"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell1" BorderWidth="1px" runat="server" ColumnSpan="3" HorizontalAlign="Left">
- <asp:TextBox ID="TxtParenthesis" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
- Width="450px"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label ID="Label9" runat="server" Style="position: relative" Text="事由"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell2" BorderWidth="1px" runat="server" ColumnSpan="3" HorizontalAlign="Left">
- <asp:TextBox ID="TxtReason" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
- Width="450px"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server" ColumnSpan="4">
- <asp:button ID="BtnOk" runat="server" Text="送件" OnClick="BtnOk_Click" />
- <asp:button ID="BtnSave" runat="server" Text="存儲" OnClick="BtnSave_Click" />
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table><br />
- <asp:Label ID="LblError" ForeColor="red" runat="server"></asp:Label>
- </center>
- <center>
- </center>
- <center>
- <asp:HiddenField ID="EmpId" runat="server" />
- <asp:HiddenField ID="DepartmentId" runat="server" />
- <asp:HiddenField ID="PositionSequence" runat="server" />
- <asp:HiddenField ID="DelegateId" runat="server" />
- <asp:HiddenField ID="OperatorId" runat="server" />
- <asp:HiddenField ID="PositionId" runat="server" />
- </center>
- </div>
- </form>
- </body>
- </html>