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

<!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" />
     <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="plZong" runat="server" Visible="true">   
<!--栏目开始 -->
      <asp:Panel ID="plList" runat="server">
          
    <div class="row_title" id="divTitle" runat ="server" visible ="false" >

</div> 
    <div  class ="td10"><asp:DropDownList ID="ddlState"  runat="server" AutoPostBack="True" OnSelectedIndexChanged="btCha_Click">
                <asp:ListItem Selected="True">所有</asp:ListItem>
                <asp:ListItem>完成</asp:ListItem>
                <asp:ListItem>计划</asp:ListItem>
            </asp:DropDownList>
               &nbsp;
            <asp:DropDownList ID="ddlFunds"  runat="server" AutoPostBack="True" OnSelectedIndexChanged="btCha_Click">
                <asp:ListItem Selected="True">所有支付类别</asp:ListItem>
                <asp:ListItem>常规支付</asp:ListItem>
                <asp:ListItem>专项支付</asp:ListItem>
            </asp:DropDownList>
               &nbsp;
               <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btCha_Click">
               </asp:DropDownList>
            &nbsp;
            <asp:DropDownList ID="ddlDate" runat="server" AutoPostBack="True" onselectedindexchanged="btCha_Click">
                <asp:ListItem>近一个月内</asp:ListItem>
                <asp:ListItem Selected="True">近三个月内</asp:ListItem>
                <asp:ListItem>近半年内</asp:ListItem>
                <asp:ListItem>近一年内</asp:ListItem>
                <asp:ListItem>所有</asp:ListItem>
            </asp:DropDownList>
            &nbsp;或 
            <asp:TextBox ID="tbDate" runat="server" onclick="popUpCalendar(this,this,'yyyy-mm-dd')" placeholder="点击选择日期" Width="100px"></asp:TextBox>
            &nbsp;~
            <asp:TextBox ID="tbDate1" runat="server" onclick="popUpCalendar(this,this,'yyyy-mm-dd')" placeholder="点击选择日期" Width="100px"></asp:TextBox>
            之间 
               <asp:Button ID="btCha" runat="server" Text="查询" OnClick="btCha_Click" Height="22px" />
          </div>
          <asp:Label ID="lbMessage" runat="server" ForeColor="Red" ></asp:Label>
		<asp:GridView ID="gvPayList" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" Width="100%" OnSelectedIndexChanging="gvPayList_SelectedIndexChanging">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                        
                                <asp:BoundField DataField="conid" HeaderText="采购单号" ReadOnly="True" />
                                <asp:BoundField DataField="conname" HeaderText="项目名称" ReadOnly="True" />
                               
                                     <asp:BoundField DataField="payorder" HeaderText="付款次序" ReadOnly="True" />
                                     <asp:BoundField DataField="planmoney" HeaderText="计划支付金额" ReadOnly="True" />
                                     <asp:BoundField DataField="plancumulativescale" HeaderText="累计比例(%)" ReadOnly="True" />
                                     <asp:BoundField DataField="money" HeaderText="实际支付金额" ReadOnly="True" />
                                     <asp:BoundField DataField="cumulativescale" HeaderText="累计比例(%)" ReadOnly="True" />
                                     <asp:BoundField DataField="docid" HeaderText="财务凭证号" ReadOnly="True" />
                                     <asp:BoundField DataField="payeddate" HeaderText="实际支付日期" ReadOnly="True" />
                                     <asp:BoundField DataField="state" HeaderText="状态" ReadOnly="True" />
                                    <asp:CommandField HeaderText="查看" SelectText="查看" ShowSelectButton="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
        
          </asp:Panel>

         
            <!--这里添加内容 -->
      <asp:Panel ID="plPay" runat="server" Visible ="false" >
        <div style =" margin-top :20px;" >
           <div class =" lanmubiaoti ">    
                 <asp:Label ID="lbConId" runat="server" ></asp:Label>&nbsp;<asp:Label ID="lbTiTle" runat="server" ></asp:Label>
</div> 
               <div class="row_title" runat ="server" id="divPlan" >付款计划：</div> 
                <asp:GridView ID="gvPayPlan" runat="server" AutoGenerateColumns="False"  Width ="500px" 
                            BorderWidth="1px" CssClass="gv">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns> 
                                     <asp:BoundField DataField="payorder" HeaderText="付款次序" ReadOnly="True" />
                                     <asp:BoundField DataField="price" HeaderText="计划支付金额" ReadOnly="True" />
                                     <asp:BoundField DataField="cumulativescale" HeaderText="累计比例(%)" ReadOnly="True" />
                                     <asp:BoundField DataField="paydate" HeaderText="计划支付日期" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>
                 <div class="row_title" >支付明细：</div>     
		<asp:GridView ID="GridView1" 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="docid" HeaderText="财务凭证号" ReadOnly="True" />   
                                     <asp:BoundField DataField="payeddate" HeaderText="实际支付日期" ReadOnly="True" />  
                                     <asp:BoundField DataField="paynote" 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>     </div>
      
    
<!--栏目结束 -->
</asp:Panel> 
          </asp:Panel> 
            </div>
            </div> 
        </form>
    </body>
</html>