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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="o_form.aspx.cs" Inherits="web_approvel_ch_o_form" %>
  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 selectEmployee()
  9.         {
  10.             var url = "../../personnel/curricula_vitae/employee_select_single_index.aspx";
  11.             var features = "width=500,height=400,top=200,left=250,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  12.             var employee = open(url, 'selectDepartment', features);
  13.             employee.focus();
  14.         }
  15.         function setValue(id, name)
  16.         {
  17.             document.all.TxtDelegate.value=name;
  18.             document.all.DelegateId.value=id;
  19.         }
  20.     </script>
  21. </head>
  22. <body>
  23.     <form id="form1" runat="server">
  24.     <div>
  25.     <center>
  26.     <asp:Table ID="TblForm" runat="server" Width="580px">
  27.         <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
  28.             <asp:TableHeaderCell ID="TableHeaderCell1" Height="20px" HorizontalAlign="Left" ColumnSpan="4" BackColor="Menu" runat="server">流通事業群中幹請假單</asp:TableHeaderCell>
  29.         </asp:TableHeaderRow>
  30.         <asp:TableRow runat="server">
  31.             <asp:TableCell BorderWidth="1px" runat="server">
  32.                 <asp:Label ID="Label1" runat="server" Text="申請單號"></asp:Label></asp:TableCell>
  33.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  34.                 <asp:TextBox ID="TxtFormId" runat="server" Enabled="false"></asp:TextBox></asp:TableCell>
  35.             <asp:TableCell BorderWidth="1px" runat="server"><asp:Label ID="Label2" runat="server" Text="假別"></asp:Label></asp:TableCell>
  36.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  37.                 <asp:DropDownList ID="DdlOffType" runat="server" DataSourceID="SqlDataSource1"
  38.                     DataTextField="name" DataValueField="id" Style="position: relative">
  39.                 </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  40.                     SelectCommand="SELECT [id], [name] FROM [OA_CH_OFF_TYPE] ORDER BY [sequence]"></asp:SqlDataSource>
  41.             </asp:TableCell>
  42.         </asp:TableRow>
  43.         <asp:TableRow runat="server">
  44.             <asp:TableCell BorderWidth="1px" runat="server">
  45.                 <asp:Label ID="Label14" runat="server" Style="position: relative" Text="申請人"></asp:Label></asp:TableCell>
  46.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  47.                 <asp:TextBox ID="TxtEmpName" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
  48.             <asp:TableCell BorderWidth="1px" runat="server">
  49.                 <asp:Label ID="Label3" runat="server" Style="position: relative" Text="開始時間"></asp:Label></asp:TableCell>
  50.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  51.                 <asp:TextBox ID="TxtBeginTime" runat="server" Style="position: relative"></asp:TextBox>
  52.                 <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/calbtn.gif"
  53.                     OnClick="ImageButton1_Click" Style="position: relative" />
  54.                 <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999"
  55.                     CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  56.                     ForeColor="Black" Height="180px" OnSelectionChanged="Calendar1_SelectionChanged"
  57.                     Style="position: relative" Visible="False" Width="200px">
  58.                     <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  59.                     <SelectorStyle BackColor="#CCCCCC" />
  60.                     <WeekendDayStyle BackColor="#FFFFCC" />
  61.                     <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  62.                     <OtherMonthDayStyle ForeColor="#808080" />
  63.                     <NextPrevStyle VerticalAlign="Bottom" />
  64.                     <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  65.                     <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  66.                 </asp:Calendar>
  67.             </asp:TableCell>
  68.         </asp:TableRow>
  69.         <asp:TableRow runat="server">
  70.             <asp:TableCell BorderWidth="1px" runat="server">
  71.                 <asp:Label ID="Label13" runat="server" Style="position: relative" Text="申請日期"></asp:Label></asp:TableCell>
  72.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  73.                 <asp:TextBox ID="TxtApplyDate" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
  74.             <asp:TableCell BorderWidth="1px" runat="server">
  75.                 <asp:Label ID="Label4" runat="server" Style="position: relative" Text="結束時間"></asp:Label></asp:TableCell>
  76.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  77.                 <asp:TextBox ID="TxtEndTime" runat="server" Style="position: relative"></asp:TextBox>
  78.                 <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/calbtn.gif"
  79.                     OnClick="ImageButton2_Click" Style="position: relative" />
  80.                 <asp:Calendar ID="Calendar2" runat="server" BackColor="White" BorderColor="#999999"
  81.                     CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
  82.                     ForeColor="Black" Height="180px" OnSelectionChanged="Calendar2_SelectionChanged"
  83.                     Style="position: relative" Visible="False" Width="200px">
  84.                     <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  85.                     <SelectorStyle BackColor="#CCCCCC" />
  86.                     <WeekendDayStyle BackColor="#FFFFCC" />
  87.                     <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  88.                     <OtherMonthDayStyle ForeColor="Gray" />
  89.                     <NextPrevStyle VerticalAlign="Bottom" />
  90.                     <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  91.                     <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  92.                 </asp:Calendar>
  93.             </asp:TableCell>
  94.         </asp:TableRow>
  95.         <asp:TableRow runat="server">
  96.             <asp:TableCell BorderWidth="1px" runat="server">
  97.                 <asp:Label ID="Label12" runat="server" Style="position: relative" Text="申請人部門"></asp:Label></asp:TableCell>
  98.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  99.                 <asp:TextBox ID="TxtDepartment" runat="server" Style="position: relative" Enabled="false"></asp:TextBox></asp:TableCell>
  100.             <asp:TableCell BorderWidth="1px" runat="server">
  101.                 <asp:Label ID="Label5" runat="server" Style="position: relative" Text="休假時數"></asp:Label></asp:TableCell>
  102.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">
  103.                 <asp:TextBox ID="TxtHours" runat="server" Style="position: relative"></asp:TextBox>小時</asp:TableCell>
  104.         </asp:TableRow>
  105.         <asp:TableRow runat="server">
  106.             <asp:TableCell BorderWidth="1px" runat="server">
  107.                 <asp:Label ID="Label11" runat="server" Style="position: relative" Text="職務代理人"></asp:Label></asp:TableCell>
  108.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left">                
  109.                     <asp:TextBox ID="TxtDelegate" runat="server"></asp:TextBox>
  110.                     <input type="button" value="選擇" onclick="selectEmployee()" />
  111.             </asp:TableCell>
  112.             <asp:TableCell BorderWidth="1px" runat="server">&nbsp;</asp:TableCell>
  113.             <asp:TableCell BorderWidth="1px" runat="server">&nbsp;</asp:TableCell>
  114.         </asp:TableRow>
  115.         <asp:TableRow runat="server">
  116.             <asp:TableCell BorderWidth="1px" runat="server">
  117.                 <asp:Label ID="Label10" runat="server" Style="position: relative" Text="申請人職稱"></asp:Label></asp:TableCell>
  118.             <asp:TableCell BorderWidth="1px" runat="server" HorizontalAlign="Left" Enabled="false">
  119.                 <asp:TextBox ID="TxtPosition" runat="server" Style="position: relative"></asp:TextBox></asp:TableCell>
  120.             <asp:TableCell BorderWidth="1px" runat="server">&nbsp;</asp:TableCell>
  121.             <asp:TableCell BorderWidth="1px" runat="server">&nbsp;</asp:TableCell>
  122.         </asp:TableRow>
  123.         <asp:TableRow runat="server">
  124.             <asp:TableCell BorderWidth="1px" runat="server">
  125.                 <asp:Label ID="Label8" runat="server" Style="position: relative" Text="附帶公務"></asp:Label></asp:TableCell>
  126.             <asp:TableCell ID="TableCell1" BorderWidth="1px" runat="server" ColumnSpan="3" HorizontalAlign="Left">
  127.                 <asp:TextBox ID="TxtParenthesis" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
  128.                     Width="450px"></asp:TextBox></asp:TableCell>
  129.         </asp:TableRow>
  130.         <asp:TableRow runat="server">
  131.             <asp:TableCell BorderWidth="1px" runat="server">
  132.                 <asp:Label ID="Label9" runat="server" Style="position: relative" Text="事由"></asp:Label></asp:TableCell>
  133.             <asp:TableCell ID="TableCell2" BorderWidth="1px" runat="server" ColumnSpan="3" HorizontalAlign="Left">
  134.                 <asp:TextBox ID="TxtReason" runat="server" Rows="3" Style="position: relative" TextMode="MultiLine"
  135.                     Width="450px"></asp:TextBox></asp:TableCell>
  136.         </asp:TableRow>
  137.         <asp:TableRow runat="server">
  138.             <asp:TableCell BorderWidth="1px" runat="server" ColumnSpan="4">
  139.                 <asp:button ID="BtnOk" runat="server" Text="送件" OnClick="BtnOk_Click" />&nbsp;
  140.                 <asp:button ID="BtnSave" runat="server" Text="存儲" OnClick="BtnSave_Click" />
  141.             </asp:TableCell>
  142.         </asp:TableRow>
  143.     </asp:Table><br />
  144.         <asp:Label ID="LblError" ForeColor="red" runat="server"></asp:Label>
  145.     </center>
  146.         <center>
  147.             &nbsp;</center>
  148.         <center>
  149.         <asp:HiddenField ID="EmpId" runat="server" />
  150.         <asp:HiddenField ID="DepartmentId" runat="server" />
  151.         <asp:HiddenField ID="PositionSequence" runat="server" />
  152.         <asp:HiddenField ID="DelegateId" runat="server" />
  153.         <asp:HiddenField ID="OperatorId" runat="server" />
  154.         <asp:HiddenField ID="PositionId" runat="server" />
  155.         </center>
  156.     </div>
  157.     </form>
  158. </body>
  159. </html>