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

.net编程

开发平台:

C#

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