form.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:22k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="form.aspx.cs" Inherits="web_approvel_tw_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><br />
- <asp:Table ID="TblForm" runat="server" Width="574px" Height="587px">
- <asp:TableHeaderRow runat="server">
- <asp:TableHeaderCell 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 BorderStyle="None" ID="LblFormNo" runat="server" Text="申請單號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFormNo" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblVacationBegin" runat="server" Text="休假日期起" Enabled="False"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtVacationBegin" runat="server" Enabled="False"></asp:TextBox>
- <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton1_Click" Enabled="False"></asp:ImageButton>
- <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" 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="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 BorderStyle="None" ID="LblEmpNo" runat="server" Text="申請人工號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpNo" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblVacationEnd" runat="server" Text="休假日期止" Enabled="False"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtVacationEnd" runat="server" Enabled="False"></asp:TextBox>
- <asp:ImageButton ID="ImageButton2" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton2_Click" Enabled="False"></asp:ImageButton>
- <asp:Calendar ID="Calendar2" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" 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 BorderStyle="None" ID="LblApplyDate" runat="server" Text="申請日期"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtApplyDate" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblVacationPlace" runat="server" Text="休假區域" Enabled="False"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList Width="150px" ID="DdlVacationPlace" runat="server" DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="id" Enabled="False">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblEmpId" runat="server" Text="申請人姓名"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtEmpName" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblFlightGoDepart" runat="server" Text="班機(往)出發地"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlFlightGoDepart" Width="150px" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblDepartment" runat="server" Text="申請人部門"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDepartment" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblFlightGoArrive" runat="server" Text="班機(往)終地點"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlFlightGoArrive" Width="150px" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblPosition" runat="server" Text="申請人職稱"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtPosition" runat="server" Enabled="False"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblFlightGoTime" runat="server" Text="(往)起飛時間"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightGoTime" runat="server"></asp:TextBox>
- <asp:ImageButton ID="ImageButton5" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton5_Click"></asp:ImageButton>
- <asp:Calendar ID="Calendar5" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" OnSelectionChanged="Calendar5_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 BorderStyle="None" ID="LblDelegate" runat="server" 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()" />
- <input id="DelegateId" type="hidden" runat="server" />
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblFlightBackTime" runat="server" Text="(返)起飛時間"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtFlightBackTime" runat="server"></asp:TextBox>
- <asp:ImageButton ID="ImageButton6" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton6_Click"></asp:ImageButton>
- <asp:Calendar ID="Calendar6" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" OnSelectionChanged="Calendar6_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 BorderStyle="None" ID="LblOffType" runat="server" Text="假別"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlOffType" Width="150px" runat="server" DataSourceID="SqlDataSource1"
- DataTextField="name" DataValueField="id" AutoPostBack="True" OnSelectedIndexChanged="DdlOffType_SelectedIndexChanged">
- </asp:DropDownList>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblFlightBackDepart" runat="server" Text="班機(返)出發地"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlFlightBackDepart" Width="150px" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblParenthesis" runat="server" Text="附帶公務假"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtParenthesis" runat="server"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblFlightBackArrive" runat="server" Text="班機(返)終地點"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:DropDownList ID="DdlFlightBackArrive" Width="150px" runat="server" DataSourceID="SqlDataSource3" DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblDays" runat="server" Text="工作日數"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtDays" runat="server"></asp:TextBox>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblBusinessBegin" runat="server" Text="工作日期起"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBusinessBegin" runat="server"></asp:TextBox>
- <asp:ImageButton ID="ImageButton3" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton3_Click"></asp:ImageButton>
- <asp:Calendar ID="Calendar3" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" OnSelectionChanged="Calendar3_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 ID="TableCell1" BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblBusinessPlace" runat="server" Text="工作地點"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell2" BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:DropDownList ID="DdlBusinessPlace" runat="server" DataSourceID="SqlDataSource4"
- DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server">
- <asp:Label BorderStyle="None" ID="LblBusinessEnd" runat="server" Text="工作日期止"></asp:Label>
- </asp:TableCell>
- <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtBusinessEnd" runat="server"></asp:TextBox>
- <asp:ImageButton ID="ImageButton4" ImageUrl="~/images/calbtn.gif" runat="server" OnClick="ImageButton4_Click"></asp:ImageButton>
- <asp:Calendar ID="Calendar4" runat="server" BackColor="White" BorderColor="#999999"
- CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
- ForeColor="Black" Height="145px" OnSelectionChanged="Calendar4_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 BorderStyle="None" ID="LblReason" runat="server" Text="申請事由"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ColumnSpan="3" BorderWidth="1px" runat="server" HorizontalAlign="Left">
- <asp:TextBox ID="TxtReason" Width="450px" Rows="3" TextMode="MultiLine" runat="server"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server" BorderWidth="1px">
- <asp:TableCell ColumnSpan="4" BorderWidth="1px" runat="server">
- <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" runat="server" ForeColor="Red" Style="position: relative"></asp:Label>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_TW_OFF_TYPE] ORDER BY [sequence]"></asp:SqlDataSource>
- <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_VACATION_PLACE] ORDER BY [sequence]">
- </asp:SqlDataSource>
- <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_FLIGHT_PLACE] order by sequence"></asp:SqlDataSource>
- <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_BUSINESS_PLACE]"></asp:SqlDataSource>
- <asp:HiddenField ID="DepartmentId" runat="server" />
- <asp:HiddenField ID="EmpId" runat="server" />
- <asp:HiddenField ID="OperatorId" runat="server" />
- <asp:HiddenField ID="PositionId" runat="server" />
- <asp:HiddenField ID="PositionSequence" runat="server" />
- <asp:HiddenField ID="a" runat="server" />
- </center>
- </div>
- </form>
- </body>
- </html>