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

    // Insert page code here
    //
    private readonly string account = YZAuthHelper.LoginUserAccount;
    protected void Page_Load(object sender, EventArgs e)
    {
        this.XTextBox93.Text = account;
    }

</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;
        }

        .yz-textbox {
            display: inline;
        }

        #td1 {
            border-right: #b2bcc6 1px solid;
        }
    </style>
    <script src="../../../../Oimec/Script/jquery-3.2.1.js"></script>
    <script src="../../../../Oimec/Script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">

        //获取开票信息
        function GetInfo() {
            var formType = "C";
            var formNum = agent.Eles[document.getElementById("XTextBox31").getAttribute("xform_xele_index")].getValue();
            if (formNum == '') {
                Ext.Msg.alert("提示", "请输入SO号！");
                return false;
            }
            var selectvalue = "";

            YZSoft.Ajax.request({
                async: false,
                url: YZSoft.$url('Oimec/ApiServices/FICOAPIHandler.ashx'),
                params: {
                    method: 'GetInvoiceInfoToZANGU',
                    FormType: formType,
                    FormNum: formNum,
                    outFormat: selectvalue
                },
                success: function (action) {
                    var result = action.result;
                    var data = action.result.Value;
                    var count = data.TotalRows;
                    if (count > 0) {
                        var info = data.headInfo;
                        agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].setValue(info.payerName);
                        agent.Eles[document.getElementById("XTextBox27").getAttribute("xform_xele_index")].setValue(info.payerTaxNum);
                        agent.Eles[document.getElementById("XTextBox28").getAttribute("xform_xele_index")].setValue(info.payerAddr);
                        agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].setValue(info.payerBank);
                        agent.Eles[document.getElementById("XTextBox55").getAttribute("xform_xele_index")].setValue(info.payerLevel);
                        agent.Eles[document.getElementById("XTextBox54").getAttribute("xform_xele_index")].setValue(info.payerSAPID);
                        agent.Eles[document.getElementById("XTextBox95").getAttribute("xform_xele_index")].setValue(info.payerCompanyName);
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox54").getAttribute("xform_xele_index")]);

                    }
                },
                failure: function (response) {
                }
            })
        }



        //根据金额(含税)计算
        function GetNum(UpTotalSalesPrice, LineNumber) {

            var table = document.getElementById("changetbl");
            var i = LineNumber + 1;
            var UnitPrice = agent.Eles[table.rows[i].cells[11].children[0].getAttribute("xform_xele_index")].getValue();
            var NTUnitPrice = agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].getValue();
            var TaxRate = agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].getValue();
            var Number = (UnitPrice == "0.00") ? "0.00" : UpTotalSalesPrice / UnitPrice;
            var Tax = UpTotalSalesPrice / (1 + TaxRate / 100) * TaxRate / 100;
            agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].setValue(Number); //数量
            agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue(NTUnitPrice * Number); //金额(不含税)
            agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].setValue(NTUnitPrice); //单价(不含税)
            agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")].setValue(Tax); //税额
            XFormOnChange(agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")]);
        }

        //根据数量计算 
        function GetTotalAmount(Number, LineNumber) {
            var table = document.getElementById("changetbl");//获取table对象
            var i = LineNumber + 1;

            var UnitPrice = agent.Eles[table.rows[i].cells[11].children[0].getAttribute("xform_xele_index")].getValue(); //单价(含税)
            //var NTUnitPrice = agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].getValue();//单价(不含税)
            var TaxRate = agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].getValue();//税率
            var UpTotalSalesPrice = Number * UnitPrice; //含税金额
            var Tax = UpTotalSalesPrice / (1 + TaxRate / 100) * TaxRate / 100;  //税额
            //var NTUnitPrice = UpTotalSalesPrice / Number / (1 + TaxRate / 100);
            var NTUnitPrice = (Number == "0.00") ? "0.00" : UpTotalSalesPrice / Number / (1 + TaxRate / 100);
            var NTTotalSalesPrice = NTUnitPrice * Number;

            //agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].setValue(NTUnitPrice); //单价(不含税)
            agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue(NTTotalSalesPrice); //金额(不含税)
            agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")].setValue(Tax); //税额
            agent.Eles[table.rows[i].cells[12].children[1].getAttribute("xform_xele_index")].setValue(UpTotalSalesPrice); //金额(含税)
            //alert(UpTotalSalesPrice);
            XFormOnChange(agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[table.rows[i].cells[12].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[document.getElementById("XTextBox92").getAttribute("xform_xele_index")]); //总金额(含税)
            //XFormOnChange(agent.Eles[table.rows[i].cells[12].children[0].getAttribute("xform_xele_index")]);
        }

        //根据含税单价计算
        function GetTotalAmount1(UnitPrice, LineNumber) {
            var table = document.getElementById("changetbl");//获取table对象
            var i = LineNumber + 1;

            var Number = agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].getValue(); //数量
            var TaxRate = agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].getValue();
            var UpTotalSalesPrice = Number * UnitPrice; //含税金额
            var Tax = UpTotalSalesPrice / (1 + TaxRate / 100) * TaxRate / 100;
            var NTUnitPrice = UnitPrice / (1 + TaxRate / 100); //不含税单价 (公式：含税单价=不含税单价*适用税率(1+17%或13%))
            var NTTotalSalesPrice = NTUnitPrice * Number;

            agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].setValue(NTUnitPrice);  //单价(不含税)
            agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue(NTTotalSalesPrice); //金额(不含税)
            agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")].setValue(Tax); //税额
            agent.Eles[table.rows[i].cells[12].children[1].getAttribute("xform_xele_index")].setValue(UpTotalSalesPrice); //金额(含税)

            XFormOnChange(agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[table.rows[i].cells[12].children[0].getAttribute("xform_xele_index")]);
            XFormOnChange(agent.Eles[document.getElementById("XTextBox92").getAttribute("xform_xele_index")]); //总金额(含税)

        }

        function getSendType(IsSpecial) {
            if (IsSpecial == "是") {
                $("#ext-element-104 option[value='邮寄客户']").remove();  //删除Select中Value='3'的Option
            }
            else if (IsSpecial == "否") { $("#ext-element-104").append("<option value='邮寄客户'>邮寄客户</option>"); }
        }

        //页面加载时触发事件
        Ext.onReady(function () {
            //当流程状态
            var ZhuangTai = agent.Eles[document.getElementById("XTextBox96").getAttribute("xform_xele_index")].getValue();

            if (ZhuangTai == "1000公司税务发票岗开纸质发票&检查SAP暂估凭证" || ZhuangTai == "1001公司税务发票岗开纸质发票&检查SAP暂估凭证" || ZhuangTai == "1002公司税务发票岗开纸质发票&检查SAP暂估凭证" || ZhuangTai == "5000公司税务发票岗开纸质发票&检查SAP暂估凭证") {
                var chk = document.getElementsByName("XCheckBox3");
                if (chk.checked == false) //需更改发票明细未选中 检查发票明细是否含有 质保金 字样
                {
                    var table = document.getElementById("tab_Detail");//获取原发票明细table对象
                    for (var i = 2; i < table.rows.length - 1; i++) {    //遍历Table的所有Row
                        var GoodsName = agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                        var GoodsModel = agent.Eles[table.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();
                        //货物名称 货物型号
                        if (GoodsName != "") {
                            if (GoodsName.indexOf("质保金") != -1) {
                                Ext.Msg.alert("提示", "注意有“质保金”字样！");
                            }
                        }
                        if (GoodsModel != "") {
                            if (GoodsName.indexOf("质保金") != -1) {
                                Ext.Msg.alert("提示", "注意有“质保金”字样！");
                            }
                        }
                        var price = agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].getValue();
                        if (price < 0) {
                            Ext.Msg.alert("提示", "注意发票明细有折扣！");
                        }
                    }
                }
                else {
                    var table = document.getElementById("changetbl");//获取更改后发票明细table对象
                    for (var i = 2; i < table.rows.length - 1; i++) {    //遍历Table的所有Row
                        var GoodsName = agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();
                        var GoodsModel = agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                        //货物名称 货物型号
                        if (GoodsName != "") {
                            if (GoodsName.indexOf("质保金") != -1) {
                                Ext.Msg.alert("提示", "注意有“质保金”字样！");
                            }
                        }
                        if (GoodsModel != "") {
                            if (GoodsName.indexOf("质保金") != -1) {
                                Ext.Msg.alert("提示", "注意有“质保金”字样！");
                            }
                        }
                        var price = agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].getValue();
                        if (price < 0) {
                            Ext.Msg.alert("提示", "注意发票明细有折扣！");
                        }
                    }
                }
            }
        });

        //检查发票推送信息
        function checkInvoicePushInfo() {
            var pushEmail = agent.Eles[document.getElementById("pushEmail").getAttribute("xform_xele_index")].getValue();
            var pushPhone = agent.Eles[document.getElementById("pushPhone").getAttribute("xform_xele_index")].getValue();
            if (pushEmail.length == 0 && pushPhone.length == 0) {
                Ext.Msg.alert("提示", "请填写电子发票推送邮箱或手机号！");
                return false;
            }

            if (pushEmail.length > 0) {
                //检查邮箱格式
                reg = /^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/gi;
                if (!reg.test(pushEmail)) {
                    Ext.Msg.alert("提示", "电子发票推送邮箱格式不正确！");
                    return false;
                }
            }

            if (pushPhone.length > 0) {
                //检查电话号格式
                pushPhone = pushPhone.trim();
                if (pushPhone.length > 0 && pushPhone.length != 11) {
                    Ext.Msg.alert("提示", "电子发票推送手机号必须是11位！");
                    return false;
                }
            }
            return true;
        }

        //获取付款信息
        function getFKInfo(InvoiceType, payerSAPID, value) {
            var ZhuangTai = agent.Eles[document.getElementById("XTextBox96").getAttribute("xform_xele_index")].getValue();

            if (ZhuangTai == "申请人发起暂估申请") {
                if (payerSAPID.indexOf("1036401") != -1) //一次性客户
                {
                    if (InvoiceType == "02增值税普通发票") {
                        return null;
                    }
                }
            }
            return value;
        }


        //付款信息失效表达式
        function FKInfoDisable(InvoiceType, payerName) {

            var ZhuangTai = agent.Eles[document.getElementById("XTextBox96").getAttribute("xform_xele_index")].getValue();
            if (ZhuangTai == "申请人发起暂估申请") {
                if (payerName.indexOf("1036401") != -1) //一次性客户
                {
                    if (InvoiceType == "02增值税普通发票") {
                        return false;
                    }
                }
            }
            return true;
        }

        //表单提交时
        agent.on('beforeSubmit', function (actname1, actname) {
            //当流程状态
            var ZhuangTai = agent.Eles[document.getElementById("XTextBox96").getAttribute("xform_xele_index")].getValue();

            if (ZhuangTai == "1000公司税务发票岗开纸质发票&检查SAP暂估凭证" && actname == "确认") {
                var r = $("input[name='XRadioButtonList3']:checked").val();
                if (r == "02增值税普通发票") {
                    var vres = InvoiceOpenAndGenerate();
                    if (!vres)
                        return false;
                }
            }

            var rb = $("input[name='XRadioButtonList3']:checked").val();


            //"申请人发起暂估申请"节点
            if (ZhuangTai == "申请人发起暂估申请" && actname == "提交") {


                //一次性客户控制
                var payerSAPID = agent.Eles[document.getElementById("XTextBox54").getAttribute("xform_xele_index")].getValue(); //付款方SAPID
                if (payerSAPID.indexOf("1036401") != -1) //一次性客户
                {
                    if (rb == "01增值税专用发票") {
                        Ext.Msg.alert("提示", "公司财务规定：一次性客户不能开具增值税专用发票，请申请SAP客户主数据。");
                        return false;
                    }
                }


                var appaccount = agent.Eles[document.getElementById("XTextBox154").getAttribute("xform_xele_index")].getValue();
                var salesid = agent.Eles[document.getElementById("XTextBox35").getAttribute("xform_xele_index")].getValue();
                //申请人是业务员且发票类型为增值税普通发票时推送信息必填验证
                if (rb == "02增值税普通发票" && appaccount == salesid) {
                    var res_push = checkInvoicePushInfo();
                    if (!res_push) return false;
                }



                //发票类型为"增值税专用发票"时，判断付款方税号是否是18位
                if (rb == "01增值税专用发票") {
                    var SH = agent.Eles[document.getElementById("XTextBox27").getAttribute("xform_xele_index")].getValue();
                    if (SH.length > 0 && SH.length != 18) {
                        Ext.Msg.alert("提示", "付款方税号必须为18位！");
                        return false;
                    }
                }

                //检查原发票明细信息里的税率，必须一样才能提交，若不一样则提示：同一申请单所有行项目的税率必须相同！
                var table = document.getElementById("tab_Detail");//获取原发票明细table对象
                var TaxRate;
                for (var i = 2; i < table.rows.length - 1; i++) {    //遍历Table的所有Row
                    var rate = agent.Eles[table.rows[i].cells[10].children[0].getAttribute("xform_xele_index")].getValue();
                    if (i == 2) { TaxRate = rate; }
                    if (TaxRate != rate) {
                        Ext.Msg.alert("提示", "同一申请单所有行项目的税率必须相同！");
                        return false;
                    }
                }

                //交货单号、SO号是否重复
                var HKDeliveryNo = agent.Eles[document.getElementById("XTextBox71").getAttribute("xform_xele_index")].getValue(); //合开交货单号
                var HKSO = agent.Eles[document.getElementById("XTextBox72").getAttribute("xform_xele_index")].getValue();

                //判断交货单号是否有重复
                if (HKDeliveryNo != "") {
                    var str = HKDeliveryNo;
                    var arr = new Array(); //定义一数组
                    arr = str.split("/"); //字符分割
                    var hash = {};
                    for (var i in arr) {
                        if (hash[arr[i]]) //hash 哈希
                        {
                            Ext.Msg.alert("提示", "合开SAP交货单号有重复,请检查数据！");
                            return false;
                        }
                        hash[arr[i]] = true;
                    }
                }

                //判断合开SAP-SO号是否有重复
                if (HKSO != "") {
                    var str = HKSO;
                    var arr = new Array(); //定义一数组
                    arr = str.split("/"); //字符分割
                    var hash = {};
                    for (var i in arr) {
                        if (hash[arr[i]]) //hash 哈希
                        {
                            Ext.Msg.alert("提示", "合开SAP-SO号有重复,请检查数据！");
                            return false;
                        }
                        hash[arr[i]] = true;
                    }
                }


            }


            //“业务员确认开票信息”节点
            if (ZhuangTai == "业务员确认开票信息" && actname == "确认开票信息") {

                //"有发票邮寄特殊要求" 选择是，则 寄票方式不能选择 "邮寄客户"
                var res = $("input[name='XRadioButtonList1']:checked").val();
                var InvoiceSendType = agent.Eles[document.getElementById("XDropDownList4").getAttribute("xform_xele_index")].getValue();
                if (res == "是" && InvoiceSendType == "邮寄客户") {
                    Ext.Msg.alert("提示", "有发票邮寄特殊要求选择是，寄票方式不能选择邮寄客户");
                    return false;
                }


                //手机号和电话是二选一必填，若手机号不为空，则判断是否是11位
                var InvoiceSendType = agent.Eles[document.getElementById("XDropDownList4").getAttribute("xform_xele_index")].getValue();
                var mobile = agent.Eles[document.getElementById("XTextBox58").getAttribute("xform_xele_index")].getValue();//手机
                if (InvoiceSendType == "邮寄客户" || InvoiceSendType == "邮寄分支机构") {
                    if (mobile.length > 0 && mobile.length != 11) {
                        Ext.Msg.alert("提示", "手机号必须是11位！");
                        return false;
                    }
                }

                if (rb == "02增值税普通发票") {
                    var res_push = checkInvoicePushInfo();
                    if (!res_push) return false;
                }

            }

        });
    </script>
    <script type="text/javascript">
        //打印快递单
        function Print_Waybill() {
            //参数：收方公司名称、收方联系人、电话、手机、地址、邮编
            var obj_param = {};
            obj_param["d_company"] = agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].getValue();
            obj_param["d_contact"] = agent.Eles[document.getElementById("XTextBox4").getAttribute("xform_xele_index")].getValue();
            obj_param["d_address"] = agent.Eles[document.getElementById("XTextBox59").getAttribute("xform_xele_index")].getValue();
            obj_param["d_tel"] = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();
            if (checkPhone(agent.Eles[document.getElementById("XTextBox58").getAttribute("xform_xele_index")].getValue())) {
                obj_param["d_mobile"] = agent.Eles[document.getElementById("XTextBox58").getAttribute("xform_xele_index")].getValue();
            }
            else
                obj_param["d_mobile"] = "";
            obj_param["logistics"] = "1";//1顺丰 2跨越
            obj_param["printType"] = "02";//2 两联单；3三联单
            obj_param["j_province"] = "";
            obj_param["j_city"] = "";
            obj_param["d_province"] = "";
            obj_param["d_city"] = "";

            //签回单:1要求 其它为不要求
            obj_param["need_return_tracking_no"] = "";

            //备注信息
            obj_param["remark"] = "发票;" + agent.Eles[document.getElementById("InvoiceRemarks").getAttribute("xform_xele_index")].getValue();

            //包裹数
            obj_param["PackNumber"] = "1";

            //月结类型：财务，物流
            obj_param["YJType"] = "财务";
            //运单打印
            WaybillOrder(obj_param);
        }
        function checkPhone(phone) {
            phone = phone.trim();
            if (!(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/.test(phone))) {
                //alert("手机号码有误，请重填");
                return false;
            }
            else
                return true;
        }
        //生成金税文本
        function GenerateTXT() {

            //任务号TASKID
            var tid = agent.Eles[document.getElementById("xtxt_taskid").getAttribute("xform_xele_index")].getValue();

            var url = YZSoft.$url('Oimec/ApiServices/FICOAPIHandler.ashx');
            YZSoft.src.ux.File.download(url, {
                method: 'GenerateTXT',
                tid: tid
            });

        }

        //发票开具&生成
        function InvoiceOpenAndGenerate() {

            var res = true;
            var tid = agent.Eles[document.getElementById("xtxt_taskid").getAttribute("xform_xele_index")].getValue();// 任务编号

           
            var url = YZSoft.$url('Oimec/ApiServices/FICOAPIHandler.ashx');

            //1000公司 增值税发票打印过则提示
            var companyCode = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
          
            var r = $("input[name='XRadioButtonList3']:checked").val();
          
            var FormNo = agent.Eles[document.getElementById("XLabel3").getAttribute("xform_xele_index")].getValue();
             
            if (companyCode == "1000" && r == "01增值税专用发票") {
                YZSoft.Ajax.request({
                    async: false,
                    url: url,
                    params: {
                        method: 'CheckIsInvouceOpen',
                        formNo: FormNo
                    },
                    success: function (action) {
                        var result = action.result;
                        if (result > 0)
                        { alert("已经打印过发票！"); res = false; }
                    },
                    failure: function (response) {

                    }
                });
            }

            if (res != false) {
                YZSoft.Ajax.request({
                    async: false,
                    url: url,
                    params: {
                        method: 'InvoiceOpenAndGenerate',
                        tid: tid
                    },
                    //waitMsg: { msg: '正在处理...' },
                    success: function (action) {
                        var result = action.result;
                        if (result != null) {
                            if (result.Code == 1) {
                                alert(result.Message);
                                res = false;
                            }
                            else { alert("开具发票成功"); res = true; }
                        }
                        //alert(result);
                    },
                    failure: function (response) {
                    }

                });
            }
            return res;
        }


        //开具并打印发票 失效表达式
        function InvocieOpen_HiddenExpress(laccount, StepName, InvoiceType) {

            if (InvoiceType != "01增值税专用发票") {
                return true;
            }
            else {
                if (laccount != "admin" && laccount != "bpmadmin") {
                    if (StepName == "1000公司税务发票岗开纸质发票&检查SAP暂估凭证")
                    { return false; }
                    else
                        return true;
                }
            }

        }


        //快递打印按钮 隐藏表达式
        function PrintWaybill_HiddenExpress(laccount, StepName, InvoiceType, InvoiceSendType) {

            if (StepName == "1000公司税务发票岗开纸质发票&检查SAP暂估凭证" && InvoiceType == "02增值税普通发票")
                return true;

            if ((laccount != "bpmadmin" && laccount != "admin" && StepName != "1000公司税务发票岗开纸质发票&检查SAP暂估凭证"
                && StepName != "1001公司税务发票岗开纸质发票&检查SAP暂估凭证" && StepName != "1002公司税务发票岗开纸质发票&检查SAP暂估凭证"
                && StepName != "5000公司税务发票岗开纸质发票&检查SAP暂估凭证") || InvoiceSendType == "自取")
                return true;

            return false;
        }



        function AjaxParm(url, async, parm, fun) {
            //YZSoft.$url('Oimec/WorkFlow/Services/SalesHandler.ashx')
            //{method: method, ItemID: ItemId, Increment: me.Increment.getValue() }
            YZSoft.Ajax.request({
                async: async,
                url: url,
                params: parm,
                success: fun
            });
        }
        //查看合同
        function GetButtonGenerationContract() {

            var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');

            var objName = agent.Eles[document.getElementById("ObjName").getAttribute("xform_xele_index")].getValue();
            var parm = { method: "GetCreateContract", ObjName: objName };
            // alert(objName);
            AjaxParm(url, true, parm, function (action) {

                var obj = eval("(" + action.responseText + ")");
                var urls = obj.Value;
                window.open(urls, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");

            })
        }
        //下载合同
        function GetDownGenerationContract() {
            var objName = agent.Eles[document.getElementById("ObjName").getAttribute("xform_xele_index")].getValue();
            var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');
            YZSoft.src.ux.File.download(url, {
                method: 'DownloadPDFBySalesTemplate',
                objName: objName
            });
        }

    </script>
</head>

<body>
    <form runat="server">
        <div id="div_print" style="DISPLAY: none">
        </div>
        <!-- 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">
                        <asp:Label id="XLabel1" runat="server" text="销售暂估申请单"></asp:Label></td>
                    <td class="formno">
                        <aspxform:XPrintButton id="XPrintButton1" style="CURSOR: pointer" runat="server" Orientation="Horizontal" Height="25px"></aspxform:XPrintButton>
                        <asp:Label id="XLabel2" runat="server" text="表单号:"></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" Value ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.FormNo" BackColor="#8AB3DF" Text="----系统自动生成----"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td colspan="3">
                        <asp:Label id="XLabel68" runat="server" text="标记 * 的为申请人必填项" forecolor="Red" font-bold="true"></asp:Label>&nbsp;<asp:Label id="XLabel81" runat="server" text="标记 * 的为业务员必填项" forecolor="Blue" font-bold="true"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox96" runat="server" XDataBind="Global.StepName" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox98" runat="server" XDataBind="DF_FI_InvoiceApp_Info.YJGSdate" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox id="DistributionChannels" runat="server" XDataBind="DF_FI_InvoiceApp_Info.DistributionChannels" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td align="right">
                        <aspxform:XTextBox id="xtxt_taskid" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.TaskID" Width="48px" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox93" runat="server" XDataBind="laccount" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XButton id="XButton3" runat="server" Text=" 导出金税文本" HiddenExpress='laccount!="bpmadmin" &amp;&amp;   laccount!="admin" &amp;&amp;   Global.StepName!="1001公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" &amp;&amp; Global.StepName!="1002公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" &amp;&amp; Global.StepName!="5000公司税务发票岗开纸质发票&amp;检查SAP暂估凭证"' OnClientClick="GenerateTXT()"></aspxform:XButton>
                        <aspxform:XButton id="XButton2" runat="server" Height="25px" Text=" 开具并打印发票" HiddenExpress="javascript('InvocieOpen_HiddenExpress',laccount,Global.StepName,DF_FI_InvoiceApp_Info.InvoiceType)" OnClientClick="InvoiceOpenAndGenerate()"></aspxform:XButton>
                        <%--<aspxform:XButton ID="XButton1" runat="server" Text="打印快递单" HiddenExpress='(laccount!="bpmadmin" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; ( laccount!="admin" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")   &amp;&amp; ( Global.StepName!="1000公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")  &amp;&amp; (Global.StepName!="1001公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; (Global.StepName!="1002公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")  &amp;&amp; (Global.StepName!="5000公司税务发票岗开纸质发票&amp;检查SAP暂估凭证"  || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") ' OnClientClick="Print_Waybill()"></aspxform:XButton>--%>
                        <aspxform:XButton id="XButton1" runat="server" Height="25px" Text=" 打印快递单" HiddenExpress="javascript('PrintWaybill_HiddenExpress',laccount,Global.StepName,DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.InvoiceSendType)" OnClientClick="Print_Waybill()"></aspxform:XButton>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel19" runat="server" text="基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox47" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ProductLine" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox48" runat="server" XDataBind="DF_FI_InvoiceApp_Info.SalesOrg" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox49" runat="server" XDataBind="DF_FI_InvoiceApp_Info.SalesOffice" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td width="10%" height="22" class="ts">
                        <asp:Label id="XLabel24" runat="server" text="创建用户"></asp:Label>
                        <aspxform:XTextBox id="XTextBox154" runat="server" XDataBind="DF_FI_InvoiceApp_Info.AppAccount" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="35%" class="ts1">
                        <aspxform:XTextBox id="XTextBox38" style="WIDTH: 70%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.AppName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="10%" class="ts">
                        <asp:Label id="XLabel25" runat="server" text="创建日期"></asp:Label></td>
                    <td width="35%" class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" style="WIDTH: 50%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.CreateDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts">
                        <asp:Label id="XLabel42" runat="server" text="业务员"></asp:Label>
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_FI_InvoiceApp_Info.SalesManID" Width="20%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox56" runat="server" ValueToDisplayText="TableName:DF_SA_SS_SalesPersonnel;FilterColumn:StaffSAPNumber;DisplayColumn:StaffSAPNumber" XDataBind="varSapId" Width="20%" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1" DataMap="StaffID->DF_FI_InvoiceApp_Info.SalesManID;StaffName->DF_FI_InvoiceApp_Info.SalesManName;ProductLine->BU;Region->DF_FI_InvoiceApp_Info.District"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox40" style="WIDTH: 70%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.SalesManName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                    </td>
                    <td class="ts1">
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel44" runat="server" text="事业部"></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList34" runat="server" HiddenExpress="1" DataMap="Name->DF_FI_InvoiceApp_Info.BU" ValueColumn="Name" DisplayColumn="Value" XDataSource="TableName:V_DF_SA_SS_ProductLine;Filter:Value->BU">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox128" runat="server" XDataBind="BU" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox42" style="WIDTH: 70%" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.BU" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel45" runat="server" text="所属地区"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox41" style="WIDTH: 70%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.District" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel43" runat="server" text="公司代码"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox9" style="WIDTH: 70%" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.CompanyCode" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel46" runat="server" text="SO币种"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox17" style="WIDTH: 70%" runat="server" ValueToDisplayText="TableName:DF_SA_SS_ExchangeRate;FilterColumn:ForeignCurrency;DisplayColumn:ForeignCurrency" XDataBind="DF_FI_InvoiceApp_Info.Currency" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" DataMap="ExchangeRate->DF_FI_InvoiceApp_Info.ExchangeRate"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox46" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ExchangeRate" Width="30px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.4"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="26" class="tsbottomlabel">
                        <asp:Label id="Label33" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label32" runat="server" text="暂估申请类型"></asp:Label></td>
                    <td class="tsbottomlabel" colspan="3">
                        <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_FI_InvoiceApp_Info.AppType" Width="50%" RepeatDirection="Horizontal" DisableExpress="Global.StepName!='申请人发起暂估申请'">
                            <asp:ListItem Selected="True" Value="01">暂估</asp:ListItem>
                            <asp:ListItem Value="02">暂估SO+交货单(与暂估SO相同)/服务SO</asp:ListItem>
                            <asp:ListItem Value="03">暂估SO+交货单(与暂估SO不同)/服务SO</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="33" class="tsbottomlabel">
                        <asp:Label id="XLabel74" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel48" runat="server" text="SAP-SO号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox31" style="WIDTH: 550px" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.OrderNum" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress="Global.StepName!='申请人发起暂估申请'"></aspxform:XTextBox>
                        <asp:Label id="XLabel69" runat="server" text="(只能输入一个SO号)" forecolor="#0000C0"></asp:Label>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" Height="27px" Text="获取SAP-SO&amp;交货单信息" XClass="Oimec.Dialogs.ZanGuInvoiceInfoButton" Width="177px" DataMap="GoodsName->DF_FI_InvoiceApp_Detail1.GoodsName;GoodsModel->DF_FI_InvoiceApp_Detail1.GoodsModel;Unit->DF_FI_InvoiceApp_Detail1.GoodsUnit;Number->DF_FI_InvoiceApp_Detail1.GoodsNumber;NTUnitPrice->DF_FI_InvoiceApp_Detail1.NTUnitPrice;NTTotalPrice->DF_FI_InvoiceApp_Detail1.NTTotalSalesPrice;TaxRate->DF_FI_InvoiceApp_Detail1.TaxRate;Tax->DF_FI_InvoiceApp_Detail1.TaxAmout;UnitPrice->DF_FI_InvoiceApp_Detail1.UnitPrice;TotalPrice->DF_FI_InvoiceApp_Detail1.TotalSalesPrice;MaterialNo->DF_FI_InvoiceApp_Detail1.NoDeliveredMaterialNo;LineItemNumber->DF_FI_InvoiceApp_Detail1.LineItemNumber;VoucherNum->DF_FI_InvoiceApp_Detail1.OrderNum;VoucherType->DF_FI_InvoiceApp_Detail1.VoucherType;SOLineItemNumber->DF_FI_InvoiceApp_Detail1.SOLineItemNumber;SO->DF_FI_InvoiceApp_Detail1.SO;MaterialGroup->DF_FI_InvoiceApp_Detail1.MaterialGroup" DisableExpress="Global.StepName!='申请人发起暂估申请'" AppendMode="ClearAndAppend" UseSubmitBehavior="False" Filter="State->'old'"></aspxform:XCustomBrowserButton>
                        &nbsp;<aspxform:XTextBox id="XTextBox68" runat="server" ValueToDisplayText="TableName:V_DF_SD_SalesInfo;FilterColumn:FormNo;DisplayColumn:FormNo" XDataBind="DF_FI_InvoiceApp_Info.SourceNo" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" DataMap="TicketingAddress->DF_FI_InvoiceApp_Info.CompanyAddress;TicketingTel->DF_FI_InvoiceApp_Info.Telphone;TicketingPhone->DF_FI_InvoiceApp_Info.ContactMobile;TicketingContacts->DF_FI_InvoiceApp_Info.Contact;TicketingCompany->DF_FI_InvoiceApp_Info.CompanyName;MailTicket->DF_FI_InvoiceApp_Info.InvoiceSendType;BranchID->DF_FI_InvoiceApp_Info.BranchID;SAPZipCode->DF_FI_InvoiceApp_Info.ZipCode;MailTicketCustomID->DF_FI_InvoiceApp_Info.CompanyID;CustomerContract->DF_FI_InvoiceApp_Info.ContractAttach"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress='DF_FI_InvoiceApp_Info.AppType!="02"   &amp;&amp; DF_FI_InvoiceApp_Info.AppType!="03" '>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label17" runat="server" text="合开SAP交货单号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox71" style="WIDTH: 550px" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.HKDeliveryNo" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress="Global.StepName!='申请人发起暂估申请'  || (DF_FI_InvoiceApp_Info.AppType!=&quot;02&quot;   &amp;&amp; DF_FI_InvoiceApp_Info.AppType!=&quot;03&quot; )"></aspxform:XTextBox>
                        <asp:Label id="Label20" runat="server" text="可以输入多个交货单号，以“/”分隔" forecolor="#0000C0"></asp:Label></td>
                </tr>
                <tr hiddenexpress='DF_FI_InvoiceApp_Info.AppType!="02"   &amp;&amp; DF_FI_InvoiceApp_Info.AppType!="03" '>
                    <td height="22" class="tsbottomlabel">
                        <asp:Label id="Label18" runat="server" text="合开SAP-SO号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox72" style="WIDTH: 550px" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.HKSO" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress="Global.StepName!='申请人发起暂估申请'  || (DF_FI_InvoiceApp_Info.AppType!=&quot;02&quot;   &amp;&amp; DF_FI_InvoiceApp_Info.AppType!=&quot;03&quot; )"></aspxform:XTextBox>
                        <asp:Label id="Label21" runat="server" text="只能是服务型SO，如：质保金SO。可以输入多个SO号，以“/”分隔" forecolor="#0000C0"></asp:Label></td>
                </tr>
                <tr>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label28" runat="server" text="SAP系统发票号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox85" runat="server" XDataBind="DF_FI_InvoiceApp_Info.InvoiceNum" BackColor="#E6F1F8" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<asp:Label id="Label29" runat="server" text="多个SAP系统发票号，以“/”分隔，例如：90001234/90001235" forecolor="#0000C0"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label27" runat="server" text="暂估凭证号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox84" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ZGVoucher" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel62" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel5" runat="server" text="发票类型"></asp:Label></td>
                    <td align="left" class="ts1" colspan="3">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_FI_InvoiceApp_Info.InvoiceType" RepeatDirection="Horizontal" DisableExpress="Global.StepName!='申请人发起暂估申请'&amp;&amp;Global.StepName!='业务员确认开票信息'" CellPadding="0" CellSpacing="0">
                            <asp:ListItem Value="01增值税专用发票">增值税专用发票</asp:ListItem>
                            <asp:ListItem Value="02增值税普通发票">增值税普通发票</asp:ListItem>
                            <asp:ListItem Value="03形式发票">形式发票</asp:ListItem>
                            <asp:ListItem Value="05客户不需纸质发票">客户不需纸质发票</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label6" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="需要付款方税号"></asp:Label> 
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_FI_InvoiceApp_Info.IsNeedTaxNumber" RepeatDirection="Horizontal" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType=='01增值税专用发票'||(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')" CellPadding="0" CellSpacing="0" Express="if(DF_FI_InvoiceApp_Info.InvoiceType=='01增值税专用发票',1,DF_FI_InvoiceApp_Info.IsNeedTaxNumber)">
                            <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label9" runat="server" text="*" forecolor="Blue" hiddenexpress="DF_FI_InvoiceApp_Info.IsNeedTaxNumber==1"></asp:Label>&nbsp; <asp:Label id="Label8" runat="server" text="无需税号原因" hiddenexpress="DF_FI_InvoiceApp_Info.IsNeedTaxNumber==1"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox class="text" id="XTextBox30" runat="server" XDataBind="DF_FI_InvoiceApp_Info.Reason" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" HiddenExpress="DF_FI_InvoiceApp_Info.IsNeedTaxNumber==1" DisableExpress="Global.StepName!='申请人发起暂估申请'&amp;&amp;Global.StepName!='业务员确认开票信息'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel4" runat="server" text="合同总金额"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox7" style="WIDTH: 70%" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.ContractAmout" BackColor="#E6F1F8" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <%--<td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel77" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel47" runat="server" text="本次开票金额"></asp:Label></td></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox30" style="WIDTH: 70%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.InvoiceAmout" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" DisableExpress="Global.StepName!='业务员确认开票信息'" TextAlign="Right"></aspxform:XTextBox></td>--%> 
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel82" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel83" runat="server" text="预计交货日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" style="WIDTH: 50%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.EstimatedDeliveryDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请'"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel72" runat="server" Value ValueToDisplayText BackColor="#d4e4fe" Text="*" HiddenExpress="DF_FI_InvoiceApp_Info.RecievedAmout==0" ForeColor="#0000C0" Font-Bold="True"></aspxform:XLabel>
                        &nbsp;<asp:Label id="XLabel70" runat="server" text="已到款日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" style="WIDTH: 50%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PaymentDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起暂估申请'&amp;&amp;Global.StepName!='业务员确认开票信息'"></aspxform:XDateTimePicker>
                    </td>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel84" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel85" runat="server" text="预计到款日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker5" style="WIDTH: 50%" runat="server" XDataBind="DF_FI_InvoiceApp_Info.EstimateAmountDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请'"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel80" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel18" runat="server" text="已到款金额"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox52" style="WIDTH: 70%" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.RecievedAmout" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" DisableExpress="Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='1000公司应收岗确认回款情况'&amp;&amp;Global.StepName!='1001公司应收岗确认回款情况'&amp;&amp;Global.StepName!='1002公司应收岗确认回款情况'&amp;&amp;Global.StepName!='5000公司应收岗确认回款情况'&amp;&amp;Global.StepName!='业务员确认已到款金额'&amp;&amp;Global.StepName!='申请人发起暂估申请'" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel63" runat="server" text="到款比例"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox53" style="WIDTH: 220px" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ProportionMoney" BackColor="#E6F1F8" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="true" Format="type:number;.2" Express="DF_FI_InvoiceApp_Info.RecievedAmout/DF_FI_InvoiceApp_Info.ContractAmout*100" TextAlign="Right"></aspxform:XTextBox>
                        % 
                    </td>
                </tr>
                <tr>
                    <td height="17" class="tsbottomlabel">
                        <asp:Label id="XLabel21" runat="server" text="发票备注"></asp:Label></td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XTextBox class="text" id="InvoiceRemarks" runat="server" Value ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Info.InvoiceRemarks" Width="100%" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" DisableExpress="Global.StepName!='申请人发起暂估申请'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel22" runat="server" text="SO备注"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_FI_InvoiceApp_Info.SORemarks" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label14" runat="server" text="需更改发票明细"></asp:Label>
                        <aspxform:XTextBox id="XTextBox81" runat="server" ValueToDisplayText XDataBind="ZBJ" Width="50px" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <div width="131px" appendmode="ClearAndAppend" usesubmitbehavior="False" datamap="SOLineItemNumber->DF_FI_InvoiceApp_Detail2.SOLineItemNumber;MaterialNo->DF_FI_InvoiceApp_Detail2.MaterialNo;VoucherNum->DF_FI_InvoiceApp_Detail2.OrderNum;LineItemNumber->DF_FI_InvoiceApp_Detail2.LineItemNumber;Tax->DF_FI_InvoiceApp_Detail2.TaxAmout;Number->DF_FI_InvoiceApp_Detail2.GoodsNumber;TotalPrice->DF_FI_InvoiceApp_Detail2.TotalSalesPrice;NTUnitPrice->DF_FI_InvoiceApp_Detail2.NTUnitPrice;GoodsName->DF_FI_InvoiceApp_Detail2.GoodsName;GoodsModel->DF_FI_InvoiceApp_Detail2.GoodsModel;NTTotalPrice->DF_FI_InvoiceApp_Detail2.NTTotalSalesPrice;UnitPrice->DF_FI_InvoiceApp_Detail2.UnitPrice;TaxRate->DF_FI_InvoiceApp_Detail2.TaxRate;Unit->DF_FI_InvoiceApp_Detail2.GoodsUnit;MaterialGroup->DF_FI_InvoiceApp_Detail2.MaterialGroup" xclass="Oimec.Dialogs.UpZanGuInvoiceInfoButton">
                            <aspxform:XCheckBox id="XCheckBox3" runat="server" XDataBind="DF_FI_InvoiceApp_Info.IsChange" Width="131px" DisableExpress="Global.StepName!='申请人发起暂估申请' " Font-Bold="True"></aspxform:XCheckBox>
                        </div>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox31" ErrorMessage="请输入SO号">请输入SO号</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator36" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsNeedTaxNumber==1||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox30" ErrorMessage="请填写不需要付款方税号原因">请填写不需要付款方税号原因</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator37" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XRadioButtonList3" ErrorMessage="请选择发票类型">请选择发票类型</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator38" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker1" ErrorMessage="请选择预计向客户交货日期">请选择预计向客户交货日期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator39" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.RecievedAmout==0||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker3" ErrorMessage="请选择已到款日期">请选择已到款日期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator40" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox52" ErrorMessage="请输入已到款金额">请输入已到款金额</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator41" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker5" ErrorMessage="请输入预计到款日期">请输入预计到款日期</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator20" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsNeedTaxNumber==1" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox30" ErrorMessage="请填写不需要付款方税号原因">请填写不需要付款方税号原因</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XRadioButtonList3" ErrorMessage="请选择发票类型">请选择发票类型</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XDateTimePicker1" ErrorMessage="请选择预计向客户交货日期">请选择预计向客户交货日期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.RecievedAmout==0" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XDateTimePicker3" ErrorMessage="请选择已到款日期">请选择已到款日期</aspxform:XRequiredFieldValidator>
        <%--&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox52" ErrorMessage="请输入已到款金额">请输入已到款金额</aspxform:XRequiredFieldValidator>--%>
        <%--&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator44" runat="server" ForeColor="Blue" ErrorMessage="请输入预计到款金额" ControlToValidate="XTextBox99" ValidationGroup="yewuyuan">请输入预计到款金额</aspxform:XRequiredFieldValidator>--%>
         &nbsp;&nbsp;&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" ForeColor="Blue" ErrorMessage="请输入已到款金额" ControlToValidate="XTextBox52" ValidationGroup="yewuyuan">请输入已到款金额</aspxform:XRequiredFieldValidator>
        <%--&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator25" runat="server" ForeColor="Blue" ErrorMessage="请输入预计到款金额" ControlToValidate="XTextBox99" ValidationGroup="yewuyuan">请输入预计到款金额</aspxform:XRequiredFieldValidator>--%>
       &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XDateTimePicker5" ErrorMessage="请输入预计到款日期">请输入预计到款日期</aspxform:XRequiredFieldValidator>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="20" class="title1" colspan="4">
                        <asp:Label id="XLabel7" runat="server" text="开票信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox57" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1">/</aspxform:XTextBox>
                        &nbsp;<input style="HEIGHT: 22px" onclick="GetInfo()" type="button" value="获取SAP开票信息" />
                        <aspxform:XTextBox class="text" id="XTextBox95" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerCompanyName" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel73" runat="server" text="付款方SAPID" borderstyle="None"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox54" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerSAPID" BackColor="#E6F1F8" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel75" runat="server" text="付款方信用等级"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox55" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerLevel" BackColor="#E6F1F8" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel26" runat="server" text="付款方名称" borderstyle="None"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox26" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerName" BackColor="#E6F1F8" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" DisableExpress="javascript('FKInfoDisable',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID)" Express="javascript('getFKInfo',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID,DF_FI_InvoiceApp_Info.PayerName)"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel27" runat="server" text="付款方税号"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox27" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerTaxNum" BackColor="#E6F1F8" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="javascript('FKInfoDisable',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID)" Express="javascript('getFKInfo',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID,DF_FI_InvoiceApp_Info.PayerTaxNum)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel28" runat="server" text="付款方地址/电话"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox28" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerAddrTel" BackColor="#E6F1F8" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="javascript('FKInfoDisable',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID)" Express="javascript('getFKInfo',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID,DF_FI_InvoiceApp_Info.PayerAddrTel)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel29" runat="server" text="付款方开户行/账号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox29" runat="server" XDataBind="DF_FI_InvoiceApp_Info.PayerBankInfo" BackColor="#E6F1F8" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="javascript('FKInfoDisable',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID)" Express="javascript('getFKInfo',DF_FI_InvoiceApp_Info.InvoiceType,DF_FI_InvoiceApp_Info.PayerSAPID,DF_FI_InvoiceApp_Info.PayerBankInfo)"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" Type="Double" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox88" ErrorMessage="更改后金额(含税)不能大于可暂估金额" ControlToCompare="XTextBox89" Display="None" Operator="GreaterThanEqual">更改后金额(含税)不能大于可暂估金额</aspxform:XCompareValidator>
        <br />
        <%--<div id="dnew" style="text-align: center" runat="server">--%> 
        <div class="scrollDiv" id="scrollDiv" style="HEIGHT: auto; MARGIN: 0px auto; MAX-HEIGHT: 400px">
            <table align="center" class="table" id="tab_Detail" style="WIDTH: 1600px" border="0" cellspacing="0" cellpadding="0" menudock="Left" dynamicarea="2,1">
                <tbody>
                    <tr>
                        <td height="17" class="title1" style="TEXT-ALIGN: center" colspan="14">
                            <asp:Label id="XLabel9" runat="server" text="原发票明细信息"></asp:Label></td>
                        <td class="tds" style="WIDTH: 300px" rowspan="2">
                            <asp:Label id="Label24" runat="server" text="更改后金额(含税)"></asp:Label></td>
                    </tr>
                    <tr>
                        <td width="3%" height="25" class="tds">
                            <asp:Label id="XLabel10" runat="server" text="序号"></asp:Label></td>
                        <td width="8%" class="tds">
                            <asp:Label id="Label22" runat="server" text="SAP-SO/交货单号"></asp:Label></td>
                        <td width="5%" class="tds">
                            <asp:Label id="Label23" runat="server" text="行号"></asp:Label></td>
                        <td width="12%" class="tds">
                            <asp:Label id="XLabel76" runat="server" text="未交货物料号"></asp:Label></td>
                        <td width="12%" class="tds">
                            <asp:Label id="XLabel31" runat="server" text="货物名称"></asp:Label></td>
                        <td width="12%" class="tds">
                            <asp:Label id="XLabel32" runat="server" text="规格型号"></asp:Label></td>
                        <td width="4%" align="center" class="tds">
                            <asp:Label id="XLabel33" runat="server" text="单位"></asp:Label></td>
                        <td width="3%" align="center" class="tds">
                            <asp:Label id="XLabel34" runat="server" text="数量"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel35" runat="server" text="单价(不含税)"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel36" runat="server" text="金额(不含税)"></asp:Label></td>
                        <td width="5%" class="tds">
                            <asp:Label id="XLabel37" runat="server" text="税率%"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel38" runat="server" text="税额"></asp:Label></td>
                        <td width="8%" class="tds">
                            <asp:Label id="XLabel39" runat="server" text="单价(含税)"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel40" runat="server" text="金额(含税)"></asp:Label></td>
                    </tr>
                    <tr>
                        <td height="30" class="tds1">
                            <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.LineNumber" BackColor="Transparent" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox73" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.OrderNum" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox78" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.VoucherType" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox66" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.SO" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox74" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.LineItemNumber" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox86" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.SOLineItemNumber" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox65" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.MaterialGroup" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox62" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.NoDeliveredMaterialNo" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.GoodsName" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.GoodsModel" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.GoodsUnit" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.GoodsNumber" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.NTUnitPrice" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.NTTotalSalesPrice" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.TaxRate" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.TaxAmout" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.UnitPrice" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-COLOR: #b2bcc6; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-COLOR: #b2bcc6; BORDER-BOTTOM-COLOR: #b2bcc6; BORDER-RIGHT-COLOR: #b2bcc6; BORDER-TOP-WIDTH: 1px">
                            <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.TotalSalesPrice" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox80" runat="server" XDataBind="DF_FI_InvoiceApp_Detail1.ZANGUAmount" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox90" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Detail1.UpTotalSalesPrice" Width="100%" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ReadOnly="True" Format="type:currency;.2" DisableExpress="DF_FI_InvoiceApp_Detail1.OrderNum!=DF_FI_InvoiceApp_Info.OrderNum || Global.StepName!='申请人发起暂估申请'" Express="DF_FI_InvoiceApp_Detail1.KZANGUAmount" TextAlign="Right"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox75" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Detail1.KZANGUAmount" Width="100%" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ReadOnly="True" Format="type:currency;.2" Express="DF_FI_InvoiceApp_Detail1.TotalSalesPrice-DF_FI_InvoiceApp_Detail1.ZANGUAmount" TextAlign="Right"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox88" runat="server" ValueToDisplayText Width="100%" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ReadOnly="True" Format="type:currency;.2" Express="DF_FI_InvoiceApp_Detail1.KZANGUAmount-DF_FI_InvoiceApp_Detail1.UpTotalSalesPrice" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1" style="TEXT-ALIGN: right" colspan="3">
                            <asp:Label id="XLabel41" runat="server" text="总金额(不含税)："></asp:Label></td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="varNTAmount1" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail1.NTTotalSalesPrice)" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox50" runat="server" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail1.TaxAmout)" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="TEXT-ALIGN: right">
                            <asp:Label id="XLabel57" runat="server" text="总金额(含税)："></asp:Label></td>
                        <td class="tds1" style="BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-COLOR: #b2bcc6; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-COLOR: #b2bcc6; BORDER-BOTTOM-COLOR: #b2bcc6; BORDER-RIGHT-COLOR: #b2bcc6; BORDER-TOP-WIDTH: 1px">
                            <aspxform:XTextBox id="XTextBox44" runat="server" XDataBind="varAmount1" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail1.TotalSalesPrice)" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox76" runat="server" XDataBind="upvarAmount1" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail1.UpTotalSalesPrice)" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <%--</div>--%>&nbsp;&nbsp;<aspxform:XCompareValidator id="报销合计大于可用费用不能提交" runat="server" Type="Double" DisableExpress="DF_FI_InvoiceApp_Detail1.OrderNum!=DF_FI_InvoiceApp_Info.OrderNum" ValidationGroup="submit" ControlToValidate="XTextBox88" ErrorMessage="更改后金额(含税)不能大于可暂估金额" ControlToCompare="XTextBox89" Operator="GreaterThanEqual">更改后金额(含税)不能大于可暂估金额</aspxform:XCompareValidator>
        &nbsp;&nbsp;&nbsp; 
        <aspxform:XTextBox id="XTextBox89" runat="server" Height="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2">0</aspxform:XTextBox>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_FI_InvoiceApp_Info.IsChange!='1'">
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel58" runat="server" text="更改项目"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 80%" colspan="3">
                        <aspxform:XCheckBoxList id="XCheckBoxList1" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ChangeItems" Width="50%" RepeatDirection="Horizontal" DisableExpress="Global.StepName!='申请人发起暂估申请'">
                            <asp:ListItem>货物名称</asp:ListItem>
                            <asp:ListItem>规格型号</asp:ListItem>
                            <asp:ListItem>单位</asp:ListItem>
                            <asp:ListItem>数量</asp:ListItem>
                            <asp:ListItem>(单价)含税</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XCheckBoxList>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XTextBox id="XTextBox82" runat="server" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Express="sum(varAmount1+upvarAmount1)"></aspxform:XTextBox>
        <%--<div id="dnew1" style="text-align: center" runat="server" hiddenexpress="DF_FI_InvoiceApp_Info.IsChange!='1'">--%> 
        <div class="scrollDiv" id="scrollDiv1" style="HEIGHT: auto; MARGIN: 0px auto; MAX-HEIGHT: 400px" hiddenexpress="DF_FI_InvoiceApp_Info.IsChange!='1'">
            <table align="center" class="table" id="changetbl" style="WIDTH: 1500px" border="0" cellspacing="0" cellpadding="0" menudock="Left" dynamicarea="2,1" emptygrid="KeepEmpty">
                <tbody>
                    <tr>
                        <td height="15" class="title1" style="TEXT-ALIGN: center" colspan="14">
                            <asp:Label id="XLabel11" runat="server" text="更改后发票明细信息"></asp:Label></td>
                    </tr>
                    <tr>
                        <td width="3%" height="22" class="tds">
                            <asp:Label id="XLabel12" runat="server" text="序号"></asp:Label></td>
                        <td width="8%" class="tds">
                            <asp:Label id="Label25" runat="server" text="SAP-SO/交货单号"></asp:Label></td>
                        <td width="5%" class="tds">
                            <asp:Label id="Label26" runat="server" text="行号"></asp:Label></td>
                        <td width="12%" class="tds">
                            <asp:Label id="Label11" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel13" runat="server" text="货物名称"></asp:Label></td>
                        <td width="12%" class="tds">
                            <%--<asp:Label ID="Label13" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;--%><asp:Label id="XLabel20" runat="server" text="规格型号"></asp:Label></td>
                        <td width="4%" align="center" class="tds">
                            <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel23" runat="server" text="单位"></asp:Label></td>
                        <td width="3%" align="center" class="tds">
                            <asp:Label id="XLabel30" runat="server" text="数量"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel49" runat="server" text="单价(不含税)"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel50" runat="server" text="金额(不含税)"></asp:Label></td>
                        <td width="5%" class="tds">
                            <asp:Label id="XLabel51" runat="server" text="税率%"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="XLabel52" runat="server" text="税额"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="Label16" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel53" runat="server" text="单价(含税)"></asp:Label></td>
                        <td width="6%" class="tds">
                            &nbsp;<asp:Label id="XLabel54" runat="server" text="金额(含税)"></asp:Label></td>
                        <td width="6%" class="tds">
                            <asp:Label id="Label31" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label30" runat="server" text="发票分拆标识"></asp:Label></td>
                    </tr>
                    <tr>
                        <td height="25" class="tds1">
                            <aspxform:XGridLineNo id="XGridLineNo2" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.LineNumber" BackColor="Transparent" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox77" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.OrderNum" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox69" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.VoucherType" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox79" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.MaterialNo" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox70" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.LineItemNumber" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox87" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.SOLineItemNumber" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox94" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.MaterialGroup" BackColor="#E6F1F8" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsName" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起暂估申请' "></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsModel" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起暂估申请' "></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsUnit" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起暂估申请' " TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsNumber" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.2" DisableExpress="Global.StepName!='申请人发起暂估申请'" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox91" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Express='javascript("GetTotalAmount",DF_FI_InvoiceApp_Detail2.GoodsNumber,DF_FI_InvoiceApp_Detail2.LineNumber)'></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.NTUnitPrice" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox32" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.NTTotalSalesPrice" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox33" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.TaxRate" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.TaxAmout" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox36" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.UnitPrice" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" DisableExpress="Global.StepName!='申请人发起暂估申请'" TextAlign="Right"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox97" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Express='javascript("GetTotalAmount1",DF_FI_InvoiceApp_Detail2.UnitPrice,DF_FI_InvoiceApp_Detail2.LineNumber)'></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox37" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.TotalSalesPrice" BackColor="#E6F1F8" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox45" runat="server" ValueToDisplayText XDataBind="DF_FI_InvoiceApp_Detail2.UpTotalSalesPrice" BackColor="#E6F1F8" Width="100%" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ReadOnly="True" Format="type:currency;.2" Express="" TextAlign="Right"></aspxform:XTextBox>
                            <%--<aspxform:XTextBox ID="XTextBox68" runat="server" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Width="100%" Express='javascript("GetNum",DF_FI_InvoiceApp_Detail2.UpTotalSalesPrice,DF_FI_InvoiceApp_Detail2.LineNumber)'></aspxform:XTextBox>--%></td>
                        <td class="tds1" style="BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-COLOR: #b2bcc6; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-COLOR: #b2bcc6; BORDER-BOTTOM-COLOR: #b2bcc6; BORDER-RIGHT-COLOR: #b2bcc6; BORDER-TOP-WIDTH: 1px">
                            <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_FI_InvoiceApp_Detail2.Split" Width="100%" ValueColumn="Split" DisplayColumn="Split" XDataSource="TableName:DF_FI_InvoiceSplit" DisableExpress="Global.StepName!='申请人发起暂估申请'"></aspxform:XDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1" style="TEXT-ALIGN: right" colspan="3">
                            <asp:Label id="XLabel55" runat="server" text="总金额（不含税）："></asp:Label></td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox39" runat="server" XDataBind="varNTAmount2" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail2.NTTotalSalesPrice)" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox51" runat="server" XDataBind="varTax" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail2.TaxAmout)" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <asp:Label id="XLabel56" runat="server" text="总金额(含税)："></asp:Label></td>
                        <td class="tds1" style="BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-COLOR: #b2bcc6; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-COLOR: #b2bcc6; BORDER-BOTTOM-COLOR: #b2bcc6; BORDER-RIGHT-COLOR: #b2bcc6; BORDER-TOP-WIDTH: 1px">
                            <aspxform:XTextBox id="XTextBox43" runat="server" XDataBind="varAmount2" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" Format="type:currency;.2" Express="sum(DF_FI_InvoiceApp_Detail2.UpTotalSalesPrice)+value" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox92" runat="server" XDataBind="value" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1">0</aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <%--</div>--%>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator24" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsChange!='1'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox2" ErrorMessage="请输入货物名称">请输入货物名称</aspxform:XRequiredFieldValidator>
        <%--&nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator25" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox18" ErrorMessage="请输入规格型号">请输入规格型号</aspxform:XRequiredFieldValidator>--%>&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator26" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsChange!='1'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox19" ErrorMessage="请输入单位">请输入单位</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator27" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsChange!='1'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox45" ErrorMessage="请输入金额(含税)">请输入金额(含税)</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsChange!='1'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择发票分拆标识">请选择发票分拆标识</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XCompareValidator id="XCompareValidator2" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.IsChange!='1'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox43" ErrorMessage="更改后发票明细金额(含税)和必须等于原发票明细更改后金额(含税)和" ControlToCompare="XTextBox76" Display="None">更改后发票明细金额(含税)和必须等于原发票明细更改后金额(含税)和</aspxform:XCompareValidator>
        &nbsp;<br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="XLabel150" runat="server" text="销售合同"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ContractAttach" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XAttachments1" ErrorMessage="对应的业务单据表里没有客户原始合同，请先上传后再申请暂估。">请上传销售合同</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="XLabel59" runat="server" text="上传其他附件"></asp:Label><%-- <aspxform:XLabel id="XLabel74" runat="server" ValueToDisplayText Value ForeColor="Blue" text="(在2000，4000公司下开票，需上传运单、形式发票)" Font-Bold="True"></aspxform:XLabel>--%></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_FI_InvoiceApp_Info.OtherAttach" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        &nbsp;&nbsp;<%--&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ErrorMessage="请输入本次开票金额" ControlToValidate="XTextBox30" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>--%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <div hiddenexpress='(DF_FI_InvoiceApp_Info.InvoiceType!="01增值税专用发票" &amp;&amp; DF_FI_InvoiceApp_Info.CompanyCode=="1000") || (DF_FI_InvoiceApp_Info.InvoiceType!="01增值税专用发票" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType!="02增值税普通发票" &amp;&amp; DF_FI_InvoiceApp_Info.CompanyCode!="1000")'>
            <br />
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td height="14" class="title1" colspan="6">
                            <asp:Label id="XLabel6" runat="server" text="发票邮寄信息"></asp:Label><asp:Label id="XLabel8" runat="server" text="（重要信息，请注意复核）" forecolor="Red" font-bold="True"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label35" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;
                            有发票邮寄特殊要求</td>
                        <td class="ts1" colspan="5">
                            <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_FI_InvoiceApp_Info.IsSpecial" RepeatDirection="Horizontal" DisableExpress="Global.StepName!='业务员确认开票信息'&amp;&amp;(Global.StepName!='申请人发起暂估申请'||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID)">
                                <asp:ListItem>是</asp:ListItem>
                                <asp:ListItem>否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label3" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label5" runat="server" text="寄票方式"></asp:Label> 
                        </td>
                        <td class="ts1" style="WIDTH: 60%" colspan="2">
                            <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_FI_InvoiceApp_Info.InvoiceSendType" Width="170px" ValueColumn="Name" DisplayColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"邮寄方式",Value1->DF_FI_InvoiceApp_Info.IsSpecial' DisableExpress="Global.StepName!='业务员确认开票信息'&amp;&amp;(Global.StepName!='申请人发起暂估申请'||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID)" PromptText="--请选择--">
                                <asp:ListItem>自取</asp:ListItem>
                                <asp:ListItem>邮寄分支机构</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td class="tsbottomlabel" style="WIDTH: 80px">
                            &nbsp;<asp:Label id="Label12" runat="server" text="分支机构" hiddenexpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄分支机构'"></asp:Label> 
                            <aspxform:XTextBox id="XTextBox61" runat="server" XDataBind="DF_FI_InvoiceApp_Info.BranchID" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext" style="WIDTH: 180px" colspan="2">
                            <aspxform:XTextBox class="text" id="XTextBox63" runat="server" XDataBind="DF_FI_InvoiceApp_Info.Branch" BackColor="#E6F1F8" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄分支机构'" DisableExpress="1"></aspxform:XTextBox>
                            &nbsp; 
                            <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Height="25px" Text="查询" Width="40px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄分支机构'" DataMap="BranchID->DF_FI_InvoiceApp_Info.BranchID;Branch->DF_FI_InvoiceApp_Info.Branch" XDataSource="TableName:DF_FI_Branches" PrintOut="False" DisplayColumns="BranchID:编号,50;Branch:分支机构,80"></aspxform:XDataBrowserButton>
                        </td>
                    </tr>
                    <tr>
                        <td height="31" class="ts" style="WIDTH: 10%">
                            <asp:Label id="XLabel14" runat="server" text="公司名称"></asp:Label>
                            <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_FI_InvoiceApp_Info.CompanyID" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        </td>
                        <td class="ts1" style="WIDTH: 80%" colspan="5">
                            <aspxform:XTextBox class="text" id="XTextBox3" runat="server" XDataBind="DF_FI_InvoiceApp_Info.CompanyName" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress="1" Express="if(DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄分支机构','',DF_FI_InvoiceApp_Info.CompanyName)"></aspxform:XTextBox>
                            &nbsp; 
                            <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Height="25px" Text="查询" Width="40px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄客户'" DataMap="CustomerID->DF_FI_InvoiceApp_Info.CompanyID;CustomerNameCH->DF_FI_InvoiceApp_Info.CompanyName" XDataSource="TableName:V_DF_MasterData_Customer" PrintOut="False" DisplayColumns="CustomerID:客户编号,100;CustomerNameCH:客户名称,250"></aspxform:XDataBrowserButton>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Height="25px" Text="查询" Width="40px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄分支机构'" DataMap="ID->DF_FI_InvoiceApp_Info.CompanyID;CompanyName->DF_FI_InvoiceApp_Info.CompanyName;CompanyAddress->DF_FI_InvoiceApp_Info.CompanyAddress;CompanyZipCode->DF_FI_InvoiceApp_Info.ZipCode" XDataSource="TableName:DF_FI_BranchCompany;Filter:BranchID->DF_FI_InvoiceApp_Info.BranchID" DisplayColumns="CompanyName:公司名称,260;CompanyAddress:公司地址,300;CompanyZipCode:邮编,60"></aspxform:XDataBrowserButton>
                            <aspxform:XTextBox id="XTextBox64" runat="server" ValueToDisplayText="TableName:V_DF_MasterData_Customer;FilterColumn:CustomerSAPID;DisplayColumn:CustomerSAPID" XDataBind="DF_FI_InvoiceApp_Info.CompanySAPID" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" DataMap="CustomerID->DF_FI_InvoiceApp_Info.CompanyID"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel" style="WIDTH: 80px">
                            <asp:Label id="XLabel15" runat="server" text="联系人"></asp:Label></td>
                        <td class="tsbottomtext" style="WIDTH: 250px">
                            <aspxform:XTextBox class="text" id="XTextBox4" runat="server" XDataBind="DF_FI_InvoiceApp_Info.Contact" BackColor="#E6F1F8" Width="150px" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Height="25px" Text="查询" Width="41px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄客户'" DataMap="ContactName->DF_FI_InvoiceApp_Info.Contact;ContactTel->DF_FI_InvoiceApp_Info.Telphone;ContactMobile->DF_FI_InvoiceApp_Info.ContactMobile;ContactAddr->DF_FI_InvoiceApp_Info.CompanyAddress;ZipCode->DF_FI_InvoiceApp_Info.ZipCode" XDataSource="TableName:DF_Partner_ContactZK;Filter:PartnerID->DF_FI_InvoiceApp_Info.CompanyID,ContactType->'客户',OwnerAccount->DF_FI_InvoiceApp_Info.SalesManID" PrintOut="False" DisplayColumns="ContactName:联系人;ContactTel:电话;ContactMobile:手机;ContactAddr:地址,250;ZipCode:邮编"></aspxform:XDataBrowserButton>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Height="25px" Text="新建" XClass="Oimec.Dialogs.ContactAddButton" Width="35px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄客户' " DisableExpress='DF_FI_InvoiceApp_Info.CompanyID ==  ""' Filter="OwnerAccount->DF_FI_InvoiceApp_Info.SalesManID,CustomerID->DF_FI_InvoiceApp_Info.CompanyID" PrintOut="False" BrowserWindowType="AjaxPanel"></aspxform:XCustomBrowserButton>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton5" runat="server" Height="25px" Text="查询" Width="41px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='申请人发起暂估申请')||DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄分支机构'" DataMap="ContactName->DF_FI_InvoiceApp_Info.Contact;Telphone->DF_FI_InvoiceApp_Info.Telphone;Mobile->DF_FI_InvoiceApp_Info.ContactMobile" XDataSource="TableName:DF_FI_BranchContact;Filter:BranchID->DF_FI_InvoiceApp_Info.BranchID" PrintOut="False" DisplayColumns="ContactName:联系人,100;Telphone:电话,200;Mobile:手机,100"></aspxform:XDataBrowserButton>
                        </td>
                        <td align="right" class="tsbottomlabel" style="WIDTH: 80px">
                            <asp:Label id="Label1" runat="server" text="电话"></asp:Label></td>
                        <td class="tsbottomtext" style="WIDTH: 150px">
                            <aspxform:XTextBox class="text" id="XTextBox5" runat="server" XDataBind="DF_FI_InvoiceApp_Info.Telphone" BackColor="#E6F1F8" Width="150" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel" style="WIDTH: 80px">
                            <asp:Label id="Label2" runat="server" text="手机"></asp:Label></td>
                        <td class="tsbottomtext" style="WIDTH: 200px">
                            <aspxform:XTextBox class="text" id="XTextBox58" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ContactMobile" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel" style="WIDTH: 10%">
                            <asp:Label id="XLabel16" runat="server" text="地址"></asp:Label></td>
                        <td class="tsbottomtext" style="WIDTH: 80%" colspan="3">
                            <aspxform:XTextBox class="text" id="XTextBox59" runat="server" XDataBind="DF_FI_InvoiceApp_Info.CompanyAddress" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel">
                            <asp:Label id="Label4" runat="server" text="邮编"></asp:Label></td>
                        <td class="tsbottomtext" style="WIDTH: 80%">
                            <aspxform:XTextBox class="text" id="XTextBox60" runat="server" XDataBind="DF_FI_InvoiceApp_Info.ZipCode" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel">
                            <asp:Label id="Label10" runat="server" text="快递单号"></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <aspxform:XTextBox id="txt_mailno" runat="server" XDataBind="DF_FI_InvoiceApp_Info.CourierNumber" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="发票邮寄岗寄发票"  &amp;&amp;   (Global.StepName!="1000公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")&amp;&amp; (Global.StepName!="1001公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; (Global.StepName!="1002公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; (Global.StepName!="5000公司税务发票岗开纸质发票&amp;检查SAP暂估凭证" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")'></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel" style="TEXT-ALIGN: right">
                            备注 
                        </td>
                        <td class="tsbottomtext" colspan="2">
                            <aspxform:XTextBox id="InvoiceRemark" runat="server" XDataBind="DF_FI_InvoiceApp_Info.InvoiceRemark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress='DF_FI_InvoiceApp_Info.InvoiceType!="02增值税普通发票" || DF_FI_InvoiceApp_Info.CompanyCode!="1000"'>
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        电子发票推送信息</td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label36" runat="server" text="*" forecolor="Blue"></asp:Label>推送邮箱 
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="pushEmail" runat="server" Height="25px" XDataBind="DF_FI_InvoiceApp_Info.pushEmail" Width="70%" HiddenInput="false" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="业务员确认开票信息" &amp;&amp; Global.StepName!="申请人发起暂估申请"'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label37" runat="server" text="*" forecolor="Blue"></asp:Label>推送手机号 
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="pushPhone" runat="server" Height="25px" XDataBind="DF_FI_InvoiceApp_Info.pushPhone" Width="70%" HiddenInput="false" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="业务员确认开票信息" &amp;&amp; Global.StepName!="申请人发起暂估申请"'></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator28" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID            || (DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票")' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择有发票邮寄特殊要求">请选择有发票邮寄特殊要求</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator29" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID  || (DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票")' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList4" ErrorMessage="请选择发票邮寄方式">请选择发票邮寄方式</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator30" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.InvoiceSendType!="邮寄分支机构" || DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID || (DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票")' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox63" ErrorMessage="请选择分支机构"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator31" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100' &amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox3" ErrorMessage="请输入发票邮寄公司名称">请输入发票邮寄公司名称</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator32" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox59" ErrorMessage="请输入发票邮寄地址">请输入发票邮寄地址</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator33" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox4" ErrorMessage="请输入发票邮寄联系人">请输入发票邮寄联系人</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator34" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||DF_FI_InvoiceApp_Info.ContactMobile!=''||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox5" ErrorMessage="请输入发票邮寄电话/手机">请输入发票邮寄电话/手机</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator35" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||DF_FI_InvoiceApp_Info.Telphone!=''||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')||DF_FI_InvoiceApp_Info.AppAccount!=DF_FI_InvoiceApp_Info.SalesManID  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox58" ErrorMessage="请输入发票邮寄电话/手机">请输入发票邮寄电话/手机</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator23" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票"' ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择有发票邮寄特殊要求">请选择有发票邮寄特殊要求</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator19" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票"' ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XDropDownList4" ErrorMessage="请选择发票邮寄方式">请选择发票邮寄方式</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator21" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.InvoiceSendType!="邮寄分支机构" || (DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票")' ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox63" ErrorMessage="请选择分支机构"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100' &amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox3" ErrorMessage="请输入发票邮寄公司名称">请输入发票邮寄公司名称</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户') || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox59" ErrorMessage="请输入发票邮寄地址">请输入发票邮寄地址</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户') || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox4" ErrorMessage="请输入发票邮寄联系人">请输入发票邮寄联系人</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||DF_FI_InvoiceApp_Info.ContactMobile!=''||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox5" ErrorMessage="请输入发票邮寄电话/手机">请输入发票邮寄电话/手机</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceSendType=='自取'||DF_FI_InvoiceApp_Info.Telphone!=''||(DF_FI_InvoiceApp_Info.CompanyCode=='2000'||DF_FI_InvoiceApp_Info.CompanyCode=='A100'&amp;&amp;DF_FI_InvoiceApp_Info.InvoiceSendType=='邮寄客户')  || (DF_FI_InvoiceApp_Info.CompanyCode==&quot;1000&quot; &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType==&quot;02增值税普通发票&quot;)" ForeColor="Blue" ValidationGroup="yewuyuan" ControlToValidate="XTextBox58" ErrorMessage="请输入发票邮寄电话/手机">请输入发票邮寄电话/手机</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator22" runat="server" DisableExpress='DF_FI_InvoiceApp_Info.InvoiceSendType=="自取"  || (DF_FI_InvoiceApp_Info.CompanyCode=="1000" &amp;&amp; DF_FI_InvoiceApp_Info.InvoiceType=="02增值税普通发票")' ForeColor="Blue" ValidationGroup="fpg" ControlToValidate="txt_mailno" ErrorMessage="请输入快递单号">请输入快递单号</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="Label34" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox67" runat="server" Height="50px" XDataBind="DF_FI_InvoiceApp_Info.Remarks" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress='DF_FI_InvoiceApp_Info.IsChange!="1"' TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="Label19" runat="server" text="系统集成返回报错信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox83" runat="server" Height="50px" XDataBind="DF_FI_InvoiceApp_Info.ResultMessage" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DisableExpress="1" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator14" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='02增值税普通发票' || DF_FI_InvoiceApp_Info.IsNeedTaxNumber!='1'" ValidationGroup="yewuyuan" ControlToValidate="XTextBox27" ErrorMessage="开具增值税普通发票时必须提供税号！" Display="None">开具增值税普通发票时必须提供税号！</aspxform:XRequiredFieldValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator15" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'" ValidationGroup="yewuyuan" ControlToValidate="XTextBox26" ErrorMessage="开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！" Display="None">开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！</aspxform:XRequiredFieldValidator>
        </p>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator16" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'||DF_FI_InvoiceApp_Info.IsNeedTaxNumber==0" ValidationGroup="yewuyuan" ControlToValidate="XTextBox27" ErrorMessage="开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！" Display="None">开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！</aspxform:XRequiredFieldValidator>
        </p>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator17" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'" ValidationGroup="yewuyuan" ControlToValidate="XTextBox28" ErrorMessage="开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！" Display="None">开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！</aspxform:XRequiredFieldValidator>
        </p>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator18" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票' " ValidationGroup="yewuyuan" ControlToValidate="XTextBox29" ErrorMessage="开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！" Display="None">开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！</aspxform:XRequiredFieldValidator>
            <br />
            <aspxform:XCompareValidator id="XCompareValidator3" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票' " ValidationGroup="yewuyuan" ControlToValidate="XTextBox29" ErrorMessage="开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！" ControlToCompare="XTextBox57" Display="None" Operator="NotEqual">开具增值税专用发票时，开票信息（付款方名称、地址、电话、税号、开户行及账号）必须齐全！</aspxform:XCompareValidator>
        </p>
        <script src="../../../../Oimec/Dialogs/Waybill.js"></script>
    </form>
</body>
</html>
