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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="Project_ProjectCheck, 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" type="text/css" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.         <table width="800px" 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:5">&nbsp;</td> 
  19.        </tr>
  20.        <tr >
  21.          <td align="left" style="width: 700px"><table cellpadding="0" cellspacing="0" border="0" style="width:700px; height:52px; background-image: url(Image/bg.gif);" >
  22.          <tr>         
  23.             <td>
  24.             <asp:RadioButtonList ID="RListType" runat="server" Font-Size="Smaller" RepeatDirection="Horizontal" Height="20" CellPadding="5">
  25.                   <asp:ListItem Value="-1" Selected="True">全部</asp:ListItem>
  26.                  <asp:ListItem Value="1">生产类</asp:ListItem>
  27.                  <asp:ListItem Value="2">科技类</asp:ListItem>
  28.                  <asp:ListItem Value="3">营销类</asp:ListItem>    
  29.              </asp:RadioButtonList>
  30.          </td>         
  31.          <td valign="middle" align="left"><asp:RadioButtonList ID="RListStatus" runat="server" Font-Size="Smaller" RepeatDirection="Horizontal" Height="20" CellPadding="5">
  32.                  <asp:ListItem Value="-1" Selected="True">全部</asp:ListItem>
  33.                  <asp:ListItem Value="0">正常</asp:ListItem>
  34.                  <asp:ListItem Value="1">申请完成</asp:ListItem>
  35.                  <asp:ListItem Value="2">作废</asp:ListItem>
  36.                  <asp:ListItem Value="3">施工</asp:ListItem>
  37.                  <asp:ListItem Value="4">竣工</asp:ListItem>
  38.                  <asp:ListItem Value="5">完成</asp:ListItem>                 
  39.              </asp:RadioButtonList>
  40.              </td>
  41.          </tr>
  42.          </table>   
  43.          </td>
  44.          <td valign="middle" align="left"><asp:ImageButton ID="imgSearch" ImageUrl="~/Images/Search.gif" runat="server" OnClick="imgSearch_Click" /> </td>  
  45.        </tr>
  46.         <tr>
  47.          <td colspan="2" style="height:5">&nbsp;</td> 
  48.        </tr>
  49.        <tr>
  50.        <td colspan="2" style="width:100%" valign="top">
  51.            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ProjectID"  BackColor="#CDCDCF" BorderWidth="0px"
  52.              CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  53.      FooterStyle-CssClass="GridFooter"  ShowFooter="True" CellSpacing="1" CellPadding="0"  Width="100%" OnRowDataBound="GridView1_RowDataBound"                       
  54.                         HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True" 
  55.                         OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand" >                          
  56.                            <AlternatingRowStyle BackColor="#F0F0F0" />
  57.                 <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
  58.                 <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  59.                                <Columns>
  60.                                         
  61.                                         <asp:BoundField DataField="ProjectNumber" HeaderText="项目编号" ItemStyle-Width="8%">
  62.                                         </asp:BoundField>
  63.                                         <asp:BoundField DataField="ProjectName" HeaderText="项目名称" ItemStyle-Width="10%">                                           
  64.                                         </asp:BoundField> 
  65.                                         <asp:BoundField DataField="ProjcetLsh" HeaderText="流水号" ItemStyle-Width="10%">                                    
  66.                                         </asp:BoundField>
  67.                                         <asp:BoundField DataField="ProjectType" HeaderText="类型" ItemStyle-Width="6%">                                       
  68.                                         </asp:BoundField>
  69.                                          <asp:BoundField DataField="Transactor" HeaderText="经办人" ItemStyle-Width="6%">                               
  70.                                         </asp:BoundField>
  71.                                          <asp:BoundField DataField="EditUnit" HeaderText="编报单位" ItemStyle-Width="8%">                                           
  72.                                         </asp:BoundField>
  73.                                          <asp:BoundField DataField="PlanCharge" HeaderText="计划费用" ItemStyle-Width="8%">                                           
  74.                                         </asp:BoundField>
  75.                                          <asp:BoundField DataField="Status" HeaderText="项目状态" ItemStyle-Width="8%">                          
  76.                                         </asp:BoundField>
  77.                                          <asp:BoundField DataField="CreateDate" DataFormatString="{0:yyyymmdd}" HeaderText="申报日期" HtmlEncode="false" ItemStyle-Width="8%">                                           
  78.                                         </asp:BoundField>
  79.                                          <asp:BoundField DataField="SuccessedDate" HeaderText="实际完工" DataFormatString="{0:yyyymmdd}" HtmlEncode="false" ItemStyle-Width="8%">                                           
  80.                                         </asp:BoundField> 
  81.                                         <asp:ButtonField CommandName="Eq" HeaderText="设备费" ButtonType="Image" ImageUrl="image/SelWF.gif" ItemStyle-Width="6%">
  82.                                             <ItemStyle BorderWidth="0px" HorizontalAlign="Center" />
  83.                                             <HeaderStyle BorderWidth="0px" Width="5%" HorizontalAlign="Center"/>
  84.                                         </asp:ButtonField> 
  85.                                         <asp:ButtonField CommandName="Mat" HeaderText="材料费" ButtonType="Image" ImageUrl="image/SMMail.gif" ItemStyle-Width="6%">
  86.                                             <ItemStyle BorderWidth="0px" HorizontalAlign="Center" />
  87.                                             <HeaderStyle BorderWidth="0px" Width="5%" HorizontalAlign="Center"/>
  88.                                         </asp:ButtonField> 
  89.                                         <asp:ButtonField CommandName="Other" HeaderText="其他费" ButtonType="Image" ImageUrl="image/StartUP.gif" ItemStyle-Width="6%">
  90.                                             <ItemStyle BorderWidth="0px" HorizontalAlign="Center" />
  91.                                             <HeaderStyle BorderWidth="0px" Width="5%" HorizontalAlign="Center"/>
  92.                                         </asp:ButtonField> 
  93.                                         <%--<asp:TemplateField HeaderText="历史费用查询">
  94.                                             <ItemTemplate>
  95.                                             <asp:ImageButton ID="IB_Eq" ToolTip="设备费" runat="server" CommandName="Eq" ImageUrl="image/SelWF.gif" /> 
  96.                                             &nbsp;<asp:ImageButton ToolTip="材料费" ID="IB_Mat" runat="server" CommandName="Mat" ImageUrl="image/SMMail.gif" />
  97.                                             &nbsp;<asp:ImageButton ToolTip="材料费" ID="IB_Other" runat="server" CommandName="Other" ImageUrl="image/StartUP.gif" />
  98.                                             </ItemTemplate>
  99.                                             <HeaderStyle Width="12%" HorizontalAlign="Center"  BorderWidth="0px" CssClass="TemplateFieldHeader"/>
  100.                                             <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
  101.                                         </asp:TemplateField>      --%>             
  102.                                         </Columns>
  103.                                  <FooterStyle CssClass="GridFooter" />
  104. <PagerStyle CssClass="GridPage" />
  105.             <PagerTemplate>
  106.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  107.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  108.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  109.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  110.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  111.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  112.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  113.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  114.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  115.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  116.                 </PagerTemplate>
  117.                 <EmptyDataTemplate>
  118.                 <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  119.                 </EmptyDataTemplate>
  120.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />                 
  121.                <SelectedRowStyle CssClass="SelectedRow" />
  122.                  </asp:GridView>            
  123.         </td>
  124.        </tr>       
  125.     </table>
  126.     </div>
  127.     </form>
  128. </body>
  129. </html>