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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_flow.aspx.cs" Inherits="web_approvel_flow_add_flow" %>
  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 language="javascript" type="text/javascript">
  8.         function SelectEmployee()
  9.         {
  10.             var url = "../../personnel/curricula_vitae/employee_select_single_index.aspx";
  11.             var features = "width=500,height=400,top=100,left=200,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  12.             var selectEmployee = open(url, 'selectEmployee', features);
  13.             selectEmployee.focus();
  14.         }
  15.         function setValue(value, text)
  16.         {
  17.             document.all.TxtOperator.value=text;
  18.             document.all.OperatorId.value=value;
  19.         }
  20.     </script>
  21. </head>
  22. <body>
  23.     <form id="form1" runat="server">
  24.     <div>
  25.     <center>
  26.         <table>
  27.             <tr>
  28.                 <td valign="top">
  29.                     <asp:Panel ID="Panel1" runat="server">
  30.                         <asp:Table ID="TblFlow" runat="server" Width="550px">
  31.                             <asp:TableHeaderRow runat="server">
  32.                                 <asp:TableHeaderCell HorizontalAlign="Left" runat="server" BackColor="lightGray" ColumnSpan="2">流程表單</asp:TableHeaderCell>
  33.                             </asp:TableHeaderRow>
  34.                             <asp:TableRow runat="server">
  35.                                 <asp:TableCell BorderWidth="1px" runat="server">
  36.                                     <asp:Label ID="Label1" runat="server" Text="流程名稱"></asp:Label>
  37.                                 </asp:TableCell>
  38.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  39.                                     <asp:TextBox ID="TxtName" runat="server"></asp:TextBox>
  40.                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
  41.                                         ErrorMessage="名稱不能為空" ControlToValidate="TxtName" Display="None"></asp:RequiredFieldValidator>
  42.                                 </asp:TableCell>
  43.                             </asp:TableRow>
  44.                             <asp:TableRow runat="server">
  45.                                 <asp:TableCell BorderWidth="1px" runat="server">
  46.                                     <asp:Label ID="Label2" runat="server" Text="類別"></asp:Label>
  47.                                 </asp:TableCell>
  48.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">          
  49.                                     <asp:DropDownList ID="DdlType" runat="server">
  50.                                         <asp:ListItem Text="會簽" Value="1"></asp:ListItem>
  51.                                         <asp:ListItem Text="審批" Value="2" Selected="True"></asp:ListItem>
  52.                                     </asp:DropDownList>
  53.                                 </asp:TableCell>
  54.                             </asp:TableRow>
  55.                             <asp:TableRow runat="server">
  56.                                 <asp:TableCell BorderWidth="1px" runat="server">
  57.                                     <asp:Label ID="Label4" runat="server" Text="編號"></asp:Label>
  58.                                 </asp:TableCell>
  59.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  60.                                     <asp:TextBox ID="TxtNumber" runat="server"></asp:TextBox>
  61.                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
  62.                                         ErrorMessage="編號不能為空" ControlToValidate="TxtNumber" Display="None"></asp:RequiredFieldValidator>
  63.                                 </asp:TableCell>
  64.                             </asp:TableRow>
  65.                             <asp:TableRow runat="server">
  66.                                 <asp:TableCell BorderWidth="1px" runat="server">
  67.                                     <asp:Label ID="Label5" runat="server" Text="辦理人"></asp:Label>
  68.                                 </asp:TableCell>
  69.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  70.                                     <asp:TextBox ID="TxtOperator" runat="server" Enabled="False"></asp:TextBox>
  71.                                     <asp:HiddenField ID="OperatorId" runat="server" />
  72.                                     <input type="button" value="選擇" onclick="SelectEmployee()" />
  73.                                 </asp:TableCell>
  74.                             </asp:TableRow>
  75.                             <asp:TableRow runat="server">
  76.                                 <asp:TableCell BorderWidth="1px" runat="server">
  77.                                     <asp:Label ID="Label6" runat="server" Text="下一步編號"></asp:Label>
  78.                                 </asp:TableCell>
  79.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  80.                                     <asp:TextBox ID="TxtNextNumber" runat="server"></asp:TextBox>
  81.                                 </asp:TableCell>
  82.                             </asp:TableRow>
  83.                             <asp:TableRow runat="server">
  84.                                 <asp:TableCell BorderWidth="1px" runat="server">
  85.                                     <asp:Label ID="Label7" runat="server" Text="最大天數"></asp:Label>
  86.                                 </asp:TableCell>
  87.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  88.                                     <asp:TextBox ID="TxtLargerThan" runat="server"></asp:TextBox>
  89.                                 </asp:TableCell>
  90.                             </asp:TableRow>
  91.                             <asp:TableRow runat="server">
  92.                                 <asp:TableCell BorderWidth="1px" runat="server">
  93.                                     <asp:Label ID="Label3" runat="server" Text="超過最大天數跳轉編號"></asp:Label>
  94.                                 </asp:TableCell>
  95.                                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  96.                                     <asp:TextBox ID="TxtLargerNext" runat="server"></asp:TextBox>
  97.                                 </asp:TableCell>
  98.                             </asp:TableRow>
  99.                             <asp:TableRow runat="server">
  100.                                 <asp:TableCell BorderWidth="1px" ColumnSpan="2" runat="server">
  101.                                     <asp:Button ID="BtnOk" runat="server" Text="儲存" OnClick="BtnOk_Click" />&nbsp;
  102.                                     <asp:Button ID="BtnCancel" runat="server" Text="取消" OnClick="BtnCancel_Click" />
  103.                                 </asp:TableCell>
  104.                             </asp:TableRow>
  105.                         </asp:Table><br />
  106.                         <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
  107.                     </asp:Panel>
  108.                 </td>
  109.             </tr>
  110.         </table><br />
  111.             <asp:Table ID="TblFlowList" runat="server" style="position: relative;" Width="550px">
  112.             </asp:Table>
  113.         </center>
  114.     </div>
  115.     </form>
  116. </body>
  117. </html>