<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="applicationserch_a.aspx.cs" Inherits="Web.cg.show.applicationserch_a" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
    <script type="text/javascript" src="../../css/popcalendar.js"></script>
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
        
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
      <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    采购申请
                	</td>

                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%; margin-top :20px">
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                                        项目名称</td>
                <td class ="tabletd_left ">
                                            <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                </td>
                <td class ="tabletd_right " style ="width :80px">
                    类别</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlCategories" runat="server">
                    </asp:DropDownList>
                                            </td>
                <td class ="tabletd_right ">
                    处理状态</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlState" runat="server">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>已申请</asp:ListItem>
                        <asp:ListItem>审核中</asp:ListItem>
                        <asp:ListItem>审核通过</asp:ListItem>
                        <asp:ListItem>审核未通过</asp:ListItem>
                        <asp:ListItem>招标中</asp:ListItem>
                        <asp:ListItem>无合同实施中</asp:ListItem>
                        <asp:ListItem>无合同实施完成</asp:ListItem>
                    </asp:DropDownList>
                                            </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    申请人编号</td>
                <td class ="tabletd_left ">
                                            <asp:TextBox ID="tbStaffid" runat="server"></asp:TextBox>
                                            </td>
                <td class ="tabletd_right " style ="width :80px">
                    是否招标</td>
                                  <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlBid" runat="server">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>是</asp:ListItem>
                        <asp:ListItem>否</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class ="tabletd_right " style ="width :80px">
                    申请日期</td>
                <td class ="tabletd_left ">
<div style ="text-align :left ">
                <asp:textbox id="date1" runat="server" Width="100px"  
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                 
        &nbsp;- <asp:textbox id="date2" runat="server" Width="100px"    
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                                          
       &nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                          ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" 
                  ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" 
                  ForeColor="Red"></asp:RegularExpressionValidator>
              </div>
                                            </td>
  
            </tr>
            <tr>
                <td class ="tabletd_center " colspan="6">
                    <asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="cha" />
          
                </td>
            </tr>
            </table>
  <asp:Panel ID="plZong" runat="server" Visible="true">   
<!--栏目开始 -->
        <div class ="lanmubiaoti ">采购申请查询</div>  
          
            <!--这里添加内容 -->

		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" onrowdatabound="GridView1_RowDataBound" 
                            
          onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%" 
          onrowcreated="GridView1_RowCreated">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                                  <asp:BoundField DataField="appiouid" HeaderText="采购申请编号" ReadOnly="True" />
                             <asp:TemplateField HeaderText="采购项目" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# Bind("title") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                                        <asp:BoundField DataField="staffid" HeaderText="申请人编号" ReadOnly="True" />
                                <asp:BoundField DataField="staff" HeaderText="申请人姓名" ReadOnly="True" />
                              <asp:BoundField DataField="applicationdate" HeaderText="申请时间" ReadOnly="True" />
                               <asp:BoundField DataField="state" HeaderText="处理状态" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
         <table border="0" cellpadding="4" cellspacing="1"  style ="width :100% ; text-align :right ">
        <tr><td  id ="allowpage" runat ="server" 
                style ="text-align :right ;  padding-right  :5px" colspan="2">&nbsp;</td></tr>
      
        </table> 
<asp:Panel ID="Panel1" runat="server" Visible="False">
 <table border="0"  class ="tablezong"  cellpadding="0" cellspacing="0" id="table_NoticeView" runat ="server"  visible ="false"  >
      <tr>
        <td   style ="text-align :left ; padding :10px 10px 10px 10px" class ="tabletd_center ">

            <table  style =" width :700px "    border = "0"  cellpadding ="" cellspacing ="0">
                <tr>
                    <td style =" background-color :White " colspan="4" >
                    <div style = " font-size :large ; font-weight :bold ; text-align :center;width :700px;  padding :20px 5px 20px 5px  " id = "viewbiaoti" runat ="server" ></div>
                               <div style =" text-align :left; margin-bottom :10px ">申请单号：<asp:Label ID="lbAppiouid" runat="server"></asp:Label></div>
                               <div style =" text-align :left; margin-bottom :10px  ">类别：<asp:Label ID="lbCategories" runat="server"></asp:Label></div> 
                               <div style =" text-align :left; margin-bottom :10px  ">是否招标：<asp:Label ID="lbBid" runat="server"></asp:Label></div> 
                               <div style =" text-align :left; margin-bottom :10px  "> 申请人:<asp:Label ID="lbStaffid" runat="server"></asp:Label> &nbsp; <asp:Label ID="lbStaff" runat="server"></asp:Label></div> 
                               <div style =" text-align :left; margin-bottom :10px  ">申请时间：<asp:Label ID="lbApplicationdate" runat="server"></asp:Label></div> 
                               <div style =" text-align :left ; margin-bottom :10px "> 处理状态：<asp:Label ID="lbState" runat="server"></asp:Label></div> 
                               <div style =" text-align :left ; margin-bottom :10px "> 正文内容：</div> 
                    <div id ="viewneirong" runat ="server"  style ="width :700px; padding :5px 5px 5px 5px"  ></div>
</td>
                </tr>
                <tr>
                    <td  style =" padding :20px 5px 5px 5px" colspan="4" >
                        <asp:Label ID="lbFujian" runat="server" Text="附件："></asp:Label>
                        <asp:BulletedList ID="BulletedList1" runat="server" DisplayMode="LinkButton"  onclick="BulletedList1_Click"></asp:BulletedList>
                    </td>
                </tr>
   
                <tr>
                    <td style=" text-align :center;  " colspan="4">
                    <div style =" text-align :left ; margin-bottom :10px "> 审核进度：</div> 
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                <asp:BoundField DataField="checker" HeaderText="审核人编号" ReadOnly="True" />
                                <asp:BoundField DataField="checkername" HeaderText="审核人姓名" ReadOnly="True" />
                                <asp:BoundField DataField="rank" HeaderText="审核顺序" ReadOnly="True" />
                                <asp:BoundField DataField="checkdecided" HeaderText="审核结论" ReadOnly="True" />
                                <asp:BoundField DataField="checknote" HeaderText="审核附言" ReadOnly="True" />
                                <asp:BoundField DataField="checktime" HeaderText="审核时间" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td style=" text-align :center; height :30px">
                        &nbsp;</td>
                    <td style=" text-align :center; ">
                        &nbsp;</td>
                    <td style=" text-align :center;">
                        &nbsp;</td>
                    <td style=" text-align :right; ">
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
                    </td>
                </tr>
            </table>
</td>
      </tr>
    </table>
    </asp:Panel> 
<!--栏目结束 -->
</asp:Panel> 
            </div>
            </div> 
        </form>
    </body>
</html>


