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

    // Insert page code here
    //

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <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">

        agent.on('beforeSubmit', function (action, actionName) {

            var stepName = agent.Eles[document.getElementById("XTextBox27").getAttribute("xform_xele_index")].getValue();
            //第一步提交获取PO此前预付情况
            if (stepName == "人民币采购岗发起预付款付款申请") {
                var bpmFormNo = document.getElementById("XLabel3").innerText;
                var po = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
                //币种  XTextBox21
                var currency = agent.Eles[document.getElementById("XTextBox21").getAttribute("xform_xele_index")].getValue();
                if (currency != '' && currency != 'CNY') {
                    alert("PO币种非人民币！");
                    return false;
                }
                //XTextBox6
                var AccountNo = agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].getValue();
                var bankNumber = agent.Eles[document.getElementById("XTextBox17").getAttribute("xform_xele_index")].getValue();
                //银行账号 验证规则:不是纯数字且不包含"-"
                //判断是否全是数字
                var re = new RegExp("^\\d+$");
                if (AccountNo != '') {
                    if (AccountNo.match(re) || AccountNo.indexOf("-") != -1) { }
                    else {
                        alert("银行账号格式不正确！");
                        return false;
                    }
                }
                if (bankNumber != '') {
                    if (bankNumber.match(re) || bankNumber.indexOf("-") != -1) { }
                    else {
                        alert("银行行号格式不正确！");
                        return false;
                    }
                }
            }

        });

        agent.on('Submit', function (action, actionName) {
            var msg = '';
            var stepName = agent.Eles[document.getElementById("XTextBox27").getAttribute("xform_xele_index")].getValue();
            //第一步提交获取PO此前预付情况
            if (stepName == "人民币采购岗发起预付款付款申请") {
                var bpmFormNo = document.getElementById("XLabel3").innerText;
                var po = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();

                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    method: 'POST',
                    async: false,
                    disableCaching: true,
                    params: {
                        method: 'GetAdvancePaymentInfo',
                        poNumber: po,
                        formNo: bpmFormNo
                    },
                    success: function (action) {
                        var data = action.result;
                        //alert(data.Code);
                        if (data.Code == 1) {
                            msg = data.Value;
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
                if (msg != '') {
                    if (!confirm(msg)) {
                        return false;
                    }
                }
            }

        });

        //获取会计凭证号
        Ext.onReady(function () {
            //BPM表单号
            var bpmFormNo = document.getElementById("XLabel3").innerText;
            var voucherCode = agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].getValue();
            var PaySerialNum = agent.Eles[document.getElementById("XTextBox25").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);
                    }
                });
            }

        });

        function GetInfo() {
            var po = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
            //XDropDownList26
            var bt = agent.Eles[document.getElementById("XDropDownList26").getAttribute("xform_xele_index")].getValue();
            if (po != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetPoInfo',
                        PO: po,
                        BusinessType: bt

                    },
                    success: function (action) {
                        var result = action.result;
                        var count = result.Value.sRows;
                        if (count > 0) {
                            var items = result.Value.Supplier;
                            //4500045749
                            agent.Eles[document.getElementById("XTextBox4").getAttribute("xform_xele_index")].setValue(items[0].SupplierID);
                            agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].setValue(items[0].SupplierName);
                            agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].setValue(items[0].SupplierName);
                            agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].setValue(items[0].SupplierAddr);
                            agent.Eles[document.getElementById("XTextBox14").getAttribute("xform_xele_index")].setValue(items[0].ContractAmount);
                            if (items[0].PayItemsDis != '') {
                                agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")].setValue(items[0].PayItemsDis);
                            }
                            else {
                                agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")].setValue(items[0].PayItems);
                            }
                            agent.Eles[document.getElementById("XDropDownList1").getAttribute("xform_xele_index")].setValue(items[0].CompanyCode);
                            agent.Eles[document.getElementById("XTextBox21").getAttribute("xform_xele_index")].setValue(items[0].Currency);
                            XFormOnChange(agent.Eles[document.getElementById("XDropDownList1").getAttribute("xform_xele_index")]);
                            XFormOnChange(agent.Eles[document.getElementById("XTextBox4").getAttribute("xform_xele_index")]);
                            var bank = result.Value.Bank;
                            var bankRow = result.Value.bRow;
                            if (bankRow > 0) {
                                agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].setValue(bank[0].BankAccount);
                                agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].setValue(bank[0].BankName);
                                agent.Eles[document.getElementById("XTextBox17").getAttribute("xform_xele_index")].setValue(bank[0].BNKLZ);//行号

                            }
                        }
                        else {
                            alert("没有供应商信息！请检查PO号是否输入正确！");
                        }
                    },
                    failure: function (action) {

                    }
                });
            }
        }

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

        //获取合作伙伴超期应收
        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.result;
                        var value = result.Value;
                        agent.Eles[document.getElementById("XTextBox23").getAttribute("xform_xele_index")].setValue(value);
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox23").getAttribute("xform_xele_index")]);
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
        }
    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <!--head-->
        <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: 30px">
                        <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" BackColor="#8AB3DF" XDataBind="DF_Purchase_Payment.FormNo" ValueToDisplayText Value Text="-系统自动生成-"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XButton id="XButton1" runat="server" Text="打印" XClass="YZSoft.Forms.Field.Button" OnClientClick="Print()" UseSubmitBehavior="False" Height="23px"></aspxform:XButton>
                    </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>
                        <aspxform:XTextBox id="XTextBox27" runat="server" XDataBind="StepName" BorderWidth="1" BorderColor="#DCDCDC" Express="Global.StepName" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="54" height="19" class="ts">
                        <asp:Label id="XLabel5" runat="server" text="申请人"></asp:Label></td>
                    <td width="372" class="ts1">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#e6f1f8" XDataBind="DF_Purchase_Payment.AppName" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:Name" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" DataMap="Department->DF_Purchase_Payment.AppDepart"></aspxform:XTextBox>
                    </td>
                    <td width="80" class="ts">
                        <asp:Label id="XLabel20" runat="server" text="创建时间"></asp:Label></td>
                    <td width="398" class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BackColor="#e6f1f8" XDataBind="DF_Purchase_Payment.CreateDate" DisableBehavior="ReadOnly" CssClass="text" Width="50%" 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" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel41" runat="server" text="业务类型"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList26" runat="server" XDataBind="DF_Purchase_Payment.BusinessType">
                            <asp:ListItem Selected="True" Value="销售业务">销售业务</asp:ListItem>
                            <asp:ListItem Value="租赁业务">租赁业务</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="23" class="title1" colspan="4">
                        <asp:Label id="XLabel6" runat="server" text="付款基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_Purchase_Payment.POCurrency" BorderColor="#DCDCDC" HiddenInput="true" Width="20px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="varSubject" ValueToDisplayText="TableName:DF_FI_AdvAccountingSubjects;FilterColumn:CompanyCode;DisplayColumn:AccountingSubject" BorderWidth="1" BorderColor="#DCDCDC" Express="DF_Purchase_Payment.CompanyCode" DataMap="AccountingSubject->DF_Purchase_Payment.Subject" HiddenExpress="1"></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_Purchase_Payment.PaySerialNum" BorderColor="#DCDCDC" HiddenInput="true" Width="20px">001</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="10%" height="22" class="tsbottomlabel">
                        <asp:Label id="XLabel13" runat="server" text="公司代码"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_Purchase_Payment.CompanyCode" Width="35%" DataMap="LdType->DF_Purchase_Payment.PayCompany" ValueColumn="Name" DisplayColumn="Name" XDataSource="TableName:DF_DataSourceList;Filter:Type->varcode">
                            <asp:ListItem>1000</asp:ListItem>
                            <asp:ListItem>4000</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="varcode" ValueToDisplayText Value BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="True" Max="0" Min="0" Width="98px">companycode1</aspxform:XTextBox>
                        <%--<aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_Purchase_Payment.Subject" ValueToDisplayText BorderWidth="1" Width="20px" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>--%></td>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="XLabel8" runat="server" text="付款类型"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox12" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PaymentType" Text="预付" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel">
                        <asp:Label id="XLabel15" runat="server" text="SAP-PO"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_Purchase_Payment.PONumber" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="155px"></aspxform:XTextBox>
                        &nbsp;&nbsp; <%-- <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_Purchase_Payment.PONumOther" Width="535px" BorderWidth="1" CssClass="text"></aspxform:XTextBox>--%>
                        <input style="CURSOR: pointer; HEIGHT: 25px" onclick="GetInfo()" type="button" value="获取供应商信息" />
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel10" runat="server" text="供应商号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.SupplierNo" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel30" runat="server" text="PO行号"  hiddenexpress="Global.StepName=='采购预付款审核岗审批'||Global.StepName=='采购管理部经理审批'"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_Purchase_Payment.POLineNum" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="70%" DisableExpress="Global.StepName!='人民币采购岗发起预付款付款申请' && Global.StepName!='1000人民币出纳岗支付' && Global.StepName!='4000人民币出纳岗支付' && Global.StepName!='5000人民币出纳岗支付'" HiddenExpress="Global.StepName=='采购预付款审核岗审批'||Global.StepName=='采购管理部经理审批'">10</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel9" runat="server" text="供应商名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.SupplierName" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel22" runat="server" text="付款公司" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_Purchase_Payment.PayCompany" Width="35%" XDataSource>
                            <asp:ListItem>北京</asp:ListItem>
                            <asp:ListItem>上海</asp:ListItem>
                            <asp:ListItem>深圳</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel25" runat="server" text="合同金额"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox14" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.ContractAmount" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel26" runat="server" text="付款条件"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox15" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PayItems" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="100%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel">
                        <asp:Label id="XLabel23" runat="server" text="供应商地址"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox7" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.SupplierAddress" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="100%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel7" runat="server" text="支付方式"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_Purchase_Payment.PaymentStyle" BorderWidth="1" BorderColor="#DCDCDC" Width="35%" ForeColor="Black" Font-Bold="True">
                            <asp:ListItem>电汇</asp:ListItem>
                            <asp:ListItem>支票</asp:ListItem>
                            <asp:ListItem>线上付款</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr hiddenexpress='DF_Purchase_Payment.CompanyCode!="1000" &amp;&amp; DF_Purchase_Payment.CompanyCode!="1010" &amp;&amp; DF_Purchase_Payment.CompanyCode!="1020" || DF_Purchase_Payment.PaymentStyle!="电汇"'>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="是否银企直联支付"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_Purchase_Payment.Isyqzl" Width="35%" DisableExpress='Global.StepName!="1000人民币出纳岗支付" ' RepeatDirection="Horizontal" Font-Names="Verdana">
                            <asp:ListItem Selected="True" Value="是">是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel14" runat="server" text="付款金额"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_Purchase_Payment.TotalAmount" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="70%" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel16" runat="server" text="计划付款日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_Purchase_Payment.PlanDate" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="50%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="11" class="tsbottomlabel">
                        <asp:Label id="Label14" runat="server" text="出纳实际付款日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.PlanDate2" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="50%" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label15" runat="server" text="财务推迟付款原因"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_Purchase_Payment.DelayedPaymentReason" Width="35%" ValueColumn="Name" DisplayColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"付款延迟原因",Value1->"人民币"' DisableExpress='Global.StepName=="人民币采购岗发起预付款付款申请"  || Global.StepName=="采购预付款审核岗审批"  || Global.StepName=="采购管理部经理审批" ' PromptText="----请选择----"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_Purchase_Payment.Reason" ValueToDisplayText BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="False" Max="0" Min="0" HiddenExpress='DF_Purchase_Payment.DelayedPaymentReason!="其他原因"' width="60%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="26" class="tsbottomlabel">
                        <asp:Label id="Label1" runat="server" text="预付款凭证号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox13" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.VoncherNumber" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <div hiddenexpress='(DF_Purchase_Payment.CompanyCode=="1000" || DF_Purchase_Payment.CompanyCode=="1010" || DF_Purchase_Payment.CompanyCode=="1020" ) &amp;&amp;  DF_Purchase_Payment.Isyqzl=="是" &amp;&amp; DF_Purchase_Payment.PaymentStyle=="电汇"'><asp:Label id="Label2" runat="server" text="会计科目"></asp:Label>
                        </div>
                    </td>
                    <td class="tsbottomtext">
                        <div hiddenexpress='(DF_Purchase_Payment.CompanyCode=="1000" || DF_Purchase_Payment.CompanyCode=="1010" || DF_Purchase_Payment.CompanyCode=="1020" ) &amp;&amp;  DF_Purchase_Payment.Isyqzl=="是" &amp;&amp; DF_Purchase_Payment.PaymentStyle=="电汇"'>
                            <aspxform:XTextBox id="XTextBox18" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.Subject" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="21px" DataMap="AccountingSubject->DF_Purchase_Payment.Subject" HiddenExpress="(Global.StepName!='1000人民币出纳岗支付' &amp;&amp; Global.StepName!='4000人民币出纳岗支付' )  || DF_Purchase_Payment.Isyqzl==&quot;是&quot;" XDataSource="TableName:DF_FI_AdvAccountingSubjects;Filter:CompanyCode->DF_Purchase_Payment.CompanyCode" DisplayColumns="BankName:银行名称;AccountType:账户类型;AccountingSubject:会计科目"></aspxform:XDataBrowserButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel">
                        <asp:Label id="Label3" runat="server" text="超期应收状态"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_Purchase_Payment.OverdueStatus" Express="if(DF_Purchase_Payment.OverdueReceivables>0,'有超期未清',if(DF_Purchase_Payment.OverdueReceivables==0,'无超期',DF_Purchase_Payment.OverdueStatus))" Width="35%" ForeColor="Black" DisableExpress="Global.StepName=='人民币采购岗发起预付款付款申请'||Global.StepName=='采购预付款审核岗审批'||Global.StepName=='采购管理部经理审批'">
                            <asp:ListItem Selected="True">无超期</asp:ListItem>
                            <asp:ListItem>有超期未清</asp:ListItem>
                            <asp:ListItem>超期已清</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="超期应收金额"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox23" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.OverdueReceivables" BorderWidth="1" BorderColor="#DCDCDC" Express="javascript('overdueReceivables',DF_Purchase_Payment.SupplierNo)" DisableBehavior="ReadOnly" CssClass="text" Width="220px" ReadOnly="True" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="65" class="tsbottomlabel">
                        <asp:Label id="XLabel17" runat="server" text="情况备注"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_Purchase_Payment.Remark" Height="66px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" Max="0" Min="0" CssClass="text" Width="90%" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label13" runat="server" text="银行付款摘要"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_Purchase_Payment.PayAbstract" ValueToDisplayText Height="25px" BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="False" Max="0" Min="0" CssClass="text" Width="90%" DisableExpress='Global.StepName!="人民币采购岗发起预付款付款申请" &amp;&amp; Global.StepName!="人民币1000付款岗复核"   &amp;&amp; Global.StepName!="人民币1001付款岗复核"   &amp;&amp; Global.StepName!="人民币1002付款岗复核"   &amp;&amp; Global.StepName!="1000人民币出纳岗支付"' TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_Purchase_Payment.Business" BorderWidth="1" BorderColor="#DCDCDC" Express='if(DF_Purchase_Payment.BusinessType=="销售业务","1100","1200")' DisableBehavior="ReadOnly" CssClass="text" Width="100px" HiddenExpress="1" ReadOnly="True"></aspxform:XTextBox>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="Label10" runat="server" text="供应商银行信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label6" runat="server" text="开户行"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox5" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.BankAccount" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Text="选择" XClass="YZSoft.Forms.Field.DataBrowserButton" UseSubmitBehavior="False" Width="42px" DataMap="BankAccount->DF_Purchase_Payment.AccountNo;BankName->DF_Purchase_Payment.BankAccount;BankNum->DF_Purchase_Payment.BankNum;AccountOwner->DF_Purchase_Payment.AccountOwner" XDataSource="TableName:V_DF_Partner_SupplierBillInfo;Filter:PartnerSAPID->DF_Purchase_Payment.SupplierNo" DisplayColumns="BankAccount:银行账号;BankName:开户行;BankNum:银行行号;AccountOwner:账户持有人" PopupWndWidth="-1" PopupWndHeight="-1"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label8" runat="server" text="银行账号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox6" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.AccountNo" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label7" runat="server" text="账户持有人"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox16" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_Payment.AccountOwner" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" CssClass="text" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label9" runat="server" text="银行行号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_Purchase_Payment.BankNum" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress='Global.StepName!="1000人民币出纳岗支付" || DF_Purchase_Payment.Isyqzl!="是"'>
            <tbody>
                <tr>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label11" runat="server" text="支付银行卡号"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_Purchase_Payment.PayBankAccount" BorderWidth="1" BorderColor="#DCDCDC" Width="70%"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Text="选择" XClass="YZSoft.Forms.Field.DataBrowserButton" UseSubmitBehavior="False" Width="42px" DataMap="BankAccount->DF_Purchase_Payment.PayBankAccount" XDataSource="TableName:DF_FI_PaymentBankInfo;Filter:CompanyCode->DF_Purchase_Payment.CompanyCode" DisplayColumns="BankAccount:银行账号" PopupWndWidth="-1" PopupWndHeight="-1"></aspxform:XDataBrowserButton>
                    </td>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label12" runat="server" text="支付密码"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_Purchase_Payment.PayPassword" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" DisableExpress='Global.StepName!="1000人民币出纳岗支付"' TextMode="Password"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td height="16" class="td1">
                        <asp:Label id="XLabel18" runat="server" text="上传合同"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1" style="HEIGHT: 20px">
                        <aspxform:XAttachments id="XAttachments1" runat="server" BackColor="#d4e4fe" XDataBind="DF_Purchase_Payment.ContractAttach" Width="100%" FileTypes="*.gif;*.jpeg;*.jpg;*.png;*.doc;*.pdf;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td class="td1" style="HEIGHT: 14px">
                        <asp:Label id="XLabel19" runat="server" text="上传付款明细"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1" style="HEIGHT: 20px">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_Purchase_Payment.PaymentDetailsAttach" Width="100%" FileTypes="*.gif;*.jpeg;*.jpg;*.png;*.doc;*.pdf;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td class="td1" style="HEIGHT: 14px" colspan="4">
                        <asp:Label id="XLabel191" runat="server" text="上传付款底单"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1" style="HEIGHT: 14px; WIDTH: 10%">
                        <asp:Label id="XLabel24" runat="server" text="上传付款底单"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XAttachments id="XAttachments3" runat="server" XDataBind="DF_Purchase_Payment.RemittanceAttach" Width="100%" DisableExpress='Global.StepName!="1000人民币出纳岗支付" &amp;&amp; Global.StepName!="4000人民币出纳岗支付" &amp;&amp; Global.StepName!="5000人民币出纳岗支付"' FileTypes="*.gif;*.jpeg;*.jpg;*.png;*.doc;*.pdf;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                    <td class="td1" style="WIDTH: 10%">
                        <asp:Label id="lab_fkdddate" runat="server" text="上传付款底单日期"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_Purchase_Payment.RemittanceAttachDate" BorderWidth="1px" BorderColor="Gainsboro" Width="120px" DisableExpress='Global.StepName!="1000人民币出纳岗支付" &amp;&amp; Global.StepName!="4000人民币出纳岗支付" &amp;&amp; Global.StepName!="5000人民币出纳岗支付"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ErrorMessage="请选择公司代码" ControlToValidate="XDropDownList1" ValidationGroup="submit">请选择公司代码</aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ErrorMessage="请填写付款总金额" ControlToValidate="XTextBox8" ValidationGroup="submit">请填写付款总金额</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ErrorMessage="请填写计划付款日期" ControlToValidate="XDateTimePicker2" ValidationGroup="submit">请填写计划付款日期</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ErrorMessage="请上传合同！" ControlToValidate="XAttachments1" ValidationGroup="submit" Display="None">请上传合同！</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress="DF_Purchase_Payment.PaymentStyle=='支票' ||   (DF_Purchase_Payment.PaymentStyle=='电汇' &amp;&amp; DF_Purchase_Payment.Isyqzl=='是')" ErrorMessage="请上传付款底单！" ControlToValidate="XAttachments3" ValidationGroup="chuna"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" DisableExpress="DF_Purchase_Payment.PaymentStyle=='支票' ||   (DF_Purchase_Payment.PaymentStyle=='电汇' &amp;&amp; DF_Purchase_Payment.Isyqzl=='是')" ErrorMessage="上传付款底单日期不能为空" ControlToValidate="XDateTimePicker4" ValidationGroup="chuna"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Red" ErrorMessage="开户行不能为空" ControlToValidate="XTextBox5" ValidationGroup="submit">开户行不能为空</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ForeColor="Red" ErrorMessage="银行账号不能为空" ControlToValidate="XTextBox6" ValidationGroup="submit">银行账号不能为空</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ForeColor="Red" ErrorMessage="账户持有人不能为空" ControlToValidate="XTextBox16" ValidationGroup="submit">账户持有人不能为空</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ForeColor="Red" ErrorMessage="银行行号不能为空" ControlToValidate="XTextBox17" ValidationGroup="submit">银行行号不能为空</aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ForeColor="Red" DisableExpress='DF_Purchase_Payment.Isyqzl!="是"' Font-Names="Verdana" ErrorMessage="请选择付款银行卡号" ControlToValidate="XTextBox22" ValidationGroup="yqzl">请选择付款银行卡号</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" ForeColor="Red" DisableExpress='DF_Purchase_Payment.Isyqzl!="是"' ErrorMessage="支付密码不能为空" ControlToValidate="XTextBox24" ValidationGroup="yqzl">支付密码不能为空</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" DisableExpress='DF_Purchase_Payment.DelayedPaymentReason!="其他原因"' ErrorMessage="请填写原因" ControlToValidate="XTextBox29">请填写原因</aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator14" runat="server" DisableExpress="DF_Purchase_Payment.PaymentStyle=='支票' ||   (DF_Purchase_Payment.PaymentStyle=='电汇' &amp;&amp; DF_Purchase_Payment.Isyqzl=='是')" ErrorMessage="请上传付款底单！" ControlToValidate="XAttachments3" ValidationGroup="yqzl"></aspxform:XRequiredFieldValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator15" runat="server" DisableExpress="DF_Purchase_Payment.PaymentStyle=='支票' ||   (DF_Purchase_Payment.PaymentStyle=='电汇' &amp;&amp; DF_Purchase_Payment.Isyqzl=='是')" ErrorMessage="上传付款底单日期不能为空" ControlToValidate="XDateTimePicker4" ValidationGroup="yqzl"></aspxform:XRequiredFieldValidator>
        </p>
        <!--bottom-->
        <div style="TEXT-ALIGN: center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderWidth="1" BorderColor="#dcdcdc" Width="1200px"></aspxform:XSignTrace>
        </div>
    </form>
</body>
</html>
