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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="WorkFlowStart, 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 href="style/gridStyle.css" rel="stylesheet" type="text/css" />
  6. <title>启动工作流</title>
  7. <%-- <script type="text/javascript">
  8.     function FormatStr(var strval) 
  9.     {
  10.         var retval
  11.         if (strval=='1') retval="启用";
  12.         else if(strval=="0") retval="停用";
  13.         else retval="状态错";
  14.         return retval; 
  15.     }
  16. </script>--%>
  17. </head>
  18. <body>
  19.     <form id="fromwf" runat="server">
  20.     <div>
  21.         <table style="height:30px;" cellspacing="0" cellpadding="0" width="100%" border="0">
  22. <tr>
  23. <td><img alt="" src="image/top_29.jpg"/></td>
  24. <td style="width:100%; background-image:url(image/top_32.jpg); background-color:#f7f7f7; height:21px;" >&nbsp;
  25. <asp:label id="lblTitle" BackColor="#F2F2F2" Font-Size="14px" runat="server">
  26. <strong>启动工作</strong></asp:label></td>
  27. <td><img alt="" src="image/top_34.jpg"/></td>
  28. </tr>
  29.     </table>
  30.     <table style="height:430px;" class="table" cellspacing="0" cellpadding="0" width="100%" border="0">
  31.         <tr>
  32. <td><img alt="" height="430" src="image/table_35.jpg" width="8"/></td>
  33. <td style="PADDING-TOP:4px;  width:100%;" valign="top">
  34.   <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False"
  35.   Width="100%" CellSpacing="1" CellPadding="0" BackColor="#CDCDCF" BorderWidth="0px" CssClass="Grid"
  36.   SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  37.   FooterStyle-CssClass="GridFooter" ShowFooter="True" OnPageIndexChanging="GridView1_PageIndexChanging"
  38.   OnRowDataBound="GridView1_RowDataBound" >
  39. <AlternatingRowStyle BackColor="#F0F0F0" />
  40. <RowStyle Height="25px" BackColor="#F9FAFC" CssClass="HeadingCellText" />
  41. <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
  42. <Columns>
  43.     <asp:TemplateField HeaderText="序号">
  44.                         <ItemTemplate>
  45.                             <%#(Container.DataItemIndex+1)%>
  46.                         </ItemTemplate>
  47.                     </asp:TemplateField>
  48.                     
  49.                     <asp:TemplateField HeaderText="工作流名称">
  50.                         <ItemTemplate>
  51.                             <asp:HyperLink id="HyperLink1" CssClass="SortedDataCell" runat="server" Target="_self"  Text='<%# DataBinder.Eval(Container, "DataItem.WFName") %>'>
  52. </asp:HyperLink>
  53. <asp:LinkButton id="LinkButton1" runat="server" Visible="False" CommandName="NewWorkflow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.WFID") %>'>
  54. <%# DataBinder.Eval(Container, "DataItem.WFName")%>
  55. </asp:LinkButton>
  56.                         </ItemTemplate>
  57.                     </asp:TemplateField>
  58.                     <asp:BoundField DataField="KindName" HeaderText="所属种类" />
  59.                     <asp:BoundField DataField="WFDesc" HeaderText="工作流描述" />
  60.                     <asp:TemplateField HeaderText="工作流状态">
  61.                         <ItemTemplate>
  62.                             <asp:Label  id="Label2" runat="server" Text='<%# FormatStr(DataBinder.Eval(Container,"DataItem.Status")) %>'>   
  63.                             </asp:Label>
  64.                         </ItemTemplate>
  65.                         <ItemTemplate>
  66.                             <asp:HiddenField ID="StartOwn" Value='<%#Eval("StartUpType")%>' runat="server" />
  67.                         </ItemTemplate>
  68.                     </asp:TemplateField>
  69.                     <%--<asp:BoundField DataField="Status"  HeaderText="工作流状态" />--%>
  70. </Columns>
  71. <FooterStyle CssClass="GridFooter" />
  72. <PagerStyle CssClass="GridPage" />
  73.             <PagerTemplate>
  74.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  75.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  76.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  77.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  78.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  79.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  80.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  81.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  82.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  83.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  84.             </PagerTemplate>
  85.             <EmptyDataTemplate>
  86.                 <center class="EmpetyData"> 系统提示:你还没有配置工作流。</center>
  87.             </EmptyDataTemplate>
  88.         </asp:GridView>
  89.         <!--
  90.         <asp:Button ID="Go" Text="GO" runat="server"  />
  91.         <FooterStyle CssClass="GridFooter" />-->
  92. <!--<asp:datagrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False" CellSpacing="1"
  93. CellPadding="0" BackColor="#CDCDCF" BorderWidth="0px" CssClass="Grid" HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="HeadingCellText" 
  94. ShowFooter="True" FooterStyle-CssClass="GridFooter" AllowCustomPaging="True" AllowPaging="True">
  95. <AlternatingItemStyle BackColor="#F0F0F0"></AlternatingItemStyle>
  96. <ItemStyle Height="25px" BackColor="#F9FAFC" CssClass="HeadingCellText"></ItemStyle>
  97. <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader"></HeaderStyle>
  98. <Columns>
  99.     <asp:TemplateColumn HeaderText="序号">
  100.         <ItemTemplate>
  101.             <%# (Container.ItemIndex+1) %>
  102.         </ItemTemplate>
  103.     </asp:TemplateColumn>
  104. <asp:TemplateColumn HeaderText="业务名称">
  105. <ItemTemplate>
  106. <asp:HyperLink id="HyperLink1" CssClass="SortedDataCell" runat="server" Target="_self" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.PageUrl")%>' Text='<%# DataBinder.Eval(Container, "DataItem.WFName") %>'>
  107. </asp:HyperLink>
  108. <asp:LinkButton id="LinkButton1" runat="server" Visible="False" CommandName="NewWorkflow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.WFID") %>'>
  109. <%# DataBinder.Eval(Container, "DataItem.WFDesc")%>
  110. </asp:LinkButton>
  111. </ItemTemplate>
  112. </asp:TemplateColumn>
  113. <asp:BoundColumn DataField="WFDesc" HeaderText="步骤名称" ></asp:BoundColumn>
  114. <asp:BoundColumn DataField="PageUrl" HeaderText="系统名称"></asp:BoundColumn>
  115. </Columns>
  116.             <FooterStyle CssClass="GridFooter" />
  117.             
  118. <PagerStyle PrevPageText="前一页" CssClass="GridFooterText" NextPageText="后一页" />
  119. </asp:datagrid>
  120. <!--
  121. NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.url") + DataBinder.Eval(Container, "DataItem.processdefinitionid", "?IsWorkFlowManaged=1&WorkFlowProcDefID={0}") %>'
  122. -->
  123. </td>
  124. </tr>
  125.     </table>
  126. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  127. <tr>
  128. <td><img alt="" src="image/table_49.jpg"/></td>
  129. <td style=" font-family:宋体; width:100%; background-image:url(image/table_50.jpg);"></td>
  130. <td><img alt="" src="image/table_51.jpg"/></td>
  131. </tr>
  132. </table> 
  133.     </div>
  134.         
  135.     </form>
  136. </body>
  137. </html>