WorkFlowConfigure.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:12k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="Workflow_WorkFlowConfigure, App_Web_-rs7x2pk" theme="Normal" %>
  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. <link type="text/css" href="style/gridStyle.css" rel="Stylesheet" />
  6. <link type="text/css" href="style/formbody.css" rel="stylesheet" />
  7.     <title>工作流设计器</title>
  8.      <script type="text/javascript">
  9.      function modelesswin(url,mwidth,mheight)
  10.      {
  11.         url="WorkFlowConfigureNew.aspx";
  12.        if (document.all&&window.print)
  13.             window.location.href(url);
  14. //          window.showModalDialog(url,"","help:0;dialogWidth=1000px;dialogHeight=700px;scroll=no;");
  15.       }
  16.    
  17.     function confi()
  18.      {
  19.       
  20.        if (!confirm('系统提示:确认重置吗?'))
  21.          return;
  22.      
  23.     }
  24.     
  25.     function SelectedRowVer()
  26.     {
  27. //        alert(form1.TB_SelectedKey.value);
  28.         if (form1.TB_SelectedKey.value=="" || form1.TB_SelectedKey.value==null)
  29.         {
  30.             alert("系统提示:请选择要修改的工作流信息");
  31.             return false;
  32.         }
  33.     }
  34.     
  35.   
  36.     function SelectValueVer()
  37.     {
  38.         if (form1.TB_SelectedKey.value=="" || form1.TB_SelectedKey.value==null)
  39.         {
  40.             alert("系统提示:请选择要修改的工作流信息");
  41.             return false;
  42.         }
  43.         if (confirm("系统提示:您确定删除工作流名『" +form1.TB_SelectName.value + "』的工作流吗?"))
  44.         {
  45.             return true;
  46.         }
  47.         return false;
  48.     }
  49.     </script> 
  50. </head>
  51. <body>
  52.     <form id="form1" runat="server">
  53.     <div style="font-size:12px; font-family:宋体;">
  54.             <input type="hidden" id="TB_SelectedIndex" name="TB_SelectedIndex"   runat="server"/><input type="hidden" id="TB_SelectedKey" name="TB_SelectedKey"   runat="server"/>
  55.             <input type="hidden" id="TB_SelectName" name="TB_SelectedName"   runat="server"/>
  56.             <table width="810px">
  57.                  <tr style="height:20px;">
  58.                     <%-- <td background="../Images/toolbarbg.jpg" height="25">
  59.                         <img src="../Images/add.gif" height="15" align="absmiddle">
  60.                         <a href="javascript: modelesswin('UserAdd.aspx',450,450)">新建工作流程</a>
  61.                       </td> --%>
  62.                       <td>
  63. <img alt="新建流程" src="image/Icon2.gif" height="14" width="14" style=" vertical-align:middle;"/>
  64. <asp:button id="btnAddProcess" runat="server" Width="50px" CssClass="TopButton" Height="14px"
  65. BackColor="#ffffff" Text="新建流程" BorderStyle="None" OnClick="btnAddProcess_Click"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="修改流程" src="image/Icon3.gif" height="14" width="14" style=" vertical-align:middle;"/>
  66. <asp:Button id="btnModifyProcess" runat="server" Text="修改流程" Height="14px" CssClass="TopButton"
  67. BackColor="#ffffff" Width="50px" BorderStyle="none" OnClientClick="javascript:return SelectedRowVer();" OnClick="btnModifyProcess_Click"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  68. <img alt="删除流程" src="image/Icon4.gif" height="14" width="14" style=" vertical-align:middle;"/>
  69. <asp:button id="btnDeleteProcess" runat="server" Width="50px" CssClass="TopButton" Height="14px"
  70. BackColor="#ffffff" Text="删除流程" BorderStyle="none" OnClientClick="javascript:return SelectValueVer();" OnClick="btnDeleteProcess_Click1"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="任务管理" src="image/email.gif" height="14" width="14" style=" vertical-align:middle;"/>
  71. <asp:button id="btnTaskManage" runat="server" Width="50px" CssClass="TopButton" Height="14px"
  72. BackColor="#ffffff" Text="任务管理"  BorderStyle="none" OnClientClick="javascript:return SelectedRowVer();" OnClick="btnTaskManage_Click"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="流向管理" src="image/Navigation-Bar.gif" height="14" width="14" style=" vertical-align:middle;"/>
  73. <asp:Button id="btnRouteManage" runat="server" Text="流向分析" Height="14px" CssClass="TopButton"
  74. BackColor="#ffffff" Width="50px"  BorderStyle="none" OnClick="btnRouteManage_Click"></asp:Button>
  75. </td>
  76.                 </tr>
  77.             </table>
  78.             <table border="0" cellpadding="0" cellspacing="0" style="height: 20px" width="100%">
  79.                 <tr>
  80.                     <td>
  81.                         <img alt="" src="image/top_29.jpg" /></td>
  82.                     <td style="background-image: url(image/top_32.jpg); width: 100%; height: 18px; background-color: #f7f7f7">
  83.                         &nbsp;
  84.                         <asp:Label ID="lblTitle" runat="server" BackColor="#F2F2F2" Font-Size="14px">
  85. <strong>工作配置</strong></asp:Label></td>
  86.                     <td>
  87.                         <img alt="" src="image/top_34.jpg" /></td>
  88.                 </tr>
  89.             </table>
  90.             <table border="0" cellpadding="0" cellspacing="0" class="table" style="height: 380px"
  91.                 width="100%">
  92.                 <tr>
  93.                     <td>
  94.                         <img alt="" height="380" src="image/table_35.jpg" width="8" /></td>
  95.                     <td style="width: 100%; padding-top: 4px" valign="top">
  96.                         <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
  97.                             AutoGenerateColumns="False" BackColor="#CDCDCF" BorderWidth="0px" CellPadding="0"
  98.                             CellSpacing="1" CssClass="Grid" FooterStyle-CssClass="GridFooter" HeaderStyle-CssClass="GridHeader"
  99.                             OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
  100.                             RowStyle-CssClass="HeadingCellText" SelectedRowStyle-CssClass="SelectedRow" ShowFooter="True"
  101.                             Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" DataKeyNames="WFID">
  102.                             <AlternatingRowStyle BackColor="#F0F0F0" />
  103.                             <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
  104.                             <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  105.                             <Columns>
  106.                                 <asp:TemplateField HeaderText="序号">
  107.                                     <ItemTemplate>
  108.                                         <%#(Container.DataItemIndex+1)%>
  109.                                     </ItemTemplate>
  110.                                 </asp:TemplateField>
  111.                                 <asp:BoundField DataField="WFName" HeaderText="工作流名称" />
  112.                                 <asp:BoundField DataField="KindName" HeaderText="所属种类" />
  113.                                 <asp:BoundField DataField="WFDesc" HeaderText="工作流描述" />
  114.                                 <asp:TemplateField HeaderText="工作流状态">
  115.                                     <ItemTemplate>
  116.                                         <asp:Label ID="Label2" runat="server" Text='<%# FormatStr(DataBinder.Eval(Container,"DataItem.Status")) %>'>   
  117.                                         </asp:Label>
  118.                                     </ItemTemplate>
  119.                                 </asp:TemplateField>
  120.                                 <asp:TemplateField HeaderText="操 作" HeaderStyle-CssClass="TemplateFieldHeader">
  121.                                             <ItemTemplate>
  122.                                           &nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="IB_Edit" ToolTip="选择" runat="server" CommandName="select" ImageUrl="Image/i_rate.gif"/> 
  123.                                                 <asp:ImageButton ToolTip="已选" ID="IB_Del" runat="server" ImageUrl="Image/p5.gif" Visible="false" Height="24" Width="24"
  124.                                                     OnClientClick="javascript:return false;"/>&nbsp; &nbsp;
  125.                                             </ItemTemplate>
  126.                                             <HeaderStyle Width="12%" HorizontalAlign="Left"  BorderWidth="0px"/>
  127.                                             <ItemStyle HorizontalAlign="Left"  BorderWidth="0px"/>
  128.                                         </asp:TemplateField>
  129.                             </Columns>
  130.                             <FooterStyle CssClass="GridFooter" />
  131.                             <PagerStyle CssClass="GridPage" />
  132.                             <PagerTemplate>
  133.                                 <asp:Label ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp;
  134.                                 &nbsp;
  135.                                 <asp:Label ID="LabelPageCount" runat="server">总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp;
  136.                                 &nbsp;
  137.                                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
  138.                                     Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp;
  139.                                 &nbsp;
  140.                                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
  141.                                     CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp;
  142.                                 &nbsp;
  143.                                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
  144.                                     Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp;
  145.                                 &nbsp;
  146.                                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
  147.                                     Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp;
  148.                                 &nbsp; 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'
  149.                                     Width="20px"></asp:TextBox>页&nbsp; &nbsp;
  150.                                 <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="LinkTextBoxNewPage"
  151.                                     Display="Dynamic" ErrorMessage="0-99999" MaximumValue="99999" MinimumValue="0"
  152.                                     ValidationGroup="goto"></asp:RangeValidator>
  153.                                 <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-1"
  154.                                     CommandName="Page" Text="GO" ValidationGroup="goto"></asp:LinkButton>
  155.                             </PagerTemplate>
  156.                             <EmptyDataTemplate>
  157.                                 <center class="EmpetyData">
  158.                                     系统提示:没有已配置的工作流。</center>
  159.                             </EmptyDataTemplate>
  160.                         </asp:GridView>
  161.                     </td>
  162.                 </tr>
  163.             </table>
  164.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  165.                 <tr>
  166.                     <td>
  167.                         <img alt="" src="image/table_49.jpg" /></td>
  168.                     <td style="background-image: url(image/table_50.jpg); width: 100%; font-family: 宋体">
  169.                     </td>
  170.                     <td>
  171.                         <img alt="" src="image/table_51.jpg" /></td>
  172.                 </tr>
  173.             </table>
  174.     </div>
  175.     </form>
  176. </body>
  177. </html>