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

    // Insert page code here
    //
    
    void XTextBox13_TextChanged(object sender, EventArgs e)
    {
    
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <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: 1px;
        }

            TD.NoPadding {
                PADDING-RIGHT: 0px;
                PADDING-LEFT: 0px;
                PADDING-BOTTOM: 0px;
                PADDING-TOP: 0px;
            }
        /*INPUT {height: 15px}*/
        INPUT.UL {
            BORDER-RIGHT: medium none;
            BORDER-TOP: medium none;
            BORDER-LEFT: medium none;
            BORDER-BOTTOM: #33ff33 1px solid;
        }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        input {
            vertical-align: middle; /*margin-right:-3px*/
        }
    </style>

    <script>

        function getXValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }

        function setXValue(id, value) {
            agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].setValue(value);
        }


        Ext.onReady(function () {
            XFormOnChange(agent.Eles[document.getElementById('PayableAmount').getAttribute("xform_xele_index")]); //可支付金额
        })

        //提交判断
        agent.on('beforeSubmit', function (action, actionname) {

            if (actionname == "提交") {

                //检查产品信息
                var tableObj = document.getElementById("PrdtTable");
                if (tableObj.rows.length == 3) {
                    alert("请先增加SAP-PO行项目信息！");
                    return false;
                }

                //检查产品未收票数量
                //ProductInfoOldNumber  ProductInfoNumber
                var tableObj = document.getElementById("PrdtTable");
                for (var i = 2; i < tableObj.rows.length - 1; i++) {

                    var OldNumber = (document.getElementsByName("ProductInfoOldNumber")[i - 2]).getElementsByTagName('input')[0].value;
                    var number = (document.getElementsByName("ProductInfoNumber")[i - 2]).getElementsByTagName('input')[0].value;

                    if (Number(number) > Number(OldNumber))
                    {
                        alert("本次收票数量不能大于可收票数量！");
                        return false;
                    }

                }


                //检查 差异金额容差(产品含税价-发票金额<10)
                /*
                var DifferenceAmount = getXValue('DifferenceAmount');
                if ((Number(10) + Number(moneyDelete(DifferenceAmount))) <= 0) {
                    alert("系统容差控制：产品含税总价合计－发票金额合计 < 10元，请重新确认产品及发票信息！");
                    return false;
                }
                */

                //预付信息
                if (checkyf() == false)
                    return false;

            }
        });

        //检查预付信息
        function checkyf() {
            var tableObj = document.getElementById("PrdtTable"); //产品信息
            var rv = new Array(); //PO记录到数组中
            var tableObj_yf = document.getElementById("tbale_yf");
            if (tableObj_yf.rows.length == 3) {
                //检查是否有预付信息
                for (var i = 2; i < tableObj.rows.length - 1; i++) {

                    var div_PO = document.getElementsByName("PO")[i - 2];
                    var PO = div_PO.getElementsByTagName('span')[0].innerText;

                    var div_POItemNo = document.getElementsByName("POItemNo")[i - 2];
                    var POItemNo = div_POItemNo.getElementsByTagName('span')[0].innerText;

                    //可支付金额
                    var div_PPayableAmount = document.getElementsByName("PPayableAmount")[i - 2];
                    var PPayableAmount = div_PPayableAmount.getElementsByTagName('span')[0].innerText;

                    //合同金额
                    var div_amount = document.getElementsByName("Pamount")[i - 2];
                    var amount = div_PPayableAmount.getElementsByTagName('span')[0].innerText;

                    var isAdd = true;
                    for (var j = 0; j < rv.length; j++) {
                        var _obj = rv[j];
                        if (PO == _obj.PO) {
                            isAdd = false;
                            break;
                        }
                    }

                    if (isAdd) {
                        var obj = {
                            PO: PO
                        };
                        rv.push(obj);
                    }
                }

                var msg = "";
                var url = YZSoft.$url('Oimec/ApiServices/SRMAPIHandler.ashx');
                var params = { method: 'POPayAdvanceInfo', data: JSON.stringify(rv) };
                YZSoft.Ajax.request({
                    async: false,
                    url: url,
                    method: 'POST',
                    params: params,
                    dataType: "json",
                    contentType: "application/json",
                    success: function (ac) {
                        var res = ac.responseText;
                        var data = eval('(' + res + ')');
                        if (data.length > 0)
                            msg = "本次申请存在预付，请先点击【检查预付】！";
                    }
                });

                if (msg != "") {
                    alert(msg);
                    return false;
                }
            }
            return true;
        }

        //付款计划-自动按期提交标识
        function onchange_aqtj() {
            var chk = document.getElementById("ext-152"); //XCheckBox4 控件ID

            var tableObj = document.getElementById("table_fkjh");
            if (chk.checked == true) //选中
            {
                for (var i = 0; i < tableObj.rows.length - 2; i++) {//遍历Table的所有Row //遍历Row中的每一列

                    //删除是否选中
                    var aDivNewPurchaseDetailXck = document.getElementsByClassName("IsDelete");//是否选中
                    var div = aDivNewPurchaseDetailXck[i];
                    var id = div.getElementsByTagName('input')[0].id;
                    var v = document.getElementById(id).checked;

                    //自动按期提交
                    var aDivIsConfirm = document.getElementsByClassName("IsConfirm");
                    var div_IsConfirm = aDivIsConfirm[i];
                    var id_IsConfirm = div_IsConfirm.getElementsByTagName('input')[0].id;
                    var v_IsConfirm = document.getElementById(id_IsConfirm).checked;

                    if (v == false && v_IsConfirm == false) {
                        document.getElementById(id_IsConfirm).checked = true;
                    }

                }
            }
            else {

                for (var i = 0; i < tableObj.rows.length - 2; i++) {//遍历Table的所有Row //遍历Row中的每一列

                    //自动按期提交
                    var aDivIsConfirm = document.getElementsByClassName("IsConfirm");
                    var div_IsConfirm = aDivIsConfirm[i];
                    var id_IsConfirm = div_IsConfirm.getElementsByTagName('input')[0].id;
                    var v_IsConfirm = document.getElementById(id_IsConfirm).checked;

                    document.getElementById(id_IsConfirm).checked = false;
                }
            }


        }


        //付款计划总金额(不包含删除行)
        function getPayTotalAmount(PayAmount, IsDelete) {
            var tableObj = document.getElementById("table_fkjh");
            var amount = 0;
            for (var i = 0; i < tableObj.rows.length - 2; i++) {//遍历Table的所有Row //遍历Row中的每一列

                //删除是否选中
                var aDivNewPurchaseDetailXck = document.getElementsByClassName("IsDelete");//是否选中
                var div = aDivNewPurchaseDetailXck[i];
                var id = div.getElementsByTagName('input')[0].id;
                var v = document.getElementById(id).checked;

                //付款金额
                var aDiv_PayAmount = document.getElementsByClassName("PaymentPlanPayAmount");
                var div_PayAmount = aDiv_PayAmount[i];
                var id_PayAmount = div_PayAmount.getElementsByTagName('input')[0].id;
                var v_PayAmount = document.getElementById(id_PayAmount).value;

                if (v == false)
                    amount += Number(moneyDelete(v_PayAmount));
            }

            return amount;

        }

        //去除金额分位符
        function moneyDelete(num) {
            if (num && num != undefined && num != null) {
                let _num = num;
                _num = _num.toString();
                _num = _num.replace(/,/gi, '');
                return _num
            } else {
                return num
            }
        }

        /*
        **付款计划—付款金额
        **参数：LineNumber行号，PayAmount付款金额，PayableAmount本次申请可支付金额
        */
        function PayPlanAmount(LineNumber, PayAmount, PayableAmount) {

            /*
            if (LineNumber == 1) {
                if (PayAmount != PayableAmount && PayAmount < PayableAmount && PayAmount > 0)
                    return PayAmount;
                else
                    return PayableAmount;
            }
            else { return PayAmount; }*/
            return PayAmount;

        }

        //获取PO相关信息
        function getPOInfo(amount) {

            var rv = new Array();
            var sum = 0;
            //遍历产品信息行
            var tableObj = document.getElementById("PrdtTable");
            for (var i = 2; i < tableObj.rows.length - 1; i++) {

                var div_PO = document.getElementsByName("PO")[i - 2];
                var PO = div_PO.getElementsByTagName('span')[0].innerText;

                var div_POItemNo = document.getElementsByName("POItemNo")[i - 2];
                var POItemNo = div_POItemNo.getElementsByTagName('span')[0].innerText;

                //合同金额
                var div_amount = document.getElementsByName("Pamount")[i - 2];
                var amount = div_amount.getElementsByTagName('span')[0].innerText;

                var isAdd = true;
                for (var j = 0; j < rv.length; j++) {
                    var _obj = rv[j];
                    if (PO == _obj.PO) {
                        isAdd = false;
                        break;
                    }
                }

                if (isAdd) {
                    var obj = {
                        PO: PO
                    };
                    rv.push(obj);
                    sum += parseFloat(amount);
                }
            }

            setXValue('ContractAmount', sum); //PO合同金额

        }

        //添加付款计划行
        function getPayPlanInfo(PayableAmount) {
            var tableObj = document.getElementById("table_fkjh");

            if (PayableAmount > 0) {
                if (tableObj.rows.length == 2) {
                    var table = agent.findGridFromTableName(null, 'DF_Purchase_PaymentPlan'); //获取table对象
                    if (table == undefined) return;
                    table.appendBlock(1);//重新添加行
                }
            }
            else {
                //可付款金额不大于0，则删除计划行
                if (tableObj.rows.length > 2) {
                    var table = agent.findGridFromTableName(null, 'DF_Purchase_PaymentPlan'); //获取table对象
                    if (table == undefined) return;
                    table.deleteBlocks(0, tableObj.rows.length - 2);
                }
            }

        }

    </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" BackColor="#8AB3DF" ValueToDisplayText XDataBind="DF_Purchase_APReconciliation.FormNo" Value Text="-系统自动生成-"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="21" colspan="4">
                        <asp:Label id="Label18" runat="server" text="标记*的为申请人必填项" forecolor="Red" font-bold="True"></asp:Label>
                        <aspxform:XTextBox id="TaskID" runat="server" XDataBind="DF_Purchase_APReconciliation.TaskID" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="false" width="23px" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" text="用户信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="54" height="19" class="ts">
                        <asp:Label id="XLabel5" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox18" runat="server" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" XDataBind="DF_Purchase_APReconciliation.AppAccount" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True" width="23px" DataMap="Department->DF_Purchase_APReconciliation.Department"></aspxform:XTextBox>
                    </td>
                    <td width="414" class="ts1">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.AppName" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True"></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" BackColor="#e6f1f8" XDataBind="DF_Purchase_APReconciliation.CreateDate" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="50%" CssClass="text" 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_APReconciliation.Department" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="5">
                        <asp:Label id="XLabel6" runat="server" text="付款基本信息"></asp:Label>&nbsp; 
                    </td>
                </tr>
                <tr>
                    <td width="128" height="24" class="tsbottomlabel">
                        <asp:Label id="Label2" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel41" runat="server" text="业务类型"></asp:Label></td>
                    <td width="456" class="tsbottomtext">
                        <aspxform:XDropDownList id="BusinessType" runat="server" XDataBind="DF_Purchase_APReconciliation.BusinessType" Height="25px" DisableExpress='Global.StepName!="采购岗填写后付对账申请"'>
                            <asp:ListItem Selected="True" Value="销售业务">销售业务</asp:ListItem>
                            <asp:ListItem Value="租赁业务">租赁业务</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="125" class="tsbottomlabel">
                        <asp:Label id="XLabel13" runat="server" text="公司代码"></asp:Label></td>
                    <td class="ts1" colspan="2">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" HiddenExpress="1" DataMap="Value->companyName;" Height="20px" DisplayColumn="Name" ValueColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"companycode1",Name->DF_Purchase_APReconciliation.CompanyCode'></aspxform:XDropDownList>
                        <aspxform:XTextBox id="CompanyCode" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.CompanyCode" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="30%" CssClass="CompanyCode" ReadOnly="True" name="CompanyCode"></aspxform:XTextBox>
                        <%--<aspxform:XTextBox id="XTextBox23" runat="server"  XDataBind="varcode" Value Width="87px" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" BorderColor="Gainsboro">companycode1</aspxform:XTextBox>--%>
                        <aspxform:XLabel id="XLabel11" runat="server" BackColor="#D4E4FE" XDataBind="companyName"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel">
                        <asp:Label id="XLabel10" runat="server" text="供应商SAPID"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="SupplierNo" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.SupplierNo" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel9" runat="server" text="采购币种" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox id="Currency" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.PurchaseCurrency" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label id="XLabel22" runat="server" text="供应商名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="SupplierName" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.SupplierName" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel26" runat="server" text="实际采购付款条件"></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox id="PayItems" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.PayItems" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel">
                        <asp:Label id="XLabel25" runat="server" text="合同金额"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="ContractAmount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.ContractAmount" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="220px" CssClass="text" ReadOnly="True" Height="25px" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;电子发票</td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_Purchase_APReconciliation.IsEInvoice" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel17" runat="server" text="情况备注"></asp:Label></td>
                    <td class="tsbottomtext" colspan="4">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_Purchase_APReconciliation.Remark" BorderColor="#DCDCDC" BorderWidth="1" Max="0" Min="0" HiddenInput="False" Width="100%" CssClass="text" Height="45px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" Display="None" ErrorMessage="请选择电子发票" ControlToValidate="XRadioButtonList4" ValidationGroup="submit" ForeColor="Red">请选择电子发票</aspxform:XRequiredFieldValidator>
        <div align="center" style="TEXT-ALIGN: center" runat="server">
            <div class="scrollDiv" id="idscrollDiv" style="HEIGHT: auto; BORDER-RIGHT: medium none; WIDTH: 1200px; BORDER-BOTTOM: medium none; MARGIN: 0px auto; MAX-HEIGHT: 600px" 
?>
                <table width="1200" align="center" class="scrolltable" id="PrdtTable" border="0" cellspacing="0" cellpadding="3" runat="server" emptygrid="KeepEmpty" dynamicarea="2,1" menudock="Left">
                    <tbody>
                        <tr 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">
                            <td class="scrollRowThead scrollCR" style="TEXT-ALIGN: left" colspan="10">
                                <asp:Label id="XLabel38" runat="server" text="产品信息" textalign="left"></asp:Label>&nbsp;<aspxform:XCheckBox id="XCheckBox3" runat="server" XDataBind="DF_Purchase_APReconciliation.IsGoods" Text="基于收货的发票校验" Width="158px" Checked="True"></aspxform:XCheckBox>
                                &nbsp; <%--基于收货的发票校验--%>
                                <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="增加SAP-PO行项目" XClass="Oimec.Dialogs.ProductInfo2APReconciliationButton" HiddenExpress="DF_Purchase_APReconciliation.IsGoods!='1'" DataMap="PurchaseContractNo->DF_Purchase_PaymentProductInfo.PurchaseContractNo;PO->DF_Purchase_PaymentProductInfo.PO;POItemNo->DF_Purchase_PaymentProductInfo.POItemNo;ProductName->DF_Purchase_PaymentProductInfo.ProductName;ProductModel->DF_Purchase_PaymentProductInfo.ProductModel;Number->DF_Purchase_PaymentProductInfo.OldNumber;UnitPriceNoTax->DF_Purchase_PaymentProductInfo.UnitPriceNoTax;UnitPriceTax->DF_Purchase_PaymentProductInfo.UnitPriceTax;TotalPriceTax->DF_Purchase_PaymentProductInfo.OldTotalPriceTax;TotalPriceNoTax->DF_Purchase_PaymentProductInfo.TotalPriceNoTax;Tax->DF_Purchase_PaymentProductInfo.TaxRate;IsGoods->DF_Purchase_PaymentProductInfo.IsGoods;Amount->DF_Purchase_PaymentProductInfo.Pamount;ReceivingVoucher->DF_Purchase_PaymentProductInfo.ReceiptVoucher" Width="121px" Height="25px" DisableExpress="Global.StepName!='采购岗填写后付对账申请'" AppendMode="Append" UseSubmitBehavior="False" Filter="BussinessType->DF_Purchase_APReconciliation.BusinessType"></aspxform:XCustomBrowserButton>
                                <%--直接根据PO的发票校验--%>
                                <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" Text="增加SAP-PO行项目" XClass="Oimec.Dialogs.ProductInfo2APReconciliationPOButton" HiddenExpress="DF_Purchase_APReconciliation.IsGoods=='1'" DataMap="PurchaseContractNo->DF_Purchase_PaymentProductInfo.PurchaseContractNo;PO->DF_Purchase_PaymentProductInfo.PO;POItemNo->DF_Purchase_PaymentProductInfo.POItemNo;ProductName->DF_Purchase_PaymentProductInfo.ProductName;ProductModel->DF_Purchase_PaymentProductInfo.ProductModel;Number->DF_Purchase_PaymentProductInfo.OldNumber;UnitPriceNoTax->DF_Purchase_PaymentProductInfo.UnitPriceNoTax;UnitPriceTax->DF_Purchase_PaymentProductInfo.UnitPriceTax;TotalPriceTax->DF_Purchase_PaymentProductInfo.OldTotalPriceTax;TotalPriceNoTax->DF_Purchase_PaymentProductInfo.TotalPriceNoTax;Tax->DF_Purchase_PaymentProductInfo.TaxRate;IsGoods->DF_Purchase_PaymentProductInfo.IsGoods;Amount->DF_Purchase_PaymentProductInfo.Pamount" Width="121px" Height="25px" DisableExpress="Global.StepName!='采购岗填写后付对账申请'" AppendMode="Append" UseSubmitBehavior="False" Filter="BussinessType->DF_Purchase_APReconciliation.BusinessType"></aspxform:XCustomBrowserButton>
                                <asp:Label id="Label16" runat="server" text="注意：多个PO里的供应商、采购币种、公司代码必须是同一个" forecolor="Red"></asp:Label></td>
                            <td hiddenexpress="DF_Purchase_APReconciliation.IsGoods!='1'">
                            </td>
                        </tr>
                        <tr>
                            <td class="tds" style="WIDTH: 50px">
                                序号</td>
                            <td class="tds" style="WIDTH: 100px">
                                采购合同号</td>
                            <td class="tds" style="WIDTH: 100px">
                                SAP-PO号</td>
                            <td class="tds" style="WIDTH: 100px">
                                SAP-PO行号</td>
                            <td class="tds" style="WIDTH: 150px">
                                产品型号</td>
                            <td class="tds" style="WIDTH: 150px">
                                产品名称</td>
                            <td class="tds" style="WIDTH: 100px">
                                本次收票数量</td>
                            <td class="tds" style="WIDTH: 100px">
                                不含税单价</td>
                            <td class="tds" style="WIDTH: 100px">
                                含税单价</td>
                            <td class="tds" style="WIDTH: 100px">
                                含税总价</td>
                            <td width="100" class="tds" hiddenexpress="DF_Purchase_APReconciliation.IsGoods!='1'">
                                收货凭证</td>
                        </tr>
                        <tr>
                            <td class="tds1">
                                <aspxform:XGridLineNo id="XGridLineNo3" runat="server" XDataBind="DF_Purchase_PaymentProductInfo.LineNumber" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                            </td>
                            <td class="tds1">
                                <aspxform:XLabel id="PurchaseContractNo" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.PurchaseContractNo" Height="25px"></aspxform:XLabel>
                                <aspxform:XLabel id="XLabel18" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.TaxRate" HiddenExpress="1" Height="25px"></aspxform:XLabel>
                                <aspxform:XLabel id="PPayableAmount" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.PayableAmount" HiddenExpress="1" Height="25px" name="PPayableAmount"></aspxform:XLabel>
                                <%--合同金额--%>
                                <aspxform:XLabel id="Pamount" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.Pamount" HiddenExpress="1" Height="25px" name="Pamount"></aspxform:XLabel>
                                <aspxform:XLabel id="IsGoods" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.IsGoods" HiddenExpress="1" Height="25px" name="IsGoods"></aspxform:XLabel>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XLabel id="PO" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.PO" Height="25px" name="PO"></aspxform:XLabel>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XLabel id="POItemNo" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.POItemNo" Height="25px" name="POItemNo"></aspxform:XLabel>
                            </td>
                            <td class="tds1">
                                <aspxform:XLabel id="XLabel15" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.ProductModel" Height="25px"></aspxform:XLabel>
                            </td>
                            <td class="tds1">
                                <aspxform:XLabel id="XLabel14" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.ProductName" Height="25px"></aspxform:XLabel>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="ProductInfoNumber" runat="server" XDataBind="DF_Purchase_PaymentProductInfo.Number" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="ProductInfoNumber" Height="25px" name="ProductInfoNumber" Format="type:currency;.2" TextAlign="Center" Express="DF_Purchase_PaymentProductInfo.OldNumber"></aspxform:XTextBox>
                                <aspxform:XTextBox id="ProductInfoOldNumber" runat="server" XDataBind="DF_Purchase_PaymentProductInfo.OldNumber" BorderColor="#DCDCDC" BorderWidth="1" width="100%" HiddenExpress="1" CssClass="ProductInfoOldNumber" Height="25px" name="ProductInfoOldNumber" Format="type:currency;.2" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox17" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_PaymentProductInfo.UnitPriceNoTax" BorderColor="#DCDCDC" BorderWidth="1" width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_PaymentProductInfo.UnitPriceTax/(1+DF_Purchase_PaymentProductInfo.TaxRate)"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox27" runat="server" XDataBind="DF_Purchase_PaymentProductInfo.TotalPriceNoTax" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" width="100%" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_PaymentProductInfo.UnitPriceNoTax*DF_Purchase_PaymentProductInfo.Number"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox21" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_PaymentProductInfo.UnitPriceTax" BorderColor="#DCDCDC" BorderWidth="1" width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="TotalPriceTax" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_PaymentProductInfo.TotalPriceTax" BorderColor="#DCDCDC" BorderWidth="1" width="100%" ReadOnly="True" Height="25px" name="TotalPriceTax" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_PaymentProductInfo.UnitPriceTax*DF_Purchase_PaymentProductInfo.Number"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_Purchase_PaymentProductInfo.OldTotalPriceTax" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1" hiddenexpress="DF_Purchase_APReconciliation.IsGoods!='1'">
                                <aspxform:XLabel id="XLabel16" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PaymentProductInfo.ReceiptVoucher" Height="25px"></aspxform:XLabel>
                            </td>
                        </tr>
                        <tr>
                            <td class="tds1" style="TEXT-ALIGN: right" colspan="9">
                                合计： 
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox24" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.PrdtTotalPrice" BorderColor="#DCDCDC" BorderWidth="1" width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="sum(DF_Purchase_PaymentProductInfo.TotalPriceTax)"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_Purchase_APReconciliation.OldPrdtTotalPrice" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="sum(DF_Purchase_PaymentProductInfo.OldTotalPriceTax)"></aspxform:XTextBox>
                                <aspxform:XTextBox id="poinfo" runat="server" HiddenInput="True" Express="javascript('getPOInfo',DF_Purchase_APReconciliation.PrdtTotalPrice)"></aspxform:XTextBox>
                            </td>
                            <td class="tds1" hiddenexpress="DF_Purchase_APReconciliation.IsGoods!='1'">
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <br />
        <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 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="XLabel24" runat="server" text="发票信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="49" height="34" align="center" class="tds">
                        <asp:Label id="XLabel43" runat="server" text="序号"></asp:Label></td>
                    <td width="526" align="center" class="tds">
                        <asp:Label id="Label5" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel79" runat="server" text="发票号"></asp:Label></td>
                    <td width="300" align="center" class="tds">
                        <asp:Label id="Label8" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel48" runat="server" text="金额"></asp:Label></td>
                    <td width="621" class="tds">
                        <asp:Label id="Label22" runat="server" text="电子发票附件"></asp:Label></td>
                    <td width="600" align="center" class="tds" style="BORDER-RIGHT: #93a1ae 2px solid; TEXT-ALIGN: center">
                        <asp:Label id="Label1" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td height="25" align="center" class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" XDataBind="DF_Purchase_PayInvoice.LineNumber" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="XTextBox319" runat="server" XDataBind="DF_Purchase_PayInvoice.InvoiceNo" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Width="100%" Height="25px" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td align="center" class="tds1" style="BORDER-TOP: medium none; BORDER-RIGHT: #93a1ae 1px solid; BORDER-BOTTOM: #b2bcc6 1px solid; BORDER-LEFT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_Purchase_PayInvoice.InvoiceAmonut" BorderColor="Gainsboro" BorderWidth="1px" Width="100%" Height="25px" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td width="621" class="tds1">
                        <aspxform:XAttachments id="EInvoiceAttachment" runat="server" XDataBind="DF_Purchase_PayInvoice.EInvoiceAttachment" Width="100%" DisableExpress="DF_Purchase_APReconciliation.IsEInvoice!='是'" FileTypesDescription="Word,Excel,Pdf" FileTypes="*.pdf;*.png;*.jpg;*.jpeg;*.gif"></aspxform:XAttachments>
                    </td>
                    <td width="417" class="tds1">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_Purchase_PayInvoice.Remark" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Width="100%" Height="25px" TextMode="MultiLine"></aspxform:XTextBox>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td class="tds1">
                    </td>
                    <td class="tds1" style="TEXT-ALIGN: right">
                        合计： 
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox14" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.InvoiceTotalAmonut" BorderColor="Gainsboro" BorderWidth="1px" Width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="sum(DF_Purchase_PayInvoice.InvoiceAmonut)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                    </td>
                    <td class="tds1">
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1196" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="118" height="25" class="tsbottomlabel">
                        差异金额(+/-)</td>
                    <td width="1078" class="tsbottomtext">
                        <aspxform:XTextBox id="DifferenceAmount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.DifferenceAmount" BorderColor="#DCDCDC" BorderWidth="1" width="100px" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_APReconciliation.InvoiceTotalAmonut-DF_Purchase_APReconciliation.PrdtTotalPrice"></aspxform:XTextBox>
                        (发票金额合计减含税总价合计)</td>
                </tr>
            </tbody>
        </table>
        <br />
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" Display="None" ErrorMessage="请填写发票号" ControlToValidate="XTextBox319" ValidationGroup="submit" ForeColor="Red">请填写发票号</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" Display="None" ErrorMessage="请填写发票金额" ControlToValidate="XTextBox10" ValidationGroup="submit" ForeColor="Red">请选择电子发票</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress="DF_Purchase_APReconciliation.IsEInvoice!='是'" Display="None" ErrorMessage="请上传电子发票附件" ControlToValidate="EInvoiceAttachment" ValidationGroup="submit" ForeColor="Red">请上传电子发票附件</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <br />
        <table width="1200" align="center" class="table" id="tbale_yf" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" dynamicarea="2,1">
            <tbody>
                <tr>
                    <td 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="Label19" runat="server" text="预付信息"></asp:Label>&nbsp; 
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Text="检查预付" XClass="Oimec.Dialogs.GetPOPayAdvanceInfo2APReconciliationButton" DataMap="PO->DF_Purchase_PayAdvance.PO;Amount->DF_Purchase_PayAdvance.Amount;OldAmount->DF_Purchase_PayAdvance.OldAmount" Width="64px" Height="25px" DisableExpress="Global.StepName!='采购岗填写后付对账申请'" UseSubmitBehavior="False"></aspxform:XCustomBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="tds">
                        <asp:Label id="Label20" runat="server" text="序号"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label21" runat="server" text="SAP-PO号"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label25" runat="server" text="可冲销预付金额"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label24" runat="server" text="本次冲销预付金额"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label23" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo4" runat="server" XDataBind="DF_Purchase_PayAdvance.LineNumber" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XLabel id="PayAdvancePO" runat="server" BackColor="#E9F1F4" XDataBind="DF_Purchase_PayAdvance.PO"></aspxform:XLabel>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="PayAdvanceOldAmount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_PayAdvance.OldAmount" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="true" Height="25px" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="PayAdvanceAmount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_PayAdvance.Amount" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="true" Height="25px" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_Purchase_PayAdvance.Remark" BorderColor="#DCDCDC" BorderWidth="1" width="100%" Height="25px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tds1">
                    </td>
                    <td align="right" class="tds1">
                        合计</td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox22" runat="server" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Width="100%" ReadOnly="true" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="sum(DF_Purchase_PayAdvance.OldAmount)"></aspxform:XTextBox>
                    </td>
                    <td align="center" class="tds1">
                        <aspxform:XTextBox id="AdvancePayment" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.AdvancePayment" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Width="100%" ReadOnly="true" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="sum(DF_Purchase_PayAdvance.Amount)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                    </td>
                </tr>
            </tbody>
        </table>
        <%--<aspxform:XCompareValidator id="XCompareValidator2" runat="server" Type="Double" ForeColor="Red" ValidationGroup="submit" ControlToValidate="PayAdvanceAmount" ErrorMessage="本次冲销预付金额不能大于可冲销预付金额" Display="None" ControlToCompare="PayAdvanceOldAmount" Operator="LessThanEqual">冲预付金额不能大于可冲预付金额</aspxform:XCompareValidator>--%>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="18" class="title1" colspan="5">
                        <asp:Label id="Label10" runat="server" text="付款计划"></asp:Label>
                        <aspxform:XTextBox id="XTextBox15" runat="server" HiddenInput="True" Express="javascript('getPayPlanInfo',DF_Purchase_APReconciliation.PayableAmount)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        本次申请可支付金额</td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="PayableAmount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.PayableAmount" Text="0.00" BorderColor="#d4e4fe" BorderWidth="0" width="35%" ReadOnly="true" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_APReconciliation.PrdtTotalPrice-DF_Purchase_APReconciliation.AdvancePayment"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label11" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<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_APReconciliation.PaymentStyle" Width="35%" Height="25px" ForeColor="Black" Font-Bold="True">
                            <asp:ListItem Selected="True">电汇(银企直联)</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="Label12" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<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_APReconciliation.IsStaffAdvance" Width="114px" DisableExpress='Global.StepName!="采购岗填写后付对账申请"' RepeatDirection="Horizontal" Font-Names="Verdana">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 25%">
                        <div hiddenexpress="DF_Purchase_APReconciliation.IsStaffAdvance!='是'">员工：<aspxform:XTextBox id="XTextBox5" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_Purchase_APReconciliation.StaffName" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Width="100px" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" DataMap="AttendanceKakaNO->DF_Purchase_APReconciliation.StaffAccount;Name->DF_Purchase_APReconciliation.StaffName" Width="21px" DisableExpress="Global.StepName!='采购岗填写后付对账申请'" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:State->'在职'" DisplayColumns="AttendanceKakaNO:员工账号;Name:姓名;Department:部门"></aspxform:XDataBrowserButton>
                            <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_Purchase_APReconciliation.StaffAccount" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true" Width="20px" ReadOnly="True"></aspxform:XTextBox>
                        </div>
                    </td>
                </tr>
                <tr hiddenexpress="DF_Purchase_APReconciliation.IsStaffAdvance=='是'">
                    <td height="24" class="tsbottomlabel">
                        <asp:Label id="Label6" runat="server" text="开户行"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="BankAccount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.BankAccount" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Text="选择" XClass="YZSoft.Forms.Field.DataBrowserButton" DataMap="BankAccount->DF_Purchase_APReconciliation.AccountNo;BankName->DF_Purchase_APReconciliation.BankAccount;BankNum->DF_Purchase_APReconciliation.BankNum;AccountOwner->DF_Purchase_APReconciliation.AccountOwner" Width="42px" Height="25px" DisableExpress="Global.StepName!='采购岗填写后付对账申请'" XDataSource="TableName:V_DF_Partner_SupplierBillInfo;Filter:PartnerSAPID->DF_Purchase_APReconciliation.SupplierNo" UseSubmitBehavior="False" DisplayColumns="BankAccount:银行账号;BankName:开户行;BankNum:银行行号;AccountOwner:账户持有人" PopupWndWidth="-1" PopupWndHeight="-1"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label3" runat="server" text="银行账号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox id="AccountNo" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.AccountNo" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress="DF_Purchase_APReconciliation.IsStaffAdvance=='是'">
                    <td height="20" class="tsbottomlabel">
                        <asp:Label id="Label7" runat="server" text="账户持有人"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="AccountOwner" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.AccountOwner" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Width="70%" CssClass="text" ReadOnly="True" Height="25px" Express="DF_Purchase_APReconciliation.SupplierName"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label9" runat="server" text="银行行号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox id="BankNum" runat="server" XDataBind="DF_Purchase_APReconciliation.BankNum" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" CssClass="text" Height="25px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="5">
                        <table width="1200" align="center" class="table" id="table_fkjh" style="BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" dynamicarea="1,1" menudock="Left">
                            <tbody>
                                <tr>
                                    <td height="18" align="center" class="tds" style="WIDTH: 50px">
                                        序号</td>
                                    <td align="center" class="tds" style="WIDTH: 50px">
                                        删除</td>
                                    <td align="center" class="tds" style="WIDTH: 140px" onchange="onchange_aqtj()">
                                        <aspxform:XCheckBox id="XCheckBox4" runat="server" Width="20px" DisableExpress="Global.StepName!='采购岗填写后付对账申请'"></aspxform:XCheckBox>
                                        可按期自动提交</td>
                                    <td align="center" class="tds" style="WIDTH: 150px">
                                        <asp:Label id="Label13" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;计划提交财务日期</td>
                                    <td align="center" class="tds" style="WIDTH: 80px">
                                        <asp:Label id="Label14" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;付款金额</td>
                                    <td align="center" class="tds" style="WIDTH: 150px">
                                        <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;期望财务付款日期</td>
                                    <td align="center" class="tds" style="WIDTH: 150px">
                                        银行付款摘要</td>
                                    <td align="center" class="tds" style="WIDTH: 150px">
                                        付款备注</td>
                                    <%--   <td align="center" class="tds" style="WIDTH: 100px">
                                        后付处理单号</td>--%>
                                </tr>
                                <tr>
                                    <td class="tds1">
                                        <aspxform:XGridLineNo id="XGridLineNo2" runat="server" XDataBind="DF_Purchase_PaymentPlan.LineNumber" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                                    </td>
                                    <td align="center" class="tds1">
                                        <aspxform:XCheckBox id="IsDelete" runat="server" XDataBind="DF_Purchase_PaymentPlan.IsDelete" Width="48px" CssClass="IsDelete" DisableExpress="DF_Purchase_PaymentPlan.IsPay==1 || Global.StepName!='采购岗填写后付对账申请'" name="IsDelete"></aspxform:XCheckBox>
                                        <aspxform:XLabel id="XLabel19" runat="server" XDataBind="DF_Purchase_PaymentPlan.IsPay" HiddenExpress="1"></aspxform:XLabel>
                                        <%--<aspxform:XLabel id="XLabel11" runat="server" XDataBind="DF_Purchase_PaymentPlan.ItemID" HiddenExpress="1"></aspxform:XLabel>--%></td>
                                    <td align="center" class="tds1">
                                        <aspxform:XCheckBox id="IsConfirm" runat="server" XDataBind="DF_Purchase_PaymentPlan.IsConfirm" CssClass="IsConfirm" DisableExpress="DF_Purchase_PaymentPlan.IsPay==1 || DF_Purchase_PaymentPlan.IsDelete==1  || Global.StepName!='采购岗填写后付对账申请'" name="IsConfirm" Express="if(DF_Purchase_PaymentPlan.IsDelete=='1',0,DF_Purchase_PaymentPlan.IsConfirm)"></aspxform:XCheckBox>
                                    </td>
                                    <td align="center" class="tds1">
                                        <aspxform:XDateTimePicker id="PlanSubdDate" runat="server" XDataBind="DF_Purchase_PaymentPlan.PlanSubdDate" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px"></aspxform:XDateTimePicker>
                                    </td>
                                    <td class="tds1">
                                        <aspxform:XTextBox id="PaymentPlanPayAmount" runat="server" XDataBind="DF_Purchase_PaymentPlan.PayAmount" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" CssClass="PaymentPlanPayAmount" Height="25px" name="PaymentPlanPayAmount" Format="type:currency;.2" TextAlign="Right" Express="javascript('PayPlanAmount',DF_Purchase_PaymentPlan.LineNumber,DF_Purchase_PaymentPlan.PayAmount,DF_Purchase_APReconciliation.PayableAmount)"></aspxform:XTextBox>
                                    </td>
                                    <td class="tds1">
                                        <aspxform:XDateTimePicker id="ExpectedPaymentDate" runat="server" XDataBind="DF_Purchase_PaymentPlan.ExpectedPaymentDate" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px"></aspxform:XDateTimePicker>
                                    </td>
                                    <td class="tds1">
                                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_Purchase_PaymentPlan.PayAbstract" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" TextMode="MultiLine"></aspxform:XTextBox>
                                    </td>
                                    <td class="tds1">
                                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_Purchase_PaymentPlan.PayRemark" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" TextMode="MultiLine" OnTextChanged="XTextBox13_TextChanged"></aspxform:XTextBox>
                                    </td>
                                    <%--   <td align="center" class="tds1">
                                        <aspxform:XHistoryFormLink id="XHistoryFormLink1" runat="server" BackColor="#E9F1F4" XDataBind="hfcldh" EmptyText="尚未关联">#SerialNum</aspxform:XHistoryFormLink>
                                        <aspxform:XDropDownList id="XDropDownList1" runat="server" DataMap="TaskID->hfcldh" XDataSource="TableName:DF_Purchase_Payment;Filter:PlanItemID->DF_Purchase_PaymentPlan.ItemID" HiddenExpress="1"></aspxform:XDropDownList>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="tds1" style="TEXT-ALIGN: right" colspan="4">
                                        合计： 
                                    </td>
                                    <td class="tds1">
                                        <%--<aspxform:XTextBox id="PayToatlAmount" runat="server" XDataBind="DF_Purchase_APReconciliation.PayToatlAmount" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="sum(DF_Purchase_PaymentPlan.PayAmount)"></aspxform:XTextBox>--%>
                                        <aspxform:XTextBox id="PayToatlAmount" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.PayToatlAmount" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="javascript('getPayTotalAmount',DF_Purchase_PaymentPlan.PayAmount,DF_Purchase_PaymentPlan.IsDelete)"></aspxform:XTextBox>
                                    </td>
                                    <td class="tds1" colspan="5">
                                        <aspxform:XTextBox id="ceAmount" runat="server" BackColor="#E6F1F8" XDataBind="ceAmount" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Width="100px" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_APReconciliation.PayableAmount+10"></aspxform:XTextBox>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="24" align="left" class="tsbottomlabel" style="WIDTH: 200px">
                        差异金额(+/-)</td>
                    <td width="530" class="tsbottomtext" style="WIDTH: 1000px">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BackColor="#E6F1F8" XDataBind="DF_Purchase_APReconciliation.DifferencePayAmount" BorderColor="#DCDCDC" BorderWidth="1" width="100px" ReadOnly="True" Height="25px" Format="type:currency;.2" TextAlign="Right" Express="DF_Purchase_APReconciliation.PayToatlAmount-DF_Purchase_APReconciliation.PayableAmount"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="tsbottomlabel">
                        有差异原因</td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_Purchase_APReconciliation.DifferenceReason" BorderColor="#DCDCDC" BorderWidth="1" width="100%" Height="25px"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" Display="None" ErrorMessage="请选择支付方式" ControlToValidate="XDropDownList2" ValidationGroup="submit" ForeColor="Red">请选择支付方式</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" Display="None" ErrorMessage="请选择是否员工垫付" ControlToValidate="XRadioButtonList3" ValidationGroup="submit" ForeColor="Red">请选择是否员工垫付</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress='DF_Purchase_APReconciliation.IsStaffAdvance!="是"' Display="None" ErrorMessage="请选择员工" ControlToValidate="XTextBox5" ValidationGroup="submit" ForeColor="Red">请选择员工</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" DisableExpress='DF_Purchase_APReconciliation.IsStaffAdvance=="是"' Display="None" ErrorMessage="开户行不完整" ControlToValidate="BankAccount" ValidationGroup="submit" ForeColor="Red">开户行不完整</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator14" runat="server" DisableExpress='DF_Purchase_APReconciliation.IsStaffAdvance=="是"' Display="None" ErrorMessage="银行账号不完整" ControlToValidate="AccountNo" ValidationGroup="submit" ForeColor="Red">银行账号不完整</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator15" runat="server" DisableExpress='DF_Purchase_APReconciliation.IsStaffAdvance=="是"' Display="None" ErrorMessage="账户持有人不完整" ControlToValidate="AccountOwner" ValidationGroup="submit" ForeColor="Red">账户持有人不完整</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" DisableExpress='DF_Purchase_APReconciliation.IsStaffAdvance=="是"' Display="None" ErrorMessage="请填写银行行号" ControlToValidate="BankNum" ValidationGroup="submit" ForeColor="Red">请填写银行行号</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%--<aspxform:XCompareValidator id="XCompareValidator2" runat="server" Type="Double" DisableExpress="DF_Purchase_PaymentPlan.PayAmount==poPayAmount || DF_Purchase_PaymentPlan.IsDelete==1" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox9" ErrorMessage="付款金额和PO金额必须相等" Display="None" ControlToCompare="XTextBox28">付款金额和PO金额必须相等</aspxform:XCompareValidator>--%> 
        <aspxform:XCompareValidator id="XCompareValidator2" runat="server" Type="Double" Display="None" ErrorMessage="系统控制：付款计划里付款金额∑ - 本次申请可支付金额＜10元，请修改付款金额" ControlToValidate="PayToatlAmount" ValidationGroup="submit" ForeColor="Red" Operator="LessThan" ControlToCompare="ceAmount">系统控制：付款计划里付款金额∑ - 本次申请可支付金额＜10元，请修改付款金额</aspxform:XCompareValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" DisableExpress="DF_Purchase_APReconciliation.DifferencePayAmount==0 &amp;&amp; DF_Purchase_APReconciliation.DifferenceAmount==0" Display="None" ErrorMessage="请填写有差异原因" ControlToValidate="XTextBox16" ValidationGroup="submit" ForeColor="Red">请填写有差异原因</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" DisableExpress="DF_Purchase_PaymentPlan.IsDelete==1" Display="None" ErrorMessage="请选择计划提交财务日期" ControlToValidate="PlanSubdDate" ValidationGroup="submit" ForeColor="Red">请选择计划提交财务日期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" DisableExpress="DF_Purchase_PaymentPlan.IsDelete==1" Display="None" ErrorMessage="请填写付款金额" ControlToValidate="PaymentPlanPayAmount" ValidationGroup="submit" ForeColor="Red">请填写付款金额</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" DisableExpress="DF_Purchase_PaymentPlan.IsDelete==1" Display="None" ErrorMessage="请选择期望财务付款日期" ControlToValidate="ExpectedPaymentDate" ValidationGroup="submit" ForeColor="Red">请选择期望财务付款日期</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" DisableExpress="DF_Purchase_PaymentPlan.IsDelete==1" Display="None" ErrorMessage="期望财务付款日期不能早于计划提交财务日期" ControlToValidate="ExpectedPaymentDate" ValidationGroup="submit" ForeColor="Red" Operator="GreaterThanEqual" ControlToCompare="PlanSubdDate">期望财务付款日期不能早于计划提交财务日期</aspxform:XCompareValidator>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td height="14" class="td1">
                        <asp:Label id="XLabel27" runat="server" text="上传采购合同" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1" style="HEIGHT: 20px">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_Purchase_APReconciliation.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 height="14" class="td1">
                        <asp:Label id="XLabel28" 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_APReconciliation.PaymentDetailsAtta" width="100%" FileTypes="*.gif;*.jpeg;*.jpg;*.png;*.doc;*.pdf;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
