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

.net编程

开发平台:

C#

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