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

<!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="pnshow" runat="server">
               <div  class ="td10">
                    <asp:DropDownList ID="ddlYears" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYears_SelectedIndexChanged"></asp:DropDownList></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="state" HeaderText="处理状态" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
          </asp:Panel>
 <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 ">
            <div class  ="divLinkButtonRight "> 
                <asp:HyperLink ID="hlPrint" runat="server" ImageUrl="/css/images/print.png" Target="_blank" >HyperLink</asp:HyperLink>
            </div>
            <table  style =" width :700px "    border = "0"  cellpadding ="" cellspacing ="0">
                <tr>
                    <td style =" background-color :White " colspan="3" >
                    <div style = " font-size :large ; font-weight :bold ; text-align :center;width :700px;  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>
                        </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="lbState" runat="server"></asp:Label></div> 
                             
</td>
                </tr>
                <tr>
                    <td colspan="3" >
                      <asp:Label ID="lbFujian" runat="server" Text="附件："></asp:Label>
                      <asp:BulletedList ID="BulletedList1" runat="server" DisplayMode="LinkButton"  onclick="BulletedList1_Click"></asp:BulletedList>


                                 <div style ="margin-top :16px;" id="divUp" runat ="server" visible ="false" >
            补充上传：<asp:FileUpload ID="FileUpload1" runat="server"  />
                        <asp:Button ID="btUpload" runat="server" Text="上传" onclick="btUpload_Click" />
                        
                        单个附件不大于50M，补充上传的文件上传成功后不可删除。
         </div>

                    </td>
                </tr>
   <tr>
                    <td  colspan="3">
                        <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>
                    </td>
                </tr>
                <tr>
                    <td  colspan="3">
                        <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; height :30px">
                    <asp:Button ID="btEdit" runat="server" onclick="btEdit_Click" Text="修改" 
                            Visible="False" />
         
                    </td>
                    <td style=" text-align :center; ">
                        <asp:Button ID="btDel" runat="server" onclick="btDel_Click"  Text="删除" onClientClick="return confirm('确认删除吗？')" 
                            Visible="False" />
                    </td>
                    <td style=" text-align :center;">
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
                    </td>
                </tr>
            </table>
</td>
      </tr>
    </table>

<!--栏目结束 -->
            </div>
            </div> 
        </form>
    </body>
</html>