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

.net编程

开发平台:

C#

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