- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProjectSearch.aspx.cs" Inherits="SearchP_ProjectSearch" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>无标题页</title>
- <link href="style/gridStyle.css" rel="Stylesheet" type="text/css" />
- </head>
- <body>
- <form id="form1" runat="server">
- <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" >
- <tr>
- <td colspan="2" background="../Images/toolbarbg.jpg" height="25px">
- <strong> 项 目 查 询</strong>
- </td>
- </tr>
- <tr>
- <td colspan="2" height="5"> </td>
- </tr>
- <tr>
- <td align="left"><table cellpadding="0" cellspacing="0" border="0" style="width:805px; height:52px; background-image: url(Images/bg.gif);" >
- <tr>
- <td valign="middle" align="left" >
- <asp:RadioButtonList ID="RadioButtonList1" runat="server" Font-Size="Smaller" RepeatDirection="Horizontal" Height="20" CellPadding="15" >
- <asp:ListItem Value="-1" Selected="True">全部</asp:ListItem>
- <asp:ListItem Value="1">生产类</asp:ListItem>
- <asp:ListItem Value="2">科技类</asp:ListItem>
- <asp:ListItem Value="3">营销类</asp:ListItem>
- </asp:RadioButtonList>
- </td>
- <td valign="middle" align="center"><asp:RadioButtonList ID="RadioButtonList2" runat="server" Font-Size="Smaller" RepeatDirection="Horizontal" Height="20" CellPadding="14">
- <asp:ListItem Value="-1" Selected="True">全部</asp:ListItem>
- <%-- <asp:ListItem Value="0">正常</asp:ListItem>--%>
- <asp:ListItem Value="1">申请完成</asp:ListItem>
- <asp:ListItem Value="2">作废</asp:ListItem>
- <asp:ListItem Value="3">施工</asp:ListItem>
- <asp:ListItem Value="4">竣工</asp:ListItem>
- <asp:ListItem Value="5">完成</asp:ListItem>
- </asp:RadioButtonList>
- </td>
- </tr>
- </table>
- </td>
- <td valign="middle" align="left"><asp:Button ID="search" runat="server" Text="查询" OnClick="search_Click" /></td>
- </tr>
- <tr>
- <td colspan="2" height="5"> </td>
- </tr>
- <tr>
- <td colspan="2" width="100%" valign="top">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ProjectID" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="True" CellSpacing="1" CellPadding="0" Width="100%" OnRowDataBound="GridView1_RowDataBound"
- HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px" HeaderStyle-Font-Underline="false" AllowPaging="True" AllowSorting="True"
- OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
- <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <Columns>
- <asp:BoundField DataField="ProjectNumber" HeaderText="项目编号">
- </asp:BoundField>
- <asp:BoundField DataField="ProjectName" HeaderText="项目名称">
- </asp:BoundField>
- <asp:BoundField DataField="ProjcetLsh" HeaderText="项目申请流水号">
- </asp:BoundField>
- <asp:BoundField DataField="ProjectType" HeaderText="项目类型">
- </asp:BoundField>
- <asp:BoundField DataField="ProjectSort" HeaderText="项目分类">
- </asp:BoundField>
- <asp:BoundField DataField="Transactor" HeaderText="经办人">
- </asp:BoundField>
- <asp:BoundField DataField="EditUnit" HeaderText="编报单位">
- </asp:BoundField>
- <asp:BoundField DataField="PlanCharge" HeaderText="计划费用">
- </asp:BoundField>
- <asp:BoundField DataField="Status" HeaderText="状态">
- </asp:BoundField>
- <asp:BoundField DataField="CreateDate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" HeaderText="申报日期">
- </asp:BoundField>
- <asp:BoundField DataField="SuccessedDate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" HeaderText="实际完工时间">
- </asp:BoundField>
- <asp:ButtonField CommandName="save" ButtonType="Image" ImageUrl="Images/icon3.gif" HeaderText="详细信息">
- <ItemStyle BorderWidth="0px" HorizontalAlign="Center" />
- <HeaderStyle BorderWidth="0px"/>
- </asp:ButtonField>
- </Columns>
- <FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <PagerTemplate>
- <asp:Label ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>
- <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>
- <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
- 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页
- <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
- MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
- <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" />
- </PagerTemplate>
- <EmptyDataTemplate>
- <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
- </EmptyDataTemplate>
- <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <SelectedRowStyle CssClass="SelectedRow" />
- </asp:GridView>
- </td>
- </tr>
- </TABLE>
- </form>
- </body>
- </html>