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

<!DOCTYPE html>

<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">
      <asp:Panel ID="pnApp" runat="server" Visible="true">   
       <div  class ="td10">
     <asp:DropDownList ID="ddlYears" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click"></asp:DropDownList>
    &nbsp;<asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
                  <asp:ListItem Value="0">1-12月</asp:ListItem>
                  <asp:ListItem Value="01">1月</asp:ListItem>
                  <asp:ListItem Value="02">2月</asp:ListItem>
                  <asp:ListItem Value="03">3月</asp:ListItem>
                  <asp:ListItem Value="04">4月</asp:ListItem>
                  <asp:ListItem Value="05">5月</asp:ListItem>
                  <asp:ListItem Value="06">6月</asp:ListItem>
                  <asp:ListItem Value="07">7月</asp:ListItem>
                  <asp:ListItem Value="08">8月</asp:ListItem>
                  <asp:ListItem Value="09">9月</asp:ListItem>
                  <asp:ListItem Value="10">10月</asp:ListItem>
                  <asp:ListItem Value="11">11月</asp:ListItem>
                  <asp:ListItem Value="12">12月</asp:ListItem>
              </asp:DropDownList>
              &nbsp;采购方式：<asp:DropDownList ID="ddlBid" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>直采</asp:ListItem>
                        <asp:ListItem>竞争性采购</asp:ListItem>
                        <asp:ListItem>申请人自行采购</asp:ListItem>
                    </asp:DropDownList>
                &nbsp;是否签订合同：<asp:DropDownList ID="ddlContract" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>是</asp:ListItem>
                        <asp:ListItem>否</asp:ListItem>
                    </asp:DropDownList>
                &nbsp;是否维保：<asp:DropDownList ID="ddlMintenance" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>是</asp:ListItem>
                        <asp:ListItem>否</asp:ListItem>
                    </asp:DropDownList>
              
                &nbsp;付款状况：<asp:DropDownList ID="ddlPay" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
                        <asp:ListItem Selected="True">所有</asp:ListItem>
                        <asp:ListItem>付清</asp:ListItem>
                        <asp:ListItem>未付</asp:ListItem>
                        <asp:ListItem>部分支付</asp:ListItem>
                    </asp:DropDownList>
              &nbsp;</div>
          <div  class ="td10">
           机构：<asp:DropDownList ID="DdlDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DdlDepartment_SelectedIndexChanged">
              </asp:DropDownList>
              &nbsp;
              采购人：<asp:DropDownList ID="ddlManager" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnQuery2_Click">
              </asp:DropDownList>
              &nbsp; 申请人编号：<asp:TextBox ID="tbStaffid" runat="server"></asp:TextBox>
              申请项目： <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
           <asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="cha" />                                                          

          </div>

		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" onrowdatabound="GridView1_RowDataBound" 
                            
          onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                 <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="budget" 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="contract" HeaderText="是否签订合同" ReadOnly="True" />
                                <asp:BoundField DataField="bid" HeaderText="采购方式" ReadOnly="True" />                                
                                <asp:BoundField DataField="maintenance" HeaderText="是否维保" ReadOnly="True" />
                                <asp:BoundField DataField="pay" HeaderText="付款比例(%)" ReadOnly="True" />
                                <asp:BoundField DataField="state" HeaderText="处理状态" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
      </asp:Panel> 
</div>

                
          
<table border="0"  class ="tablezong"  cellpadding="0" cellspacing="0" id="tbList" runat ="server"  visible ="false" style="width :100%" >
      <tr>
        <td   style ="text-align :left ; padding :10px 10px 10px 10px" class ="tabletd_center ">
<table  style =" width :100%"    border = "0"  cellpadding ="0" cellspacing ="0">
                <tr>
                    <td style =" background-color :White " >
                                  <div class  ="divLinkButtonRight "> 
                <asp:HyperLink ID="hlPrint" runat="server" ImageUrl="/css/images/print.png" Target="_blank" >HyperLink</asp:HyperLink>
            </div>
                    <div style = " font-size :large ; font-weight :bold ; text-align :center;width :100%;  padding :20px 5px 20px 5px  " >
                        <asp:Label ID="lbTitle" runat="server" ></asp:Label></div>
                               <div style =" text-align :left; margin-bottom :10px ">申请单号：<asp:Label ID="lbAppiouid" runat="server"></asp:Label>
                                   <asp:Button ID="btDel" runat="server" Text="删除" OnClick="btDel_Click" />
                        </div>
                              <div style =" text-align :left; margin-bottom :10px  ">预估金额：<asp:Label ID="lbBudget" runat="server">0</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="lbBid" runat="server"></asp:Label>&nbsp;
                                   签订合同：<asp:Label ID="lbContract" runat="server"></asp:Label>&nbsp;
                                   维保：<asp:Label ID="lbMaintenance" runat="server"></asp:Label>&nbsp;
                                   付款比例：<asp:Label ID="lbPay" runat="server"></asp:Label>%&nbsp;
                                   处理状态：<asp:Label ID="lbState" runat="server"></asp:Label></div> 
</td>
                </tr>

                <tr>
                    <td  style =" padding :20px 5px 5px 5px" >
                        <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 >
       <div class="td_block">
                      <div class="row_title">
                        <asp:Label ID="lbCheckTitle" runat="server" Text="审核进度："></asp:Label>
           <asp:Label ID="lbCheckerCount" runat="server"  Visible ="false" >0</asp:Label>           
                        </div> 

                <asp:DataList ID="dlCheck" runat="server" Width="100%" OnItemDataBound="dlCheck_ItemDataBound" >
              <ItemTemplate>
         <div class=" row_pic ">
                    <asp:Image ID="Image1" runat="server" />
                   </div>

                <div>
                    <asp:Label ID="lbShow" runat="server" ></asp:Label>
                    <asp:Label ID="lbcheckername" runat="server" Visible ="false" Text='<%# Bind("checkername") %>'></asp:Label>
                    <asp:Label ID="lbcheckdecided" runat="server" Visible ="false" Text='<%# Bind("checkdecided") %>'></asp:Label> 
                    <asp:Label ID="lbchecknote"  runat="server" Visible ="false" Text='<%# Bind("checknote") %>'></asp:Label>
                    <asp:Label ID="lbchecktime" runat="server" Visible ="false"    Text='<%# Bind("checktime") %>'></asp:Label></div> 
                
                  <asp:Panel ID="plCheckOver" runat="server" Visible ="false" >
                     <div class="row_pic">
                    <asp:Image ID="Image2" runat="server" />
                   </div>
                      <div>审核结束</div>
                  </asp:Panel>
                  </ItemTemplate>
          </asp:DataList>
                            </div>
                    </td>
                </tr>
   <tr>
                    <td style=" text-align :center;  ">

                        <asp:Panel ID="plAppList" runat="server">
                     <div class="row_title">申请明细：</div> 
                        <asp:GridView ID="gvAppList" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                <asp:BoundField DataField="project" HeaderText="名称及型号" ReadOnly="True" />
                                <asp:TemplateField HeaderText="数量">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("number") %>'></asp:Label>
                                           <asp:Label ID="Label2" runat="server" Text='<%# Bind("unit") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="price" HeaderText="单价" ReadOnly="True" />
                                <asp:BoundField DataField="total" HeaderText="总价" ReadOnly="True" />
                                <asp:BoundField DataField="user" HeaderText="说明" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
                        </asp:Panel>

                        <asp:Panel ID="plDirectprocurement" runat="server" Visible="false" >
                                                <div style =" text-align :left ; padding-top :30px; "> 采购清单：</div> 
                        <asp:GridView ID="gvDirectprocurement" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                <asp:BoundField DataField="project" HeaderText="需求物品" ReadOnly="True" />
                                <asp:TemplateField HeaderText="需求数量">
                                    <ItemTemplate>
                                        <asp:Label ID="lbnumber" runat="server" Text='<%# Bind("number") %>'></asp:Label>
                                           <asp:Label ID="lbunit" runat="server" Text='<%# Bind("unit") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="price" HeaderText="预估单价" ReadOnly="True" />
                                <asp:BoundField DataField="total" HeaderText="预估总价" ReadOnly="True" />
                                <asp:BoundField DataField="user" HeaderText="说明" ReadOnly="True" />
                                 <asp:BoundField DataField="factproject" HeaderText="实购物品" ReadOnly="True" />
                                 <asp:TemplateField HeaderText="实购数量">
                                    <ItemTemplate>
                                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("factnumber") %>'></asp:Label>
                                        <asp:Label ID="lbfactunit_v" runat="server" Text='<%# Eval("factunit") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:BoundField DataField="factprice" HeaderText="实购单价" ReadOnly="True" />
                                
                                <asp:BoundField DataField="facttotal" HeaderText="实购总价" ReadOnly="True" />    
                                 <asp:BoundField DataField="state" HeaderText="完成状态" ReadOnly="True" />   
                
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
                        </asp:Panel>

                        <asp:Panel ID="plPay" runat="server" Visible="false" >
                                                <div style =" text-align :left ; padding-top :30px; "> 付款详情：</div> 
                        <asp:GridView ID="gvPay" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" Width="100%" >
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                     <asp:BoundField DataField="payorder" HeaderText="付款次序" ReadOnly="True" />
                                     <asp:BoundField DataField="planmoney" HeaderText="计划支付金额" ReadOnly="True" />
                                     <asp:BoundField DataField="plancumulativescale" HeaderText="累计比例(%)" ReadOnly="True" />
                                     <asp:BoundField DataField="planpaydate" HeaderText="计划支付日期" ReadOnly="True" />                                
                                     <asp:BoundField DataField="money" HeaderText="实际支付金额" ReadOnly="True" />
                                     <asp:BoundField DataField="cumulativescale" HeaderText="累计比例(%)" ReadOnly="True" />
                                     <asp:BoundField DataField="payeddate" HeaderText="实际支付日期" ReadOnly="True" />
                                     <asp:BoundField DataField="state" HeaderText="状态" ReadOnly="True" />
                                     <asp:BoundField DataField="managername" HeaderText="管理人" ReadOnly="True" /> 
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
                        </asp:Panel>
                    </td>
                </tr>
                
                <tr>
                    <td style=" text-align :center; height :30px">
                        <asp:HyperLink ID="hlbid" runat="server" Target="_blank"  CssClass="button" >竞争性采购资料查看</asp:HyperLink>
                        <asp:HyperLink ID="hlcontacts" runat="server" Target="_blank"  CssClass="button" >合同查看</asp:HyperLink>
                        <asp:HyperLink ID="hlpm" runat="server" Target="_blank"  CssClass="button" >实施记录</asp:HyperLink>
                        <asp:HyperLink ID="hlpmcheck" runat="server" Target="_blank"  CssClass="button" >验收查看</asp:HyperLink>
                        <asp:HyperLink ID="hlmaintenance" runat="server" Target="_blank"  CssClass="button" >维保查看</asp:HyperLink>
        
                    </td>
                </tr>
                <tr>
                    <td style=" text-align :center; height :30px">
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
         
                    </td>
                </tr>
            </table>
        
</td>
      </tr>
    </table> 
<!--栏目结束 -->

            </div>
        </form>
    </body>
</html>
