- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkFlowConfigure.aspx.cs" Inherits="Workflow_WorkFlowConfigure" %>
- <!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">
- <link type="text/css" href="style/gridStyle.css" rel="Stylesheet" />
- <link type="text/css" href="style/formbody.css" rel="stylesheet" />
- <title>工作流设计器</title>
- <script type="text/javascript">
- function modelesswin(url,mwidth,mheight)
- {
- url="WorkFlowConfigureNew.aspx";
- if (document.all&&window.print)
- window.location.href(url);
- // window.showModalDialog(url,"","help:0;dialogWidth=1000px;dialogHeight=700px;scroll=no;");
- }
- function confi()
- {
- if (!confirm('系统提示:确认重置吗?'))
- return;
- }
- function SelectedRowVer()
- {
- // alert(form1.TB_SelectedKey.value);
- if (form1.TB_SelectedKey.value=="" || form1.TB_SelectedKey.value==null)
- {
- alert("系统提示:请选择要修改的工作流信息");
- return false;
- }
- }
- function SelectValueVer()
- {
- if (form1.TB_SelectedKey.value=="" || form1.TB_SelectedKey.value==null)
- {
- alert("系统提示:请选择要修改的工作流信息");
- return false;
- }
- if (confirm("系统提示:您确定删除工作流名『" +form1.TB_SelectName.value + "』的工作流吗?"))
- {
- return true;
- }
- return false;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div style="font-size:12px; font-family:宋体;">
- <input type="hidden" id="TB_SelectedIndex" name="TB_SelectedIndex" runat="server"/><input type="hidden" id="TB_SelectedKey" name="TB_SelectedKey" runat="server"/>
- <input type="hidden" id="TB_SelectName" name="TB_SelectedName" runat="server"/>
- <table width="810px">
- <tr style="height:20px;">
- <%-- <td background="../Images/toolbarbg.jpg" height="25">
- <img src="../Images/add.gif" height="15" align="absmiddle">
- <a href="javascript: modelesswin('UserAdd.aspx',450,450)">新建工作流程</a>
- </td> --%>
- <td>
- <img alt="新建流程" src="image/Icon2.gif" height="14" width="14" style=" vertical-align:middle;"/>
- <asp:button id="btnAddProcess" runat="server" Width="50px" CssClass="TopButton" Height="14px"
- BackColor="#ffffff" Text="新建流程" BorderStyle="None" OnClick="btnAddProcess_Click"></asp:button> <img alt="修改流程" src="image/Icon3.gif" height="14" width="14" style=" vertical-align:middle;"/>
- <asp:Button id="btnModifyProcess" runat="server" Text="修改流程" Height="14px" CssClass="TopButton"
- BackColor="#ffffff" Width="50px" BorderStyle="none" OnClientClick="javascript:return SelectedRowVer();" OnClick="btnModifyProcess_Click"></asp:Button>
- <img alt="删除流程" src="image/Icon4.gif" height="14" width="14" style=" vertical-align:middle;"/>
- <asp:button id="btnDeleteProcess" runat="server" Width="50px" CssClass="TopButton" Height="14px"
- BackColor="#ffffff" Text="删除流程" BorderStyle="none" OnClientClick="javascript:return SelectValueVer();" OnClick="btnDeleteProcess_Click1"></asp:button> <img alt="任务管理" src="image/email.gif" height="14" width="14" style=" vertical-align:middle;"/>
- <asp:button id="btnTaskManage" runat="server" Width="50px" CssClass="TopButton" Height="14px"
- BackColor="#ffffff" Text="任务管理" BorderStyle="none" OnClientClick="javascript:return SelectedRowVer();" OnClick="btnTaskManage_Click"></asp:button> <img alt="流向管理" src="image/Navigation-Bar.gif" height="14" width="14" style=" vertical-align:middle;"/>
- <asp:Button id="btnRouteManage" runat="server" Text="流向分析" Height="14px" CssClass="TopButton"
- BackColor="#ffffff" Width="50px" BorderStyle="none" OnClick="btnRouteManage_Click"></asp:Button>
- </td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0" style="height: 20px" width="100%">
- <tr>
- <td>
- <img alt="" src="image/top_29.jpg" /></td>
- <td style="background-image: url(image/top_32.jpg); width: 100%; height: 18px; background-color: #f7f7f7">
-
- <asp:Label ID="lblTitle" runat="server" BackColor="#F2F2F2" Font-Size="14px">
- <strong>工作配置</strong></asp:Label></td>
- <td>
- <img alt="" src="image/top_34.jpg" /></td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0" class="table" style="height: 380px"
- width="100%">
- <tr>
- <td>
- <img alt="" height="380" src="image/table_35.jpg" width="8" /></td>
- <td style="width: 100%; padding-top: 4px" valign="top">
- <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
- AutoGenerateColumns="False" BackColor="#CDCDCF" BorderWidth="0px" CellPadding="0"
- CellSpacing="1" CssClass="Grid" FooterStyle-CssClass="GridFooter" HeaderStyle-CssClass="GridHeader"
- OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
- RowStyle-CssClass="HeadingCellText" SelectedRowStyle-CssClass="SelectedRow" ShowFooter="True"
- Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" DataKeyNames="WFID">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
- <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <Columns>
- <asp:TemplateField HeaderText="序号">
- <ItemTemplate>
- <%#(Container.DataItemIndex+1)%>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="WFName" HeaderText="工作流名称" />
- <asp:BoundField DataField="KindName" HeaderText="所属种类" />
- <asp:BoundField DataField="WFDesc" HeaderText="工作流描述" />
- <asp:TemplateField HeaderText="工作流状态">
- <ItemTemplate>
- <asp:Label ID="Label2" runat="server" Text='<%# FormatStr(DataBinder.Eval(Container,"DataItem.Status")) %>'>
- </asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="操 作" HeaderStyle-CssClass="TemplateFieldHeader">
- <ItemTemplate>
- <asp:ImageButton ID="IB_Edit" ToolTip="选择" runat="server" CommandName="select" ImageUrl="Image/i_rate.gif"/>
- <asp:ImageButton ToolTip="已选" ID="IB_Del" runat="server" ImageUrl="Image/p5.gif" Visible="false" Height="24" Width="24"
- OnClientClick="javascript:return false;"/>
- </ItemTemplate>
- <HeaderStyle Width="12%" HorizontalAlign="Left" BorderWidth="0px"/>
- <ItemStyle HorizontalAlign="Left" BorderWidth="0px"/>
- </asp:TemplateField>
- </Columns>
- <FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <PagerTemplate>
- <asp:Label ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>
-
- <asp:Label ID="LabelPageCount" runat="server">总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>
-
- <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
- Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
-
- <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
- CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
-
- <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
- Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
-
- <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
- Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
- 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'
- Width="20px"></asp:TextBox>页
- <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="LinkTextBoxNewPage"
- Display="Dynamic" ErrorMessage="0-99999" MaximumValue="99999" MinimumValue="0"
- ValidationGroup="goto"></asp:RangeValidator>
- <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-1"
- CommandName="Page" Text="GO" ValidationGroup="goto"></asp:LinkButton>
- </PagerTemplate>
- <EmptyDataTemplate>
- <center class="EmpetyData">
- 系统提示:没有已配置的工作流。</center>
- </EmptyDataTemplate>
- </asp:GridView>
- </td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td>
- <img alt="" src="image/table_49.jpg" /></td>
- <td style="background-image: url(image/table_50.jpg); width: 100%; font-family: 宋体">
- </td>
- <td>
- <img alt="" src="image/table_51.jpg" /></td>
- </tr>
- </table>
- </div>
- </form>
- </body>
- </html>