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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="probation_flow.aspx.cs" Inherits="web_personnel_curricula_vitae_probation_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 id="Head1" runat="server">
  5.     <title>无标题页</title>
  6.     <script language="javascript" type="text/javascript">
  7.         var type=0;
  8.         function SelectEmployee(aa)
  9.         {
  10.             type = aa;
  11.             var url = "../../personnel/curricula_vitae/employee_select_single_index.aspx";
  12.             var features = "width=500,height=400,top=100,left=200,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  13.             var selectEmployee = open(url, 'selectEmployee', features);
  14.             selectEmployee.focus();
  15.         }
  16.         function setValue(value, text)
  17.         {
  18.             if(type==1)
  19.             {
  20.                 document.all.FlowWizard$TxtOperator1.value=text;
  21.                 document.all.OperatorId1.value=value;
  22.             }
  23.             if(type==2)
  24.             {
  25.                 document.all.FlowWizard$TxtOperator2.value=text;
  26.                 document.all.OperatorId2.value=value;
  27.             }
  28.         }
  29.     </script>
  30.     <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
  31. </head>
  32. <body>
  33.     <form id="form1" runat="server">
  34.     <div>
  35.     
  36.     <center>
  37.         &nbsp;</center>
  38.         <center>
  39.             <asp:GridView ID="MainList" runat="server" AutoGenerateColumns="False" BackColor="White"
  40.                 BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="id"
  41.                 DataSourceID="SqlDataSource3" Style="position: relative" Width="600px" OnRowCommand="MainList_RowCommand" OnRowCreated="MainList_RowCreated" OnRowDataBound="MainList_RowDataBound">
  42.                 <FooterStyle BackColor="White" ForeColor="#000066" />
  43.                 <RowStyle ForeColor="#000066" />
  44.                 <Columns>
  45.                     <asp:TemplateField HeaderText="適用職位">
  46.                         <ItemTemplate>
  47.                             <asp:LinkButton ID="LbPosition" CommandName="EditData" runat="server" Style="position: relative"></asp:LinkButton>
  48.                         </ItemTemplate>
  49.                     </asp:TemplateField>
  50.                     <asp:CommandField ShowDeleteButton="True" >
  51.                         <ControlStyle ForeColor="Black" />
  52.                     </asp:CommandField>
  53.                 </Columns>
  54.                 <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
  55.                 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
  56.                 <HeaderStyle BackColor="Desktop" Font-Bold="True" ForeColor="White" />
  57.             </asp:GridView>
  58.             <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  59.                 DeleteCommand="delete from OA_PROBATION_FLOW_MAIN where id=@id" SelectCommand="select id from OA_PROBATION_FLOW_MAIN where department_id=@department_id">
  60.                 <SelectParameters>
  61.                     <asp:SessionParameter DefaultValue="0" Name="department_id" SessionField="p_department_id" />
  62.                 </SelectParameters>
  63.                 <DeleteParameters>
  64.                     <asp:Parameter Name="id" />
  65.                 </DeleteParameters>
  66.             </asp:SqlDataSource>
  67.             <br />
  68.             <asp:Button ID="BtnAddMain" runat="server" Text="新增流程" OnClick="BtnAddMain_Click" />
  69.         </center>
  70.         <center>
  71.         <br />
  72.         <asp:Wizard ID="FlowWizard" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE"
  73.             BorderWidth="1px" Font-Names="Verdana" Font-Size="1em" Style="position: relative"
  74.             Width="600px" ActiveStepIndex="1" Height="450px" OnNextButtonClick="FlowWizard_NextButtonClick" OnFinishButtonClick="FlowWizard_FinishButtonClick" Visible="False">
  75.             <StepStyle Font-Size="0.9em" ForeColor="#333333" />
  76.             <WizardSteps>
  77.                 <asp:WizardStep ID="WizardStep1" runat="server" Title="第一步" StepType="Start">
  78.                     <asp:Table ID="TblFlowMain" runat="server" Style="position: relative" Width="450px">
  79.                         <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
  80.                             <asp:TableHeaderCell ID="TableHeaderCell1" ColumnSpan="2" HorizontalAlign="Left" runat="server">新增表單流程</asp:TableHeaderCell>
  81.                         </asp:TableHeaderRow>
  82.                         <asp:TableRow ID="TableRow1" runat="server">
  83.                             <asp:TableCell ID="TableCell1" BorderWidth="1px" runat="server">部門</asp:TableCell>
  84.                             <asp:TableCell ID="TableCell2" BorderWidth="1px" HorizontalAlign="Left" Width="350px" runat="server">
  85.                                 <asp:TextBox ID="TxtDepartment" runat="server" Enabled="False"></asp:TextBox>
  86.                             </asp:TableCell>
  87.                         </asp:TableRow>
  88.                         <asp:TableRow ID="TableRow2" runat="server">
  89.                             <asp:TableCell ID="TableCell3" BorderWidth="1px" runat="server">職位</asp:TableCell>
  90.                             <asp:TableCell ID="TableCell4" BorderWidth="1px" HorizontalAlign="Left" runat="server">
  91.                                 <asp:CheckBoxList Width="350px" ID="ChkPosition" runat="server" DataSourceID="SqlDataSource1" DataTextField="name" DataValueField="id">
  92.                                 </asp:CheckBoxList>
  93.                             </asp:TableCell>
  94.                         </asp:TableRow>
  95.                     </asp:Table>
  96.                 </asp:WizardStep>
  97.                 <asp:WizardStep ID="WizardStep2" runat="server" Title="第二步" StepType="Finish">
  98.                     <asp:Table ID="TblDetail" runat="server" Style="position: relative" Width="450px">                    
  99.                         <asp:TableHeaderRow ID="TableHeaderRow2" runat="server">
  100.                             <asp:TableHeaderCell ID="TableHeaderCell2" HorizontalAlign="Left" ColumnSpan="2" BorderWidth="1px" runat="server">流程步骤</asp:TableHeaderCell>
  101.                         </asp:TableHeaderRow>
  102.                         <asp:TableRow ID="TableRow3" runat="server">
  103.                             <asp:TableCell ID="TableCell5" BorderWidth="1px" runat="server">部門主管</asp:TableCell>
  104.                             <asp:TableCell ID="TableCell6" BorderWidth="1px" HorizontalAlign="Left" runat="server">
  105.                                 <asp:TextBox ID="TxtOperator1" runat="server" Enabled="False"></asp:TextBox>
  106.                                 <input type="button" value="選擇" onclick="SelectEmployee(1)" />
  107.                             </asp:TableCell>
  108.                         </asp:TableRow>
  109.                         <asp:TableRow ID="TableRow4" runat="server">
  110.                             <asp:TableCell ID="TableCell7" BorderWidth="1px" runat="server">上級主管</asp:TableCell>
  111.                             <asp:TableCell ID="TableCell8" BorderWidth="1px" HorizontalAlign="Left" runat="server">
  112.                                 <asp:TextBox ID="TxtOperator2" runat="server" Enabled="False"></asp:TextBox>
  113.                                 <input type="button" value="選擇" onclick="SelectEmployee(2)" />
  114.                             </asp:TableCell>
  115.                         </asp:TableRow>
  116.                     </asp:Table>
  117.                     <br />
  118.                     <br />
  119.                     <asp:Label ID="LblError" runat="server" Style="position: relative" ForeColor="Red"></asp:Label>
  120.                 </asp:WizardStep>
  121.             </WizardSteps>
  122.             <SideBarButtonStyle BackColor="Desktop" Font-Names="Verdana" ForeColor="White" />
  123.             <NavigationButtonStyle BackColor="White" BorderColor="Desktop" BorderStyle="Solid"
  124.                 BorderWidth="1px" Font-Names="Verdana" Font-Size="1em" ForeColor="#284E98" />
  125.             <SideBarStyle BackColor="Desktop" Font-Size="1em" VerticalAlign="Top" Width="100px" />
  126.             <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
  127.                 Font-Bold="True" Font-Size="1.1em" ForeColor="White" HorizontalAlign="Center" />
  128.         </asp:Wizard>
  129.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  130.             SelectCommand="SELECT [id], [name] FROM [OA_EMPLOYEE_POSITION] ORDER BY [sequence]">
  131.         </asp:SqlDataSource>
  132.         <asp:HiddenField ID="MainId" runat="server" Value="0" />
  133.         <asp:HiddenField ID="DepartmentId" runat="server" Value="0" />
  134.         <asp:HiddenField ID="PositionIds" runat="server" />
  135.         <asp:HiddenField ID="OperatorId2" runat="server" />
  136.         <asp:HiddenField ID="OperatorId1" runat="server" />
  137.         </center>
  138.     </div>
  139.     </form>
  140. </body>
  141. </html>