<%@ Page Language="C#" %>

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

    //userToken.Account
    private readonly string account = YZAuthHelper.LoginUserAccount;
    protected void Page_Load(object sender, EventArgs e)
    {
        string clientMethod = Request.Params["Param"];
        this.laccount.Text = account;
        this.tid.Text = Request.Params["tid"];
    }

</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" src="../../../../Oimec/Script/JsBarcode.all.js"></script>
    <script type="text/javascript" src="../../../../Oimec/Script/jquery.qrcode.min.js"></script>
    <script src="../../../../Oimec/Script/html2canvas.js"></script>
    <script type="text/javascript">


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

            var NTTotalSalesPrice = agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].getValue();//总价(不含税)
            var TotalSalesPrice = agent.Eles[table.rows[i].cells[12].children[0].getAttribute("xform_xele_index")].getValue(); //总价(含税)

            var UnitPrice = (Number == "0.00") ? "0.00" : TotalSalesPrice / Number;
            var NTUnitPrice = (Number == "0.00") ? "0.00" : NTTotalSalesPrice / Number;

            agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].setValue(NTUnitPrice);//单价(不含税)
            agent.Eles[table.rows[i].cells[11].children[0].getAttribute("xform_xele_index")].setValue(UnitPrice); //单价(含税)

        }

        //根据可修改金额计算：含税总价(更改后金额)
        //根据可修改金额计算：含税总价(更改后金额)
        function GetTotalAmount1(amount, LineNumber) {
            //alert(amount);
            //if (amount != "") {
            //alert(amount);
            if (amount == "") amount = "0.00";
            var table = document.getElementById("changetbl");//获取table对象
            var i = LineNumber + 1;

            var UpTotalSalesPrice = agent.Eles[table.rows[i].cells[12].children[0].getAttribute("xform_xele_index")].getValue();
            var ZGTotalSalesPrice = agent.Eles[table.rows[i].cells[13].children[0].getAttribute("xform_xele_index")].getValue(); //暂估金额(含税)

            var TotalSalesPrice = parseFloat(UpTotalSalesPrice) + parseFloat(ZGTotalSalesPrice) + parseFloat(amount);
            //TotalSalesPrice = Math.round(TotalSalesPrice);
            //var TotalSalesPrice = UpTotalSalesPrice + ZGTotalSalesPrice + amount;

            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 UnitPrice = TotalSalesPrice / Number;
            //总价(不含税)=含税/(1+税率)
            var NTTotalSalesPrice = TotalSalesPrice / (1 + TaxRate / 100);
            var NTUnitPrice = NTTotalSalesPrice / Number;
            //税额=总价(不含税)*税率
            var Tax = NTTotalSalesPrice * TaxRate / 100;

            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[11].children[0].getAttribute("xform_xele_index")].setValue(UnitPrice);//单价(含税)
            agent.Eles[table.rows[i].cells[15].children[0].getAttribute("xform_xele_index")].setValue(TotalSalesPrice);//更改后金额(含税)

            XFormOnChange(agent.Eles[table.rows[i].cells[15].children[0].getAttribute("xform_xele_index")]); //更改后金额(含税)
            //XFormOnChange(agent.Eles[table.rows[i].cells[11].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[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[8].children[0].getAttribute("xform_xele_index")]);
            //XFormOnChange(agent.Eles[table.rows[i].cells[14].children[0].getAttribute("xform_xele_index")]); //更改后金额(含税)
            //XFormOnChange(agent.Eles[document.getElementById("XTextBox43").getAttribute("xform_xele_index")]); //总金额(含税)
            //}
        }


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

        Ext.onReady(function () {




            var r = $("input[name='InvoiceType']:checked").val();
            //if (r == "03形式发票" || r == "05客户不需纸质发票") {
            //    $('input[name="XButton3"]').hide();
            //} else {

            //}

            //当流程状态
            var ZhuangTai = agent.Eles[document.getElementById("XTextBox86").getAttribute("xform_xele_index")].getValue();

            if (ZhuangTai == "北京税务发票岗打印并邮寄发票" || ZhuangTai == "上海税务发票岗打印并邮寄发票" || ZhuangTai == "深圳税务发票岗打印并邮寄发票" || ZhuangTai == "博德税务发票岗打印并邮寄发票") {
                var chk = document.getElementsByName("XCheckBox3");
                if (chk.checked == false) //需更改发票明细未选中 检查发票明细是否含有 质保金 字样
                {
                    var table = document.getElementById("ytable");//获取原发票明细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();
                        var GoodsPrice = agent.Eles[table.rows[i].cells[8].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("提示", "注意有“质保金”字样！");
                            }
                        }
                        if (GoodsPrice < 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();
                        var GoodsPrice = agent.Eles[table.rows[i].cells[8].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("提示", "注意有“质保金”字样！");
                            }
                        }
                        if (GoodsPrice < 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(value1, value2) {
            if (value1 == "" && value2 == "")
                return null;
            else
                return value1 + "/" + value2;
        }


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

            var ZhuangTai = agent.Eles[document.getElementById("XTextBox86").getAttribute("xform_xele_index")].getValue();
            if (ZhuangTai == "北京公司税务发票岗申请") {
                if (payerSAPID.indexOf("1036401") != -1) //一次性客户
                {
                    if (InvoiceType == "02增值税普通发票") {
                        return false;
                    }
                }
            }
            return true;
        }

        //表单提交时
        agent.on('beforeSubmit', function (actname1, actname) {


            //检查发票信息是否存在
            //var table = document.getElementById("changetbl");
            //if (table.rows.length > 3){ }
            //else{alert("请获取SAP数据！");return false;}


            //当流程状态
            var ZhuangTai = agent.Eles[document.getElementById("XTextBox86").getAttribute("xform_xele_index")].getValue();

            if (ZhuangTai == "北京税务发票岗打印并邮寄发票" && actname == "完成") {

                //开具发票并推送（增值税普通发票开具电子发票）
                var r = $("input[name='InvoiceType']:checked").val();
                if (r == "02增值税普通发票") {
                    var vres = InvoiceOpenAndGenerate();
                    if (!vres)
                        return false;
                }

            }

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

            //"申请人发起发票申请"节点
            if (ZhuangTai == "北京公司税务发票岗申请" && actname == "提交") {

                //发票类型为"增值税专用发票"时，判断付款方税号是否是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;
                    }
                }

                //检查是否有数量为0或者小于0的行信息
                var table = document.getElementById("changetbl");

                //for (var i = 2; i < table.rows.length - 1; i++) {
                //    var number = agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].getValue();
                //    if (number == "0.00" || number < 0) {
                //        Ext.Msg.alert("提示", "发票信息不能有数量小于0的行！");
                //        return false;
                //    }
                //}

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

                }
                */
            }


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

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




        function checkDisableExpress(StepName) {
            //第一步申请及税务发票岗复核时可修改
            if (StepName == "北京公司税务发票岗申请" || StepName == "上海公司税务发票岗复核" || StepName == "深圳公司税务发票岗复核" || StepName == "博德公司税务发票岗复核" || StepName == "颐合公司税务发票岗复核")
                return false;
            return true;
        }

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

            var res = true;
            var tid = agent.Eles[document.getElementById("tid").getAttribute("xform_xele_index")].getValue();// 需更改发票明细

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


            //1000公司 增值税发票打印过则提示
            var companyCode = document.getElementById("CompanyCode").getElementsByTagName('select')[0].value;

            //var companyCode = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
            var r = $("input[name='InvoiceType']:checked").val();
            var FormNo = agent.Eles[document.getElementById("FormNo").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
                    },
                    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 == "北京税务发票岗打印并邮寄发票")
                    { return false; }
                    else
                        return true;
                }
                return false;
            }

        }


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

            if (StepName == "北京税务发票岗打印并邮寄发票" && InvoiceType == "02增值税普通发票")
                return true;

            if ((laccount != "bpmadmin" && laccount != "admin" && StepName != "北京税务发票岗打印并邮寄发票"
                && StepName != "上海税务发票岗打印并邮寄发票" && StepName != "深圳税务发票岗打印并邮寄发票"
                && StepName != "博德税务发票岗打印并邮寄发票") || InvoiceSendType == "自取")
                return true;

            return false;
        }




    </script>
    <script type="text/javascript">
        //打印快递单
        function Print_Waybill() {
            //参数：收方公司名称、收方联系人、电话、手机、地址、邮编
            var obj_param = {};
            obj_param["d_company"] = agent.Eles[document.getElementById("XTextBox1").getAttribute("xform_xele_index")].getValue();
            obj_param["d_contact"] = agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].getValue();
            obj_param["d_address"] = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();
            obj_param["d_tel"] = agent.Eles[document.getElementById("XTextBox4").getAttribute("xform_xele_index")].getValue();
            if (checkPhone(agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].getValue().trim())) {
                obj_param["d_mobile"] = agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].getValue().trim();
            }
            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"] = "发票;"
            //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) {
            //if (!(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/.test(phone))) {
            if (!(/^1[3456789]\d{9}$/.test(phone))) {
                //alert("手机号码有误，请重填");
                return false;
            }
            else
                return true;
        }

    </script>
</head>
<body>
    <form runat="server" id="form1">
        <div id="div_print" style="display: none">
        </div>
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo"></td>
                    <td class="biaoti">
                        <aspxform:XTextBox ID="tid" runat="server" Width="100px" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="laccount"></aspxform:XTextBox>
                        <asp:Label ID="XLabel1" runat="server" Text="公司间发票申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label ID="XLabel2" runat="server" Text="表单号:"></asp:Label>
                        <aspxform:XLabel ID="FormNo" runat="server" XDataBind="DF_FI_InvoiceApp_Info.FormNo" Text="----系统自动生成----" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="30" colspan="2">
                        <asp:Label ID="XLabel68" runat="server" Text="标记 * 的为申请人必填项" Font-Bold="true" ForeColor="Red"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<aspxform:XTextBox ID="XTextBox86" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="Global.StepName"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="laccount" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="laccount"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox100" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.TaskID"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="XTextBox101" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.YJGSdate" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox102" runat="server" Width="25px" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_FI_InvoiceApp_Info.DistributionChannels" Max="0" Min="0" HiddenExpress="1" ValueToDisplayText></aspxform:XTextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    </td>
                    <td align="right" colspan="2">
                        <aspxform:XButton ID="XButton5" runat="server" Text=" 开具并打印发票" HiddenExpress="javascript('InvocieOpen_HiddenExpress',laccount,Global.StepName,DF_FI_InvoiceApp_Info.InvoiceType)" OnClientClick="InvoiceOpenAndGenerate()" Height="25px"></aspxform:XButton>
                        <%--<aspxform:XButton id="XButton1" runat="server" Text=" 打印快递单" Height="25px" HiddenExpress='(laccount!="bpmadmin"  || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; ( laccount!="admin"  || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")  &amp;&amp; (Global.StepName!="北京税务发票岗打印并邮寄发票" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")&amp;&amp; (Global.StepName!="上海税务发票岗打印并邮寄发票" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; (Global.StepName!="深圳税务发票岗打印并邮寄发票" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取") &amp;&amp; (Global.StepName!="博德税务发票岗打印并邮寄发票" || DF_FI_InvoiceApp_Info.InvoiceSendType=="自取")' OnClientClick="Print_Waybill()"></aspxform:XButton>--%>
                        <aspxform:XButton ID="XButton6" runat="server" Text=" 打印快递单" HiddenExpress="javascript('PrintWaybill_HiddenExpress',laccount,Global.StepName,DF_FI_InvoiceApp_Info.InvoiceType)" OnClientClick="Print_Waybill()" Height="25px"></aspxform:XButton>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="title1" colspan="4">
                        <asp:Label ID="Label38" runat="server" Text="用户信息"></asp:Label></td>
                </tr>
                <tr>
                    <td height="25" class="ts" style="width: 10%">
                        <asp:Label ID="Label39" runat="server" Text="创建用户"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox106" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.AppAccount" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox107" Style="width: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.AppName" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="width: 10%">
                        <asp:Label ID="Label40" runat="server" Text="创建日期"></asp:Label></td>
                    <td class="ts1" style="width: 35%">
                        <aspxform:XDateTimePicker ID="XDateTimePicker1" Style="width: 50%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.CreateDate" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="25" class="title1" colspan="4">
                        <asp:Label ID="Label17" runat="server" Text="基本信息"></asp:Label></td>
                </tr>
                <tr height="25">
                    <td class="ts" style="width: 10%">
                        <asp:Label ID="Label23" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label42" runat="server" Text="业务类型"></asp:Label></td>
                    <td class="ts1" style="width: 35%">
                        <aspxform:XDropDownList ID="BusinessType" runat="server" Width="150px" XDataBind="DF_FI_InvoiceApp_Info.BusinessType" Height="100%" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" PromptText="--请选择--">
                            <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:XDropDownList>
                    </td>
                    <td class="ts" style="width: 10%">
                        <asp:Label ID="Label19" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;记账日期 
                    </td>
                    <td class="ts1" style="width: 35%">
                        <aspxform:XDropDownList ID="InvoiceYear" runat="server" Width="80px" XDataBind="DF_FI_InvoiceApp_Info.BillingPeriodYear" Height="100%" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" PromptText="">
                            <asp:ListItem Selected="True">2020</asp:ListItem>
                            <asp:ListItem>2021</asp:ListItem>
                            <asp:ListItem>2022</asp:ListItem>
                            <asp:ListItem>2023</asp:ListItem>
                        </aspxform:XDropDownList>
                        年 
                        <aspxform:XDropDownList ID="InvoiceMonth" runat="server" Width="80px" XDataBind="DF_FI_InvoiceApp_Info.BillingPeriodMonth" Height="100%" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" PromptText="">
                            <asp:ListItem Selected="True" Value="01"></asp:ListItem>
                            <asp:ListItem>02</asp:ListItem>
                            <asp:ListItem Value="03"></asp:ListItem>
                            <asp:ListItem Value="04"></asp:ListItem>
                            <asp:ListItem Value="05"></asp:ListItem>
                            <asp:ListItem Value="06"></asp:ListItem>
                            <asp:ListItem Value="07"></asp:ListItem>
                            <asp:ListItem Value="08"></asp:ListItem>
                            <asp:ListItem Value="09"></asp:ListItem>
                            <asp:ListItem Value="10"></asp:ListItem>
                            <asp:ListItem Value="11"></asp:ListItem>
                            <asp:ListItem Value="12"></asp:ListItem>
                        </aspxform:XDropDownList>
                        月&nbsp;&nbsp;&nbsp; 
                    </td>
                </tr>
                <tr height="25">
                    <td class="ts">
                        <asp:Label ID="Label18" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label11" runat="server" Text="购方公司代码"></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XDropDownList ID="BillingCompany" runat="server" Width="150px" XDataBind="DF_FI_InvoiceApp_Info.BillingCompany" Height="100%" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" PromptText="--请选择--" XDataSource="TableName:DF_SA_SS_Company" DisplayColumn="CompanyCode" ValueColumn="CompanyCode" DataMap="CompanyName->codename;Demander->DF_FI_InvoiceApp_Info.PayerName;Deposit->khh;Account->zh;TaxpayerNo->DF_FI_InvoiceApp_Info.PayerTaxNum;Address->address;Telphone->tel;PostCode->DF_FI_InvoiceApp_Info.ZipCode"></aspxform:XDropDownList>
                        <aspxform:XLabel ID="XLabel3" runat="server" XDataBind="codename" BackColor="#d4e4fe"></aspxform:XLabel>
                        <aspxform:XDropDownList ID="CompanyCode" runat="server" Width="150px" XDataBind="DF_FI_InvoiceApp_Info.CompanyCode" HiddenExpress="1" Height="100%" XDataSource='TableName:DF_SA_SS_Company;Filter:CompanyCode->"1000"' DisplayColumn="CompanyCode" ValueColumn="CompanyCode"></aspxform:XDropDownList>
                    </td>
                    <td height="26" class="ts">
                        <asp:Label ID="Label16" runat="server" Text="发票类型"></asp:Label></td>
                    <td align="left" class="ts1">
                        <aspxform:XRadioButtonList ID="InvoiceType" runat="server" XDataBind="DF_FI_InvoiceApp_Info.InvoiceType" Height="100%" DisableExpress="1" Express='if(DF_FI_InvoiceApp_Info.BillingCompany=="2000","02增值税普通发票","01增值税专用发票")' CellSpacing="0" CellPadding="0" RepeatDirection="Horizontal">
                            <asp:ListItem Value="01增值税专用发票">增值税专用发票</asp:ListItem>
                            <asp:ListItem Value="02增值税普通发票">增值税普通发票</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label67" runat="server" Text="发票备注"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox class="text" ID="XTextBox125" runat="server" Width="100%" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_FI_InvoiceApp_Info.InvoiceRemarks" Max="0" Min="0" DisableBehavior="ReadOnly" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" Rows="3" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator1" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="BusinessType" ErrorMessage="请选择业务类型">请选择业务类型</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator3" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="InvoiceYear" ErrorMessage="请选择记账日期">请选择记账日期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator4" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="BillingCompany" ErrorMessage="请选择购方公司代码">请选择购方公司代码</aspxform:XRequiredFieldValidator>
        <%--&nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator6" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="InvoiceType" ErrorMessage="请选择发票类型">请选择发票类型</aspxform:XRequiredFieldValidator>--%>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label ID="XLabel7" runat="server" Text="开票信息"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox55" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1">/</aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XTextBox class="text" ID="XTextBox95" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.PayerCompanyName" ReadOnly="True" Express="DF_FI_InvoiceApp_Info.PayerName"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="PayerSAPID" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.PayerSAPID" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="XTextBox92" runat="server" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.KZANGUAmount"></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XTextBox ID="XTextBox10" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="address" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="XTextBox11" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="tel" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="XTextBox12" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="khh" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="XTextBox13" runat="server" Width="100px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="zh" 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" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.PayerName" BackColor="#E6F1F8" DisableExpress="Global.StepName!='北京公司税务发票岗申请'"></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" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.PayerTaxNum" BackColor="#E6F1F8" DisableExpress="Global.StepName!='北京公司税务发票岗申请'"></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" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.PayerAddrTel" BackColor="#E6F1F8" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" Express="javascript('getFKInfo',address,tel)"></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" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.PayerBankInfo" BackColor="#E6F1F8" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" Express="javascript('getFKInfo',khh,zh)"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <div id="dnew1" style="height: auto; text-align: center; margin: 0px auto; max-height: 600px" runat="server">
            <div class="scrollDiv" id="scrollDiv1" style="height: auto; text-align: center; margin: 0px auto; max-height: 600px">
                <table align="center" class="table" id="changetbl" style="width: 2000px" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" dynamicarea="2,1" menudock="Left">
                    <tbody>
                        <tr>
                            <td height="25" class="title1" style="text-align: left" colspan="18">
                                <asp:Label ID="XLabel11" runat="server" Text="公司间发票信息"></asp:Label>&nbsp;<aspxform:XCustomBrowserButton ID="XCustomBrowserButton1" runat="server" Width="100px" XClass="Oimec.Dialogs.GetInterCompanyInvoiceInfoButton" Text="获取SAP数据" Height="25px" DisableExpress="Global.StepName!='北京公司税务发票岗申请'" DataMap="KUpdateAmount->DF_FI_InvoiceApp_Detail2.KUpdateAmount;GoodsName->DF_FI_InvoiceApp_Detail2.GoodsName;GoodsModel->DF_FI_InvoiceApp_Detail2.GoodsModel;Unit->DF_FI_InvoiceApp_Detail2.GoodsUnit;Number->DF_FI_InvoiceApp_Detail2.GoodsNumber;NTUnitPrice->DF_FI_InvoiceApp_Detail2.NTUnitPrice;NTTotalPrice->DF_FI_InvoiceApp_Detail2.NTTotalSalesPrice;TaxRate->DF_FI_InvoiceApp_Detail2.TaxRate;Tax->DF_FI_InvoiceApp_Detail2.TaxAmout;UnitPrice->DF_FI_InvoiceApp_Detail2.UnitPrice;TotalPrice->DF_FI_InvoiceApp_Detail2.TotalSalesPrice;SO->DF_FI_InvoiceApp_Detail2.SO;SOLineItemNumber->DF_FI_InvoiceApp_Detail2.SOLineItemNumber;MaterialNo->DF_FI_InvoiceApp_Detail2.MaterialNo;MaterialGroup->DF_FI_InvoiceApp_Detail2.MaterialGroup;UpTotalSalesPrice->DF_FI_InvoiceApp_Detail2.UpTotalSalesPrice;Spilt->DF_FI_InvoiceApp_Detail2.Split;ZGAmount->DF_FI_InvoiceApp_Detail2.ZGTotalSalesPrice" AppendMode="ClearAndAppend" PrintOut="False" UseSubmitBehavior="False"></aspxform:XCustomBrowserButton>
                                <aspxform:XCheckBox ID="XCheckBox3" runat="server" Width="125px" XDataBind="DF_FI_InvoiceApp_Info.IsChange" XClass="Oimec.Dialogs.GetInvoiceInfoButton" HiddenExpress="1" DataMap="MaterialNo->DF_FI_InvoiceApp_Detail2.MaterialNo;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" AppendMode="ClearAndAppend" Checked="True" Font-Bold="False"></aspxform:XCheckBox>
                                <aspxform:XExcelDataExportButton ID="XExcelDataExportButton1" runat="server" Text="导出数据" ExportTableID="changetbl"></aspxform:XExcelDataExportButton>
                            </td>
                        </tr>
                        <tr>
                            <td width="55" height="29" class="tds">
                                <asp:Label ID="XLabel12" runat="server" Text="序号"></asp:Label></td>
                            <td width="150" class="tds">
                                <asp:Label ID="Label22" runat="server" Text="SAP-SO号"></asp:Label></td>
                            <td width="93" align="center" class="tds">
                                <asp:Label ID="Label20" runat="server" Text="SAP-SO行号"></asp:Label></td>
                            <td width="226" class="tds">
                                <asp:Label ID="Label32" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="XLabel13" runat="server" Text="货物名称"></asp:Label></td>
                            <td width="226" class="tds">&nbsp;<asp:Label ID="XLabel20" runat="server" Text="规格型号"></asp:Label></td>
                            <td width="74" align="center" class="tds">
                                <asp:Label ID="Label33" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="XLabel23" runat="server" Text="单位"></asp:Label></td>
                            <td width="80" align="center" class="tds">
                                <asp:Label ID="Label35" runat="server" Text="*" ForeColor="Red"></asp:Label><asp:Label ID="XLabel30" runat="server" Text="数量"></asp:Label></td>
                            <td width="112" class="tds">
                                <asp:Label ID="XLabel49" runat="server" Text="单价(不含税)"></asp:Label></td>
                            <td style="width: 5%" class="tds">
                                <asp:Label ID="XLabel50" runat="server" Text="金额(不含税)"></asp:Label></td>
                            <td width="93" class="tds">
                                <asp:Label ID="XLabel51" runat="server" Text="税率%"></asp:Label></td>
                            <td width="112" class="tds">
                                <asp:Label ID="XLabel52" runat="server" Text="税额"></asp:Label></td>
                            <td width="120" class="tds">
                                <asp:Label ID="XLabel53" runat="server" Text="单价(含税)"></asp:Label></td>
                            <td style="width: 5%" class="tds">&nbsp;<asp:Label ID="XLabel54" runat="server" Text="金额(含税)"></asp:Label></td>
                            <td style="width: 6%" class="tds">
                                <asp:Label ID="Label5" runat="server" Text="暂估金额(含税)"></asp:Label></td>
                            <td style="width: 6%" class="tds">
                                <asp:Label ID="Label1" runat="server" Text="调整金额(含税)"></asp:Label></td>
                            <td style="width: 6%" class="tds">&nbsp;<asp:Label ID="Label14" runat="server" Text="调整后金额(含税)"></asp:Label></td>
                            <td width="150" class="tds">
                                <asp:Label ID="Label21" 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" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.LineNumber" BackColor="Transparent" Height="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox66" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.SO" BackColor="#E6F1F8" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox69" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.OrderNum" BackColor="#E6F1F8" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox75" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.VoucherType" BackColor="#E6F1F8" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox70" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.LineItemNumber" BackColor="#E6F1F8" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox79" runat="server" Width="100%" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.SOLineItemNumber" BackColor="#E6F1F8" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox89" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.MaterialGroup" BackColor="#E6F1F8" Height="100%" ReadOnly="True"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox2" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsName" Height="100%" DisableExpress="javascript('checkDisableExpress',Global.StepName)"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox84" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.MaterialNo" Height="100%"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox18" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsModel" Height="100%" DisableExpress="javascript('checkDisableExpress',Global.StepName)"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox19" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsUnit" Height="100%" DisableExpress="javascript('checkDisableExpress',Global.StepName)" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox20" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.GoodsNumber" Height="100%" DisableExpress="javascript('checkDisableExpress',Global.StepName)" TextAlign="Center" Format="type:number;.2"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox93" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Height="100%" 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" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.NTUnitPrice" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" ReadOnly="true" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox32" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.NTTotalSalesPrice" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox33" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.TaxRate" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" TextAlign="Right" Format="type:number;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox34" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.TaxAmout" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox36" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.UnitPrice" BackColor="#E6F1F8" Height="100%" ReadOnly="True" TextAlign="Right" Format="type:currency;.2"></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="XTextBox7" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.UpTotalSalesPrice" BackColor="#E6F1F8" Height="100%" ReadOnly="true" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox6" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.ZGTotalSalesPrice" BackColor="#E6F1F8" Height="100%" ReadOnly="True" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox14" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.KUpdateAmount" Height="100%" Express='if(DF_FI_InvoiceApp_Detail2.KUpdateAmount=="",0.00,DF_FI_InvoiceApp_Detail2.KUpdateAmount)' TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                                <aspxform:XTextBox ID="XTextBox16" runat="server" Width="100%" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Height="100%" Express='javascript("GetTotalAmount1",DF_FI_InvoiceApp_Detail2.KUpdateAmount,DF_FI_InvoiceApp_Detail2.LineNumber)'></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox37" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Detail2.TotalSalesPrice" BackColor="#E6F1F8" Height="100%" ReadOnly="true" TextAlign="Right" Format="type:currency;.2"></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" Width="100%" XDataBind="DF_FI_InvoiceApp_Detail2.Split" Height="100%" DisableExpress="Global.StepName!='北京公司税务发票岗申请'  " XDataSource="TableName:DF_FI_InvoiceSplit" DisplayColumn="Split" ValueColumn="Split"></aspxform:XDropDownList>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td height="19" 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" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="varNTAmount2" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" Express="sum(DF_FI_InvoiceApp_Detail2.NTTotalSalesPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1"></td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox51" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" Express="sum(DF_FI_InvoiceApp_Detail2.TaxAmout)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1" style="text-align: right">
                                <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="XTextBox9" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="varAmount" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" Express="sum(DF_FI_InvoiceApp_Detail2.UpTotalSalesPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox8" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="zgAmount" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" Express="sum(DF_FI_InvoiceApp_Detail2.ZGTotalSalesPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td>
                                <aspxform:XTextBox ID="XTextBox15" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="xgAmount" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" Express="sum(DF_FI_InvoiceApp_Detail2.KUpdateAmount)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox ID="XTextBox43" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="varAmount2" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="100%" DisableExpress="1" Express="sum(DF_FI_InvoiceApp_Detail2.TotalSalesPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <%--<aspxform:XTextBox id="XTextBox53" runat="server" XDataBind="varTotalAmount" BorderWidth="1px" BorderColor="Gainsboro" Width="99px" Max="0" Min="0" HiddenInput="True" Express="varAmount2+DF_FI_InvoiceApp_Info.ZANGUAmount" BorderStyle="Dotted"></aspxform:XTextBox>--%>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator5" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox2" ErrorMessage="请输入货物名称"></aspxform:XRequiredFieldValidator>
        <%--&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ForeColor="Red" DisableExpress="Global.StepName!='北京公司税务发票岗申请'  ||DF_FI_InvoiceApp_Info.PrintFormat!=&quot;自定义格式&quot;" ErrorMessage="请输入规格型号" ControlToValidate="XTextBox18" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>--%>&nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator23" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox19" ErrorMessage="请输入单位"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator24" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox37" ErrorMessage='"金额(含税)"不能为空'></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator2" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择发票分拆标识">请选择发票分拆标识</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;<br />
        <div class="scrollDiv" id="dgdiv" style="height: auto; text-align: center; margin: 0px auto; max-height: 400px">
        </div>
        <%-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<aspxform:XCompareValidator id="XCompareValidator2" runat="server" DisableExpress="(DF_FI_InvoiceApp_Info.ZANGUType=='冲部分'&amp;&amp;DF_FI_InvoiceApp_Info.IsChange!='1')||(DF_FI_InvoiceApp_Info.IsZANGU!='1'&amp;&amp;DF_FI_InvoiceApp_Info.IsChange!='1')||(DF_FI_InvoiceApp_Info.ZANGUType=='冲部分'&amp;&amp;DF_FI_InvoiceApp_Info.IsChange=='1')||(DF_FI_InvoiceApp_Info.ZANGUType=='冲全部'&amp;&amp;DF_FI_InvoiceApp_Info.IsChange!='1')" Type="Double" ValidationGroup="submit" ControlToValidate="XTextBox43" ErrorMessage="原发票含税总金额与更改后发票含税总金额不同,请核对！" ControlToCompare="XTextBox44"></aspxform:XCompareValidator>--%><%--<aspxform:XCompareValidator id="XCompareValidator1" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.ZANGUType!='冲部分'||DF_FI_InvoiceApp_Info.IsChange=='0'" Type="Double" ValidationGroup="submit" ControlToValidate="XTextBox53" ErrorMessage="冲暂估金额+更改后发票含税总金额不等于原发票含税总金额，请核对！" ControlToCompare="XTextBox44"></aspxform:XCompareValidator>--%>&nbsp;<br />
        <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")'>
            <table width="1187" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td height="15" class="title1" colspan="6">
                            <asp:Label ID="XLabel6" runat="server" Text="发票邮寄信息"></asp:Label><asp:Label ID="XLabel8" runat="server" Text="（重要信息，请注意复核）" Font-Bold="True" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <%-- <tr>
                        <td width="106" height="31" class="ts">
                            &nbsp;<asp:Label id="Label12" runat="server" text="分支机构"></asp:Label></td>
                        <td class="ts1" colspan="2">
                            <aspxform:XTextBox id="XTextBox61" runat="server" XDataBind="DF_FI_InvoiceApp_Info.BranchID" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Width="20px"></aspxform:XTextBox>
                            <aspxform:XTextBox class="text" id="XTextBox60" runat="server" XDataBind="DF_FI_InvoiceApp_Info.Branch" BorderWidth="1" BorderColor="#DCDCDC" Width="100px" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                            &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Width="40px" Text="查询" Height="25px" 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>
                        <td width="150" class="tsbottomlabel">
                            &nbsp; 
                        </td>
                        <td class="tsbottomtext" colspan="2">
                            &nbsp; 
                        </td>
                    </tr>--%>
                    <tr>
                        <td height="31" class="ts">&nbsp;<asp:Label ID="XLabel14" runat="server" Text="公司名称"></asp:Label>
                            <aspxform:XTextBox ID="XTextBox54" runat="server" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.CompanyID"></aspxform:XTextBox>
                        </td>
                        <td class="ts1" colspan="5">
                            <aspxform:XTextBox class="text" ID="XTextBox1" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.CompanyName" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1" Express="DF_FI_InvoiceApp_Info.PayerName"></aspxform:XTextBox>
                            &nbsp; 
                        </td>
                    </tr>
                    <tr>
                        <td height="33" class="tsbottomlabel">
                            <asp:Label ID="Label3" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="XLabel15" runat="server" Text="联系人"></asp:Label>
                        </td>
                        <td width="585" class="tsbottomtext">
                            <aspxform:XTextBox class="text" ID="XTextBox3" runat="server" Width="150px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.Contact" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                            &nbsp;<aspxform:XDataBrowserButton ID="XDataBrowserButton1" runat="server" Width="40px" Text="查询" Height="25px" XDataSource='TableName:V_DF_HR_BasicInfo;Filter:Department->"会计信息部",State->"在职"' DataMap="Name->DF_FI_InvoiceApp_Info.Contact;MobilePhone->DF_FI_InvoiceApp_Info.ContactMobile" DisplayColumns="Name:姓名;MobilePhone:手机"></aspxform:XDataBrowserButton>
                            <%--&nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="41px" Text="查询" Height="25px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='业务员确认开票信息1'&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" DisplayColumns="ContactName:联系人;ContactTel:电话;ContactMobile:手机;ContactAddr:地址,250;ZipCode:邮编" PrintOut="False"></aspxform:XDataBrowserButton>--%><%--<aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Width="35px" XClass="Oimec.Dialogs.ContactAddButton" Text="新建" Height="25px" HiddenExpress="(Global.StepName!='业务员确认开票信息'&amp;&amp;Global.StepName!='业务员确认开票信息1'&amp;&amp;Global.StepName!='北京公司税务发票岗申请')|| DF_FI_InvoiceApp_Info.InvoiceSendType!='邮寄客户'" DisableExpress='DF_FI_InvoiceApp_Info.CompanyID ==  ""' PrintOut="False" BrowserWindowType="AjaxPanel" Filter="OwnerAccount->DF_FI_InvoiceApp_Info.SalesManID,CustomerID->DF_FI_InvoiceApp_Info.CompanyID"></aspxform:XCustomBrowserButton>--%></td>
                        <td width="161" align="right" class="tsbottomlabel">
                            <asp:Label ID="XLabel63" runat="server" Text="电话"></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox class="text" ID="XTextBox4" runat="server" Width="150" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.Telphone" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1" Express="tel"></aspxform:XTextBox>
                        </td>
                        <td width="35" class="tsbottomlabel">
                            <asp:Label ID="Label2" runat="server" Text="手机"></asp:Label></td>
                        <td width="150" class="tsbottomtext">
                            <aspxform:XTextBox class="text" ID="XTextBox57" runat="server" Width="150px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.ContactMobile" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="19" class="tsbottomlabel">&nbsp;<asp:Label ID="XLabel16" runat="server" Text="地址"></asp:Label>
                        </td>
                        <td class="tsbottomtext" colspan="2">
                            <aspxform:XTextBox class="text" ID="XTextBox5" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.CompanyAddress" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1" Express="address"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel" style="text-align: right">
                            <asp:Label ID="Label4" runat="server" Text="邮编"></asp:Label></td>
                        <td class="tsbottomtext" colspan="2">
                            <aspxform:XTextBox class="text" ID="XTextBox58" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.ZipCode" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="19" class="tsbottomlabel">
                            <asp:Label ID="Label13" runat="server" Text="快递单号"></asp:Label></td>
                        <td class="tsbottomtext" colspan="2">
                            <aspxform:XTextBox ID="txt_mailno" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.CourierNumber"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel" style="text-align: right">备注 
                        </td>
                        <td class="tsbottomtext" colspan="2">
                            <aspxform:XTextBox ID="InvoiceRemark" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.InvoiceRemark"></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%">推送邮箱 
                    </td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="pushEmail" runat="server" Width="70%" HiddenInput="false" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.pushEmail" Height="25px" DisableExpress="javascript('checkDisableExpress',Global.StepName)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">推送手机号 
                    </td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="pushPhone" runat="server" Width="70%" HiddenInput="false" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.pushPhone" Height="25px" DisableExpress="javascript('checkDisableExpress',Global.StepName)"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        &nbsp;&nbsp;&nbsp; <%--<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator28" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'" ErrorMessage="请选择分支机构" ControlToValidate="XTextBox60" ValidationGroup="submit" ForeColor="Red"></aspxform:XRequiredFieldValidator>--%>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator29" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox1" ErrorMessage="请输入发票邮寄公司名称"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator30" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox5" ErrorMessage="请输入发票邮寄地址"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator31" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox3" ErrorMessage="请输入发票邮寄联系人"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator32" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'' || DF_FI_InvoiceApp_Info.ContactMobile!=''" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox4" ErrorMessage="请输入发票邮寄电话/手机"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator33" runat="server" DisableExpress="DF_FI_InvoiceApp_Info.InvoiceType!='01增值税专用发票'' || DF_FI_InvoiceApp_Info.Telphone!=''" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox57" ErrorMessage="请输入发票邮寄电话/手机"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <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="XTextBox85" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_InvoiceApp_Info.Remarks" DisableBehavior="ReadOnly" Height="50px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        &nbsp;&nbsp;&nbsp; 
        <br />
        <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>
        <div id="div_text2">
        </div>
        <script src="../../../../Oimec/Dialogs/Waybill.js"></script>
    </form>
</body>
</html>
