<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
       {
           if (!IsPostBack)
           {
               if (Request.QueryString["TaskID"] != null)
               {
                   this.XTextBoxTaskID.Text = Request.QueryString["TaskID"].ToString();
               }
               if (Request.QueryString["PlanItemID"] != null)
               {
                   this.XTextBoxPlanItemID.Text = Request.QueryString["PlanItemID"].ToString();
                   this.XTextBox8.Text = Request.QueryString["PlanItemID"].ToString();
               }
    
           }
       }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <title>BPM Form</title> <style>
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    .yz-inp-cnt{display:inline;}
    </style>
    <script type="text/javascript">

      //默认凭证年度
        function pzyear(year,formno)
        {
            if (year == "")
                return new Date().getFullYear();
            else
                return year;
        }

        //获取会计凭证号
        Ext.onReady(function () {

         //onchange控件
            XFormOnChange(agent.Eles[document.getElementById('XLabel3').getAttribute("xform_xele_index")]);
            
            //BPM表单号
            var bpmFormNo = document.getElementById("XLabel3").innerText;
            var voucherCode = agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].getValue();
            var PaySerialNum = agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue(); //批次序列号
            if (bpmFormNo != "" && voucherCode == "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/FICOAPIHandler.ashx'),
                    method: 'POST',
                    async: false,
                    disableCaching: true,
                    params: {
                        method: 'GetPaymentVoucherInfo',
                        ZBPM: bpmFormNo,
                        PaySerialNum: PaySerialNum
                    },
                    success: function (action) {
                        var data = action.result.Bean;
                        //alert(action.result.Code);
                        if (action.result.Code == 0) {
                            //alert(data[0].BELNR);
                            agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].setValue(data[0].BELNR);
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }

            //超期应收信息
            overdueReceiv();

        });

        //打印
        function Print() {
            var temp = document.getElementById('XLabel3').innerText;
            window.open("后付款支付表单Print.aspx?serialNum=" + temp);
        }

        //获取合作伙伴超期应收
        function overdueReceiv() {

            var supplierID = agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].getValue();

            if (supplierID != null && supplierID != '') {

                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetPartnerOverdueReceivables',
                        partnerID: supplierID
                    },
                    success: function (action) {
                        var result = action.result;
                        var value = result.Value;
                        agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")].setValue(value);
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")]);

                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
        }


        function overdueReceivables(supplierID) {

            if (supplierID != null && supplierID != '') {

                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetPartnerOverdueReceivables',
                        partnerID: supplierID
                    },
                    success: function (action) {
                        //var result = action.responseText;
                        //var data = eval('(' + result + ')');
                        //agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")].setValue(data.Value);
                        var result = action.result;
                        var value = result.Value;
                        agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")].setValue(value);
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")]);

                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
        }

    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti" style="PADDING-LEFT: 10px">
                        <asp:Label id="XLabel1" runat="server" text="采购后付处理单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" text="-系统自动生成-" BackColor="#8AB3DF" ValueToDisplayText XDataBind="DF_Purchase_Payment.FormNo" Value></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <asp:Label id="XLabel191" runat="server" text="标*的是付款岗必填项，" value valuetodisplaytext font-size="10pt" forecolor="Red"></asp:Label><asp:Label id="Label3" runat="server" text="标*的是出纳岗必填项" value valuetodisplaytext font-size="10pt" forecolor="Blue"></asp:Label></td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" text="用户信息"></asp:Label></td>
                    <aspxform:XTextBox id="XTextBoxTaskID" runat="server" ValueToDisplayText XDataBind="TaskID" Width="200px" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" Height="20px" HiddenExpress="1"></aspxform:XTextBox>
                    <aspxform:XTextBox id="XTextBoxPlanItemID" runat="server" ValueToDisplayText XDataBind="PlanItemID" Width="20px" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" Height="20px" HiddenExpress="1"></aspxform:XTextBox>
                    <aspxform:XTextBox id="XTextBox8" runat="server" ValueToDisplayText XDataBind="DF_Purchase_Payment.PlanItemID" Width="200px" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" Height="20px" HiddenExpress="1"></aspxform:XTextBox>
                    <aspxform:XTextBox id="XTextBoxIsEInvoice" runat="server" ValueToDisplayText XDataBind="DF_Purchase_Payment.IsEInvoice" Width="20px" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" Height="20px" HiddenExpress="1"></aspxform:XTextBox>
                    <aspxform:XDropDownList id="XDropDownList7" runat="server" Height="20px" HiddenExpress="1" XDataSource="TableName:DF_Purchase_PaymentPlan;Filter:ItemID->PlanItemID,TaskID->TaskID" DataMap="PlanSubdDate->DF_Purchase_Payment.PlanDate;PayAmount->DF_Purchase_Payment.TotalAmount;ExpectedPaymentDate->DF_Purchase_Payment.PlanDate2;PayAbstract->DF_Purchase_Payment.PayAbstract;PayRemark->DF_Purchase_Payment.Remark;"></aspxform:XDropDownList>
                    <aspxform:XDropDownList id="XDropDownList8" runat="server" Height="20px" HiddenExpress="1" XDataSource="TableName:DF_Purchase_APReconciliation;Filter:TaskID->TaskID" DataMap="BusinessType->DF_Purchase_Payment.BusinessType;CompanyCode->DF_Purchase_Payment.CompanyCode;PurchaseCurrency->DF_Purchase_Payment.PurchaseCurrency;SupplierNo->DF_Purchase_Payment.SupplierNo;SupplierName->DF_Purchase_Payment.SupplierName;PayItems->DF_Purchase_Payment.PayItems;IsEInvoice->DF_Purchase_Payment.IsEInvoice;BankAccount->DF_Purchase_Payment.BankAccount;AccountNo->DF_Purchase_Payment.AccountNo;AccountOwner->DF_Purchase_Payment.AccountOwner;BankNum->DF_Purchase_Payment.BankNum;PaymentStyle->DF_Purchase_Payment.PaymentStyle;IsStaffAdvance->DF_Purchase_Payment.IsStaffAdvance;FormNo->DF_Purchase_Payment.APRFormNo;TaskID->DF_Purchase_Payment.APRTaskID;StaffName->DF_Purchase_Payment.StaffName;"></aspxform:XDropDownList>
                </tr>
                <tr>
                    <td width="54" height="19" class="ts">
                        <asp:Label id="XLabel5" runat="server" text="申请人"></asp:Label></td>
                    <aspxform:XTextBox id="XTextBox3" runat="server" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" XDataBind="DF_Purchase_Payment.AppAccount" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" DataMap="Department->DF_Purchase_Payment.AppDepart" width="23px" BorderColor="Gainsboro"></aspxform:XTextBox>
                    <td width="414" class="ts1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.AppName" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td width="113" class="ts">
                        <asp:Label id="XLabel20" runat="server" text="创建时间"></asp:Label></td>
                    <td width="357" class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_Purchase_Payment.CreateDate" Width="50%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel21" runat="server" text="部门"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.AppDepart" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel19" runat="server" text="付款类型"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox30" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PaymentType" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Text="后付"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="5">
                        <asp:Label id="XLabel6" runat="server" text="付款基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_Purchase_Payment.POCurrency" Width="20px" BorderWidth="1" HiddenInput="true" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_Purchase_Payment.PaySerialNum" Width="20px" HiddenInput="true" BorderColor="#DCDCDC">001</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel41" runat="server" text="业务类型"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList26" runat="server" XDataBind="DF_Purchase_Payment.BusinessType" DisableExpress='Global.StepName !=" "'>
                            <asp:ListItem Selected="True" Value="销售业务">销售业务</asp:ListItem>
                            <asp:ListItem Value="租赁业务">租赁业务</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" text="公司代码"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%" colspan="2">
                        <aspxform:XDropDownList id="XDropDownList9" runat="server" Height="20px" HiddenExpress="1" XDataSource="TableName:DF_DataSourceList;Filter:Type->varcode" DataMap="Value->companyName;"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.CompanyCode" Width="30%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox7" runat="server" ValueToDisplayText XDataBind="varcode" Value Width="87px" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" BorderColor="Gainsboro">companycode1</aspxform:XTextBox>
                        <aspxform:XLabel id="XLabel9" runat="server" text="Label" BackColor="#D4E4FE" XDataBind="companyName"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label23" runat="server" text="供应商SAPID"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox13" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.SupplierNo" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label24" runat="server" text="采购币种"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                        <aspxform:XTextBox id="XTextBox31" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PurchaseCurrency" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel22" runat="server" text="供应商名称"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox14" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.SupplierName" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel23" runat="server" text="实际采购付款条件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                        <aspxform:XTextBox id="XTextBox15" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PayItems" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label25" runat="server" text="后付对账申请单号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="SalesOpportunitiesFormNo" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.APRFormNo" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" DisplayOnly="True"></aspxform:XTextBox>
                        <aspxform:XHistoryFormLink id="XHistoryFormLink1" runat="server" BackColor="LightGray" XDataBind="DF_Purchase_Payment.APRTaskID" BorderColor="Transparent" ForeColor="Black">
                            <input type="button" value="查看详情" />
                        </aspxform:XHistoryFormLink>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label9" runat="server" text="*" value valuetodisplaytext font-size="12pt" forecolor="Blue"></asp:Label><asp:Label id="XLabel7" runat="server" text="支付方式"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_Purchase_Payment.PaymentStyle" Width="35%" DisableExpress='Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付" ' ForeColor="Black" Font-Bold="True">
                            <asp:ListItem>电汇(银企直联)</asp:ListItem>
                            <asp:ListItem>电汇</asp:ListItem>
                            <asp:ListItem>支票</asp:ListItem>
                            <asp:ListItem>线上付款</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label17" runat="server" text="是否员工垫付"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 10%">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_Purchase_Payment.IsStaffAdvance" Width="114px" DisableExpress='Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付" ' Font-Names="Verdana" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 25%">
                        <div hiddenexpress='DF_Purchase_Payment.IsStaffAdvance!="是"'>员工： 
                            <aspxform:XTextBox id="XTextBox5" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_Purchase_Payment.StaffName" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                            &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Width="21px" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:State->'在职'" DataMap="AttendanceKakaNO->DF_Purchase_Payment.StaffAccount;Name->DF_Purchase_Payment.StaffName" DisplayColumns="AttendanceKakaNO:员工账号;Name:姓名;Department:部门"></aspxform:XDataBrowserButton>
                            <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_Purchase_Payment.StaffAccount" Width="20px" BorderWidth="1" HiddenInput="true" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label26" runat="server" text="开户行"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox18" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.BankAccount" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label27" runat="server" text="银行账号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox id="XTextBox19" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.AccountNo" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label28" runat="server" text="账户持有人"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox20" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.AccountOwner" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Express="DF_Purchase_Payment.SupplierName"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label29" runat="server" text="银行行号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox id="XTextBox22" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.BankNum" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" text="计划提交财务日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PlanDate" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label30" runat="server" text="付款金额"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                        <aspxform:XTextBox id="XTextBox37" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.TotalAmount" Width="220px" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="期望财务付款日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PlanDate2" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label32" runat="server" text="银行付款摘要"></asp:Label></td>
                    <td class="tsbottomtext" colspan="4">
                        <aspxform:XTextBox id="XTextBox39" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_Purchase_Payment.PayAbstract" Width="100%" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" DisableBehavior="ReadOnly" BorderColor="Gainsboro" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label31" runat="server" text="付款备注"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="4">
                        <aspxform:XTextBox id="XTextBox38" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.Remark" Width="100%" BorderWidth="1" HiddenInput="False" Max="0" Min="0" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="*" value valuetodisplaytext font-size="12pt" forecolor="Red"></asp:Label><asp:Label id="Label1" runat="server" text="超期应收状态"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_Purchase_Payment.OverdueStatus" Width="35%" DisableExpress='Global.StepName!="北京公司人民币付款岗复核" &amp;&amp;  Global.StepName!="上海公司人民币付款岗复核" &amp;&amp;  Global.StepName!="深圳公司人民币付款岗复核" &amp;&amp; Global.StepName!="上海颐合人民币付款岗复核" &amp;&amp; Global.StepName!="苏州博德人民币付款岗复核"' ForeColor="Black" Express="if(DF_Purchase_Payment.OverdueReceivables>0,'有超期未清',if(DF_Purchase_Payment.OverdueReceivables==0,'无超期',DF_Purchase_Payment.OverdueStatus))">
                            <asp:ListItem Selected="True">无超期</asp:ListItem>
                            <asp:ListItem>有超期未清</asp:ListItem>
                            <asp:ListItem>超期已清</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label2" runat="server" text="超期应收金额"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                        <aspxform:XTextBox id="XTextBox12" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.OverdueReceivables" Width="220px" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Express="javascript('overdueReceivables',DF_Purchase_Payment.SupplierNo)" Format="type:currency;.2"></aspxform:XTextBox>
                        <input onclick="overdueReceiv()" type="button" value="从SAP更新" />
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label20" runat="server" text="出纳实际付款日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.RemittanceAttachDate" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label8" runat="server" text="财务推迟付款原因"></asp:Label></td>
                    <td colspan="2">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_Purchase_Payment.DelayedPaymentReason" Width="35%" XDataSource='TableName:DF_DataSourceList;Filter:Type->"付款延迟原因",Value1->"人民币"' DisableExpress='Global.StepName=="总裁审批" ' ValueColumn="Name" DisplayColumn="Name" PromptText="--请选择--"></aspxform:XDropDownList>
                        &nbsp;<aspxform:XTextBox id="XTextBox28" runat="server" ValueToDisplayText XDataBind="DF_Purchase_Payment.Reason" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" HiddenExpress='DF_Purchase_Payment.DelayedPaymentReason!="其他原因"' width="60%" BorderColor="Gainsboro"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress='DF_Purchase_Payment.PaymentStyle!="电汇"' ForeColor="Red" Display="None" ErrorMessage="请选择是否员工垫付" ControlToValidate="XRadioButtonList3" ValidationGroup="submit">请选择是否员工垫付</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress='DF_Purchase_Payment.IsStaffAdvance=="是"' ForeColor="Red" ErrorMessage="开户行不能为空" ControlToValidate="XTextBox18" ValidationGroup="submit">开户行不能为空</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress='DF_Purchase_Payment.IsStaffAdvance=="是"' ForeColor="Red" ErrorMessage="银行账号不能为空" ControlToValidate="XTextBox19" ValidationGroup="submit">银行账号不能为空</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" DisableExpress='DF_Purchase_Payment.IsStaffAdvance=="是"' ForeColor="Red" ErrorMessage="账户持有人不能为空" ControlToValidate="XTextBox20" ValidationGroup="submit">账户持有人不能为空</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" DisableExpress='DF_Purchase_Payment.IsStaffAdvance=="是"' ForeColor="Red" ErrorMessage="银行行号不能为空" ControlToValidate="XTextBox22" ValidationGroup="submit">银行行号不能为空</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" ErrorMessage="请选择支付方式" ControlToValidate="XDropDownList2" ValidationGroup="chuna">请选择支付方式</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <table width="1200" align="center" class="table" style="BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none" border="0" cellspacing="0" cellpadding="0" dynamicarea="2,1" menudock="Left">
            <tbody>
                <tr>
                    <td width="400" style="FONT-SIZE: 16px; BORDER-TOP: #93a1ae 1px solid; FONT-FAMILY: 微软雅黑; BORDER-RIGHT: #93a1ae 1px solid; BORDER-BOTTOM: #b2bcc6 1px solid; FONT-WEIGHT: bold; BORDER-LEFT: #93a1ae 1px solid; BACKGROUND-COLOR: #c1d7ec" colspan="5">
                        <asp:Label id="Label4" runat="server" text="凭证表"></asp:Label></td>
                </tr>
                <tr>
                    <td height="17" align="center" class="tds">
                        <asp:Label id="Label19" runat="server" text="序号"></asp:Label></td>
                    <td width="50" align="center" class="tds">
                        <asp:Label id="Label21" runat="server" text="年度"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label7" runat="server" text="*" value valuetodisplaytext font-size="12pt" forecolor="Red"></asp:Label><asp:Label id="Label5" runat="server" text="凭证号"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label11" runat="server" text="凭证行号"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label12" runat="server" text="清账类型"></asp:Label></td>
                </tr>
                <tr>
                    <td align="center" class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo2" runat="server" BackColor="Transparent" XDataBind="DF_Purchase_PayVoucher.LineNumber" Width="100%" BorderWidth="1" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_Purchase_PayVoucher.Year" DisableExpress='Global.StepName!="北京公司人民币付款岗复核" &amp;&amp;  Global.StepName!="上海公司人民币付款岗复核" &amp;&amp;  Global.StepName!="深圳公司人民币付款岗复核" &amp;&amp; Global.StepName!="上海颐合人民币付款岗复核" &amp;&amp; Global.StepName!="苏州博德人民币付款岗复核" &amp;&amp; Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付"&amp;&amp;  Global.StepName!="北京公司人民币租赁付款岗复核"' Express="javascript('pzyear',DF_Purchase_PayVoucher.Year,DF_Purchase_Payment.FormNo)" PromptText="--请选择--">
                            <asp:ListItem>2020</asp:ListItem>
                            <asp:ListItem>2021</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="XTextBox23" runat="server" ValueToDisplayText XDataBind="DF_Purchase_PayVoucher.VoucherNo" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" width="100%" BorderColor="Gainsboro" DisableExpress='Global.StepName!="北京公司人民币付款岗复核" &amp;&amp;  Global.StepName!="上海公司人民币付款岗复核" &amp;&amp;  Global.StepName!="深圳公司人民币付款岗复核" &amp;&amp; Global.StepName!="上海颐合人民币付款岗复核" &amp;&amp; Global.StepName!="苏州博德人民币付款岗复核"  &amp;&amp; Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付"&amp;&amp;  Global.StepName!="北京公司人民币租赁付款岗复核"'></aspxform:XTextBox>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_Purchase_PayVoucher.VoucherLineNo" BorderWidth="1" width="100%" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="北京公司人民币付款岗复核" &amp;&amp;  Global.StepName!="上海公司人民币付款岗复核" &amp;&amp;  Global.StepName!="深圳公司人民币付款岗复核" &amp;&amp; Global.StepName!="上海颐合人民币付款岗复核" &amp;&amp; Global.StepName!="苏州博德人民币付款岗复核"  &amp;&amp; Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付"&amp;&amp;  Global.StepName!="北京公司人民币租赁付款岗复核"'>1</aspxform:XTextBox>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_Purchase_PayVoucher.ClearType" Width="100%" DisableExpress='Global.StepName!="北京公司人民币付款岗复核" &amp;&amp;  Global.StepName!="上海公司人民币付款岗复核" &amp;&amp;  Global.StepName!="深圳公司人民币付款岗复核" &amp;&amp; Global.StepName!="上海颐合人民币付款岗复核" &amp;&amp; Global.StepName!="苏州博德人民币付款岗复核"  &amp;&amp; Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付"&amp;&amp;  Global.StepName!="北京公司人民币租赁付款岗复核"'>
                            <asp:ListItem Selected="True">完全清账</asp:ListItem>
                            <asp:ListItem>部分清账</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" ErrorMessage="请填写凭证号" ControlToValidate="XTextBox23" ValidationGroup="fukuangang">请填写凭证号</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Red" ErrorMessage="请选择清账类型" ControlToValidate="XDropDownList4" ValidationGroup="fukuangang">请选择清账类型</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ForeColor="Red" ErrorMessage="请选择年度" ControlToValidate="XDropDownList6" ValidationGroup="fukuangang">请选择年度</aspxform:XRequiredFieldValidator>
        <%--<table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" >--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress=' DF_Purchase_Payment.PaymentStyle!="电汇(银企直联)"'>
            <tbody>
                <tr>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label16" runat="server" text="支付银行卡号"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox27" runat="server" XDataBind="DF_Purchase_Payment.PayBankAccount" BorderWidth="1" width="70%" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付" '></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" XDataBind="DF_Purchase_Payment.PayBankAccount" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="42px" BorderWidth="1" XDataSource="TableName:DF_FI_PaymentBankInfo;Filter:CompanyCode->DF_Purchase_Payment.CompanyCode" DataMap="BankAccount->DF_Purchase_Payment.PayBankAccount" BorderColor="#DCDCDC" Text="选择" DisableExpress='Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付" ' DisplayColumns="BankAccount:银行账号;BankRemark:银行描述" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="xtxt1" style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px" runat="server" BorderWidth="1" HiddenInput="False" width="0px" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="xtxt2" style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px" runat="server" BorderWidth="1" HiddenInput="False" width="0px" BorderColor="#DCDCDC" ReadOnly="True" TextMode="Password"></aspxform:XTextBox>
                    </td>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label18" runat="server" text="支付密码"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XTextBox id="xtxt_password" runat="server" XDataBind="DF_Purchase_Payment.PayPassword" BorderWidth="1" width="70%" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="北京公司人民币出纳岗支付" &amp;&amp;  Global.StepName!="上海颐合人民币出纳岗支付" &amp;&amp;  Global.StepName!="苏州博德人民币出纳岗支付" ' TextMode="Password"></aspxform:XTextBox>
                        <%--<aspxform:XTextBox id="xtxt_password" runat="server" XDataBind="DF_Purchase_Payment.PayPassword" BorderColor="#DCDCDC" BorderWidth="1"  width="70%"></aspxform:XTextBox>--%></td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" DisableExpress='DF_Purchase_Payment.PaymentStyle!="电汇(银企直联)"' ForeColor="Red" Font-Names="Verdana" ErrorMessage="请选择付款银行卡号" ControlToValidate="XTextBox27" ValidationGroup="chuna">请选择付款银行卡号</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" DisableExpress='DF_Purchase_Payment.PaymentStyle!="电汇(银企直联)"' ForeColor="Red" ErrorMessage="支付密码不能为空" ControlToValidate="xtxt_password" ValidationGroup="chuna">支付密码不能为空</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="Label13" runat="server" text="凭证信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="152" height="26" class="tsbottomlabel">
                        <asp:Label id="Label14" runat="server" text="业务范围"></asp:Label></td>
                    <td width="496" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox25" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.Business" Width="70%" BorderWidth="1" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Express='if(DF_Purchase_Payment.BusinessType=="销售业务","1100","1200")'></aspxform:XTextBox>
                    </td>
                    <td width="152" class="tsbottomlabel">
                        <asp:Label id="Label15" runat="server" text="清账凭证号"></asp:Label></td>
                    <td width="392" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox26" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.ClearVoucher" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <div style="TEXT-ALIGN: center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
        </div>
    </form>
</body>
</html>
