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

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OtherFeeCheck.aspx.cs" Inherits="Project_OtherFeeCheck" %>
  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="OtherID" 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="OtherName" HeaderText="费用名称">                                          
  41.                                         </asp:BoundField>
  42.                                         <asp:BoundField DataField="Explain" HeaderText="报价依据">                                           
  43.                                         </asp:BoundField> 
  44.                                         <asp:BoundField DataField="Memo" HeaderText="备注">                
  45.                                         </asp:BoundField>
  46.                                         <asp:BoundField DataField="Price" HeaderText="合计价格">                                           
  47.                                         </asp:BoundField>
  48.                                         <asp:BoundField DataField="status" HeaderText="记录产生方式">                                           
  49.                                         </asp:BoundField>
  50.                                          <asp:BoundField DataField="sstatus" HeaderText="状态">                          
  51.                                         </asp:BoundField>
  52.                                          <asp:BoundField DataField="UserName" HeaderText="操作员">                                           
  53.                                         </asp:BoundField>
  54.                                         <%--<asp:TemplateField HeaderText="历史费用查询">
  55.                                             <ItemTemplate>
  56.                                             <asp:ImageButton ID="IB_Eq" ToolTip="设备费" runat="server" CommandName="Eq" ImageUrl="image/SelWF.gif" /> 
  57.                                             &nbsp;<asp:ImageButton ToolTip="材料费" ID="IB_Mat" runat="server" CommandName="Mat" ImageUrl="image/SMMail.gif" />
  58.                                             &nbsp;<asp:ImageButton ToolTip="材料费" ID="IB_Other" runat="server" CommandName="Other" ImageUrl="image/StartUP.gif" />
  59.                                             </ItemTemplate>
  60.                                             <HeaderStyle Width="12%" HorizontalAlign="Center"  BorderWidth="0px" CssClass="TemplateFieldHeader"/>
  61.                                             <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
  62.                                         </asp:TemplateField>                 --%>  
  63.                                         </Columns>
  64.                                  <FooterStyle CssClass="GridFooter" />
  65. <PagerStyle CssClass="GridPage" />
  66.             <PagerTemplate>
  67.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  68.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  69.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  70.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  71.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  72.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  73.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  74.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  75.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  76.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  77.                 </PagerTemplate>
  78.                 <EmptyDataTemplate>
  79.                 <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  80.                 </EmptyDataTemplate>
  81.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />                 
  82.                <SelectedRowStyle CssClass="SelectedRow" />
  83.                  </asp:GridView>            
  84.         </td>
  85.        </tr>       
  86.     </table>
  87.     </div>
  88.     </form>
  89. </body>
  90. </html>