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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="WorkFlow_WorkFlowWaitList, App_Web_4afs73eh" 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.     <title>详细信息</title>
  6.     <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
  7.     <script type="text/javascript" >
  8.     function getparastr(strname)
  9.     {
  10.         var hrefstr,pos,parastr,para,tempstr;
  11.         hrefstr = window.location.href;
  12.         pos = hrefstr.indexOf("?")
  13.         parastr = hrefstr.substring(pos+1);
  14.         para = parastr.split("&");
  15.         tempstr="";
  16.        for(i=0;i<para.length;i++)
  17.        {
  18.             tempstr = para[i];
  19.             pos = tempstr.indexOf("=");
  20.             if(tempstr.substring(0,pos) == strname)
  21.             {
  22.                 if (tempstr.substring(pos+1)=="1") 
  23.                 {
  24.                     return "   待办事宜"
  25.                 } else if (tempstr.substring(pos+1)=="2") 
  26.                 {
  27.                     return "   公共事宜"
  28.                 }
  29.                 else return null;
  30.          
  31.          }
  32.        }
  33.        return null;
  34.   }
  35.     </script>
  36. </head>
  37. <body>
  38.     <form id="form1" runat="server">
  39.     <div>
  40.     
  41.     <table width="100%" style="height:100%; border:0;" cellpadding="0" cellspacing="0" >
  42.        <tr>
  43.            <td>
  44.               <img alt="" src="image/top_29.jpg" height="25" style="vertical-align:middle;"/>
  45.          
  46.            </td>
  47.            <td style="background-image:url(image/top_32.jpg); width:100%; font-size:14px; vertical-align:middle;">
  48.              <strong> 
  49.              <script type="text/javascript" >
  50.                     var programstr = getparastr("StrWait");
  51.                     document.write(programstr);
  52.              </script>  </strong>
  53.            </td>
  54.              <td style="background-image:url(image/top_32.jpg);">
  55.                 <%--<img alt="" src="Image/xx5.gif" style="vertical-align:middle;"/>--%>
  56.            </td>
  57.            <td>
  58.                 <img alt="" src="Image/top_34.jpg"  height="25" style="vertical-align:middle;"/>
  59.            </td>
  60.        </tr>
  61.        
  62.      </table>
  63.      
  64.       <table style="height:213px;" cellspacing="0" cellpadding="0" width="100%" border="0">
  65.         <tr>
  66.     <td><img alt="" height="420px" src="image/r_004.gif" width="10"/></td>
  67.     <td style="PADDING-TOP:4px;  width:100%;" valign="top">
  68.     
  69.     
  70.     <!--                                                  -->
  71.      <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False"
  72.   Width="100%" CellSpacing="1" CellPadding="0" BackColor="#CDCDCF" BorderWidth="0px" CssClass="Grid"
  73.   SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  74.   FooterStyle-CssClass="GridFooter" ShowFooter="True" OnPageIndexChanging="GridView1_PageIndexChanging"
  75.   OnRowDataBound="GridView1_RowDataBound" >
  76. <AlternatingRowStyle BackColor="#F0F0F0" />
  77. <RowStyle Height="25px" BackColor="#F9FAFC" CssClass="HeadingCellText" />
  78. <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
  79. <Columns>
  80.     <asp:TemplateField HeaderText="序号">
  81.                         <ItemTemplate>
  82.                             <%#(Container.DataItemIndex+1)%>
  83.                         </ItemTemplate>
  84.                     </asp:TemplateField>
  85.                     
  86.                     <asp:TemplateField HeaderText="项目名称">
  87.                         <ItemTemplate>
  88.                         <asp:HyperLink id="HyperLink2" CssClass="SortedDataCell" runat="server" Target="_self"  Text='<%# DataBinder.Eval(Container, "DataItem.ProjectName") %>'>
  89. </asp:HyperLink>
  90. <asp:LinkButton id="LinkButton2" runat="server" Visible="False" CommandName="NewWorkflow">
  91. <%# DataBinder.Eval(Container, "DataItem.ProjectName")%>   
  92. </asp:LinkButton> <%-- CommandArgument='<%# DataBinder.Eval(Container, "DataItem.AssID") %>'--%>
  93.                             <%--<asp:HyperLink id="HyperLink1" CssClass="SortedDataCell" runat="server" Target="_self" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.ProjectName")%>' Text='<%# DataBinder.Eval(Container, "DataItem.ProjectName") %>'>
  94. </asp:HyperLink>
  95. <asp:LinkButton id="LinkButton1" runat="server" Visible="False" CommandName="NewWorkflow" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.AssID") %>'>
  96. <%# DataBinder.Eval(Container, "DataItem.ProjectName")%>
  97. </asp:LinkButton>--%>
  98.                         </ItemTemplate>
  99.                     </asp:TemplateField>
  100.                     <asp:BoundField DataField="WFName" HeaderText="工作流名称" />
  101.                     <asp:BoundField DataField="ActName" HeaderText="活动名称" />
  102.                     <%--<asp:BoundField DataField="AcceptDate" HeaderText="分配时间" DataFormatString="{0:yyyy-MM-dd}" />
  103.                     <asp:TemplateField HeaderText="工作流状态">
  104.                         <ItemTemplate>
  105.                             <asp:Label  id="Label2" runat="server" Text='<%# FormatStr(DataBinder.Eval(Container,"DataItem.Status")) %>'>   
  106.                             </asp:Label>
  107.                         </ItemTemplate>
  108.                            
  109.                     </asp:TemplateField>--%>
  110.                     <%--<asp:BoundField DataField="Status"  HeaderText="工作流状态" />--%>
  111. </Columns>
  112. <FooterStyle CssClass="GridFooter" />
  113. <PagerStyle CssClass="GridPage" />
  114.             <PagerTemplate>
  115.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  116.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  117.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  118.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  119.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  120.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  121.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  122.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  123.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  124.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  125.             </PagerTemplate>
  126.             <EmptyDataTemplate>
  127.                 <table width="100%" class="GridHeader">
  128.                     <tr>
  129.                         <td style="border:1px solid #CCCCCC;">序号</td>
  130.                         <td style="border:1px solid #CCCCCC;">项目名称</td>
  131.                         <td style="border:1px solid #CCCCCC;">工作流名称</td>
  132.                         <td style="border:1px solid #CCCCCC;">活动名称</td>
  133.                     </tr>
  134.                 </table>
  135.                 <center class="EmpetyData"> 系统提示:您没有<script type="text/javascript" > var programstr = getparastr("StrWait");document.write(programstr);</script>!</center>
  136.             </EmptyDataTemplate>
  137.         </asp:GridView>
  138.     
  139.     
  140.     
  141.     <!--                                                -->
  142.          
  143.     </td>
  144.     <td><img alt="" height="420px" src="image/r_005.gif" width="8"/></td>
  145. </tr> 
  146. </table> 
  147.      
  148.      <table width="100%" cellpadding="0" cellspacing="0" border="0">
  149.         <tr>
  150.              <td><img alt="" src="image/r_006.gif" /></td>
  151.              <td style="width:100%; background-image:url(image/r_007.gif);"></td>
  152.              <td><img alt="" src="image/r_008.gif"/></td>
  153.         </tr>
  154.      </table>
  155.     
  156.     
  157.     </div>
  158.     </form>
  159. </body>
  160. </html>