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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="Project_EqFeeCheck, App_Web_cl7mdcgo" 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 width="100%" border="0" cellpadding="0" cellspacing="0" >
  12.        <tr>
  13.           <td colspan="2" style="background-image:url(Images/toolbarbg.jpg); height:25px;">
  14.              <strong>&nbsp;&nbsp;设 备 费 历 史 记 录</strong>
  15.            </td>
  16.        </tr>
  17.        <tr>
  18.          <td colspan="2" style="height:5px;">&nbsp;</td> 
  19.        </tr>
  20.        <tr>
  21.          <td align="left"><table cellpadding="0" cellspacing="0" border="0" style="width:805px; height:52px; background-image: url(Images/bg.gif);" >
  22.          </table>   
  23.          </td>
  24.          <td valign="middle" align="left"><%--<asp:ImageButton ID="imgSearch" ImageUrl="~/Images/Search.gif" runat="server" /> --%></td>  
  25.        </tr>
  26.         <tr>
  27.          <td colspan="2" style="height:5">&nbsp;</td> 
  28.        </tr>
  29.        <tr>
  30.        <td colspan="2" style="width:100%;" valign="top">
  31.            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="EquipmentID" BackColor="#CDCDCF" BorderWidth="0px"
  32.              CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  33.      FooterStyle-CssClass="GridFooter"  ShowFooter="True" CellSpacing="1" CellPadding="0"  Width="100%"                   
  34.              HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True" 
  35.              OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_DataBound" >                          
  36.                 <AlternatingRowStyle BackColor="#F0F0F0" />
  37.                 <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
  38.                 <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  39.                                <Columns>
  40.                                         <asp:BoundField DataField="wz_id" HeaderText="物资代码">                                          
  41.                                         </asp:BoundField>
  42.                                         <asp:BoundField DataField="EquipmentName" HeaderText="设备名称">                                           
  43.                                         </asp:BoundField> 
  44.                                         <asp:BoundField DataField="EquipmentSize" HeaderText="设备规格与型号">                                    
  45.                                         </asp:BoundField>
  46.                                         <asp:BoundField DataField="UnitName" HeaderText="制造厂家">                                       
  47.                                         </asp:BoundField>
  48.                                          <asp:BoundField DataField="Number" HeaderText="数量">                               
  49.                                         </asp:BoundField>
  50.                                          <asp:BoundField DataField="Price" HeaderText="价格">                                           
  51.                                         </asp:BoundField>
  52.                                          <asp:BoundField DataField="status" HeaderText="记录产生方式">                                           
  53.                                         </asp:BoundField>
  54.                                          <asp:BoundField DataField="sstatus" HeaderText="状态">                          
  55.                                         </asp:BoundField>
  56.                                          <asp:BoundField DataField="UserName" HeaderText="操作员">                                           
  57.                                         </asp:BoundField>
  58.                                         <%--<asp:TemplateField HeaderText="历史费用查询">
  59.                                             <ItemTemplate>
  60.                                             <asp:ImageButton ID="IB_Eq" ToolTip="设备费" runat="server" CommandName="Eq" ImageUrl="image/SelWF.gif" /> 
  61.                                             &nbsp;<asp:ImageButton ToolTip="材料费" ID="IB_Mat" runat="server" CommandName="Mat" ImageUrl="image/SMMail.gif" />
  62.                                             &nbsp;<asp:ImageButton ToolTip="材料费" ID="IB_Other" runat="server" CommandName="Other" ImageUrl="image/StartUP.gif" />
  63.                                             </ItemTemplate>
  64.                                             <HeaderStyle Width="12%" HorizontalAlign="Center"  BorderWidth="0px" CssClass="TemplateFieldHeader"/>
  65.                                             <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
  66.                                         </asp:TemplateField>                 --%>  
  67.                                         </Columns>
  68.                                  <FooterStyle CssClass="GridFooter" />
  69. <PagerStyle CssClass="GridPage" />
  70.             <PagerTemplate>
  71.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  72.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  73.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  74.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  75.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  76.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  77.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  78.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  79.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  80.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  81.                 </PagerTemplate>
  82.                 <EmptyDataTemplate>
  83.                 <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  84.                 </EmptyDataTemplate>
  85.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />                 
  86.                <SelectedRowStyle CssClass="SelectedRow" />
  87.                  </asp:GridView>            
  88.         </td>
  89.        </tr>       
  90.     </table>
  91.     </div>
  92.     </form>
  93. </body>
  94. </html>