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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="SearchP_AllStatus, App_Web_w2dfzsmw" 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" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div> <table border="1" cellpadding="0" cellspacing="0" width="100%">
  11.     <tr><td background="../Images/toolbarbg.jpg"  height="25px">
  12.              <strong>&nbsp;&nbsp;当前工作流:</strong>
  13.              <asp:Label ID="LB_NowWF" runat="server"></asp:Label>
  14.               <strong>&nbsp;&nbsp;项目名称:</strong>
  15.              <asp:Label ID="LB_PrjName" runat="server"></asp:Label>
  16.              
  17.            </td></tr>
  18.            <tr><td>
  19.            <table border="0" cellpadding="0" cellspacing="0" width="100%">
  20.             <tr>
  21.             <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;
  22.                 <%--<asp:ImageButton ID="IM_Quit" runat="server" ImageUrl="Images/p1.gif" PostBackUrl="~/SearchP/StatusSearch.aspx" /><strong>&nbsp;返回</strong>--%></td></tr>
  23.            <tr><td align="center">
  24.            <table  border="0" cellpadding="0" cellspacing="0" width="98%"><tr><td>
  25.            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#CDCDCF" BorderWidth="0px"  
  26.              CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  27.   FooterStyle-CssClass="GridFooter"  ShowFooter="True" CellSpacing="1" CellPadding="0"  Width="100%"
  28.     HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True" 
  29.          OnRowDataBound="GridView1_RowDataBound" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand" PageSize="10">                          
  30.                           <AlternatingRowStyle BackColor="#F0F0F0" />
  31.                 <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
  32.                 <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  33.                                         <Columns>                                                                   
  34.                                         <asp:BoundField DataField="ActName" HeaderText="活动名称">                                           
  35.                                         </asp:BoundField>                                  
  36.                                         <asp:BoundField DataField="UserID" HeaderText="接收者">                                           
  37.                                         </asp:BoundField> 
  38.                                         <asp:BoundField DataField="RealEndDate" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false">                                          
  39.                                         </asp:BoundField>   
  40.                                         <asp:BoundField DataField="Status" HeaderText="决策">                                          
  41.                                         </asp:BoundField>                               
  42.                                        <%-- <asp:TemplateField Visible="false">
  43.                                             <ItemTemplate>
  44.                                             <asp:HiddenField ID="hid"  Value='<%#Eval("Status")%>' runat="server"/>
  45.                                             </ItemTemplate>
  46.                                             <ItemStyle/>
  47.                                         </asp:TemplateField>                                                                               
  48.                                         <asp:TemplateField>
  49.                                         <ItemTemplate>
  50.                                             <asp:Image ID="Image1" runat="server"/>
  51.                                         </ItemTemplate>
  52.                                         <HeaderTemplate>决策</HeaderTemplate>
  53.                                         </asp:TemplateField>   --%>                                                 
  54.                                         </Columns>
  55.                                  <FooterStyle CssClass="GridFooter" />
  56. <PagerStyle CssClass="GridPage" HorizontalAlign="Center" />
  57.             <PagerTemplate>
  58.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  59.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  60.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  61.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  62.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  63.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  64.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  65.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  66.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  67.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  68.                 </PagerTemplate>
  69.                 <EmptyDataTemplate>
  70.                 <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  71.                 </EmptyDataTemplate>
  72.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />                 
  73.                <SelectedRowStyle CssClass="SelectedRow" />
  74.                  </asp:GridView> 
  75.                  </td></tr></table>
  76.                  </td></tr> 
  77.                  <tr><td>&nbsp;</td></tr>          
  78.            </table>
  79.            </td></tr>          
  80.            </table>    
  81.     </div>
  82.     </form>
  83. </body>
  84. </html>