flow_show.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:14k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="flow_show.aspx.cs" Inherits="web_approvel_flow_flow_show" %>
- <!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 selectDepartment()
- {
- var url = "../../personnel/department/department_select_chk.aspx";
- var features = "width=1030,height=720,top=0,left=0,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
- var selectDepartment = open(url, 'selectDepartment', features);
- selectDepartment.focus();
- }
- function SelectEmployee()
- {
- var url = "../../personnel/curricula_vitae/employee_select_single_index.aspx";
- var features = "width=500,height=400,top=100,left=200,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
- var selectEmployee = open(url, 'selectEmployee', features);
- selectEmployee.focus();
- }
- function setValue(value, text)
- {
- document.all.TxtOperator.value=text;
- document.all.OperatorId.value=value;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- <asp:Table ID="TblFlowMain" runat="server" Style="position: relative" Width="500px">
- <asp:TableHeaderRow ID="TableHeaderRow1" runat="server" BackColor="LightGray">
- <asp:TableHeaderCell ID="TableHeaderCell1" ColumnSpan="4" HorizontalAlign="Left" runat="server">添加表單屬性</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow ID="TableRow1" runat="server">
- <asp:TableCell ID="TableCell1" BorderWidth="1px" runat="server">
- <asp:Label ID="Label2" runat="server" Text="名稱" BorderStyle="None"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell2" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtName" Enabled="false" runat="server" Width="350px"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="名稱不能為空" ControlToValidate="TxtName"></asp:RequiredFieldValidator></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow2" runat="server">
- <asp:TableCell ID="TableCell3" BorderWidth="1px" runat="server">
- <asp:Label ID="Label3" runat="server" Text="描述" BorderStyle="None"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell4" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtDescription" runat="server" Enabled="false" Width="350px" Rows="3" TextMode="MultiLine"></asp:TextBox></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">
- <asp:Label ID="Label5" runat="server" Text="適用類別" BorderStyle="None"></asp:Label></asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:RadioButtonList ID="RbType" runat="server" Enabled="false" RepeatDirection="Horizontal">
- <asp:ListItem Text="台幹" Value="1" Selected="True"></asp:ListItem>
- <asp:ListItem Text="中幹" Value="2"></asp:ListItem>
- <asp:ListItem Text="台幹和中幹" Value="3"></asp:ListItem>
- </asp:RadioButtonList></asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow3" runat="server">
- <asp:TableCell ID="TableCell5" BorderWidth="1px" runat="server">
- <asp:Label ID="Label4" runat="server" Text="適用部門"></asp:Label></asp:TableCell>
- <asp:TableCell ID="TableCell6" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:Button runat="server" ID="BtnSelect" OnClientClick="selectDepartment()" Text="選擇" Visible="false" />
- <asp:Label ID="LblDepartments" runat="server" BorderStyle="None"></asp:Label>
- <asp:HiddenField ID="DepartmentIds" runat="server" />
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow4" runat="server">
- <asp:TableCell ID="TableCell7" BorderWidth="1px" ColumnSpan="2" runat="server">
- <asp:Button ID="BtnEdit" runat="server" Text="修改" OnClick="BtnEdit_Click" Visible="true"/>
- <asp:Button ID="BtnOk" runat="server" Text="儲存" OnClick="BtnOk_Click" Visible="false"/></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </center>
- <center>
- </center>
- <center>
- <asp:GridView ID="FlowList" runat="server"
- AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
- BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1" OnRowCreated="FlowList_RowCreated"
- OnRowDataBound="FlowList_RowDataBound" Style="position: relative" Width="550px" OnRowCommand="FlowList_RowCommand">
- <FooterStyle BackColor="White" ForeColor="#000066" />
- <RowStyle ForeColor="Black" />
- <Columns>
- <asp:BoundField DataField="name" HeaderText="名稱" />
- <asp:TemplateField HeaderText="辦理人">
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Style="position: relative" Text='<%# Eval("operator") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="簽核類別">
- <ItemTemplate>
- <asp:Label ID="LblApplyType" runat="server" Style="position: relative"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="number" HeaderText="編號" SortExpression="number" />
- <asp:BoundField DataField="next_number" HeaderText="下一步編號" SortExpression="next_number" />
- <asp:TemplateField HeaderText="最大天數">
- <ItemTemplate>
- <asp:Label ID="LblMaxDay" runat="server" Style="position: relative"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="larger_next" HeaderText="超過最大天數跳轉編號" SortExpression="larger_next" />
- <asp:TemplateField>
- <ItemTemplate>
- <asp:LinkButton ID="BtnEdit" runat="server" CommandName="EditData" Style="position: relative">編輯</asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- </Columns>
- <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" />
- <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="Menu" Font-Bold="True" ForeColor="Black" />
- </asp:GridView>
-
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="select f.id, f.name, e.emp_name operator, f.number, f.next_number, f.larger_than, f.larger_next from OA_FLOW_DETAIL f inner join OA_EMPLOYEE e on f.operator_id=e.id where f.main_id=@main_id">
- <SelectParameters>
- <asp:QueryStringParameter DefaultValue="0" Name="main_id" QueryStringField="f_id" />
- </SelectParameters>
- </asp:SqlDataSource><br />
- <asp:Panel ID="PnlDetail" runat="server" Style="position: relative" Width="500px" Visible="false">
- <asp:Table ID="TblFlow" runat="server" Width="500px">
- <asp:TableHeaderRow ID="TableHeaderRow2" runat="server">
- <asp:TableHeaderCell ID="TableHeaderCell2" HorizontalAlign="Left" runat="server" BackColor="LightGray" ColumnSpan="2">流程表單</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow ID="TableRow5" runat="server">
- <asp:TableCell ID="TableCell8" BorderWidth="1px" runat="server">
- <asp:Label ID="Label1" runat="server" Text="流程名稱"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell9" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtDetailName" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
- ErrorMessage="名稱不能為空" ControlToValidate="TxtName" Display="None"></asp:RequiredFieldValidator>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow6" runat="server">
- <asp:TableCell ID="TableCell10" BorderWidth="1px" runat="server">
- <asp:Label ID="Label6" runat="server" Text="類別"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell11" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlType" runat="server">
- <asp:ListItem Text="會簽" Value="1"></asp:ListItem>
- <asp:ListItem Text="審批" Value="2" Selected="True"></asp:ListItem>
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow7" runat="server">
- <asp:TableCell ID="TableCell12" BorderWidth="1px" runat="server">
- <asp:Label ID="Label7" runat="server" Text="編號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell13" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtNumber" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
- ErrorMessage="編號不能為空" ControlToValidate="TxtNumber" Display="None"></asp:RequiredFieldValidator>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow8" runat="server">
- <asp:TableCell ID="TableCell14" BorderWidth="1px" runat="server">
- <asp:Label ID="Label8" runat="server" Text="辦理人"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell15" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtOperator" runat="server" Enabled="False"></asp:TextBox>
- <asp:HiddenField ID="OperatorId" runat="server" />
- <input type="button" value="選擇" onclick="SelectEmployee()" />
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow9" runat="server">
- <asp:TableCell ID="TableCell16" BorderWidth="1px" runat="server">
- <asp:Label ID="Label9" runat="server" Text="下一步編號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell17" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtNextNumber" runat="server"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow10" runat="server">
- <asp:TableCell ID="TableCell18" BorderWidth="1px" runat="server">
- <asp:Label ID="Label10" runat="server" Text="最大天數"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell19" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtLargerThan" runat="server"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow11" runat="server">
- <asp:TableCell ID="TableCell20" BorderWidth="1px" runat="server">
- <asp:Label ID="Label11" runat="server" Text="超過最大天數跳轉編號"></asp:Label>
- </asp:TableCell>
- <asp:TableCell ID="TableCell21" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtLargerNext" runat="server"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow12" runat="server">
- <asp:TableCell ID="TableCell22" BorderWidth="1px" ColumnSpan="2" runat="server">
- <asp:Button ID="Button1" runat="server" Text="儲存" OnClick="BtnDetailOk_Click" />
- <asp:Button ID="BtnCancel" runat="server" Text="取消" OnClick="BtnCancel_Click" />
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table><br />
- <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
- </asp:Panel>
- </center>
- </div>
- </form>
- </body>
- </html>