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

<script runat="server">

    
    protected void Page_Load(object sender, EventArgs e)
    {
        string formstate = Convert.ToString(Request.Params["formstate"]);
        this.XTextBox192.Text = formstate;      
        
    }

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

        .tm {
            width: 8%;
        }

        .ty {
            border-bottom: #b2bcc6 1px solid;
            border-left: #93a1ae 1px solid;
            border-top: #93a1ae 1px solid;
            border-right: #b2bcc6 1px solid;
            font-family: 微软雅黑;
            font-size: 14px;
            width: 8%;
        }

        .inputbtn {
            color: MediumBlue;
            font-size: 15px;
            font-family: 微软雅黑;
        }
    </style>
    <script type="text/javascript">
        //获取X控件值
        function GetXValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }
        //给X控件赋值
        function SetXValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }

        //控件是否选中 checkbox,radiobutton
        function XChecked(name) {
            var inputs = document.getElementsByTagName("input");
            for (var i = 0; i < inputs.length; i++) {
                var a = document.getElementsByName(name);
                if (inputs[i].name == name) {
                    return inputs[i].checked;
                }
            }
        }

    </script>

    <%--获取供应商数量--%>
    <script type="text/javascript">

        //删除数组中某数据
        Array.prototype.del = function (n) {　//n表示第几项，从0开始算起。
            //prototype为对象原型，注意这里为对象增加自定义方法的方法。
            if (n < 0)　//如果n<0，则不进行任何操作。
                return this;
            else
                return this.slice(0, n).concat(this.slice(n + 1, this.length));
            /*
          　　　concat方法：返回一个新数组，这个新数组是由两个或更多数组组合而成的。
          　　　　　　　　　这里就是返回this.slice(0,n)/this.slice(n+1,this.length)
          　　 　　　　　　组成的新数组，这中间，刚好少了第n项。
          　　　slice方法： 返回一个数组的一段，两个参数，分别指定开始和结束的位置。
          　　*/
        }
        //获取供应商数量，如果供应商相同就将它删除，得到不同供应商数量。
        function GetInfoFromTable(tableid) {
            var tableInfo1 = new Array();
            var tableRow = "";
            var tableObj = document.getElementById(tableid);
            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                var str = tableInfo1[i - 2] = agent.Eles[tableObj.rows[i].cells[35].children[0].getAttribute("xform_xele_index")].getValue();
            }
            for (var i = 0; i < tableInfo1.length; i++) {
                if (tableInfo1.length !== 1) {
                    var j = i + 1;
                    while (j < tableInfo1.length) {

                        if (tableInfo1[i] === tableInfo1[j]) {
                            tableInfo1 = tableInfo1.del(i);
                            i = 0;
                            j = i + 1;
                            continue;
                        }
                        else {
                            j++;
                        }
                    }
                }
                else {
                    break;
                }

            }
            //document.getElementById("XTextBox25").value = tableInfo1.length;
            return tableInfo1.length;
        }
        //获取产品BPMID
        function GetMaterialTable(tableid) {
            var tableInfo1 = new Array();
            var tableRow = "";
            var tableObj = document.getElementById(tableid);
            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                tableInfo1[i - 2] = agent.Eles[tableObj.rows[i].cells[5].children[1].getAttribute("xform_xele_index")].getValue();
            }
            //document.getElementById("XTextBox25").value = tableInfo1.length;
            return tableInfo1;
        }
        //获取物料类型
        function GetMaterialTable1(tableid) {
            var tableInfo1 = new Array();
            var tableRow = "";
            var tableObj = document.getElementById(tableid);
            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                tableInfo1[i - 2] = agent.Eles[tableObj.rows[i].cells[2].children[4].getAttribute("xform_xele_index")].getValue();
            }
            //document.getElementById("XTextBox25").value = tableInfo1.length;
            return tableInfo1;
        }
        //产品型号添加自动点击事件(暂时不用)
        function GetMaterialTable2(tableid) {
            var tableInfo1 = new Array();
            var tableRow = "";
            var tableObj = document.getElementById(tableid);
            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                if (!tableObj.rows[i].cells[3].children[0].children[0].disabled) {
                    //tableObj.rows[i].cells[3].children[0].children[0].focus();
                    //tableObj.rows[i].cells[3].children[0].children[0].blur();
                }

                //tableObj.rows[i].cells[3].children[1].children[0].focus();
                //tableObj.rows[i].cells[3].children[1].children[0].blur();
            }
            //document.getElementById("XTextBox25").value = tableInfo1.length;
            return tableInfo1;
        }

    </script>
    <%--将税率转换为小数格式--%>
    <script type="text/javascript">
        //将税率转换为小数格式
        function GetRate(rateB) {
            var rate = 0;
            if (rateB === "17%") {
                rate = 0.17;
            }
            else if (rateB === "6%") {
                rate = 0.06;
            }
            else if (rateB === "3%") {
                rate = 0.03;
            }
            else if (rateB === "5%") {
                rate = 0.05;
            }
            else if (rateB === "16%") {
                rate = 0.16;
            }
            else if (rateB === "13%") {
                rate = 0.13;
            }
            return rate;
        }
    </script>
    <%--折扣计算 参数：ZheKou-折扣，UnitPrice-单价，Number-数量--%>
    <script type="text/javascript">
        function CountPurchasePrices(ZheKou, UnitPrice, Number) {
            var Sum = 0;
            if (ZheKou == 0) {
                Sum = UnitPrice * Number;
            }
            else {
                ZheKou = (100 - ZheKou) / 100;
                Sum = UnitPrice * Number * ZheKou;
            }
            return Sum;
        }
    </script>
    <%--HOSIC相关费用计算公式--%>
    <script type="text/javascript">
        //sale-不含税销售总价（人民币）,BillingCompany-开票公司，CustomerDeliveryWay-客户交货方式，Purchase-不含税采购总价（人民币），TermsPayment-付款条件
        function CountBankCost(sale, BillingCompany, CustomerDeliveryWay, Purchase, TermsPayment) {
            var BankCost = 0;
            var HOSICCost = 0;
            var HOSICBank = 0;
            var HOSICFreightFee = 0;
            var HOSICInsuranceFee = 0;
            //美元汇率
            var USD = agent.Eles[document.getElementById("XTextBox95").getAttribute("xform_xele_index")].getValue();
            if (BillingCompany == "A300HOSIC 香港") {
                //HOSIC 手续费
                HOSICCost = HOSICTransactionFee(CustomerDeliveryWay, sale, USD);
                //ZHD6-银行费用
                HOSICBank = OFHOSICBankFee(BillingCompany, TermsPayment, sale);
                //ZHD3-运保费
                HOSICFreightFee = HOSICFreight(CustomerDeliveryWay, USD);
                //ZHD4-入关费
                HOSICInsuranceFee = HOSICTransportationInsurance(CustomerDeliveryWay, sale, USD, Purchase);

            }
            BankCost = HOSICCost + HOSICBank + HOSICFreightFee + HOSICInsuranceFee;
            return BankCost;
        }
        //ZHD6-银行费用
        //BillingCompany-开票公司，sale-不含税销售总价（人民币），TermsPayment-付款条件
        function HOSICBankFee(BillingCompany, TermsPayment, sale, GongYingShang) {
            var TT = 0;
            //供应商数量
            var SupplierNumber = GetInfoFromTable('tablenew');
            //美元汇率
            ////var USD = document.getElementById("XTextBox95").value;
            var USD = agent.Eles[document.getElementById("XTextBox95").getAttribute("xform_xele_index")].getValue();
            if (BillingCompany == "2000上海颐合" || BillingCompany == "A300HOSIC 香港") {
                var HOSICBank = 0;
                if (TermsPayment == "100%信用证(L/C) 100%见单议付" || TermsPayment == "100%信用证(L/C) 90%见单议付，10%验收议付60") {
                    var commission = 0;
                    if (sale / USD < 50000) {
                        commission = (sale * 0.00125);
                    }
                    else if (sale / USD >= 50000) {
                        commission = (sale * 0.000625);
                    }
                    TT = (20 * SupplierNumber) * USD;
                    HOSICBank = commission + (40 * USD) + TT;
                }
                else {
                    if (SupplierNumber == 1) {
                        HOSICBank = (20 * 2) * USD;
                    }
                    else {
                        HOSICBank = (20 + (20 * SupplierNumber)) * USD;
                    }
                }
            }
            return HOSICBank;
        }
        //厂商是Agilent 安捷伦时的银行费用
        function OFHOSICBankFee(BillingCompany, TermsPayment, sale, GongYingShang) {
            var USD = agent.Eles[document.getElementById("XTextBox95").getAttribute("xform_xele_index")].getValue();
            var BankFee = HOSICBankFee(BillingCompany, TermsPayment, sale, GongYingShang);
            var tableObj = document.getElementById('tablenew');
            //获取所有的厂商编号，如果有厂商是Agilent 安捷伦时，则在原银行费上加上100美金
            //for (var i = 2; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
            //    ////if (tableObj.rows[i].cells[6].children[0].children[0].value == '103') {
            //    if (agent.Eles[tableObj.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].getValue() == '103') {
            //        BankFee = BankFee + (100 * USD);
            //        break;
            //    }
            //}
            return BankFee;
        }

        //HOSIC 手续费
        //CustomerDeliveryWay-客户交货方式，sale-不含税销售总价（人民币），USD-美金汇率
        function HOSICTransactionFee(CustomerDeliveryWay, sale, USD) {
            var HOSICCost = 0;
            if (CustomerDeliveryWay == "供应商直发**机场") {
                if (sale / USD < 50000) {
                    HOSICCost = (sale * 0.012);
                }
                else if (sale / USD >= 50000 && sale / USD < 100000) {
                    HOSICCost = (sale * 0.01);
                }
                else {
                    HOSICCost = (sale * 0.008);
                }
            }
            else {
                if (sale / USD < 20000) {
                    HOSICCost = (sale * 0.016);
                }
                else if (sale / USD >= 20000 && sale / USD < 50000) {
                    HOSICCost = (sale * 0.014);
                }
                else if (sale / USD >= 50000 && sale / USD < 100000) {
                    HOSICCost = (sale * 0.012);
                }
                else if (sale / USD >= 100000) {
                    HOSICCost = (sale * 0.01);
                }
                else {
                    HOSICCost = 0;
                }
            }
            return HOSICCost;
        }
        //ZHD3-运保费（HOSIC接/送货运费）
        //CustomerDeliveryWay - 客户交货方式，USD-美金汇率
        function HOSICFreight(CustomerDeliveryWay, USD) {
            SupplierNumber = GetInfoFromTable('tablenew');
            var Freight = 0;
            if (CustomerDeliveryWay == "HOSIC直发**机场") {
                Freight = (100 * USD * SupplierNumber) + (100 * USD);
            }
            else if (CustomerDeliveryWay == "HOSIC送货到客户香港指定地点") {
                Freight = (100 * USD * SupplierNumber) + (100 * USD);
            }
            else if (CustomerDeliveryWay == "客户到HOSIC办公室自提") {
                Freight = (100 * USD * SupplierNumber);
            }
            else {
                Freight = 0;
            }
            return Freight;
        }
        //ZHD4-入关费（香港国内运保费）
        //CustomerDeliveryWay - 客户交货方式，sale - 不含税销售总价（人民币），USD - 美金汇率，Purchase-不含税采购总价（人民币）
        function HOSICTransportationInsurance(CustomerDeliveryWay, sale, USD, Purchase) {
            var TransportationInsurance = 0.00;
            if (CustomerDeliveryWay == "HOSIC直发**机场") {
                if (sale / USD < 20000) {
                    TransportationInsurance = (Purchase * 0.015);
                }
                else if (sale / USD >= 20000 && sale / USD < 50000) {
                    TransportationInsurance = (Purchase * 0.012);
                }
                else if (sale / USD >= 50000) {
                    TransportationInsurance = (Purchase * 0.01);
                }
            }
            return TransportationInsurance;
        }
        //通过填写国际运保费率，计算国际运保费，如果国际运保费低于500美元，则按500美元算，如果超过500美元，则按照（500＋超出价格）进行计算。
        //国际运保费（人民币），国际运保费（采购币种）  ----计算错误,已取消
        function IFGuoJiYunBaoFei(guojiyunbaofei2, GJYF) {
            var USD = agent.Eles[document.getElementById("XTextBox95").getAttribute("xform_xele_index")].getValue();
            if (GJYF == "") {
                if (guojiyunbaofei2 / USD <= (500) && guojiyunbaofei2 > 0) {
                    return 500 * USD;
                }
                else {
                    return guojiyunbaofei2;
                }
            }
            else {
                return guojiyunbaofei2;
            }
        }
        //如果是4000或2000公司，含税销售价格和不含税销售相等，反之计算不含税销售价格
        //BillingCompany-开票公司, PDSellingTotalvalueRest-含税销售总价, shuilv-税率
        function IFBillingCompany(BillingCompany, PDSellingTotalvalueRest, shuilv) {
            if (BillingCompany == "2000上海颐合" || BillingCompany == "A300HOSIC 香港") {
                return PDSellingTotalvalueRest;
            }
            return PDSellingTotalvalueRest / (shuilv + 1);
        }
        //如果是4000或2000公司，税额等于0，反之计算税额
        //BillingCompany - 开票公司, SUMNPDSellingTotalvalueRMB - 合计不含税销售总价, shuilv - 税率
        function IFTaxLimit(BillingCompany, SUMNPDSellingTotalvalueRMB, shuilv) {
            if (BillingCompany == "2000上海颐合" || BillingCompany == "A300HOSIC 香港") {
                return 0;
            }
            return SUMNPDSellingTotalvalueRMB * shuilv;
        }
        //如果是4000或2000公司，含税采购价格和不含税采购相等，反之计算不含税采购价格
        //BillingCompany-开票公司, PDPurchaseTotalvalueRest-含税采购总价, shuilv-税率
        function IFPDPurchaseTotalvalueRest(BillingCompany, PDPurchaseTotalvalueRest, shuilv) {
            if (BillingCompany == "2000上海颐合" || BillingCompany == "A300HOSIC 香港") {
                return PDPurchaseTotalvalueRest;
            }
            return PDPurchaseTotalvalueRest / (shuilv + 1);
        }
        //计算行项目国际运保费
        //GJYF-国际运保费（采购币种）, CGRate-采购汇率, NPDPurchaseTotalvalueRMB-不含税采购总价（人民币）, InternationCIF-国际运保费率
        function CountGUOJIYUNFEI(GJYF, CGRate, NPDPurchaseTotalvalueRMB, InternationCIF) {
            var GJYFR = 0;
            GJYFR = GJYF * CGRate;
            if (GJYFR != 0) {
                return GJYFR;
            }
            else {
                GJYFR = NPDPurchaseTotalvalueRMB * InternationCIF;
            }
            return GJYFR;
        }
        //计算整单国际运保费
        function GetInfoFromTable1(SourcingPurchasing, InternationCIF) {
            var USD = agent.Eles[document.getElementById("XTextBox95").getAttribute("xform_xele_index")].getValue();
            var num = 0;
            var vNum = 0.00;
            var tableInfo1 = new Array();
            var tableInfo2 = new Array();
            var tableInfo3 = new Array();
            var NewArr = new Array();
            var tableRow = "";
            var tableObj = document.getElementById('tablenew');
            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                //获取供应商名称
                tableInfo1[i - 2] = agent.Eles[tableObj.rows[i].cells[35].children[0].getAttribute("xform_xele_index")].getValue();
                //获取国际运保费（人民币）
                tableInfo2[i - 2] = agent.Eles[tableObj.rows[i].cells[29].children[0].getAttribute("xform_xele_index")].getValue();
                //获取国际运保费（采购币种）
                tableInfo3[i - 2] = agent.Eles[tableObj.rows[i].cells[28].children[0].getAttribute("xform_xele_index")].getValue();
            }

            for (var i = 0; i < tableInfo1.length ; i++) {
                for (var j = i + 1; j < tableInfo1.length; j++) {
                    //比较供应商是否为同一个供应商
                    if (tableInfo1[i] === tableInfo1[j] && tableInfo1[i] !== "") {
                        if (j != 1 || tableInfo2[j] != 0) {
                            tableInfo2[i] = Number(tableInfo2[i]) + Number(tableInfo2[j]);
                            tableInfo2[j] = 0;
                        }
                    }
                }
                if (tableInfo3[i] != 0) {
                    NewArr[i] = 1;      //记录行项目是否填写国际运保费
                }
                else
                    NewArr[i] = 0;
            }

            //与$500比较，若单个供应商国际运保费<$500，则按照$500计算
            for (var i = 0; i < tableInfo2.length; i++) {
                if (NewArr[i] != 1) {
                    if (tableInfo2[i] != 0 && tableInfo2[i] / USD < 500) {
                        tableInfo2[i] = 500 * USD;
                    }
                }
            }

            for (var i = 0; i < tableInfo2.length; i++) {
                num = Number(tableInfo2[i]);
                vNum = vNum + num;
                //tableObj.rows[i + 2].cells[27].children[0].children[0].value = tableInfo2[i];
            }
            //document.getElementById('XTextBox67').value = vNum;
            return vNum;
        }

    </script>
    <%--获取当前月份（暂时不用）--%>
    <script type="text/javascript">
        function GetDateTimeMothe(DateTime) {
            DateTime = DateTime.replace(/-/g, "/");
            var date = new Date(DateTime);
            var month = date.getMonth() + 1;
            return month;
        }
        //获取采购关税税率
        //合同币种，产品型号，产品BPMID，采购币种，行号
        function GetPurchasingTariff(SalesCurrency, productnumber, productBPMID, Currency, RowNumber) {
            var Tariff = 0;
            if (SalesCurrency == "CNY") {
                if (productnumber != "" && Currency != "CNY" && Currency != "") {
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                        method: 'POST',
                        params: {
                            method: 'GetPurchaseTariffRate',
                            productBPMID: productBPMID
                        },
                        success: function (action) {
                            var tableObj = document.getElementById('tablenew');
                            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                                if (agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].getValue() == RowNumber) {
                                    var tb = agent.Eles[tableObj.rows[i].cells[31].children[0].getAttribute("xform_xele_index")];
                                    var tbIncrease = agent.Eles[tableObj.rows[i].cells[47].children[0].getAttribute("xform_xele_index")];   //加征关税%
                                    var result = action.result;
                                    var data = action.result.Value;
                                    if (data != null && data != "" && data != undefined) {
                                        tb.setValue(data[0][0]);
                                        tbIncrease.setValue(data[0][1]);
                                    }
                                    XFormOnChange(tb);
                                    XFormOnChange(tbIncrease);
                                }
                            }
                        }
                    });
                }
            }

        }
    </script>

    <%--交易属性字符串拼接--%>
    <script type="text/javascript">
        //判断APP1是否选择为‘其他’，如果选择是其他，将APP1和APP3拼接在一起，
        //如果不是就将APP1和APP2拼接在一起
        function Apply(APP1, APP2, APP3) {
            var str = "";
            if (APP1 != "其他") {
                str = APP1 + "," + APP2;
            }
            else {
                str = APP1 + "," + APP3;
            }
            return str;
        }
    </script>

    <%--SIP业务基金扣款(销售币种)--%>
    <script type="text/javascript">
        //SIP业务基金扣款(销售币种)
        function SIPdeduct(yewufenlei, HSXSZJ) {
            var str = "";
            var tableInfo1 = new Array();
            var tableRow = "";
            var tableObj = document.getElementById('tablenew');
            for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                //var obj = tableObj.rows[i].cells[1].children[0];

                //var index = obj.selectedIndex;
                // tableInfo1[i - 2] = tableObj.rows[i].cells[1].children[index].innerText;
                tableInfo1[i - 2] = agent.Eles[tableObj.rows[i].cells[1].children[0].getAttribute("xform_xele_index")].getValue();
            }
            for (var i = 0; i < tableInfo1.length; i++) {
                if (tableInfo1[i] == "集成销售" || tableInfo1[i] == "集成服务") {
                    str = HSXSZJ * 0.03;
                }
            }
            return str;

        }
    </script>
    <%--获取超期应收账款和应收账款/红旗客户的赋值/是否免税字段赋值/计划行类别赋值---%>
    <script type="text/javascript">
        //获取售达方的超期应收账款和应收账款
        function GetInfo() {
            var kehuID = agent.Eles[document.getElementById("XTextBox49").getAttribute("xform_xele_index")].getValue();
            if (kehuID != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetDMBTRData',
                        KEHUID: kehuID,
                        days: 30
                    },
                    success: function (action) {
                        var result = action.result;
                        var data = action.result.Value;
                        agent.Eles[document.getElementById("XTextBox23").getAttribute("xform_xele_index")].setValue(data.I_DMBTR_C);
                        agent.Eles[document.getElementById("XTextBox54").getAttribute("xform_xele_index")].setValue(data.I_DMBTR_Y);
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
            else {
                alert("请填写售达方客户SAPID！");
            }
        }
        //获取付款方的超期应收账款和应收账款
        function GetInfo2() {
            var kehuID = agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].getValue();
            if (kehuID != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetDMBTRData',
                        KEHUID: kehuID,
                        days: 30
                    },
                    success: function (action) {
                        var result = action.result;
                        var data = action.result.Value;
                        agent.Eles[document.getElementById("XTextBox1").getAttribute("xform_xele_index")].setValue(data.I_DMBTR_C);
                        agent.Eles[document.getElementById("XTextBox62").getAttribute("xform_xele_index")].setValue(data.I_DMBTR_Y);
                        agent.Eles[document.getElementById("XTextBox149").getAttribute("xform_xele_index")].setValue(data.I_DAY_C);
                        agent.Eles[document.getElementById("XTextBox184").getAttribute("xform_xele_index")].setValue(data.E_SAUFT);
                        agent.Eles[document.getElementById("XTextBox185").getAttribute("xform_xele_index")].setValue(data.E_KLIMK);
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
            else {
                alert("请填写付款方客户SAPID！");
            }

        }
        //根据物料类型返回不同的SAPID
        //wuliaoType-物料类型, SASapID-销售物料号, PROSapID-自营租赁物料号, OTHSaPID-其他服务物料号, SERSaPID-技术服务物料号
        function GetPROSAPID(wuliaoType, SASapID, PROSapID, OTHSaPID, SERSaPID) {
            if (wuliaoType == "销售物料") {
                return SASapID;
            }
            else if (wuliaoType == "自营租赁物料") {
                return PROSapID;
            }
            else if (wuliaoType == "其他服务物料") {
                return OTHSaPID;
            }
            else if (wuliaoType == "技术服务物料") {
                return SERSaPID;
            }
        }
        //售达方红旗客户
        function Flag1(Flag1) {
            var radio3_0 = document.getElementById("XRadioButtonList3_0");
            var radio3_1 = document.getElementById("XRadioButtonList3_1");
            if (Flag1 == "是") {
                radio3_0.checked = true;
            }
            else if (Flag1 == "否") {
                radio3_1.checked = true;
            }
        }
        //付款方红旗客户
        function Flag2(Flag2) {
            var radio4_0 = document.getElementById("XRadioButtonList4_0");
            var radio4_1 = document.getElementById("XRadioButtonList4_1");
            if (Flag2 == "是") {
                radio4_0.checked = true;
            }
            else if (Flag2 == "否") {
                radio4_1.checked = true;
            }
        }
        //根据开票公司判读是否免税，Exemption-开票公司
        function ISExemption(Exemption) {
            //var radio2_0 = document.getElementById("XRadioButtonList2_0");
            //是否免税“否”
            var radio2_1 = document.getElementById("XRadioButtonList2_1");
            if (Exemption == "1000东方中科北京" || Exemption == "1010东方中科上海" || Exemption == "1020东方中科深圳" || Exemption == "2100苏州博德") {
                radio2_1.checked = true;
            }
            else {
                radio2_1.checked = false;
            }
        }
        //根据采购模式和采购数量，判读计划行类别BP或BN
        //PlanSort-采购数量, CaiGouMoShi-采购模式
        function ISPlanSort(PlanSort, CaiGouMoShi) {
            //var radio2_0 = document.getElementById("XRadioButtonList2_0");
            //var radio2_1 = document.getElementById("XRadioButtonList2_1");
            var sort = "BN";

            if (CaiGouMoShi == "备货") {
                sort = "BP";
            }
            return sort;
        }
    </script>
    <script type="text/javascript">
        //表单加载的时候进行数据及业务逻辑处理
        Ext.onReady(function () {
           
            //隐藏：费用明细、毛利计算公式
            document.getElementById("div_fymx").style.display = "none";//隐藏
            document.getElementById("div_mljs").style.display = "none";//隐藏
            document.getElementById("div_xdyq").style.display = "none";//隐藏


            //即时更新采购信息  获取采购处理申请单号、采购员姓名

            var formNo = document.getElementById("XLabel3").innerText;      //预审单号
            //tablenew
            var tableObj = document.getElementById("tablenew");
            for (var i = 2; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
                var model = agent.Eles[tableObj.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();//获取对应行 产品型号
                if (model != '') {
                    GetPurchaser(formNo, model, i);
                }
            }

            function GetPurchaser(formNo, prdtModel, row) {
                //alert("formNo=="+formNo+"prdtModel=="+prdtModel);
                //alert("采购信息：预审单号：" + formNo + "，型号：" + prdtModel);
                if (formNo != '' && prdtModel != '') {
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                        method: 'POST',
                        params: {
                            method: 'GetPurchaser',
                            inquiryFormNo: formNo,
                            prdtModel: prdtModel
                        },
                        success: function (action) {
                            var result = action.result;
                            var data = action.result.Value;
                            if (data != null && data != "" && data != undefined) {
                                var i = row;
                                var table = document.getElementById("tablenew");
                                var taskId = data[0][0];
                                var displayName = data[0][1];
                                if (taskId != '') {
                                    agent.Eles[table.rows[i].cells[46].children[2].getAttribute("xform_xele_index")].setValue(taskId);
                                    XFormOnChange(agent.Eles[table.rows[i].cells[46].children[2].getAttribute("xform_xele_index")]);
                                }
                                if (displayName != '') {
                                    agent.Eles[table.rows[i].cells[46].children[0].getAttribute("xform_xele_index")].setValue(displayName);
                                }
                            }
                        },
                        failure: function (action) {
                            //alert(action.result.Message);
                        }
                    });
                }
            }

            //产品型号触发事件（已取消）
            var MaterialObject = GetMaterialTable2('tablenew');
            //获取产品的BPMID
            var Material = GetMaterialTable('tablenew');
            //获取物料类型
            var Material1 = GetMaterialTable1('tablenew');
            //产品BPMID数组
            var s1 = Material.join(',');
            //物料类型数组
            var s2 = Material1.join(',');

            //BPM表单号
            var BPMformNo = agent.Eles[document.getElementById("XLabel3").getAttribute("xform_xele_index")].getValue();    //XLabel3
            ////var STPObject = Ext.getDom("XTextBox123");
            var STPObject = agent.Eles[document.getElementById("XTextBox123").getAttribute("xform_xele_index")].getValue();
            //售达方客户SAPID
            ////var STPSAPID = document.getElementById("XTextBox123").value;
            var STPSAPID = agent.Eles[document.getElementById("XTextBox123").getAttribute("xform_xele_index")].getValue();
            //付款方客户SAPID
            ////var PTPSAPID = document.getElementById("XTextBox125").value;
            var PTPSAPID = agent.Eles[document.getElementById("XTextBox125").getAttribute("xform_xele_index")].getValue();
            //当前预审流程状态
            ////var ZhuangTai = document.getElementById("XTextBox145").value;
            var ZhuangTai = agent.Eles[document.getElementById("XTextBox145").getAttribute("xform_xele_index")].getValue();
            if (ZhuangTai == "业务员发起申请") {
                //分销渠道
                XFormOnChange(agent.Eles[document.getElementById("XTextBox187").getAttribute("xform_xele_index")]);
            }
            //当预审流程状态是“董事会秘书审批”时，打开表单时提示
            if (ZhuangTai == "董事会秘书审批") {
                Ext.MessageBox.alert("审批提示：", "此单含税销售总价CNY≥1000万元，所以需要审批。");
            }

            //当前预审流程状态是“地区助理复核”或“业务员再次发起申请”时，打开表单时提示。
            if (ZhuangTai == "地区助理复核" || ZhuangTai == "业务员再次发起申请") {
                //SAP报价单报错信息
                var EXMessage = agent.Eles[document.getElementById("XTextBox129").getAttribute("xform_xele_index")].getValue();
                var EXcode = agent.Eles[document.getElementById("XTextBox146").getAttribute("xform_xele_index")].getValue();
                var CEXcode = agent.Eles[document.getElementById("XTextBox164").getAttribute("xform_xele_index")].getValue();
                var CEXMessage = agent.Eles[document.getElementById("XTextBox138").getAttribute("xform_xele_index")].getValue();

                if (EXcode == 1) {
                    alert("生成SAP报价单错误，错误信息: " + EXMessage);
                }
                else if (EXcode == 2) {
                    alert("报价单号不存在！");
                }
                else if (EXcode == 3) {
                    alert("SAP系统已根据原有报价单生成SO，BPM系统无法自动删除此报价单并创建新报价单，请注意：将手工将SAP数据修正并退回到业务员撤销此预审单，谢谢！");
                }
                if (CEXcode == 1) {
                    alert("联系人信息有误！错误信息：" + CEXMessage + "请重新填写！");
                }
            }


            //地区经理审批，若销售机会未从crm导入，进行提示
            //产品线对象
            var ProductLineObject = document.getElementById("XDropDownList22");
            //产品线选中的值
            ////var ProductLine = ProductLineObject.options[ProductLineObject.selectedIndex].value;
            var ProductLine = agent.Eles[document.getElementById("XDropDownList22").getAttribute("xform_xele_index")].getValue();
            if (ZhuangTai == "地区经理审批") {
                if (ProductLine == "02") {
                    Ext.MessageBox.alert("审批提示：", "此单为不满足下面条件之一的易捷预审单 或：此单为 非易捷预审单，都需地区经理审批：</br>1）C/Q类客户付款方客户建议授权条件: 合同额<=5万，且毛利率>3%，且付款条件为“全款预付，无收验”或“COD/带款提货，无收验”；</br> 2）P类付款方客户建议授权条件：合同额<=5万，且毛利率>3%，且付款条件为“全款预付，无收验”或“COD/带款提货，无收验”或“货到30天付款T/T，加收、验5天”或“月结30天付款T/T，加收货、验收30天”");
                }
                if (ProductLine == "01") {
                    Ext.MessageBox.alert("审批提示：", "此单为不满足下面条件之一的易捷预审单 或：此单为 非易捷预审单，都需地区经理审批：</br>1）C/Q类客户付款方客户建议授权条件：合同额<=5万，且毛利率>3%，且付款条件为“全款预付，无收验”或“COD/带款提货，无收验”；</br> 2）P类付款方客户建议授权条件：合同额<=5万，且毛利率>3%，且付款条件为“全款预付，无收验”或“COD/带款提货，无收验”或“货到30天付款T/T，加收、验5天”或“月结30天付款T/T，加收货、验收30天");
                }

                if (XChecked("XCheckBox2") != true) {
                    if (XChecked("XCheckBox4") == true) {
                        if (GetXValue("XTextBox171") == '') {

                            if (ProductLine != "03" && ProductLine != '05') {
                                // alert("此单销售机会不是来源于CRM！");
                                Ext.MessageBox.alert("", "此单销售机会不是来源于CRM！")
                            }
                        }
                    }
                }
            }
            //当前预审流程状态时“CSO审批”时，打开表单时的提示和高亮显示
            if (ZhuangTai == "CSO审批") {
                //毛利率
                document.getElementById("XTextBox58").style.backgroundColor = "red";
                //含税销售总价人民币
                document.getElementById("XTextBox68").style.backgroundcolor = "red";
                //合同总金额
                document.getElementById("XTextBox72").style.backgroundColor = "red";
                //质保金
                document.getElementById("XTextBox2").style.backgroundColor = "red";

                var ZhuangTaiString = "";
                var tableObj = document.getElementById('tablenew');
                for (var i = 2; i < tableObj.rows.length - 1; i++) {
                    ////if (tableObj.rows[i].cells[5].children[0].children[0].value == "6109082") {
                    if (agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue() == "6109082") {
                        ZhuangTaiString = "此单存在标准件";
                    }
                }
                if (ZhuangTaiString != '') {
                    alert(ZhuangTaiString);
                }
                else {
                    if (ProductLine == "02") {
                        Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 毛利率＜3%</br>2) 毛利率≥3%且含税销售总价CNY≥50万</br>3) 毛利率≥3%且有标准件</br>4) 毛利率≥3%且有质保金");
                    }
                    else {
                        Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 毛利率＜3%</br>2) 毛利率≥3%且含税销售总价CNY≥50万</br>3) 毛利率≥3%且有标准件</br>4) 毛利率≥3%且有质保金");
                    }
                }
            }
                //当前预审流程状态为“BU总经理审批1”或 为"BU经理审批"时，打开表单时的提示和高亮显示
            else if (ZhuangTai == "BU总经理审批1" || ZhuangTai == "BU经理审批") {
                //毛利率
                document.getElementById("XTextBox58").style.backgroundColor = "red";
                //含税销售总价人民币
                document.getElementById("XTextBox68").style.backgroundcolor = "red";
                //合同总金额
                document.getElementById("XTextBox72").style.backgroundColor = "red";
                var ZhuangTaiString = "";
                var tableObj = document.getElementById('tablenew');
                for (var i = 2; i < tableObj.rows.length - 1; i++) {
                    ////if (tableObj.rows[i].cells[9].children[0].children[0].value == "0") {
                    if (agent.Eles[tableObj.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].getValue() == "0") {
                        ZhuangTaiString = "此单为零金额销售";
                    }
                }
                if (ZhuangTaiString != '') {
                    alert(ZhuangTaiString);
                }
                else {
                    Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 含税销售总价CNY≥100万或毛利率＜0</br>2) 有零金额销售</br>3) 有重点复核");
                }
            }

                //常务副总裁审批(预审流程状态节点处理人为常务副总裁)时，打开表单时提示
            else if (ZhuangTai == "总裁审批" || ZhuangTai == "联想客户审批" || ZhuangTai == "总裁审批1" || ZhuangTai == "总裁审批2") {
                if (ProductLine == '02') {
                    Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 含税销售总价CNY≥200万</br>2) 质保金金额大于毛利的50%（含）且账期超过6个月</br>3) 有重点复核</br>4) 售达方或付款方是联想客户 ");
                }
                if (ProductLine == '01') {
                    Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 含税销售总价CNY≥200万</br>2) 质保金金额大于毛利的50%（含）且账期超过6个月</br>3) 有重点复核 ");
                }
                //NEBU
                if (ProductLine == '06') {
                    Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 含税销售总价CNY≥200万</br>2) 质保金金额大于毛利的50%（含）且账期超过6个月</br>3) 有重点复核 ");
                }
            }
                //当前预审流程状态时“总裁审批”时，打开表单时的提示和高亮显示
            else if (ZhuangTai == "总裁审批3") {
                //毛利率
                document.getElementById("XTextBox58").style.backgroundColor = "red";
                //含税销售总价人民币
                document.getElementById("XTextBox68").style.backgroundcolor = "red";
                //合同总金额
                document.getElementById("XTextBox72").style.backgroundColor = "red";
                //质保金
                document.getElementById("XTextBox2").style.backgroundColor = "red";
                //账期
                document.getElementById("XTextBox65").style.backgroundColor = "red";

                Ext.MessageBox.alert("审批提示", "含有供应商直发产品 且 采购总价CNY≥50万");
                //if (ProductLine != '13') {
                //    Ext.MessageBox.alert("审批提示：", "此单满足下面条件，所以需要审批：</br>含税销售总价CNY≤100万，且付款方客户为关联方");
                //}
                //else {
                //    Ext.MessageBox.alert("审批提示：", "此单满足下面条件之一，所以需要审批：</br>1) 含税销售总价CNY≥200万</br>2) 质保金金额大于毛利的50%（含）且账期超过6个月</br>3) 含税销售总价≤100万，且付款方客户为关联方");
                //}
            }

            else if (ZhuangTai == "CFO审批") {
                Ext.MessageBox.alert("审批提示：", "此单满足下面条件，所以需要审批：</br>付款方是关联客户");
                //alert("付款方是关联客户");

            }
            else if (ZhuangTai == "财务部经理审批") {
                Ext.MessageBox.alert("审批提示：", "开票公司是颐合，且（行项目的含税采购总价（人民币）≤1000元 且 采购模式为备货）");
                //alert("付款方是关联客户");

            }
            else if (ZhuangTai == "EMD产品负责人审批" || ZhuangTai == "EMD产品管理负责人审批") {
                Ext.MessageBox.alert("审批提示：", "行项目产品有SAP库存，但需单独采购");

            }

            else if (ZhuangTai == "财务信控岗审批") {
                if (BPMformNo.substring(0, 4) == "HWYS") {
                    Ext.MessageBox.alert("审批提示", "满足下面条件之一时需审批：</br>1)付款方客户的应收账款有超期30天以上的（后台是按超期天数>30天取数）且 付款条件非（30天付款(电子商务) 或 全款预付无验收 或 COD/带款提货无验收 或 送货取支票/现金 或 100%信用证(L/C)100%见单议付）</br>2)BPM预审时，从SAP实时获取付款方客户（除C/Q类客户外，即：A/B/P类客户）当前可用额度，如可用额度小于0，需信控岗审批（可用额度=信贷额度-信贷风险总额）");
                }
                else {
                    Ext.MessageBox.alert("审批提示", "满足下面条件之一时需审批：</br>1)渠道非电子商务 且 付款方B、P类客户 且（付款条件账期大于90天 or 可用额度小于0）</br>2)渠道非电子商务 且 付款方A类客户 且（付款条件账期大于120天 or 可用额度小于0）</br>3)渠道电子商务 且 付款条件非（30天付款(电子商务) 或 全款预付无验收 或 COD/带款提货无验收 或 送货取支票/现金 或 100%信用证(L/C)100%见单议付）</br>4)合同金额(含税)大于人民币50万元</br>5)付款方客户的应收账款有超期30天以上的（后台是按超期天数>30天取数）且 付款条件非（30天付款(电子商务) 或 全款预付无验收 或 COD/带款提货无验收 或 送货取支票/现金 或 100%信用证(L/C)100%见单议付）");
                }
            }
                //当前预审流程状态时“SIP负责人审批”时，打开表单时的提示和高亮显示
            else if (ZhuangTai == "SIP负责人审批") {
                var ZhuangTaiString = "";
                var tableObj = document.getElementById('tablenew');
                for (var i = 2; i < tableObj.rows.length - 1; i++) {
                    //if (tableObj.rows[i].cells[1].children[0].value == "集成销售" || tableObj.rows[i].cells[1].children[0].value == "集成服务") {
                    var avalue = agent.Eles[tableObj.rows[i].cells[1].children[0].getAttribute("xform_xele_index")].getValue()
                    if (avalue == "集成销售" || avalue == "集成服务") {
                        ZhuangTaiString = "此单有SIP业务";
                    }
                }
                if (ZhuangTaiString != '') {
                    //alert(ZhuangTaiString);
                    Ext.MessageBox.alert("审批提示", ZhuangTaiString);
                }
            }
            else if (ZhuangTai == "技术服务中心经理审批") {
                //alert("此单业务分类为“技术服务中心”");
                Ext.MessageBox.alert("审批提示", "此单有技术服务业务");

            }
            else if (ZhuangTai == "EM TEST产品负责人审批") {
                //alert("此单产品的厂商有“EM TEST”");
                Ext.MessageBox.alert("审批提示", "此单产品的厂商有“EM TEST”");
            }
            else if (ZhuangTai == "NF、菊水产品负责人审批") {
                //alert("此单产品的厂商有“NF”或“菊水”");
                Ext.MessageBox.alert("审批提示", "此单产品的厂商有“NF”或“菊水”");
            }
            else if (ZhuangTai == "高砂产品负责人审批") {
                //alert("此单产品的厂商有“高砂”");
                Ext.MessageBox.alert("审批提示", "此单产品的厂商有“高砂”");
            }
                //ESPEC产品负责人审批
            else if (ZhuangTai == "ESPEC产品负责人审批") {
                //alert("此单产品的厂商有“ESPEC”");
                Ext.MessageBox.alert("审批提示", "此单产品的厂商有“ESPEC”");
            }
                //特测产品负责人审批
            else if (ZhuangTai == "特测产品负责人审批") {
                //alert("此单产品的厂商有“特测”");
                Ext.MessageBox.alert("审批提示", "此单产品的厂商有“特测”");
            }
            else if (ZhuangTai == "人民币采购组长审批") {
                Ext.MessageBox.alert("审批提示", "含有供应商直发产品 且 采购币种为CNY");
            }

            //任何状态打开表单时，都提示重点复核，红旗客户
            ////var chenckBox = document.getElementById("XCheckBox1");
            ////if (chenckBox.checked) {
            if (XChecked("XCheckBox1") == true) {
                alert("请注意，此单需重点复核！");
            }
            var radio3_0 = document.getElementById("XRadioButtonList3_0");
            var radio4_0 = document.getElementById("XRadioButtonList4_0");
            if (radio3_0.checked) {
                alert("售达方客户是红旗客户！");
            }
            else if (radio4_0.checked) {
                alert("付款方客户是红旗客户！");
            }

            /*
           汇率变动提示
           1、预审单中的销售合同币种与采购合同币种不同
           2、行项目上的采购币种只要有一行不是USD（非人民币），且整单毛利率＜15%
           */

            var grossMargin = agent.Eles[document.getElementById("XTextBox58").getAttribute("xform_xele_index")].getValue();  //毛利率
            ////var ddl = document.getElementById("XDropDownList17");   //销售币种
            ////var SalesCurrency = ddl.options[ddl.selectedIndex].value;
            var SalesCurrency = agent.Eles[document.getElementById("XDropDownList17").getAttribute("xform_xele_index")].getValue(); //销售币种
            var Currency = new Array(); //行项目采购币种
            if (SalesCurrency != '') {
                for (var i = 2; i < document.getElementById('tablenew').rows.length - 1; i++) {
                    ////Currency[i - 2] = document.getElementById('tablenew').rows[i].cells[19].children[0].value;
                    Currency[i - 2] = agent.Eles[document.getElementById('tablenew').rows[i].cells[19].children[0].getAttribute("xform_xele_index")].getValue();
                }
                var flag = 0;
                for (var i = 0; i < Currency.length; i++) {
                    //alert(Currency[i]);
                    if (Currency[i] != '') {
                        if (Currency[i] != SalesCurrency) {
                            flag = 1;
                        }
                        else if (Currency[i] != "USD" && Currency[i] != "CNY" && grossMargin < 15) {
                            flag = 1;
                        }
                    }
                }

                if (flag == 1) {
                    // Ext.MessageBox.alert("", "请注意汇率波动，此单特别注意！");
                    alert("请注意汇率波动，此单特别注意！");
                }
            }

            if (ZhuangTai == "业务员发起申请" || ZhuangTai == "EMD产品负责人审批"|| ZhuangTai == "地区助理复核")
            {
                //表单打开时，进行数据加载，并赋值
                if (STPSAPID != "" && s1 != "" && s2 != "") {
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                        method: 'POST',
                        //售达方客户SAPID，付款方客户SAPID，物料号，物料类型
                        params: {
                            method: 'OnLoadSAPID',
                            STPSAPID: STPSAPID,
                            PTPSAPID: PTPSAPID,
                            MaterialNum: s1,
                            MaterialType: s2
                        },
                        success: function (action) {
                            var result = action.result;
                            var data = action.result.Value;
                            //售达方客户数据赋值到表单中

                            var SsapTable = data.Ssap;
                            var Scount = data.StotalRows;
                            if (Scount > 0) {
                                //售达方客户SAPID
                                agent.Eles[document.getElementById("XTextBox49").getAttribute("xform_xele_index")].setValue(SsapTable[0].CustomerSAPID);
                                //售达方客户等级
                                agent.Eles[document.getElementById("XTextBox55").getAttribute("xform_xele_index")].setValue(SsapTable[0].CusLeavel);
                                //售达方客户红旗客户
                                agent.Eles[document.getElementById("XTextBox105").getAttribute("xform_xele_index")].setValue(SsapTable[0].IsFlag);
                                var radio3_0 = document.getElementById("XRadioButtonList3_0");
                                var radio3_1 = document.getElementById("XRadioButtonList3_1");
                                if (SsapTable[0].IsFlag == "是") {
                                    radio3_0.checked = true;
                                }
                                else if (SsapTable[0].IsFlag == "否") {
                                    radio3_1.checked = true;
                                }
                            }
                            //付款方客户数据赋值到表单中
                            var PsapTable = data.Psap;
                            var Pcount = data.PtotalRows;
                            if (Pcount > 0) {
                                //付款方客户SAPID
                                agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].setValue(PsapTable[0].CustomerSAPID);
                                //付款方客户等级
                                agent.Eles[document.getElementById("XTextBox63").getAttribute("xform_xele_index")].setValue(SsapTable[0].CusLeavel);
                                //付款方客户SAPID
                                agent.Eles[document.getElementById("XTextBox107").getAttribute("xform_xele_index")].setValue(PsapTable[0].IsFlag);
                                var radio4_0 = document.getElementById("XRadioButtonList4_0");
                                var radio4_1 = document.getElementById("XRadioButtonList4_1");
                                if (PsapTable[0].IsFlag == "是") {
                                    radio4_0.checked = true;
                                }
                                else if (PsapTable[0].IsFlag == "否") {
                                    radio4_1.checked = true;
                                }
                            }
                            //产品信息数据赋值到表单中
                            var MaterialCount = data.Rows;
                            if (MaterialCount > 0) {
                                var tableObj = document.getElementById('tablenew');
                                var rv = new Array();
                                for (var i = 0; i < MaterialCount; i++) {

                                    var item = data.MaterialSAP[i][0];
                                    //表单中物料号
                                    var s1 = agent.Eles[tableObj.rows[i + 2].cells[5].children[0].getAttribute("xform_xele_index")].getValue();
                                    //表单中厂商编号
                                    var s2 = agent.Eles[tableObj.rows[i + 2].cells[6].children[0].getAttribute("xform_xele_index")].getValue();
                                    //表单中产品名称
                                    var s3 = agent.Eles[tableObj.rows[i + 2].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                                    //表单中厂商名称
                                    var s4 = agent.Eles[tableObj.rows[i + 2].cells[7].children[0].getAttribute("xform_xele_index")].getValue();
                                    if (s1 == "" || s2 == "" || s3 == "" || s4 == "") {
                                        if (item != null) {
                                            if (MaterialCount > 0 && item.MaterialSAPID != null && item.PrdtName != "" && item.ManufacturerID != "" && item.Name != "") {
                                                //物料号
                                                agent.Eles[tableObj.rows[i + 2].cells[5].children[0].getAttribute("xform_xele_index")].setValue(item.MaterialSAPID);
                                                //产品名称
                                                agent.Eles[tableObj.rows[i + 2].cells[4].children[0].getAttribute("xform_xele_index")].setValue(item.PrdtName);
                                                //厂商编号
                                                agent.Eles[tableObj.rows[i + 2].cells[6].children[0].getAttribute("xform_xele_index")].setValue(item.ManufacturerID);
                                                //厂商名称
                                                agent.Eles[tableObj.rows[i + 2].cells[7].children[0].getAttribute("xform_xele_index")].setValue(item.Name);
                                            }
                                        }

                                    }
                                }
                            }

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


        });
        //window.onload = function getOs() {
        Ext.onReady(function () {

            var ie = !!window.ActiveXObject;
            if (ie) {

                document.getElementById('XTextBox49').attachEvent("onpropertychange", STPSAPIDCustomer);
                document.getElementById('XTextBox57').attachEvent("onpropertychange", PTPSAPIDCustomer);
                document.getElementById('PTPButton').style.display = "none";
                document.getElementById('STPButton').style.display = "none";
            }
            else {

                document.getElementById('XTextBox49').addEventListener("input", STPSAPIDCustomer, false);
                document.getElementById('XTextBox57').addEventListener("input", PTPSAPIDCustomer, false);
                //document.getElementById('XTextBox49').addEventListener("click", txChange, false);
            }


        });

        //售达方客户SAPID
        function STPSAPIDCustomer() {
            var STPSAPID1 = agent.Eles[document.getElementById("XTextBox49").getAttribute("xform_xele_index")].getValue();
            var STPName = agent.Eles[document.getElementById("XTextBox43").getAttribute("xform_xele_index")].getValue();
            //判断售达方和付款方的客户是否冻结
            if (STPSAPID1 != "") {
                //售达方客户信息
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'IsCustomerFreeze',
                        ClientSAPID: STPSAPID1
                    },
                    success: function (action) {
                        var result = action.result;
                        var ISRights = action.result.Value;
                        SISRights = ISRights;
                        if (SISRights == '1') {
                            alert(STPName + "（SAPID：" + STPSAPID1 + "）" + "该售达方客户已在SAP中被冻结！请选择其他客户！");
                            agent.Eles[document.getElementById("XTextBox49").getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[document.getElementById("XTextBox105").getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[document.getElementById("XTextBox55").getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[document.getElementById("XTextBox43").getAttribute("xform_xele_index")].setValue("");
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });

            }

        }

        //付款方客户SAPID
        function PTPSAPIDCustomer() {
            var PTPSAPID1 = agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].getValue();
            var PTPName = agent.Eles[document.getElementById("XTextBox56").getAttribute("xform_xele_index")].getValue();

            if (PTPSAPID1 != "") {

                //付款方客户信息
                //ClientSAPID-付款方客户
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'IsCustomerFreeze',
                        ClientSAPID: PTPSAPID1
                    },
                    success: function (action) {
                        var result = action.result;
                        var ISRights = action.result.Value;
                        PISRights = ISRights;
                        if (PISRights == '1') {
                            alert(PTPName + "（SAPID：" + PTPSAPID1 + "）" + "该付款方客户已在SAP中被冻结！请选择其他客户！");
                            agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[document.getElementById("XTextBox56").getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[document.getElementById("XTextBox63").getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[document.getElementById("XTextBox107").getAttribute("xform_xele_index")].setValue("");
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });

            }
        }


        //解决IE8以下getElementsByClassName兼容性问题
        function hasClass(node, className) {
            var cNames = node.className.split(/\s+/);//根据空格来分割node里的元素；
            for (var i = 0; i < cNames.length; i++) {
                if (cNames[i] == className) return true;
            }
            return false;
        }
        function getByClassName(className) {
            if (document.getElementsByClassName) {
                return document.getElementsByClassName(className); //FF下因为有此方法，所以可以直接获取到；
            }
            var nodes = document.getElementsByTagName("*");//获取页面里所有元素，因为他会匹配全页面元素，所以性能上有缺陷，但是可以约束他的搜索范围；
            var arr = [];//用来保存符合的className；
            for (var i = 0; i < nodes.length; i++) {
                if (hasClass(nodes[i], className)) arr.push(nodes[i]);
            }
            return arr;
        }


        //表单提交时进行数据及业务逻辑处理
        agent.on('beforeSubmit', function (actname1, actname) {

            //审批意见为“不同意”，中止其他审批节点   --tx51
            if (actname == "不同意") {
                var stepID = getQueryString("pid");
                var taskID = agent.Eles[document.getElementById("XTextBox183").getAttribute("xform_xele_index")].getValue();
                var formNo = agent.Eles[document.getElementById("XLabel3").getAttribute("xform_xele_index")].getValue();    //XLabel3
                var appName = agent.Eles[document.getElementById("XTextBox40").getAttribute("xform_xele_index")].getValue();
                var appAccount = agent.Eles[document.getElementById("XTextBox35").getAttribute("xform_xele_index")].getValue();

                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'AbortProcStep',
                        stepID: stepID,
                        taskID: taskID,
                        formNo: formNo,
                        appName: appName,
                        appAccount: appAccount
                    },
                    success: function (action) {
                    },
                    failure: function (action) {
                        //alert(action.result.Message);
                    }
                })
            }

            //付款方是红旗客户，合同币种为外币，申请不能提交
            var radio4_0 = document.getElementById("XRadioButtonList4_0");
            var contractCurrency = agent.Eles[document.getElementById("XDropDownList17").getAttribute("xform_xele_index")].getValue();
            if (radio4_0.checked) {
                if (contractCurrency != '' && contractCurrency != 'CNY') {
                    alert("此单付款方是红旗客户且为外币订单，不允许操作，请联系商务部经理！");
                    return false;
                }
            }

            //报供应商最终客户为红旗客户时提示
            var tableObj = document.getElementById("tablenew");
            for (var i = 2; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
                var isFlage = agent.Eles[tableObj.rows[i].cells[43].children[2].getAttribute("xform_xele_index")].getValue();//获取对应行 红旗客户信息
                if (isFlage == "是") {
                    var line = i - 1;
                    alert("产品明细第[ " + line + " ]行 报供应商最终客户 为红旗客户,不能提交！");
                    return false;
                }
            }

            var SISRights = '0';
            var PISRights = '0';

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

            //申请人提交时含税销售总价CNY大于1千万时提示
            if (ZhuangTai == "业务员发起申请" && actname == "提交") {
                //查询物料原产地，若原产地是美国，则提示信息
                if (contractCurrency == "CNY") {
                    for (var i = 2; i < tableObj.rows.length - 1; i++) {
                        var purchaseCurrency = agent.Eles[tableObj.rows[i].cells[19].children[0].getAttribute("xform_xele_index")].getValue();
                        var origin = agent.Eles[tableObj.rows[i].cells[4].children[1].getAttribute("xform_xele_index")].getValue();
                        var state = 0;
                        //alert(purchaseCurrency + "：" + origin);
                        if (purchaseCurrency != 'CNY' && origin == "美国") {
                            state = 1;

                        }
                    }
                    if (state == 1) {
                        //alert("有原产国是美国的产品，注意加征关税！");
                    }

                }


                var SUMPDSellingTotalvalueRMB = agent.Eles[document.getElementById("XTextBox175").getAttribute("xform_xele_index")].getValue();
                if (SUMPDSellingTotalvalueRMB >= 10000000) {
                    Ext.MessageBox.alert("审批提示：", "此单含税销售总价CNY≥1000万元，需要先到董秘审批。");
                }

                //售达方超期应收账款
                var XTextBox23 = agent.Eles[document.getElementById("XTextBox23").getAttribute("xform_xele_index")].getValue();
                //付款方超期应收账款
                var XTextBox1 = agent.Eles[document.getElementById("XTextBox1").getAttribute("xform_xele_index")].getValue();
                //售达方超期应收账款说明
                var XTextBox140 = agent.Eles[document.getElementById("XTextBox140").getAttribute("xform_xele_index")].getValue();
                //付款方超期应收账款说明
                var XTextBox150 = agent.Eles[document.getElementById("XTextBox150").getAttribute("xform_xele_index")].getValue();

                if (parseInt(XTextBox23) > 0) {
                    if (XTextBox140 == "") {
                        alert("请填写售达方超期应收账款说明！");
                        return false;
                    }
                    if (parseInt(XTextBox1) > 0) {
                        if (XTextBox150 == "") {
                            alert("请填写付款方超期应收账款说明！");
                            return false;
                        }
                    }
                }

                //质保金
                var XTextBox2 = agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].getValue();
                //质保金判断
                var RetentionMoney = agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].getValue();
                if (RetentionMoney == '') {
                    agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].setValue(0);
                }


                if (parseInt(XTextBox2) > 0) {
                    var XDropDownList39 = agent.Eles[document.getElementById("XDropDownList39").getAttribute("xform_xele_index")].getValue();
                    if (XDropDownList39 == "") {
                        alert("请选择质保金付款条件！");
                        return false;
                    }
                }
            }



            //预审流程状态为地区助理复核或业务员再次发起申请
            if (ZhuangTai == "地区助理复核" || ZhuangTai == "业务员再次发起申请") {
                //地区助理账号
                var Assistant = agent.Eles[document.getElementById("XTextBox116").getAttribute("xform_xele_index")].getValue();
                //售达方客户SAPID
                var STPSAPID = agent.Eles[document.getElementById("XTextBox49").getAttribute("xform_xele_index")].getValue();
                //付款方客户SAPID
                var PTPSAPID = agent.Eles[document.getElementById("XTextBox57").getAttribute("xform_xele_index")].getValue();
                //销售组织
                var Organization = agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].getValue();
                //分销渠道对象
                var ChannelOfDistributionObject = document.getElementById("XDropDownList12");
                //分销渠道选中的值
                //var ChannelOfDistribution = ChannelOfDistributionObject.options[ChannelOfDistributionObject.selectedIndex].value;
                var ChannelOfDistribution = agent.Eles[document.getElementById("XDropDownList12").getAttribute("xform_xele_index")].getValue();
                //产品线对象
                var ProductLineObject = document.getElementById("XDropDownList22");
                //产品线选中的值
                //var ProductLine = ProductLineObject.options[ProductLineObject.selectedIndex].value;
                var ProductLine = agent.Eles[document.getElementById("XDropDownList22").getAttribute("xform_xele_index")].getValue();


                //判断售达方和付款方的客户是否在该销售组织下
                if (Assistant != "" && STPSAPID != "" && Organization != "" && PTPSAPID != "") {
                    //售达方客户信息
                    ////AssistantSAPID-助理SAPID，ClientSAPID-售达方客户，SalesOrganization-销售组织，ProductLine-产品线，ChannelOfDistribution-分销渠道
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                        method: 'POST',
                        params: {
                            method: 'CustomerRights',
                            AssistantSAPID: Assistant,
                            ClientSAPID: STPSAPID,
                            SalesOrganization: Organization,
                            ProductLine: ProductLine,
                            ChannelOfDistribution: ChannelOfDistribution
                        },
                        success: function (action) {
                            var result = action.result;
                            var ISRights = action.result.Value;
                            SISRights = ISRights;
                        },
                        failure: function (action) {
                            alert(action.result.Message);
                        }
                    });

                    //付款方客户信息
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                        method: 'POST',
                        params: {
                            method: 'CustomerRights',
                            AssistantSAPID: Assistant,
                            ClientSAPID: PTPSAPID,
                            SalesOrganization: Organization,
                            ProductLine: ProductLine,
                            ChannelOfDistribution: ChannelOfDistribution
                        },
                        success: function (action) {
                            var result = action.result;
                            var ISRights = action.result.Value;
                            PISRights = ISRights;
                        },
                        failure: function (action) {
                            alert(action.result.Message);
                        }
                    });

                    if (SISRights == '1') {
                        alert("该售达方客户无操作权限，需授权！");
                        return false;
                    }
                    else if (SISRights == '2') {
                        alert("该售达方客户需扩展到该销售组织下！");
                        return false;
                    }
                    else if (SISRights == '0') {
                        if (PISRights == '1') {
                            alert("该付款方客户无操作权限，需授权！");
                            return false;
                        }
                        else if (PISRights == '2') {
                            alert("该付款方客户需扩展到该销售组织下！");
                            return false;
                        }
                    }

                }

            }



            //售达方和付款方是否是红旗客户，如果是就在提交的时候给出一个提示
            var radio3_0 = document.getElementById("XRadioButtonList3_0");
            var radio4_0 = document.getElementById("XRadioButtonList4_0");
            if (radio3_0.checked) {
                alert("售达方客户是红旗客户！");
                //return false;
            }
            else if (radio4_0.checked) {
                alert("付款方客户是红旗客户！");
                //return false;
            }
            //查看售达方和付款方客户是否有SAPID、是否存在物料号
            var tableObj = document.getElementById('tablenew');
            var tableInfo1 = new Array();
            var ProcurementModel = new Array();
            var ManufacturerNo = new Array();
            for (var i = 2; i < tableObj.rows.length - 1; i++) {
                //物料号
                tableInfo1[i - 2] = agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();
                //采购模式
                ProcurementModel[i - 2] = agent.Eles[tableObj.rows[i].cells[15].children[0].getAttribute("xform_xele_index")].getValue();
                //厂商编号
                ManufacturerNo[i - 2] = agent.Eles[tableObj.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].getValue();
            }
            var BackValue = true;
            for (var i = 0; i < tableInfo1.length; i++) {
                if (tableInfo1[i] == "") {
                    BackValue = false;
                }
                if (STPSAPID == "" && PTPSAPID == "") {
                    alert("请申请客户SAPID");
                }
            }
            if (BackValue == false) {
                alert("请申请SAP物料主数据！");
            }

            if (SISRights == '1') {
                alert("该售达方客户无操作权限，需授权！");
            }
            else if (SISRights == '2') {
                alert("该售达方客户需扩展到该销售组织下！");
            }
            else if (SISRights == '0') {
                if (PISRights == '1') {
                    alert("该付款方客户无操作权限，需授权！");
                }
                else if (PISRights == '2') {
                    alert("该付款方客户需扩展到该销售组织下！");
                }
            }

            //合同金额大于10万  所有0金额行项目的不含税成本小计 不大于 不含税采购总价的10%  --直接使用汇率计算
            /*
            var SumPurchasePrice = getByClassName("purchaseValue");     //行项目 采购价格
            //var SumPurchasePrice =document.getElementsByClassName("purchaseValue");     //行项目 采购价格
            //var SumTotalAmount = document.getElementsByClassName("sellValue");       //行项目 销售价格
            var SumTotalAmount = getByClassName("sellValue");       //行项目 销售价格
            */

            var ContractAmount = agent.Eles[document.getElementById("XTextBox175").getAttribute("xform_xele_index")].getValue();  //合同总金额
            var SumPurchaseAmount = agent.Eles[document.getElementById("XTextBox172").getAttribute("xform_xele_index")].getValue();   //不含税采购总价*0.1

            var gg = 0;
            var tableObj = document.getElementById("tablenew");
            if (Number(ContractAmount) > 100000) {
                for (var i = 2; i < tableObj.rows.length - 1; i++) {
                    var SumPurchasePrice = agent.Eles[tableObj.rows[i].cells[26].children[1].getAttribute("xform_xele_index")].getValue();//不含税采购总价(人民币)
                    var SumTotalAmount = agent.Eles[tableObj.rows[i].cells[13].children[1].getAttribute("xform_xele_index")].getValue();//含税销售总价（人民币）
                    if (SumTotalAmount == 0) {
                        if (parseFloat(SumPurchasePrice) > parseFloat(SumPurchaseAmount)) {
                            gg = 1;
                        }
                    }
                }
                /*
                for (var i = 0; i < SumTotalAmount.length; i++) {
                    if (SumTotalAmount[i].value == 0) {
                        if (parseFloat(SumPurchasePrice[i].value) > parseFloat(SumPurchaseAmount)) {
                            gg = 1;
                        }
                    }

                }*/
            }
            if (actname == "提交" || actname == "重新提交") {
                if (gg == 1) {
                    alert("合同金额大于10万 ；零金额行项目的不含税成本小计大于不含税采购总价的10%，预审不予通过！！ ");
                    return false;
                }
            }

            //联系人邮箱可是否正确
            var APPID = agent.Eles[document.getElementById("XTextBox154").getAttribute("xform_xele_index")].getValue();
            var mail = agent.Eles[document.getElementById("XTextBox89").getAttribute("xform_xele_index")].getValue();
            var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
            if (agent.Eles[document.getElementById("XTextBox154").getAttribute("xform_xele_index")].getValue() == userToken.Account && ZhuangTai == "业务员发起申请") {
                if (filter.test(mail)) {
                    return true;
                }
                else {
                    alert('联系人Email格式不正确');
                    return false;
                }
            }
            if (agent.Eles[document.getElementById("XTextBox154").getAttribute("xform_xele_index")].getValue() == userToken.Account || ZhuangTai == "业务员发起申请") {
                //零采时给出信息提示
                for (var i = 0; i < ProcurementModel.length; i++) {
                    if (ProcurementModel[i] == "零采") {
                        alert("此单有零采仪器，请判断是否需做预付款申请！");
                        break;
                    }
                }
                //厂商是日置是给出信息提示
                for (var i = 0; i < ManufacturerNo.length; i++) {
                    if (ManufacturerNo[i] == "206") {
                        alert("日置非现货产品货期尽量签6-8周，或提前请日置销售备货！");
                        break;
                    }
                }
            }
        });

        //获取地址栏参数
        function getQueryString(name) {
            var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
            var r = window.location.search.substr(1).match(reg);
            if (r != null) {
                return unescape(r[2]);
            }
            return null;
        }

        //获取SAP备货价格
        function GetStockingPrice() {
            var rv = new Array();
            var ArrayCode = new Array();
            var tableObj = document.getElementById('tablenew');
            for (var i = 2; i < tableObj.rows.length - 1; i++) {
                if (agent.Eles[tableObj.rows[i].cells[15].children[0].getAttribute("xform_xele_index")].getValue() == "备货") {
                    rv[i - 2] = agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();
                }
            }
            YZSoft.Ajax.request({
                url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                method: 'POST',
                params: {
                    method: 'GetStockingPrice',
                    ItemNumber: rv
                },
                success: function (action) {
                    var result = action.result;
                    var data = action.result.Value;

                    for (var i = 2; i < tableObj.rows.length - 1; i++) {
                        if (agent.Eles[tableObj.rows[i].cells[15].children[0].getAttribute("xform_xele_index")].getValue() == "备货") {
                            //含税采购单价
                            agent.Eles[tableObj.rows[i].cells[20].children[0].getAttribute("xform_xele_index")].setValue(Number(data[i - 2].Price));
                            //不含税库存成本单价
                            //agent.Eles[tableObj.rows[i].cells[48].children[0].getAttribute("xform_xele_index")].setValue(Number(data[i - 2].NTPrice));
                            ArrayCode[i - 2] = data[i - 2].Code;
                            if (ArrayCode[i - 2] == "1") {
                                agent.Eles[tableObj.rows[i].cells[18].children[0].getAttribute("xform_xele_index")].setValue("");
                            }
                            //销售数量赋值采购数量
                            agent.Eles[tableObj.rows[i].cells[18].children[0].getAttribute("xform_xele_index")].setValue(agent.Eles[tableObj.rows[i].cells[8].children[0].children[0].getAttribute("xform_xele_index")].getValue());
                            //tableObj.rows[i].cells[17].children[0].value = "CNY";
                            //采购币种设置为CNY
                            agent.Eles[tableObj.rows[i].cells[19].children[0].getAttribute("xform_xele_index")].setValue("CNY");
                            XFormOnChange(agent.Eles[tableObj.rows[i].cells[19].children[0].getAttribute("xform_xele_index")]);
                            //采购折扣
                            agent.Eles[tableObj.rows[i].cells[21].children[0].getAttribute("xform_xele_index")].setValue(0);
                            //采购发票税点
                            agent.Eles[tableObj.rows[i].cells[39].children[0].getAttribute("xform_xele_index")].setValue("13%增值税发票");
                            //采购发票税点（小数)
                            agent.Eles[tableObj.rows[i].cells[39].children[1].getAttribute("xform_xele_index")].setValue(0.13);
                            //供应商货期
                            agent.Eles[tableObj.rows[i].cells[40].children[0].getAttribute("xform_xele_index")].setValue(0);
                            // var a = agent.Eles[tableObj.rows[i].cells[20].children[0].getAttribute("xform_xele_index")].disabled;
                            //var a = tableObj.rows[i].cells[20].children[0].children[0].disabled;
                            //alert(a);
                            if (!tableObj.rows[i].cells[20].children[0].children[0].disabled) {
                                XFormOnChange(agent.Eles[tableObj.rows[i].cells[20].children[0].getAttribute("xform_xele_index")]);
                            }
                        }

                    }
                    for (var i = 0; i < ArrayCode.length; i++) {
                        if (ArrayCode[i] == "1") {
                            alert("当前无库存数量，请手工填写成本！");
                            break;
                        }
                    }
                },
                failure: function (action) {
                    alert(action.result.Message);
                }
            });

        }
    </script>
    <script type="text/javascript">
       
        //导入销售机会 传参
        function OppSearch(btn, cfg) {
            //销售机会名称
            //var oppName = document.getElementById("XTextBox109").vlaue;
            var accountID = agent.Eles[document.getElementById("XTextBox35").getAttribute("xform_xele_index")].getValue();
            var buName = agent.Eles[document.getElementById("XTextBox42").getAttribute("xform_xele_index")].getValue();

            cfg.param = { AccountID: accountID, BUName: buName };
        }
    </script>
    <script type="text/javascript">
        //如果选中易捷，则清除客户属性字符串
        function ClearlyStateCRM(OFYIJIE, YUANZHI, ClearlyStateCRM) {
            if (OFYIJIE == "1") {
                return "";
            }
            else {
                if (YUANZHI == "") {
                    return ClearlyStateCRM;
                }
                else {
                    return YUANZHI;
                }

            }
        }
        //如果选中易捷，则清除客户属性信息
        function CRMOppString(YingYongHuanJie, ShiYongZhe, ReDian, Opp, OFYIJIE) {
            if (OFYIJIE == "1") {
                return "";
            }
            else {
                var OppString = YingYongHuanJie + ShiYongZhe + ReDian + Opp;
                return OppString;
            }

        }
        //根据开票公司，清空客户交货方式
        function ClearlyStateDelivery(Company, YUANZHI, ClearlyStateDelivery) {
            if (Company == "1000东方中科北京" || Company == "1010东方中科上海" || Company == "1020东方中科深圳" || Company == "2100苏州博德") {
                return "";
            }
            else {
                if (ClearlyStateDelivery == "") {
                    return ClearlyStateDelivery;
                }
                else {
                    return YUANZHI;
                }
            }
        }
        //开票公司选择2000、A300，税率为0
        function ClearlyStateRate(Company, YUANZHI) {
            if (Company != "1000东方中科北京" && Company != "1010东方中科上海" && Company != "1020东方中科深圳" && Company != "2100苏州博德") {

                return "0%";
            }
            else {
                return YUANZHI;
            }
        }
        //开票公司选择1000、1001、1002、2100，税种为空
        function ClearlyStateRate1(Company, YUANZHI) {
            if (Company != "1000东方中科北京" && Company != "1010东方中科上海" && Company != "1020东方中科深圳" && Company != "2100苏州博德") {

                return "";
            }
            else {
                return YUANZHI;
            }
        }
    </script>
    <script type="text/javascript">
        //点击全选新品销售按钮，将物料类型赋值为销售物料
        function AllXINPINXIAOSHOU() {
            var tableInfo1 = new Array();
            var tableObj = document.getElementById('tablenew');
            if (tableObj.rows.length > 3) {
                for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                    agent.Eles[tableObj.rows[i].cells[1].children[0].getAttribute("xform_xele_index")].setValue("新品销售");
                    XFormOnChange(agent.Eles[tableObj.rows[i].cells[1].children[0].getAttribute("xform_xele_index")]);
                    agent.Eles[tableObj.rows[i].cells[2].children[4].getAttribute("xform_xele_index")].setValue("销售物料");
                    agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].setValue(agent.Eles[tableObj.rows[i].cells[2].children[0].getAttribute("xform_xele_index")].getValue());
                }
            }
        }

        //打印采购申请单函数
        function aa() {
            var temp = document.getElementById('XLabel3').innerText;
            window.open("采购申请单.aspx?serialNum=" + temp);
        }
        //打印销售预审单函数
        function aa1() {
            var temp = document.getElementById('XLabel3').innerText;
            window.open("销售预审单.aspx?serialNum=" + temp);
        }
        //获取BPM价格体系价格，选择为订货时带出订货价格
        function DingHuoCaiGouJiaGe(YuanCaiGouJiaGe, CaiGouJiaGe, CaiGouMoShi) {

            if (CaiGouMoShi == "订货" && CaiGouJiaGe != "") {
                if (parseInt(CaiGouJiaGe) >= 0) {
                    return CaiGouJiaGe;
                }
                else {
                    return YuanCaiGouJiaGe;
                }
            }
            else {
                return YuanCaiGouJiaGe;
            }
        }
        //获取BPM价格体系折扣，选择为订货时带出订货折扣
        function DingHuoCaiGouZheKou(YuanCaiGouZheKou, CaiGouZheKou, CaiGouMoShi) {

            if (CaiGouMoShi == "订货" && CaiGouZheKou != "") {
                if (parseInt(CaiGouZheKou) >= 0) {
                    return CaiGouZheKou;
                }
                else {
                    return YuanCaiGouZheKou;
                }
            }
            else {
                return YuanCaiGouZheKou;
            }
        }

        //采购模式为备货是，采购发票税点是“17%增值税发票”
        function IFCNY(CaiGouBiZhong, YuanCaiGouFaPiao, CaiGouMoShi) {
            if (CaiGouMoShi == "备货") {
                return "13%增值税发票";
            }
            else if (CaiGouBiZhong == "CNY") {
                return YuanCaiGouFaPiao;
            }
            else {
                return "";
            }
        }

        //技术服务协议类型
        function TSType(BusinessCategories, Type) {
            if (BusinessCategories == "代理维修" || BusinessCategories == "代理延保" || BusinessCategories == "代理校准") {
                return "";
            }
            else
                return Type;
        }
     
        function div_ShowHidden(id) {
            //div 展开 隐藏
            var btnName = 'btn_' + id;
            var divName = "div_" + id;
            var btn_value = document.getElementById(btnName).value;
            if (btn_value == "▽展开") {
                document.getElementById(btnName).value = "△隐藏";
                document.getElementById(divName).style.display = "";//显示
            }
            else {
                document.getElementById(btnName).value = "▽展开";
                document.getElementById(divName).style.display = "none";//隐藏
            }
        }

        //修改行项目控件失效时样式
        function UpLineItemStyle(ContractCurrency, PrchaseCurrency, PurchasingPattern, RowNumber) {
            var tableObj = document.getElementById('tablenew');


            //控件backgroundColor清空
            tableObj.rows[RowNumber + 1].cells[27].children[0].children[0].style.backgroundColor = "";//国际运保费
            tableObj.rows[RowNumber + 1].cells[28].children[0].children[0].style.backgroundColor = "";//国际运保费(采购币种)
            tableObj.rows[RowNumber + 1].cells[30].children[0].children[0].style.backgroundColor = "";//报关杂费(人民币)
            tableObj.rows[RowNumber + 1].cells[31].children[0].children[0].style.backgroundColor = "";//关税税率
            tableObj.rows[RowNumber + 1].cells[39].children[0].children[0].style.backgroundColor = "";//采购发票税点
            tableObj.rows[RowNumber + 1].cells[36].children[0].children[0].style.backgroundColor = "";//联系人
            tableObj.rows[RowNumber + 1].cells[37].children[0].children[0].style.backgroundColor = "";//联系电话
            tableObj.rows[RowNumber + 1].cells[38].children[0].children[0].style.backgroundColor = "";//采购付款方式

            //采购币种、采购数量
            if (PurchasingPattern == "备货") {
                tableObj.rows[RowNumber + 1].cells[19].children[0].children[0].style.backgroundColor = "#E6F1F8";
                tableObj.rows[RowNumber + 1].cells[18].children[0].children[0].style.backgroundColor = "#E6F1F8";
                tableObj.rows[RowNumber + 1].cells[34].children[0].children[0].style.backgroundColor = "#E6F1F8";   //计划行类别
                tableObj.rows[RowNumber + 1].cells[40].children[0].children[0].style.backgroundColor = "#E6F1F8";   //供应商货期
                tableObj.rows[RowNumber + 1].cells[42].children[0].children[0].style.backgroundColor = "#E6F1F8";   //供应商保修期
                tableObj.rows[RowNumber + 1].cells[35].children[0].children[0].style.backgroundColor = "#E6F1F8";   //采购供应商

            }
            //国际运保费、国际运保费(采购币种)
            if (PrchaseCurrency == "CNY" || PurchasingPattern == "备货") {
                tableObj.rows[RowNumber + 1].cells[27].children[0].children[0].style.backgroundColor = "#E6F1F8";//国际运保费
                tableObj.rows[RowNumber + 1].cells[28].children[0].children[0].style.backgroundColor = "#E6F1F8";//国际运保费(采购币种)
            }
            //报关杂费(人民币)、关税税率
            if (PrchaseCurrency == "CNY" || (PrchaseCurrency != "CNY" && ContractCurrency != "CNY") || PurchasingPattern == "备货") {
                tableObj.rows[RowNumber + 1].cells[30].children[0].children[0].style.backgroundColor = "#E6F1F8";//报关杂费(人民币)
                tableObj.rows[RowNumber + 1].cells[31].children[0].children[0].style.backgroundColor = "#E6F1F8";//关税税率
            }
            //采购发票税点
            if (PrchaseCurrency != "CNY" || PurchasingPattern == "备货") {
                tableObj.rows[RowNumber + 1].cells[39].children[0].children[0].style.backgroundColor = "#E6F1F8";//采购发票税点
            }
            //联系人、联系电话、采购付款方式
            if (PurchasingPattern == "备货") {
                tableObj.rows[RowNumber + 1].cells[36].children[0].children[0].style.backgroundColor = "#E6F1F8";//联系人
                tableObj.rows[RowNumber + 1].cells[37].children[0].children[0].style.backgroundColor = "#E6F1F8";//联系电话
                tableObj.rows[RowNumber + 1].cells[38].children[0].children[0].style.backgroundColor = "#E6F1F8";//采购付款方式
            }
        }

    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="XLabel1" runat="server" text="销售预审单" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox192" runat="server" XDataBind="formstate" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox146" runat="server" XDataBind="DF_SA_MarketInquiry.ExCode" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox165" runat="server" XDataBind="DF_SA_MarketInquiry.ConfluenceNode" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1">0</aspxform:XTextBox>
                    </td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号：" value valuetodisplaytext></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" XDataBind="DF_SA_MarketInquiry.FormNo" Text="--系统自动生成--" ValueToDisplayText Value BackColor="#8AB3DF" ForeColor="White"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="33" align="left" class="title2" colspan="3">
                        <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Text="修改已结束预审单" AppendMode="ClearAndAppend" DisplayColumns="FormNo:销售预审单号,100;CreateDate:创建日期,100;STPName:售达方客户名称,200;PTPName:付款方客户名称,200" XDataSource="TableName:V_DF_SA_ReferringSingle;Filter:OwnerIDBPM->DF_SA_MarketInquiry.OwnerID;BufferType:RuntimeUpdate" DataMap="OpportunityID->DF_SA_MarketInquiry.OpportunityID;IsImportOpp->DF_SA_MarketInquiry.IsImportOpp;TaskID->DF_SA_MarketInquiry.BPMEndTaskID;FormNo->DF_SA_MarketInquiry.BPMEndForm;APP1->DF_SA_MarketInquiry.APP1" Height="25px"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="XTextBox183" runat="server" XDataBind="DF_SA_MarketInquiry.TaskID" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList44" runat="server" HiddenExpress="1" XDataSource="TableName:V_DF_SA_ReferringSingle;Filter:TaskID->DF_SA_MarketInquiry.BPMEndTaskID;BufferType:RuntimeUpdate" DataMap="SalesOrganizationCode->DF_SA_MarketInquiry.SalesOrganizationCode;SalesOpportunities->DF_SA_MarketInquiry.SalesOpportunities;Owner->DF_SA_MarketInquiry.Owner;SAPOrderNumber->DF_SA_MarketInquiry.SAPOrderNumber;InvoiceType->InvoiceType;SalesEmployeeID->DF_SA_MarketInquiry.SalesEmployeeID;STPName->DF_SA_STPClientMessage.STPName;SalesOffice->DF_SA_MarketInquiry.SalesOffice;PTPName->DF_SA_PTPClientMessage.PTPName;ExchangeRate->DF_SA_MarketInquiry.ExchangeRate;SUMPDSellingTotalvalueRMB->DF_SA_MarketInquiry.SUMPDSellingTotalvalueRMB;ChannelOfDistribution->DF_SA_MarketInquiry.ChannelOfDistribution;SAPOFName->DF_SA_STPClientMessage.SAPOFName;AIBUChargeRMB->DF_SA_MarketInquiry.AIBUChargeRMB;CustomerDeliveryWay->DF_SA_MarketInquiry.CustomerDeliveryWay;SUMNPDSellingTotalvalueRMB->DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB;IsRelatedCus->DF_SA_STPClientMessage.IsRelatedCus;PTPSapID->DF_SA_PTPClientMessage.PTPSapID;SalesOrganization->DF_SA_MarketInquiry.SalesOrganization;SAContractNo->DF_SA_MarketInquiry.SAContractNo;OFAccessory->DF_SA_MarketInquiry.OFAccessory;Remark->DF_SA_MarketInquiry.Remark;APP4->DF_SA_MarketInquiry.APP4;BillingCompany->DF_SA_MarketInquiry.BillingCompany;ProductLine->DF_SA_MarketInquiry.ProductLine;SUMNPDSellingTotalvalueRest->DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRest;SUMPDPurchaseTotalvalueRMB->DF_SA_MarketInquiry.SUMPDPurchaseTotalvalueRMB;OtherCosts->DF_SA_MarketInquiry.OtherCosts;Accessory1->DF_SA_MarketInquiry.Accessory1;SIPBFdeduct->DF_SA_MarketInquiry.SIPBFdeduct;CustomerDeliveryDate->DF_SA_MarketInquiry.CustomerDeliveryDate;AssistantID->DF_SA_MarketInquiry.AssistantID;AIBUCharge->DF_SA_MarketInquiry.AIBUCharge;SUMNPDPurchaseTotalvalueRMB->DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRMB;Review->DF_SA_MarketInquiry.Review;GrossProfitRate->DF_SA_MarketInquiry.GrossProfitRate;ATBUFilingLeaderBPMID->DF_SA_MarketInquiry.ATBUFilingLeaderBPMID;AIBUFilingLeaderBPMID->DF_SA_MarketInquiry.AIBUFilingLeaderBPMID;SUMNPDPurchaseTotalvalueRest->DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRest;AssistantSAPID->DF_SA_MarketInquiry.AssistantSAPID;OPPString->DF_SA_MarketInquiry.OPPString;SIPBFdeductRMB->DF_SA_MarketInquiry.SIPBFdeductRMB;AssistantName->DF_SA_MarketInquiry.AssistantName;RebateGrossMargin->DF_SA_MarketInquiry.RebateGrossMargin;PTPCustomerLevel->DF_SA_PTPClientMessage.PTPCustomerLevel;AppLink->DF_SA_MarketInquiry.AppLink;PTPOverdueAccountsReceivableExplanation->DF_SA_PTPClientMessage.PTPOverdueAccountsReceivableExplanation;Accessory->DF_SA_MarketInquiry.Accessory;ContractCurrency->DF_SA_MarketInquiry.ContractCurrency;Quality->DF_SA_MarketInquiry.Quality;RebateGrossMarginString->DF_SA_MarketInquiry.RebateGrossMarginString;RetentionPaymentTerms->DF_SA_MarketInquiry.RetentionPaymentTerms;STPSapID->DF_SA_STPClientMessage.STPSapID;SalesmanID->DF_SA_MarketInquiry.SalesmanID;BU->DF_SA_MarketInquiry.BU;SUMPDSellingTotalvalueRest->DF_SA_MarketInquiry.SUMPDSellingTotalvalueRest;TaxLimit->DF_SA_MarketInquiry.TaxLimit;PaymentDaysExplanation->DF_SA_MarketInquiry.PaymentDaysExplanation;IsRelatedCus2->DF_SA_PTPClientMessage.IsRelatedCus;STPCustomerLevel->DF_SA_STPClientMessage.STPCustomerLevel;OFYIJIE->DF_SA_MarketInquiry.OFYIJIE;DescriptionExemption->DF_SA_MarketInquiry.DescriptionExemption;Hotspot->DF_SA_MarketInquiry.Hotspot;AppDirection->DF_SA_MarketInquiry.AppDirection;EMDFilingLeaderBPMID->DF_SA_MarketInquiry.EMDFilingLeaderBPMID;Salesman->DF_SA_MarketInquiry.Salesman;SUMPDPurchaseTotalvalueRest->DF_SA_MarketInquiry.SUMPDPurchaseTotalvalueRest;TaxType->DF_SA_MarketInquiry.TaxType;GrossMargin->DF_SA_MarketInquiry.GrossMargin;ContractAmount->DF_SA_MarketInquiry.ContractAmount;STPOverdueAccountsReceivableExplanation->DF_SA_STPClientMessage.STPOverdueAccountsReceivableExplanation;SupplierStraightInformation->DF_SA_MarketInquiry.SupplierStraightInformation;PTPAccountsReceivable->DF_SA_PTPClientMessage.PTPAccountsReceivable;STPAccountsReceivable->DF_SA_STPClientMessage.STPAccountsReceivable;PaymentDays->DF_SA_MarketInquiry.PaymentDays;APPUser->DF_SA_MarketInquiry.APPUser;EachDistrict->DF_SA_MarketInquiry.EachDistrict;OtherFee->DF_SA_MarketInquiry.OtherFee;Exemption->DF_SA_MarketInquiry.Exemption;SalesOpportunitiesID->DF_SA_MarketInquiry.SalesOpportunitiesID" DisplayColumn="TaskID" ValueColumn="TaskID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td align="right" class="title3">
                        <aspxform:XTextBox id="XTextBox145" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="Global.StepName"></aspxform:XTextBox>
                        <aspxform:XButton id="XButton2" runat="server" Width="100px" HiddenExpress="Global.StepName=='业务员发起预审'" Text="打印预审申请单" Height="25px" align="right" OnClientClick="aa1()"></aspxform:XButton>
                        <aspxform:XButton id="XButton1" runat="server" Width="100px" HiddenExpress="Global.StepName=='业务员发起预审'" Text="打印采购申请单" Height="25px" align="right" OnClientClick="aa()"></aspxform:XButton>
                    </td>
                </tr>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="XLabel34" runat="server" text="用户信息" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td width="299" height="19" class="ts">
                        <asp:Label id="XLabel35" runat="server" text="创建用户" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox154" runat="server" XDataBind="DF_SA_MarketInquiry.APPID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="178" class="ts1">
                        <aspxform:XTextBox id="XTextBox38" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.AppName" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="299" class="ts">
                        <asp:Label id="XLabel40" runat="server" text="创建日期" value valuetodisplaytext></asp:Label></td>
                    <td width="415" class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" style="WIDTH: 50%" runat="server" XDataBind="DF_SA_MarketInquiry.CreateDate" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox96" runat="server" XDataBind="dangqianyue" Width="10px" BorderWidth="1" HiddenExpress="1" Express="javascript('GetDateTimeMothe',DF_SA_MarketInquiry.CreateDate)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts">
                        <asp:Label id="XLabel36" runat="server" text="业务员" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_SA_MarketInquiry.SalesmanID" Width="20%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ValueToDisplayText="TableName:DF_SA_SS_SalesPersonnel;FilterColumn:StaffID;DisplayColumn:StaffID" DataMap="StaffID->DF_SA_MarketInquiry.OwnerID;StaffName->DF_SA_MarketInquiry.Owner;SalesOffice->DF_SA_MarketInquiry.SalesOffice;ProductLine->BU;Region->DF_SA_MarketInquiry.EachDistrict;StaffSAPNumber->DF_SA_MarketInquiry.SalesEmployeeID;IsEasyJet->YJ"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox187" runat="server" XDataBind="YJ" Width="15px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox40" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.Salesman" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="35px" Text="查询" DisplayColumns="StaffName:姓名,;SalesOffice:销售办公室," XDataSource="ProcedureName:proc_DF_SD_PersonnelSearch;Filter:@bpmAccount->DF_SA_MarketInquiry.APPID" DataMap="StaffID->DF_SA_MarketInquiry.SalesmanID;StaffName->DF_SA_MarketInquiry.Salesman;SalesOffice->DF_SA_MarketInquiry.SalesOffice;ProductLine->DF_SA_MarketInquiry.BU;Region->DF_SA_MarketInquiry.EachDistrict;StaffSAPNumber->DF_SA_MarketInquiry.SalesEmployeeID;IsEasyJet->YJ"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel42" runat="server" text="重点复核" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XCheckBox id="XCheckBox1" runat="server" XDataBind="DF_SA_MarketInquiry.Review"></aspxform:XCheckBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel38" runat="server" text="BU" value valuetodisplaytext></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList34" runat="server" HiddenExpress="1" XDataSource="TableName:V_DF_SA_SS_ProductLine;Filter:Value->BU" DataMap="Name->DF_SA_MarketInquiry.BU;Value->DF_SA_MarketInquiry.ProductLine" DisplayColumn="Name" ValueColumn="Name">
                            <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" XDataBind="DF_SA_MarketInquiry.BU" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel39" runat="server" text="所属地区" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox41" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.EachDistrict" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XTextBox id="XTextBox133" runat="server" XDataBind="DF_SA_MarketInquiry.EMDFilingLeaderBPMID" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Height="20"></aspxform:XTextBox>
        <aspxform:XTextBox id="XTextBox134" runat="server" XDataBind="DF_SA_MarketInquiry.ATBUFilingLeaderBPMID" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Height="20"></aspxform:XTextBox>
        <aspxform:XTextBox id="XTextBox135" runat="server" XDataBind="DF_SA_MarketInquiry.AIBUFilingLeaderBPMID" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Height="20"></aspxform:XTextBox>
        <aspxform:XDropDownList id="XDropDownList14" runat="server" HiddenExpress="1" XDataSource="ProcedureName:proc_Df_sa_ss_FilingMessage;Filter:@BU->DF_SA_MarketInquiry.BU,@EachDistrict->DF_SA_MarketInquiry.EachDistrict" DataMap="ATBUFilingLeaderBPMID->DF_SA_MarketInquiry.ATBUFilingLeaderBPMID;EMDFilingLeaderBPMID->DF_SA_MarketInquiry.EMDFilingLeaderBPMID;AIBUFilingLeaderBPMID->DF_SA_MarketInquiry.AIBUFilingLeaderBPMID" Height="20" DisplayColumn="BU" ValueColumn="EachDistrict">
            <asp:ListItem>未绑定</asp:ListItem>
        </aspxform:XDropDownList>
        <aspxform:XRequiredFieldValidator id="请填写销售合同编号" runat="server" ControlToValidate="XTextBox52" ErrorMessage="请填写销售合同编号" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择事业部" runat="server" ControlToValidate="XDropDownList22" ErrorMessage="请选择事业部" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择开票公司" runat="server" ControlToValidate="XDropDownList5" ErrorMessage="请选择开票公司" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择销售组织" runat="server" ControlToValidate="XDropDownList6" ErrorMessage="请选择销售组织" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择销售办公室" runat="server" ControlToValidate="XDropDownList7" ErrorMessage="请选择销售办公室" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择分销渠道" runat="server" ControlToValidate="XDropDownList12" ErrorMessage="请选择分销渠道" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择销售组织1" runat="server" ControlToValidate="XTextBox16" ErrorMessage="请选择销售组织" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XTextBox id="XTextBox147" runat="server" XDataBind="DF_SA_MarketInquiry.Approver" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Height="20"></aspxform:XTextBox>
        <aspxform:XDropDownList id="XDropDownList38" runat="server" HiddenExpress="1" XDataSource="ProcedureName:PROC_DF_CreditControl;Filter:@ChannelOfDistribution->DF_SA_MarketInquiry.ChannelOfDistribution,@STPCustomerLevel->DF_SA_PTPClientMessage.PTPCustomerLevel,@TermsPayment->DF_SA_MarketInquiry.TermsPayment" DataMap="Approver->DF_SA_MarketInquiry.Approver" Height="20" DisplayColumn="Approver" ValueColumn="Approver">
            <asp:ListItem>未绑定</asp:ListItem>
        </aspxform:XDropDownList>
        <aspxform:XRequiredFieldValidator id="业务员信息没有维护" runat="server" ControlToValidate="XTextBox84" ErrorMessage="业务员信息没有维护，请在系统设置中进行维护,并在维护后重新选择业务员" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <br />
        <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="XLabel95" runat="server" text="基本信息" value valuetodisplaytext></asp:Label><asp:Label id="XLabel191" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel223" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                    </td>
                </tr>
                <tr>
                    <td width="191" height="23" class="ts">
                        <asp:Label id="XLabel13" runat="server" text="拥有人" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox114" runat="server" XDataBind="DF_SA_MarketInquiry.OwnerID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ValueToDisplayText="TableName:V_DF_SA_BPMSysOUs;FilterColumn:Account;DisplayColumn:Account" DataMap="UserAccount->DF_SA_MarketInquiry.AssistantID;DisplayName->DF_SA_MarketInquiry.AssistantName;AssistantSAPID->DF_SA_MarketInquiry.AssistantSAPID"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox111" runat="server" XDataBind="DF_SA_MarketInquiry.AssistantID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox115" runat="server" XDataBind="DF_SA_MarketInquiry.AssistantName" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox116" runat="server" XDataBind="DF_SA_MarketInquiry.AssistantSAPID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox84" runat="server" XDataBind="DF_SA_MarketInquiry.SalesEmployeeID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="435" class="ts1">
                        <aspxform:XTextBox id="XTextBox7" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.Owner" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                        <%--<aspxform:XDropDownList id="XDropDownList 35" runat="server" HiddenExpress="1" DataMap="Account->DF_SA_MarketInquiry.OwnerID;UserAccount->DF_SA_MarketInquiry.AssistantID;DisplayName->DF_SA_MarketInquiry.AssistantName;UserName->DF_SA_MarketInquiry.Owner;AssistantSAPID->DF_SA_MarketInquiry.AssistantSAPID" XDataSource="TableName:V_DF_SA_BPMSysOUs;Filter:Account->DF_SA_MarketInquiry.SalesmanID" ValueColumn="Account" DisplayColumn="Account">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>--%></td>
                    <td width="184" class="ts">
                        <asp:Label id="XLabel146" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel43" runat="server" text="销售合同编号" value valuetodisplaytext></asp:Label></td>
                    <td width="382" class="ts1">
                        <aspxform:XTextBox id="XTextBox52" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.SAContractNo" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox129" runat="server" XDataBind="DF_SA_MarketInquiry.EXMessage" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel41" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel129" runat="server" text="事业部" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList22" runat="server" XDataBind="DF_SA_MarketInquiry.ProductLine" XDataSource="TableName:V_DF_SA_SS_ProductLine;Filter:OrderBy:'OrderID';BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Value" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel101" runat="server" XDataBind="chanpinxian" HiddenExpress="1" Text="产品线" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel147" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel111" runat="server" text="开票公司" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_SA_MarketInquiry.BillingCompany" Width="175px" XDataSource="TableName:DF_SA_SS_Company;OrderBy:'CompanyCode';BufferType:RuntimeUpdate" DisplayColumn="Company" ValueColumn="Company" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts">
                        <asp:Label id="XLabel236" runat="server" text="* " value valuetodisplaytext forecolor="MediumBlue"></asp:Label>&nbsp;<asp:Label id="XLabel44" runat="server" text="SO号-PR号" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox48" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.SONOPRNO" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <asp:Label id="XLabel153" runat="server" text="助理回填" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label></td>
                    <td class="ts">
                        <asp:Label id="XLabel45" runat="server" text="SAP报价单号" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox53" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.SAPOrderNumber" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="ts">
                        <asp:Label id="XLabel230" runat="server" text="*" value valuetodisplaytext forecolor="MediumBlue"></asp:Label>&nbsp;<asp:Label id="XLabel37" runat="server" text="销售组织" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_SA_MarketInquiry.SalesOrganization" Width="150px" XDataSource="TableName:V_DF_SA_SS_SalesOrganizing;Filter:CompanyName->DF_SA_MarketInquiry.BillingCompany" DisplayColumn="SalesOrganization" ValueColumn="SalesOrganization">
                            <asp:ListItem Selected="True">未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_SA_MarketInquiry.SalesOrganizationCode" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList11" runat="server" HiddenExpress="1" XDataSource="ProcedureName:proc_DF_SA_SS_SalesOrganizing;Filter:@Company->DF_SA_MarketInquiry.BillingCompany,@SalesOrganization->DF_SA_MarketInquiry.SalesOrganization" DataMap="SalesOrganizationCode->DF_SA_MarketInquiry.SalesOrganizationCode" DisplayColumn="SalesOrganizationCode" ValueColumn="SalesOrganizationCode">
                            <asp:ListItem Selected="True">未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel149" runat="server" text="*" value valuetodisplaytext forecolor="MediumBlue"></asp:Label>&nbsp;<asp:Label id="XLabel94" runat="server" text="销售办公室" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XDropDownList id="XDropDownList7" runat="server" XDataBind="DF_SA_MarketInquiry.SalesOffice" Width="155px" XDataSource="TableName:DF_SA_SS_SalesOffice;OrderBy:OrderID" DisplayColumn="SalesOffice" ValueColumn="SalesOfficeID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel">
                        <asp:Label id="XLabel231" runat="server" text="*" value valuetodisplaytext forecolor="MediumBlue"></asp:Label>&nbsp;<asp:Label id="XLabel112" runat="server" text="分销渠道" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList12" runat="server" XDataBind="DF_SA_MarketInquiry.ChannelOfDistribution" XDataSource="TableName:DF_DataSourceList;Filter:Type->fenxiaoqudao;BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Value" Express="if(YJ=='是','30',DF_SA_MarketInquiry.ChannelOfDistribution)" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel130" runat="server" XDataBind="fenxiaoqudao" HiddenExpress="1" Text="分销渠道" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel164" runat="server" text="参照预审单号" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox167" runat="server" XDataBind="DF_SA_MarketInquiry.BPMEndTaskID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox166" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.BPMEndForm" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="请选择应用环节" runat="server" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" ControlToValidate="XDropDownList28" ErrorMessage="请选择应用环节" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="请选择使用者" runat="server" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" ControlToValidate="XDropDownList26" ErrorMessage="请选择使用者" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择热点" runat="server" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" ControlToValidate="XDropDownList27" ErrorMessage="请选择热点" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择应用方向" runat="server" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" ControlToValidate="XDropDownList24" ErrorMessage="请选择应用方向" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择应用方向1" runat="server" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" ControlToValidate="XDropDownList25" ErrorMessage="请选择应用方向" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="4">
                        <asp:Label id="XLabel233" runat="server" text="交易属性" value valuetodisplaytext></asp:Label><asp:Label id="XLabel234" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel235" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                        <aspxform:XCheckBox id="XCheckBox2" runat="server" XDataBind="DF_SA_MarketInquiry.OFYIJIE" Width="71px" Text="易捷" Express="if(DF_SA_MarketInquiry.ProductLine=='05',0,DF_SA_MarketInquiry.OFYIJIE)" DisableExpress="DF_SA_MarketInquiry.ProductLine=='05'"></aspxform:XCheckBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel">
                        <asp:Label id="XLabel151" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel143" runat="server" text="应用环节" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList28" runat="server" XDataBind="DF_SA_MarketInquiry.AppLink" Width="130px" XDataSource Express="javascript('ClearlyStateCRM',DF_SA_MarketInquiry.OFYIJIE,DF_SA_MarketInquiry.AppLink)" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" PromptText="--请选择--" PrintOut="False">
                            <asp:ListItem Value="1">研发</asp:ListItem>
                            <asp:ListItem Value="2">制造、生产</asp:ListItem>
                            <asp:ListItem Value="3">检测，监控，维修</asp:ListItem>
                            <asp:ListItem Value="4">教学</asp:ListItem>
                            <asp:ListItem Value="5">医用、治疗</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel154" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel141" runat="server" text="使用者" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList26" runat="server" XDataBind="DF_SA_MarketInquiry.APPUser" XDataSource Express="javascript('ClearlyStateCRM',DF_SA_MarketInquiry.OFYIJIE,DF_SA_MarketInquiry.APPUser)" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" PromptText="--请选择--">
                            <asp:ListItem Value="1">科研人员</asp:ListItem>
                            <asp:ListItem Value="2">工程师</asp:ListItem>
                            <asp:ListItem Value="3">教师</asp:ListItem>
                            <asp:ListItem Value="4">学生</asp:ListItem>
                            <asp:ListItem Value="5">工人</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel155" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel142" runat="server" text="热点" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList27" runat="server" XDataBind="DF_SA_MarketInquiry.Hotspot" Width="130px" XDataSource Express="javascript('ClearlyStateCRM',DF_SA_MarketInquiry.OFYIJIE,DF_SA_MarketInquiry.Hotspot)" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" PromptText="--请选择--">
                            <asp:ListItem Value="0">&lt;没有&gt;</asp:ListItem>
                            <asp:ListItem Value="1">LED</asp:ListItem>
                            <asp:ListItem Value="2">混动汽车（EHV）</asp:ListItem>
                            <asp:ListItem Value="3">物联网</asp:ListItem>
                            <asp:ListItem Value="4">新材料</asp:ListItem>
                            <asp:ListItem Value="5">轨道交通</asp:ListItem>
                            <asp:ListItem Value="6">智能电网</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel152" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel140" runat="server" text="应用方向" value valuetodisplaytext></asp:Label> 
                        <aspxform:XTextBox id="XTextBox99" runat="server" XDataBind="DF_SA_MarketInquiry.AppDirection" Width="40%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('Apply',DF_SA_MarketInquiry.APP1,DF_SA_MarketInquiry.APP2,DF_SA_MarketInquiry.APP4)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList24" runat="server" XDataBind="DF_SA_MarketInquiry.APP1" Width="120px" XDataSource="TableName:DF_SA_SS_Apply;BufferType:RuntimeUpdate" DisplayColumn="Apply1" ValueColumn="Apply1" Express="javascript('ClearlyStateCRM',DF_SA_MarketInquiry.OFYIJIE,DF_SA_MarketInquiry.APP1)" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList25" runat="server" XDataBind="DF_SA_MarketInquiry.APP2" Width="140px" HiddenExpress='DF_SA_MarketInquiry.APP1=="其他"||DF_SA_MarketInquiry.APP1=="材料"||DF_SA_MarketInquiry.APP1=="医疗仪器"||DF_SA_MarketInquiry.APP1=="教学/科研"||DF_SA_MarketInquiry.APP1=="装备"' XDataSource="TableName:DF_SA_SS_Apply;Filter:Apply1->DF_SA_MarketInquiry.APP1;BufferType:RuntimeUpdate" DataMap="OPPString->OPP" DisplayColumn="Apply2" ValueColumn="Apply2" Express="javascript('ClearlyStateCRM',DF_SA_MarketInquiry.OFYIJIE,DF_SA_MarketInquiry.APP2,APP2)" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox98" runat="server" XDataBind="DF_SA_MarketInquiry.APP4" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress='DF_SA_MarketInquiry.APP1!="其他"'></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox139" runat="server" XDataBind="OPP" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel144" runat="server" text="OPP字符串" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox97" runat="server" XDataBind="DF_SA_MarketInquiry.OPPString" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('CRMOppString',DF_SA_MarketInquiry.AppLink,DF_SA_MarketInquiry.APPUser,DF_SA_MarketInquiry.Hotspot,OPP,DF_SA_MarketInquiry.OFYIJIE)" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XDropDownList id="XDropDownList41" runat="server" XDataBind="APP2" HiddenExpress="1" XDataSource="TableName:V_DF_SA_ReferringSingle;Filter:TaskID->DF_SA_MarketInquiry.BPMEndTaskID;BufferType:RuntimeUpdate" DataMap="SAPOFSapID->DF_SA_STPClientMessage.SAPOFSapID;SAPOFAddress->DF_SA_STPClientMessage.SAPOFAddress;SAPOFEmail->DF_SA_STPClientMessage.SAPOFEmail;SAPOFName->DF_SA_STPClientMessage.SAPOFName;SAPOFDepartment->DF_SA_STPClientMessage.SAPOFDepartment;SAPOFContact->DF_SA_STPClientMessage.SAPOFContact;SAPOFTelephone->DF_SA_STPClientMessage.SAPOFTelephone;SAPOFPhone->DF_SA_STPClientMessage.SAPOFPhone;ClientCRMID->DF_SA_STPClientMessage.ClientCRMID;SAPOFAreaCode->DF_SA_STPClientMessage.SAPOFAreaCode;STPClientTag->DF_SA_STPClientMessage.STPClientTag;SAPOFExtCode->DF_SA_STPClientMessage.SAPOFExtCode;ClientBPMID->DF_SA_STPClientMessage.ClientBPMID" DisplayColumn="APP2" ValueColumn="APP2">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XRequiredFieldValidator id="请填写销售机会名称" runat="server" DisableExpress="DF_SA_MarketInquiry.ProductLine=='05'" ControlToValidate="XTextBox109" ErrorMessage="请填写销售机会名称" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_SA_MarketInquiry.ProductLine=='05'">
            <tbody>
                <tr>
                    <td width="250">
                        <asp:Label id="XLabel222" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel206" runat="server" text="销售机会名称" value valuetodisplaytext></asp:Label>&nbsp;<aspxform:XCheckBox id="XCheckBox4" runat="server" XDataBind="DF_SA_MarketInquiry.IsImportOpp" Width="119px" Text="此单没有销售机会" Express="if(DF_SA_MarketInquiry.ProductLine=='05',1,DF_SA_MarketInquiry.IsImportOpp)" Font-Bold="True"></aspxform:XCheckBox>
                    </td>
                    <td width="650">
                        <aspxform:XTextBox id="XTextBox109" runat="server" XDataBind="DF_SA_MarketInquiry.SalesOpportunities" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox171" runat="server" XDataBind="DF_SA_MarketInquiry.OpportunityID" Width="10" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton6" runat="server" Width="150px" XClass="Oimec.Dialogs.SalesOpportunityButton" Text="导入销售机会" DataMap="OpportunityID->DF_SA_MarketInquiry.OpportunityID;OpportunityName->DF_SA_MarketInquiry.SalesOpportunities;CustomerName->DF_SA_STPClientMessage.STPName;ContactName->DF_SA_STPClientMessage.SAPOFContact;ContactMobile->DF_SA_STPClientMessage.SAPOFTelephone;ContactPhone->DF_SA_STPClientMessage.SAPOFPhone;ContactMail->DF_SA_STPClientMessage.SAPOFEmail;ContactDepart->DF_SA_STPClientMessage.SAPOFDepartment" Height="25px" BrowserWindowType="AjaxPanel" NavigateUrl="DFJC/Sales/Dialogs/OpportunityDlg.js" BeforePopupCallFunc="OppSearch" Filter="AccountID->DF_SA_MarketInquiry.SalesmanID,BUName->DF_SA_MarketInquiry.BU"></aspxform:XCustomBrowserButton>
                        <aspxform:XTextBox id="XTextBox127" runat="server" XDataBind="DF_SA_MarketInquiry.SalesOpportunitiesID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1199" align="center" class="table" id="Table1" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="XLabel46" runat="server" text="售达方客户信息" value valuetodisplaytext></asp:Label><asp:Label id="XLabel192" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel224" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                        <input id="STPButton" onclick="STPSAPIDCustomer()" type="button" value="售达方客户冻结" />
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel156" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel47" runat="server" text="售达方客户名称" value valuetodisplaytext></asp:Label> 
                        <aspxform:XDropDownList id="XDropDownList30" runat="server" HiddenExpress="1" XDataSource="ProcedureName:proc_DF_MasterData_Customer;Filter:@CustomerNameCH -> DF_SA_STPClientMessage.STPName,@CreateName -> DF_SA_MarketInquiry.OwnerID" DataMap="CustomerID->DF_SA_STPClientMessage.ClientBPMID;CustomerSAPID->DF_SA_STPClientMessage.STPSapID;IsFlag->DF_SA_MarketInquiry.IsFlag1;CusLeavel->DF_SA_STPClientMessage.STPCustomerLevel" DisplayColumn="CustomerNameCH" ValueColumn="CustomerNameCH">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox43" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.STPName" BorderColor="Gainsboro" BorderWidth="1" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton4" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" Text="查询" AppendMode="ClearAndAppend" DataMap="CustomerID->BPMID;CustomerNameCH->DF_SA_STPClientMessage.STPName;CustomerSAPID->DF_SA_STPClientMessage.STPSapID;CusLeavel->DF_SA_STPClientMessage.STPCustomerLevel;IsRelatedCus->DF_SA_STPClientMessage.IsRelatedCus;IsFlag->DF_SA_MarketInquiry.IsFlag1" Height="25px"></aspxform:XCustomBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Width="35px" XClass="Oimec.Dialogs.CustomerAddButton" Text="新建" Height="25px" BrowserWindowType="AjaxPanel" Filter="SalesName->DF_SA_MarketInquiry.Salesman,SalesID->DF_SA_MarketInquiry.SalesmanID"></aspxform:XCustomBrowserButton>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel157" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel48" runat="server" text="客户SapID" value valuetodisplaytext></asp:Label> 
                        <aspxform:XTextBox id="XTextBox124" runat="server" XDataBind="DF_SA_STPClientMessage.ClientCRMID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox178" runat="server" XDataBind="DF_SA_STPClientMessage.IsRelatedCus" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox123" runat="server" XDataBind="DF_SA_STPClientMessage.ClientBPMID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="BPMID"></aspxform:XTextBox>
                        <aspxform:XTextBox id="BPMID" runat="server" XDataBind="BPMID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox49" style="WIDTH: 70%" onpropertychange="STPSAPIDCustomer();" runat="server" XDataBind="DF_SA_STPClientMessage.STPSapID" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ValueToDisplayText DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel">
                        <asp:Label id="XLabel53" runat="server" text="售达方应收账款" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox54" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.STPAccountsReceivable" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel158" runat="server" HiddenExpress="1" Text="*" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Red"></aspxform:XLabel>
                        <asp:Label id="XLabel54" runat="server" text="售达方客户等级" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox55" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.STPCustomerLevel" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel30" runat="server" text="超期应收账款" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox23" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.STPOverdueAccountsReceivable" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        <input onclick="GetInfo()" type="button" value="更新" /></td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel159" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel22" runat="server" text="红旗客户" value valuetodisplaytext></asp:Label> 
                        <aspxform:XTextBox id="XTextBox105" runat="server" XDataBind="DF_SA_MarketInquiry.IsFlag1" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ValueToDisplayText="TableName:V_DF_Customer1;FilterColumn:CustomerID;DisplayColumn:IsFlag"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox106" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('Flag1',DF_SA_MarketInquiry.IsFlag1)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_SA_STPClientMessage.STPClientTag" DisableExpress="1" RepeatDirection="Horizontal">
                            <asp:ListItem Value="T">是</asp:ListItem>
                            <asp:ListItem Value="F">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="tsbottomlabel">
                        <asp:Label id="XLabel207" runat="server" text="超期应收账款说明" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox140" runat="server" XDataBind="DF_SA_STPClientMessage.STPOverdueAccountsReceivableExplanation" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XLabel id="XLabel145" runat="server" XDataBind="gonggongkeyong" HiddenExpress="1" Text="公共可用" ValueToDisplayText Value BackColor="#d4e4fe" Height="20"></aspxform:XLabel>
        <aspxform:XRequiredFieldValidator id="售达方客户没有客户SAPID" runat="server" ControlToValidate="XTextBox49" ErrorMessage="售达方客户没有客户SAPID,请发起SAP客户主数据申请" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择红旗客户" runat="server" ControlToValidate="XRadioButtonList3" ErrorMessage="请选择红旗客户" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写联系人" runat="server" ControlToValidate="XTextBox83" ErrorMessage="请填写联系人" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写联系电话" runat="server" ControlToValidate="XTextBox87" ErrorMessage="请填写联系电话" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写部门" runat="server" ControlToValidate="XDropDownList36" ErrorMessage="请填写部门" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写移动电话" runat="server" ControlToValidate="XTextBox87" ErrorMessage="请填写移动电话" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写联系地址" runat="server" ControlToValidate="XTextBox85" ErrorMessage="请填写联系地址" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <%--<aspxform:XRequiredFieldValidator id="请填写移动电话1" runat="server" ControlToValidate="XTextBox137" ErrorMessage="请填写分机号" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>--%>
        <aspxform:XRequiredFieldValidator id="请填写Email" runat="server" ControlToValidate="XTextBox89" ErrorMessage="请填写Email" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写客户等级" runat="server" ControlToValidate="XTextBox55" ErrorMessage="请填写客户等级" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请从CRM获取销售机会" runat="server" DisableExpress="DF_SA_MarketInquiry.OFYIJIE=='1'|| DF_SA_MarketInquiry.IsImportOpp=='1'|| DF_SA_MarketInquiry.ProductLine=='03'" ControlToValidate="XTextBox171" ErrorMessage="请从CRM获取销售机会" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" id="Table2" border="0" cellspacing="0" cellpadding="0" HiddenExpress="Global.StepName!='业务员发起申请'&amp;&amp;Global.StepName!='地区助理复核'&amp;&amp;Global.StepName!='地区经理审批'&amp;&amp;Global.StepName!='CSO审批'&amp;&amp;Global.StepName!='BU经理审批'&amp;&amp;Global.StepName!='业务员确认'&amp;&amp;formstate==''">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="4">
                        <asp:Label id="XLabel81" runat="server" text="SAP订单联系人信息" value valuetodisplaytext></asp:Label><asp:Label id="XLabel193" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel225" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox138" runat="server" XDataBind="DF_SA_STPClientMessage.SAPContactExmessage" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="298" height="14" class="ts">
                        <aspxform:XLabel id="XLabel160" runat="server" HiddenExpress="1" Text="*" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Red"></aspxform:XLabel>
                        <asp:Label id="XLabel82" runat="server" text="售达方客户名称" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox164" runat="server" XDataBind="DF_SA_STPClientMessage.SAPContactExmessageCode" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="298" class="ts1">
                        <aspxform:XTextBox id="XTextBox82" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFName" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_SA_STPClientMessage.STPName" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="298" class="ts">
                        <asp:Label id="XLabel83" runat="server" text="联系人SapID" value valuetodisplaytext></asp:Label></td>
                    <td width="298" class="ts1">
                        <aspxform:XTextBox id="XTextBox86" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFSapID" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="26" class="ts">
                        <asp:Label id="XLabel161" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel84" runat="server" text="联系人" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox83" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFContact" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton9" runat="server" Width="35px" HiddenExpress="Global.StepName!='业务员发起申请'&amp;&amp;Global.StepName!='业务员确认'&amp;&amp;Global.StepName!='地区助理复核'" Text="查询" DisplayColumns="ContactName:联系人,60;ContactSAPID:联系人SapID,90;ContactTel:电话,100;ContactMobile:手机号,120;ContactEmail:邮箱,120;ContactAddr:地址,150;ContactDepart:部门描述,150" XDataSource="TableName:V_DF_MasterData_Contact;Filter:CustomerID->DF_SA_STPClientMessage.ClientBPMID,OwnerAccount->DF_SA_MarketInquiry.OwnerID" DataMap="ContactName->DF_SA_STPClientMessage.SAPOFContact;ContactSAPID->DF_SA_STPClientMessage.SAPOFSapID;ContactTel->DF_SA_STPClientMessage.SAPOFPhone;ContactMobile->DF_SA_STPClientMessage.SAPOFTelephone;ContactEmail->DF_SA_STPClientMessage.SAPOFEmail;ContactDept->DF_SA_STPClientMessage.SAPOFDepartment;ContactAddr->DF_SA_STPClientMessage.SAPOFAddress" Height="25px"></aspxform:XDataBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Width="35px" XClass="Oimec.Dialogs.SalesContactAddButton" Text="新建" Height="25px" DisableExpress='DF_SA_STPClientMessage.ClientBPMID ==  "" ' BrowserWindowType="AjaxPanel" Filter="OwnerAccount->DF_SA_MarketInquiry.OwnerID,CustomerID->DF_SA_STPClientMessage.ClientBPMID" HiddenExpress="Global.StepName!='业务员发起申请'&amp;&amp;Global.StepName!='地区助理复核'"></aspxform:XCustomBrowserButton>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel165" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel85" runat="server" text="联系电话" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox136" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFAreaCode" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox87" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFPhone" Width="150px" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        - 
                        <aspxform:XTextBox id="XTextBox137" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFExtCode" Width="50px" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="ts">
                        <asp:Label id="XLabel162" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>
                        <aspxform:XLabel id="XLabel86" runat="server" XDataBind="BUMEN" Text="部门" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox141" runat="server" XDataBind="Department" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox142" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFDepartmentID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList37" runat="server" HiddenExpress="1" XDataSource="TableName:DF_DataSourceList;Filter:Type->BUMEN,Value->Department;BufferType:RuntimeUpdate" DataMap="Value->DF_SA_STPClientMessage.SAPOFDepartment" DisplayColumn="Name" ValueColumn="Name">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts1">
                        <aspxform:XDropDownList id="XDropDownList36" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFDepartment" XDataSource="TableName:V_DF_SA_SS_DF_Department;BufferType:RuntimeUpdate" DataMap="Value->DF_SA_STPClientMessage.SAPOFDepartmentID" DisplayColumn="Name" ValueColumn="Value" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel166" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel87" runat="server" text="移动电话" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox88" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFTelephone" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel163" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel88" runat="server" text="联系地址" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox85" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFAddress" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel167" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel89" runat="server" text="Email" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox89" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_STPClientMessage.SAPOFEmail" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <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="XLabel55" runat="server" text="付款方客户信息" value valuetodisplaytext></asp:Label><asp:Label id="XLabel194" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel226" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                        <input id="PTPButton" onclick="PTPSAPIDCustomer()" type="button" value="付款方客户冻结" />
                    </td>
                </tr>
                <tr>
                    <td width="607" class="ts">
                        <asp:Label id="XLabel168" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel56" runat="server" text="付款方客户名称" value valuetodisplaytext></asp:Label> 
                        <aspxform:XDropDownList id="XDropDownList31" runat="server" HiddenExpress="1" XDataSource="ProcedureName:proc_DF_MasterData_Customer;Filter:@CustomerNameCH -> DF_SA_PTPClientMessage.PTPName,@CreateName -> DF_SA_MarketInquiry.OwnerID" DataMap="CustomerSAPID->DF_SA_PTPClientMessage.PTPSapID;IsFlag->DF_SA_MarketInquiry.IsFlag2" DisplayColumn="CustomerNameCH" ValueColumn="CustomerNameCH">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox149" runat="server" XDataBind="DF_SA_PTPClientMessage.OFExtended" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox56" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPName" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_SA_STPClientMessage.STPName" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserBtnPTP" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" Text="查询" DataMap="CustomerID->DF_SA_PTPClientMessage.ClientBPMID;CustomerNameCH->DF_SA_PTPClientMessage.PTPName;CustomerSAPID->DF_SA_PTPClientMessage.PTPSapID;CusLeavel->DF_SA_PTPClientMessage.PTPCustomerLevel;IsRelatedCus->DF_SA_PTPClientMessage.IsRelatedCus;IsFlag->DF_SA_MarketInquiry.IsFlag2" Height="25px"></aspxform:XCustomBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" Width="35px" XClass="Oimec.Dialogs.CustomerAddButton" Text="新建" Height="25px" BrowserWindowType="AjaxPanel" Filter="SalesName->DF_SA_MarketInquiry.Salesman,SalesID->DF_SA_MarketInquiry.SalesmanID"></aspxform:XCustomBrowserButton>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel169" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel57" runat="server" text="客户SapID" value valuetodisplaytext></asp:Label> 
                        <aspxform:XTextBox id="XTextBox125" runat="server" XDataBind="DF_SA_PTPClientMessage.ClientBPMID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="DF_SA_STPClientMessage.ClientBPMID"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox126" runat="server" XDataBind="DF_SA_PTPClientMessage.ClientCRMID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="DF_SA_STPClientMessage.ClientCRMID"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox57" style="WIDTH: 70%" onpropertychange="PTPSAPIDCustomer();" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPSapID" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ValueToDisplayText Express="if(DF_SA_PTPClientMessage.PTPSapID=='',DF_SA_STPClientMessage.STPSapID,DF_SA_PTPClientMessage.PTPSapID)" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="XLabel62" runat="server" text="付款方应收账款" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox62" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPAccountsReceivable" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel170" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel63" runat="server" text="付款方客户等级" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox63" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPCustomerLevel" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_SA_STPClientMessage.STPCustomerLevel" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel4" runat="server" text="超期应收账款" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox1" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPOverdueAccountsReceivable" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        <input onclick="GetInfo2()" type="button" value="更新" /></td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel171" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel27" runat="server" text="红旗客户" value valuetodisplaytext></asp:Label> 
                        <aspxform:XTextBox id="XTextBox107" runat="server" XDataBind="DF_SA_MarketInquiry.IsFlag2" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ValueToDisplayText="TableName:V_DF_Customer1;FilterColumn:CustomerID;DisplayColumn:IsFlag" Express="DF_SA_MarketInquiry.IsFlag1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox108" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('Flag2',DF_SA_MarketInquiry.IsFlag2)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPClientTag" Express="DF_SA_STPClientMessage.STPClientTag" DisableExpress="1" RepeatDirection="Horizontal">
                            <asp:ListItem Value="T">是</asp:ListItem>
                            <asp:ListItem Value="F">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="tsbottomlabel">
                        <asp:Label id="XLabel208" runat="server" text="超期应收账款说明" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="HEIGHT: 25px">
                        <aspxform:XTextBox id="XTextBox150" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPOverdueAccountsReceivableExplanation" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel244" runat="server" text="关联方客户" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList5" runat="server" XDataBind="DF_SA_PTPClientMessage.IsRelatedCus" Express="DF_SA_STPClientMessage.IsRelatedCus" DisableExpress="1" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="tsbottomlabel">
                        <asp:Label id="Label3" runat="server" text="信贷限额" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox185" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPCreditLimit" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label1" runat="server" text="信贷风险总额" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox184" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_PTPClientMessage.PTPCreditRiskTotal" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="付款方客户没有客户SAPID" runat="server" ControlToValidate="XTextBox57" ErrorMessage="付款方客户没有客户SAPID,请发起SAP客户主数据申请" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写客户名称" runat="server" ControlToValidate="XTextBox56" ErrorMessage="请填写客户名称" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择红旗客户1" runat="server" ControlToValidate="XRadioButtonList4" ErrorMessage="请选择红旗客户" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写客户等级1" runat="server" ControlToValidate="XTextBox63" ErrorMessage="请付款方填写客户等级" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <br />
        <p>
            <aspxform:XLabel id="XLabel109" runat="server" XDataBind="var2" HiddenExpress="1" Text="fukuantiaojian" ValueToDisplayText Value Height="20"></aspxform:XLabel>
            <aspxform:XLabel id="XLabel114" runat="server" XDataBind="var3" HiddenExpress="1" Text="shuizhong" ValueToDisplayText Value Height="20"></aspxform:XLabel>
            <aspxform:XLabel id="XLabel115" runat="server" XDataBind="var4" HiddenExpress="1" Text="fapiaoleixing" ValueToDisplayText Value Height="20"></aspxform:XLabel>
            <aspxform:XLabel id="XLabel116" runat="server" XDataBind="var5" HiddenExpress="1" Text="kaipiaogongsi" ValueToDisplayText Value Height="20"></aspxform:XLabel>
        </p>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="XLabel117" runat="server" text="交货信息" value valuetodisplaytext></asp:Label><asp:Label id="XLabel195" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel227" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                    </td>
                </tr>
                <tr>
                    <td width="298" height="22" class="ts">
                        <asp:Label id="XLabel172" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel98" runat="server" text="客户交货方式" value valuetodisplaytext></asp:Label></td>
                    <td width="298" class="ts1">
                        <aspxform:XDropDownList id="XDropDownList8" runat="server" XDataBind="DF_SA_MarketInquiry.CustomerDeliveryWay" Width="220px" XDataSource="TableName:V_DF_SA_SS_CustomerDelivery;Filter:BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Name" Express="javascript('ClearlyStateDelivery',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiry.CustomerDeliveryWay)" DisableExpress='DF_SA_MarketInquiry.BillingCompany=="1000东方中科北京" || DF_SA_MarketInquiry.BillingCompany=="1010东方中科上海" ||DF_SA_MarketInquiry.BillingCompany=="1020东方中科深圳" || DF_SA_MarketInquiry.BillingCompany=="2100苏州博德"' PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel131" runat="server" XDataBind="kehujiaohuofangshi" HiddenExpress="1" Text="客户交货方式" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td width="298" class="ts">
                        <asp:Label id="XLabel173" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel97" runat="server" text="客户交货期" value valuetodisplaytext></asp:Label></td>
                    <td width="298" class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" style="WIDTH: 50%" runat="server" XDataBind="DF_SA_MarketInquiry.CustomerDeliveryDate" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="tsbottomlabel">
                        <asp:Label id="XLabel174" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel110" runat="server" text="直发的机场" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomlabel">
                        <aspxform:XTextBox id="XTextBox29" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.NonstopAirport" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Express="javascript('ClearlyStateDelivery',DF_SA_MarketInquiry.BillingCompany,NonstopAirport)" DisableExpress='DF_SA_MarketInquiry.CustomerDeliveryWay == "HOSIC送货到客户香港指定地点"||DF_SA_MarketInquiry.CustomerDeliveryWay == "客户到HOSIC办公室自提"||DF_SA_MarketInquiry.CustomerDeliveryWay == "客户到供应商处自提" || DF_SA_MarketInquiry.BillingCompany=="1000东方中科北京" || DF_SA_MarketInquiry.BillingCompany=="1010东方中科上海" ||DF_SA_MarketInquiry.BillingCompany=="1020东方中科深圳" || DF_SA_MarketInquiry.BillingCompany=="2100苏州博德"'></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList43" runat="server" XDataBind="NonstopAirport" HiddenExpress="1" XDataSource="TableName:V_DF_SA_ReferringSingle;Filter:TaskID->DF_SA_MarketInquiry.BPMEndTaskID;BufferType:RuntimeUpdate" DataMap="NonstopAirport->DF_SA_MarketInquiry.NonstopAirport" DisplayColumn="NonstopAirport" ValueColumn="NonstopAirport">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel175" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel118" runat="server" text="是否免税" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomlabel">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_SA_MarketInquiry.Exemption" Express="javascript('ISExemption',DF_SA_MarketInquiry.BillingCompany)" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="tsbottomlabel">
                        <asp:Label id="XLabel181" runat="server" text="免税说明" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox148" runat="server" XDataBind="DF_SA_MarketInquiry.DescriptionExemption" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" Value DisableExpress="DF_SA_MarketInquiry.Exemption=='否' || DF_SA_MarketInquiry.Exemption==''" ToolTip="特殊说明：如一张免表分批发货，或一个订单分两免表等"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="请填写客户交货方式" runat="server" DisableExpress='DF_SA_MarketInquiry.BillingCompany=="1000东方中科北京" || DF_SA_MarketInquiry.BillingCompany=="1010东方中科上海" ||DF_SA_MarketInquiry.BillingCompany=="1020东方中科深圳" || DF_SA_MarketInquiry.BillingCompany=="2100苏州博德"' ControlToValidate="XDropDownList8" ErrorMessage="请填写客户交货方式" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写直发机场" runat="server" DisableExpress=' DF_SA_MarketInquiry.CustomerDeliveryWay == "HOSIC送货到客户香港指定地点"||DF_SA_MarketInquiry.CustomerDeliveryWay == "客户到HOSIC办公室自提"||DF_SA_MarketInquiry.CustomerDeliveryWay == "客户到供应商处自提" || DF_SA_MarketInquiry.BillingCompany=="1000东方中科北京" || DF_SA_MarketInquiry.BillingCompany=="1010东方中科上海" ||DF_SA_MarketInquiry.BillingCompany=="1020东方中科深圳" || DF_SA_MarketInquiry.BillingCompany=="2100苏州博德"' ControlToValidate="XTextBox29" ErrorMessage="请填写直发机场" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写客户交货期" runat="server" ControlToValidate="XDateTimePicker2" ErrorMessage="请填写客户交货期" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写是否免税" runat="server" DisableExpress="DF_SA_MarketInquiry.ContractCurrency=='CNY'" ControlToValidate="XRadioButtonList2" ErrorMessage="请填写是否免税" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="22" class="title1" colspan="6">
                        <asp:Label id="XLabel64" runat="server" text="发票信息" value valuetodisplaytext></asp:Label><asp:Label id="XLabel196" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel228" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> 
                        <aspxform:XDropDownList id="XDropDownList42" runat="server" XDataBind="TermsPayment" HiddenExpress="1" XDataSource="TableName:V_DF_SA_ReferringSingle;Filter:TaskID->DF_SA_MarketInquiry.BPMEndTaskID;BufferType:RuntimeUpdate" DataMap="TermsPayment->DF_SA_MarketInquiry.TermsPayment" DisplayColumn="TermsPayment" ValueColumn="TermsPayment">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox168" runat="server" XDataBind="InvoiceType" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="120" height="20" class="ts">
                        <asp:Label id="XLabel176" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel65" runat="server" text="付款条件" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" colspan="3">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_SA_MarketInquiry.TermsPayment" Width="350px" XDataSource="TableName:V_DF_SA_SS_PaymentTerms;Filter:ValueAssociate->'销售额';OrderBy:OrderID" DataMap="Value->DF_SA_MarketInquiry.TermsPaymentID;CalValue->DF_SA_MarketInquiry.PaymentDays;Email->koukuanleixing" DisplayColumn="Name" ValueColumn="Name" Express="TermsPayment" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox90" runat="server" XDataBind="DF_SA_MarketInquiry.TermsPaymentID" Width="100px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value BackColor="#E6F1F8" HiddenInput="False" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox94" runat="server" XDataBind="koukuanleixing" Width="10%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="169" class="ts">
                        <asp:Label id="XLabel66" runat="server" text="账期" value valuetodisplaytext></asp:Label></td>
                    <td width="431" class="ts1">
                        <aspxform:XTextBox id="XTextBox65" runat="server" XDataBind="DF_SA_MarketInquiry.PaymentDays" Width="200px" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1" Format="type:number;.0"></aspxform:XTextBox>
                        天</td>
                </tr>
                <tr>
                    <td width="160" height="23" class="ts">
                        <asp:Label id="XLabel245" runat="server" text="合同实际付款条件" value valuetodisplaytext width="160"></asp:Label></td>
                    <td class="ts1" colspan="5">
                        <aspxform:XTextBox id="XTextBox179" runat="server" XDataBind="DF_SA_MarketInquiry.ActTermsPayment" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ty">
                        <asp:Label id="XLabel177" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel67" runat="server" text="税种" value valuetodisplaytext></asp:Label></td>
                    <td width="173" class="tm3">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_SA_MarketInquiry.TaxType" XDataSource="TableName:DF_SA_SS_TaxRate;BufferType:RuntimeUpdate" DisplayColumn="TaxType" ValueColumn="TaxType" Express="javascript('ClearlyStateRate1',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiry.TaxType)" DisableExpress="DF_SA_MarketInquiry.BillingCompany =='A300HOSIC 香港'||DF_SA_MarketInquiry.BillingCompany=='2000上海颐合'" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="122" class="ty">
                        <asp:Label id="XLabel180" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel68" runat="server" text="发票类型" value valuetodisplaytext></asp:Label></td>
                    <td width="173" class="tm3">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_SA_MarketInquiry.InvoiceType" Width="155px" XDataSource="TableName:DF_SA_SS_TaxRate;Filter:TaxType->DF_SA_MarketInquiry.TaxType;BufferType:RuntimeUpdate" DisplayColumn="InvoiceType" ValueColumn="InvoiceType" Express="javascript('ClearlyStateRate1',DF_SA_MarketInquiry.BillingCompany,InvoiceType)" DisableExpress="DF_SA_MarketInquiry.BillingCompany =='A300HOSIC 香港'||DF_SA_MarketInquiry.BillingCompany=='2000上海颐合'" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ty">
                        <asp:Label id="XLabel213" runat="server" text="账期说明" value valuetodisplaytext></asp:Label></td>
                    <td class="tm3">
                        <aspxform:XTextBox id="XTextBox151" runat="server" XDataBind="DF_SA_MarketInquiry.PaymentDaysExplanation" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="ty">
                        <asp:Label id="XLabel71" runat="server" text="税率" value valuetodisplaytext></asp:Label></td>
                    <td class="tm3">
                        <aspxform:XTextBox id="XTextBox70" runat="server" XDataBind="DF_SA_MarketInquiry.Rate" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value BackColor="#E6F1F8" HiddenInput="False" Express="javascript('ClearlyStateRate',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiry.Rate)" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="shuilv" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('GetRate',DF_SA_MarketInquiry.Rate)"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList13" runat="server" HiddenExpress="1" XDataSource="TableName:DF_SA_SS_TaxRate;Filter:TaxType->DF_SA_MarketInquiry.TaxType,InvoiceType->DF_SA_MarketInquiry.InvoiceType" DataMap="TaxRate->DF_SA_MarketInquiry.Rate" DisplayColumn="TaxRate" ValueColumn="TaxRate">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="122" class="ty">
                        <asp:Label id="Label2" runat="server" text="销售币种/人民币汇率" value valuetodisplaytext></asp:Label></td>
                    <td width="173" class="tm3">
                        <aspxform:XTextBox id="XTextBox181" runat="server" XDataBind="DF_SA_MarketInquiry.ExchangeRate" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1" Format="type:number;.4"></aspxform:XTextBox>
                    </td>
                    <td class="ty">
                        <asp:Label id="XLabel182" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel69" runat="server" text="销售合同币种" value valuetodisplaytext width="120" font-bold="True"></asp:Label></td>
                    <td class="tm3">
                        <aspxform:XDropDownList id="XDropDownList17" runat="server" XDataBind="DF_SA_MarketInquiry.ContractCurrency" XDataSource="TableName:V_DF_SA_SS_SalesCurrency;Filter:BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Name" PromptText="--请选择--" Font-Bold="True">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel132" runat="server" XDataBind="xiaoshoubizhong" HiddenExpress="1" Text="销售币种" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel">
                        <asp:Label id="XLabel75" runat="server" text="税额" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox74" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.TaxLimit" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('IFTaxLimit',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB,shuilv )" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel73" runat="server" text="合同总金额" value valuetodisplaytext font-bold="True"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox72" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.ContractAmount" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiry.SUMPDSellingTotalvalueRest" DisableExpress="1" Font-Bold="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="请选择付款条件" runat="server" ControlToValidate="XDropDownList2" ErrorMessage="请选择付款条件" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择税种" runat="server" DisableExpress="DF_SA_MarketInquiry.BillingCompany =='A300HOSIC 香港'||DF_SA_MarketInquiry.BillingCompany=='2000上海颐合'" ControlToValidate="XDropDownList3" ErrorMessage="请选择税种" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择发票类型" runat="server" DisableExpress="DF_SA_MarketInquiry.BillingCompany =='A300HOSIC 香港'||DF_SA_MarketInquiry.BillingCompany=='2000上海颐合'" ControlToValidate="XDropDownList4" ErrorMessage="请选择发票类型" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择销售合同币种" runat="server" ControlToValidate="XDropDownList17" ErrorMessage="请选择销售合同币种" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <%--<aspxform:XTextBox id="XTextBox51" runat="server" XDataBind="DF_SA_MarketInquiry.ExchangeRate" Width="20%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Format="type:number;.4"></aspxform:XTextBox>--%>
        <aspxform:XDropDownList id="XDropDownList18" runat="server" HiddenExpress="1" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->DF_SA_MarketInquiry.ContractCurrency" DataMap="ComputeRate->DF_SA_MarketInquiry.ExchangeRate" Height="20" DisplayColumn="ComputeRate" ValueColumn="ComputeRate">
            <asp:ListItem>未绑定</asp:ListItem>
        </aspxform:XDropDownList>
        <aspxform:XDropDownList id="XDropDownList23" runat="server" HiddenExpress="1" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->USD" DataMap="ComputeRate->meiyuan" Height="20" DisplayColumn="ExchangeRate" ValueColumn="ComputeRate">
            <asp:ListItem>未绑定</asp:ListItem>
        </aspxform:XDropDownList>
        <aspxform:XLabel id="XLabel139" runat="server" XDataBind="USD" HiddenExpress="1" Text="USD" ValueToDisplayText Value Height="20"></aspxform:XLabel>
        <aspxform:XTextBox id="XTextBox95" runat="server" XDataBind="meiyuan" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Height="20"></aspxform:XTextBox>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel76" runat="server" text="费用明细" value valuetodisplaytext></asp:Label>
                        <input class="inputbtn" id="btn_fymx" style="HEIGHT: 23px; WIDTH: 65px" onclick="div_ShowHidden('fymx');" type="button" size="46" value=▽展开 /></td>
                </tr>
            </tbody>
        </table>
        <div id="div_fymx">
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td class="ts5">
                            <asp:Label id="XLabel77" runat="server" text="账期扣款(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td width="83" class="ts1">
                            <aspxform:XTextBox id="XTextBox59" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.PaymentDaysCharge" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="(DF_SA_MarketInquiry.SUMPDSellingTotalvalueRMB - DF_SA_MarketInquiry.Quality) * koukuanleixing" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="ts5">
                            <asp:Label id="XLabel78" runat="server" text="进口关税(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td width="231" class="ts1">
                            <aspxform:XTextBox id="XTextBox66" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.ImportTariff" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(guanshuixiaoji)+sum(DF_SA_MarketInquiryApparatusList.SUMIncreaseTariff)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts5">
                            <asp:Label id="XLabel80" runat="server" text="国际运保费(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox67" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.InternationCIF" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('GetInfoFromTable1',DF_SA_MarketInquiryApparatusList.SourcingPurchasing,DF_SA_MarketInquiryApparatusList.InternationCIF,DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign )" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="ts5">
                            <asp:Label id="XLabel100" runat="server" text="银行费用(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox69" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.BankFee" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value BackColor="#E6F1F8" HiddenInput="False" Express="javascript('OFHOSICBankFee',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiry.TermsPayment,DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB,DF_SA_MarketInquiryApparatusList.SourcingPurchasing)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel7" runat="server" text="质保金(人民币)" value valuetodisplaytext font-bold="False"></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox2" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.Quality" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel148" runat="server" text="SIP业务基金扣款(销售币种)" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox110" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.SIPBFdeduct" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('SIPdeduct',DF_SA_MarketInquiryApparatusList.BusinessClassification,DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRest)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right" Wrap="False"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel5">
                            <aspxform:XLabel id="XLabel216" runat="server" XDataBind="zhibaojinfukuantiaojian" Text="质保金付款条件" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                            <aspxform:XTextBox id="XTextBox156" runat="server" XDataBind="DF_SA_MarketInquiry.RetentionPaymentTermsSAPID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox157" runat="server" XDataBind="DF_SA_MarketInquiry.DebitPoints" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox158" runat="server" XDataBind="DF_SA_MarketInquiry.RetentionDebitPoints" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext">
                            <aspxform:XDropDownList id="XDropDownList39" runat="server" XDataBind="DF_SA_MarketInquiry.RetentionPaymentTerms" Width="250px" XDataSource="TableName:V_DF_SA_SS_PaymentTerms;Filter:ValueAssociate->'质保金'" DataMap="Value->DF_SA_MarketInquiry.RetentionPaymentTermsSAPID;Email->DF_SA_MarketInquiry.RetentionDebitPoints;LdType->DF_SA_MarketInquiry.DebitPoints" DisplayColumn="Name" ValueColumn="Name" PromptText="--请选择--">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel138" runat="server" text="SIP业务基金扣款(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox47" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.SIPBFdeductRMB" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiry.SIPBFdeduct * DF_SA_MarketInquiry.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel217" runat="server" text="质保金扣款(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox155" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.RetentionDebit" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiry.Quality * DF_SA_MarketInquiry.RetentionDebitPoints" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel198" runat="server" text="AIBU维修基金点数" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox103" style="WIDTH: 230px" runat="server" XDataBind="DF_SA_MarketInquiry.AIBUCharge" Width="220px" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                            %</td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel221" runat="server" text="其他费用(人民币)" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox159" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.OtherCosts" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel199" runat="server" text="AIBU维修基金扣款" value valuetodisplaytext></asp:Label>(人民币)</td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox104" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.AIBUChargeRMB" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB * (DF_SA_MarketInquiry.AIBUCharge / 100)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel238" runat="server" text="其他费用说明" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox160" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.OtherFee" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel79" runat="server" text="HOSIC手续费(人民币)" value valuetodisplaytext></asp:Label>
                            <aspxform:XTextBox id="XTextBox130" runat="server" XDataBind="DF_SA_MarketInquiry.HOSICCost" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('HOSICTransactionFee',DF_SA_MarketInquiry.CustomerDeliveryWay,DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB,meiyuan)"></aspxform:XTextBox>
                            <%--HOSIC接/送货运费--%>
                            <aspxform:XTextBox id="XTextBox131" runat="server" XDataBind="DF_SA_MarketInquiry.HOSICFreightFee" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('HOSICFreight',DF_SA_MarketInquiry.CustomerDeliveryWay,meiyuan)"></aspxform:XTextBox>
                            <%--香港国内运保费--%>
                            <aspxform:XTextBox id="XTextBox132" runat="server" XDataBind="DF_SA_MarketInquiry.HOSICInsuranceFee" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('HOSICTransportationInsurance',DF_SA_MarketInquiry.CustomerDeliveryWay,DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB,meiyuan,DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRMB)"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox9" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.HOSICFee" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('CountBankCost',DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB,DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiry.CustomerDeliveryWay,DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRMB,DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <%--<aspxform:XRequiredFieldValidator id="请填写质保金" runat="server" ControlToValidate="XTextBox2" ErrorMessage="请填写质保金" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>--%>
        <aspxform:XLabel id="XLabel204" runat="server" XDataBind="WuLiaoZhuangTai" HiddenExpress="1" Text="248" ValueToDisplayText Value Height="20"></aspxform:XLabel>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel5" runat="server" text="毛利计算" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel6" runat="server" text="毛利(不含税)" value valuetodisplaytext font-bold="True"></asp:Label>
                        <aspxform:XTextBox id="XTextBox101" runat="server" XDataBind="SumMaoLi" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="sum(DF_SA_MarketInquiryApparatusList.GrossMargin)"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox102" runat="server" XDataBind="CustomsFees" Width="10px" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress="1" Max="0" Min="0" ValueToDisplayText Value HiddenInput="False" Express="sum(DF_SA_MarketInquiryApparatusList.CustomsFees)"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox50" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.GrossMargin" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="if(DF_SA_MarketInquiry.BillingCompany =='A300HOSIC 香港',SumMaoLi - DF_SA_MarketInquiry.PaymentDaysCharge -DF_SA_MarketInquiry.SIPBFdeductRMB -DF_SA_MarketInquiry.HOSICFee -DF_SA_MarketInquiry.InternationCIF - DF_SA_MarketInquiry.ImportTariff - CustomsFees + DF_SA_MarketInquiry.RebateGrossMargin - DF_SA_MarketInquiry.RetentionDebit - DF_SA_MarketInquiry.AIBUChargeRMB - DF_SA_MarketInquiry.OtherCosts,SumMaoLi - DF_SA_MarketInquiry.PaymentDaysCharge -DF_SA_MarketInquiry.BankFee -DF_SA_MarketInquiry.SIPBFdeductRMB -DF_SA_MarketInquiry.HOSICFee -DF_SA_MarketInquiry.InternationCIF - DF_SA_MarketInquiry.ImportTariff - CustomsFees + DF_SA_MarketInquiry.RebateGrossMargin - DF_SA_MarketInquiry.RetentionDebit - DF_SA_MarketInquiry.AIBUChargeRMB - DF_SA_MarketInquiry.OtherCosts) " DisableExpress="1" Font-Bold="True" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel70" runat="server" text="毛利率" value valuetodisplaytext font-bold="True"></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox58" style="WIDTH: 230px" runat="server" XDataBind="DF_SA_MarketInquiry.GrossProfitRate" Width="220px" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="(DF_SA_MarketInquiry.GrossMargin / DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB) * 100" DisableExpress="1" Font-Bold="True" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                        %</td>
                </tr>
                <tr>
                    <td height="18" class="ts5">
                        <asp:Label id="XLabel214" runat="server" text="预计返点毛利(人民币)" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox152" runat="server" XDataBind="DF_SA_MarketInquiry.RebateGrossMargin" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="ts5">
                        <asp:Label id="XLabel215" runat="server" text="返点毛利说明" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox153" runat="server" XDataBind="DF_SA_MarketInquiry.RebateGrossMarginString" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" colspan="4">
                        <asp:Label id="XLabel74" runat="server" text="毛利计算公式" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox25" runat="server" Width="30%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XLabel id="XLabel108" runat="server" XDataBind="var1" HiddenExpress="1" Text="tablenew" ValueToDisplayText Value></aspxform:XLabel>
                        <input id="button1" style="DISPLAY: none" onclick="GetInfoFromTable('tablenew')" type="button" value="获取行数" />
                        <input class="inputbtn" id="btn_mljs" style="HEIGHT: 23px; WIDTH: 65px" onclick="div_ShowHidden('mljs');" type="button" value=▽展开 /></td>
                </tr>
            </tbody>
        </table>
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" id="div_mljs">
                <tbody>
                    <tr>
                        <td  colspan="4">
                            <p>
                                <aspxform:XLabel id="XLabel121" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="A300HOSIC 香港"' Text="外币销售(HOSIC开票)、外币采购" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Medium"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel33" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="A300HOSIC 香港"' Text="整单毛利(人民币)＝不含税销售总价(人民币) + 预计返点毛利(人民币) —不含税采购总价(人民币)—国际运保费(人民币)—HOSIC相关费用(人民币)—账期扣款(人民币) －质保金扣款(人民币) - AIBU维修基金扣款(人民币) －其他费用(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="10.5pt"></aspxform:XLabel>
                            </p>
                            <p>
                                &nbsp;<aspxform:XLabel id="XLabel122" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="2000上海颐合"' Text="外币销售(颐合开票)" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Medium"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel60" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="2000上海颐合"' Text="整单毛利(人民币)＝行项目毛利汇总(人民币) + 预计返点毛利(人民币) －账期扣款(人民币)—银行费用(人民币) — SIP业务基金扣款（人民币）—国际运保费(人民币)－质保金扣款(人民币) - AIBU维修基金扣款(人民币)－其他费用(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="10.5pt"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel123" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="2000上海颐合"' Text="外币采购：" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel90" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="2000上海颐合"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="10.5pt"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel124" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="2000上海颐合"' Text="人民币采购：" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel120" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany!="2000上海颐合"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="10.5pt"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel125" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany=="2000上海颐合" || DF_SA_MarketInquiry.BillingCompany=="A300HOSIC 香港"' Text="人民币销售(国内开票)" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Medium"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel128" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany=="2000上海颐合" || DF_SA_MarketInquiry.BillingCompany=="A300HOSIC 香港"' Text="整单毛利(人民币)＝行项目毛利汇总(人民币) + 预计返点毛利(人民币) －账期扣款(人民币) — SIP业务基金扣款（人民币）—国际运保费(人民币)—关税(人民币)—报关杂费(人民币)－质保金扣款(人民币) - AIBU维修基金扣款(人民币)－其他费用(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="10.5pt"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel127" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany=="2000上海颐合" || DF_SA_MarketInquiry.BillingCompany=="A300HOSIC 香港"' Text="人民币采购：" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel99" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany=="2000上海颐合" || DF_SA_MarketInquiry.BillingCompany=="A300HOSIC 香港"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="11pt"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel126" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany=="2000上海颐合" || DF_SA_MarketInquiry.BillingCompany=="A300HOSIC 香港"' Text="外币采购：" ValueToDisplayText Value BackColor="#d4e4fe" Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel119" runat="server" HiddenExpress='DF_SA_MarketInquiry.BillingCompany=="2000上海颐合" || DF_SA_MarketInquiry.BillingCompany=="A300HOSIC 香港"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" ValueToDisplayText Value BackColor="#d4e4fe" ForeColor="Blue" Font-Size="10.5pt"></aspxform:XLabel>
                            </p>
                        </td>
                    </tr>
                </tbody>
           
        </div>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="Label6" runat="server" text="厂商订货下单要求" value valuetodisplaytext></asp:Label>
                        <input class="inputbtn" id="btn_xdyq" style="HEIGHT: 23px; WIDTH: 65px" onclick="div_ShowHidden('xdyq')"  type="button" size="46" value=▽展开 /></td>
                </tr>
            </tbody>
        </table>
        <div id="div_xdyq">
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td  class="tsbottomlabel" style="width:120px; text-align:center">
                        <b>厂商</b></td>
                   <td  class="tsbottomtext" style="width:1080px; text-align:center">
                       <b>厂商订货下单要求</b>
                    </td>
                </tr>
                <tr>
                    <td  class="tsbottomlabel" style="width:120px;">
                        是德分销</td>
                    <td  class="tsbottomtext" style="width:1080px;">
                        1、是德分销下单(含人民币、外币)：需要提供最终用户的中、英文公司名称、英文地址<br />
                        2、教育折扣订单：需要提供给用户的报价单、教育证明<br />
                        3、特折订单：是德工程师审批邮件、特折申请表
                    </td>
                </tr>
                <tr>
                    <td  class="tsbottomlabel" style="width:120px;">
                        是德直销</td>
                   <td  class="tsbottomtext" style="width:1080px;">
                       1、厂商销售人员名<br />
                       2、三方盖章表
                    </td>
                </tr>
                <tr>
                   <td  class="tsbottomlabel" style="width:120px;">
                       TEK&FLUKE</td>
                   <td  class="tsbottomtext" style="width:1080px;">
                        1、TEK & FLUKE 人民币、外币采购必须需要提供厂商销售人员名<br />
                        2、TEK 人民币采购直销、分销的特折下单需要提供最终用户中文名称<br />
                        3、TEK 人民币采购使用教育折扣的订单需要提供东方中科与学校合同（要与报备相同）<br />
                        4、TEK & Fluke 外币采购需要提供免表预计办好日期、用户需求货期，说明。以便TEK公司外币入单类型由免表预计办好日期决定，Fluke公司外币入单时，要求免表已办好。
                    </td>
                </tr>
                <tr>
                    <td  class="tsbottomlabel" style="width:120px;">
                        B&K</td>
                     <td  class="tsbottomtext" style="width:1080px;">
                        需要提供最终用户的中、英文公司名称、用户联系人
                    </td>
                </tr>
                 <tr>
                    <td  class="tsbottomlabel" style="width:120px;">
                        AMTEK</td>
                     <td  class="tsbottomtext" style="width:1080px;">
                        需要提供最终用户中、英文公司名称、地址、用户联系人及用户电话
                    </td>
                </tr>
                <tr>
                    <td  class="tsbottomlabel" style="width:120px;">
                        NF</td>
                     <td  class="tsbottomtext" style="width:1080px;">
                        需要提供最终用户信息表（NF报备表格——上传固定模板Excel表）
                    </td>
                </tr>
                <tr>
                   <td  class="tsbottomlabel" style="width:120px;">
                       日置</td>
                     <td  class="tsbottomtext" style="width:1080px;">
                        直销：需要提供最终用户中文名称、用户联系人及用户电话<br />
                        分销（如果最终用户是二级代理商时）：需要提供二级代理商名称、代理商联系人、代理商电话、最终用户名称、最终用户联系人及电话
                    </td>
                </tr>
                <tr>
                    <td  class="tsbottomlabel" style="width:120px;">
                        菊水</td>
                    <td  class="tsbottomtext" style="width:1080px;">
                        需要提供最终用户中文名称、厂商销售人员名
                    </td>
                </tr>
               
                 <tr>
                     <td  class="tsbottomlabel" style="width:120px;">
                         大华</td>
                    <td  class="tsbottomtext" style="width:1080px;">
                        需要提供厂商报备单号
                    </td>
                </tr>
                 <tr>
                     <td  class="tsbottomlabel" style="width:120px;">艾德克斯</td>
                    <td  class="tsbottomtext" style="width:1080px;">
                        跨区销售需要提供最终用户中文名称
                    </td>
                </tr>
            </table>
        </div>
        <aspxform:XTextBox id="XTextBox172" runat="server" XDataBind="varSumSalesAmount" Width="88px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value Height="20" HiddenInput="true" Express="DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRMB*0.1"></aspxform:XTextBox>
        <aspxform:XTextBox id="XTextBox175" runat="server" XDataBind="varSumSalesAmount" Width="88px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value Height="20" HiddenInput="true" Express="DF_SA_MarketInquiry.SUMPDSellingTotalvalueRMB"></aspxform:XTextBox>
        <div id="dnew" style="TEXT-ALIGN: center" runat="server">
            <br />
            <div class="scrollDiv" id="scrollDiv" style="HEIGHT: 430px">
                <table width="5850" align="center" class="scrolltable" id="tablenew" border="0" runat="server" datamap="SupplierSendReason->DF_SA_MarketInquiryApparatusList.SupplierSendReason;PDPurchasePriceRest->DF_SA_MarketInquiryApparatusList.PDPurchasePriceRest;OFHEZUO->DF_SA_MarketInquiryApparatusList.OFHEZUO;SupplierPeriod->DF_SA_MarketInquiryApparatusList.SupplierPeriod;PurchasePaymentMethod->DF_SA_MarketInquiryApparatusList.PurchasePaymentMethod;Discount->DF_SA_MarketInquiryApparatusList.Discount;PDPurchaseTotalvalueRest->DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRest;PurchaseInvoiceTaxPoint->DF_SA_MarketInquiryApparatusList.PurchaseInvoiceTaxPoint;ProductNmae->DF_SA_MarketInquiryApparatusList.ProductNmae;PlanSort->DF_SA_MarketInquiryApparatusList.PlanSort;PurchasingPattern->DF_SA_MarketInquiryApparatusList.PurchasingPattern;InternationCIF->DF_SA_MarketInquiryApparatusList.InternationCIF;MaterialType->DF_SA_MarketInquiryApparatusList.MaterialType;ProductBPMID->DF_SA_MarketInquiryApparatusList.ProductBPMID;PDSellingTotalvalueRMB->DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRMB;CustomsFees->DF_SA_MarketInquiryApparatusList.CustomsFees;IsSupplierSend->DF_SA_MarketInquiryApparatusList.IsSupplierSend;InternationCIFRate->DF_SA_MarketInquiryApparatusList.InternationCIFRate;GrossMargin->DF_SA_MarketInquiryApparatusList.GrossMargin;PDSellingPriceRMB->DF_SA_MarketInquiryApparatusList.PDSellingPriceRMB;PDPurchaseTotalvalueRMB->DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRMB;BusinessClassification->DF_SA_MarketInquiryApparatusList.BusinessClassification;PurchaseNumber->DF_SA_MarketInquiryApparatusList.PurchaseNumber;SupplierCustomerName->DF_SA_MarketInquiryApparatusList.SupplierCustomerName;Manufacturer->DF_SA_MarketInquiryApparatusList.Manufacturer;ProductCRMID->DF_SA_MarketInquiryApparatusList.ProductCRMID;NPDPurchaseTotalvalueRest->DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest;ExchangeRate->DF_SA_MarketInquiryApparatusList.ExchangeRate;PDSellingTotalvalueRest->DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRest;PrchaseCurrency->DF_SA_MarketInquiryApparatusList.PrchaseCurrency;IsFlag->DF_SA_MarketInquiryApparatusList.IsFlag;SourcingPurchasing->DF_SA_MarketInquiryApparatusList.SourcingPurchasing;ProductModel->DF_SA_MarketInquiryApparatusList.ProductModel;Linkman->DF_SA_MarketInquiryApparatusList.Linkman;NPDPurchaseTotalvalueRMB->DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB;Phone->DF_SA_MarketInquiryApparatusList.Phone;MaterialID->DF_SA_MarketInquiryApparatusList.MaterialID;SupplierCustomerSAPID->DF_SA_MarketInquiryApparatusList.SupplierCustomerSAPID;PDPurchasePriceRMB->DF_SA_MarketInquiryApparatusList.PDPurchasePriceRMB;SupplierPeriodOther->DF_SA_MarketInquiryApparatusList.SupplierPeriodOther;Number->DF_SA_MarketInquiryApparatusList.Number;WarrantyPeriod->DF_SA_MarketInquiryApparatusList.WarrantyPeriod;PDSellingPriceRest->DF_SA_MarketInquiryApparatusList.PDSellingPriceRest;ManufacturerID->DF_SA_MarketInquiryApparatusList.ManufacturerID;NPDSellingTotalvalueRest->DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRest;NPDSellingTotalvalueRMB->DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRMB;WarrantyPeriodOther->DF_SA_MarketInquiryApparatusList.WarrantyPeriodOther;SupplierDeliveryDate->DF_SA_MarketInquiryApparatusList.SupplierDeliveryDate;TariffRate->DF_SA_MarketInquiryApparatusList.TariffRate;InternationCIFRateForeign->DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign" xdatasource="TableName:DF_SA_MarketInquiryApparatusList;Filter:TaskID->DF_SA_MarketInquiry.BPMEndTaskID;BufferType:RuntimeUpdate" dynamicarea="2,1" menudock="Left">
                    <tbody>
                        <tr class="scrollColThead">
                            <th height="26" class="scrollRowThead scrollCR" style="TEXT-ALIGN: left" colspan="49">
                                <asp:Label id="XLabel8" runat="server" text="产品明细 " value valuetodisplaytext></asp:Label><asp:Label id="XLabel197" runat="server" text="标记 * 的为业务员必填项" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>&nbsp;<asp:Label id="XLabel229" runat="server" text="标记 *  的为助理必填项" value valuetodisplaytext forecolor="MediumBlue" font-size="8pt"></asp:Label> <%--<aspxform:XDataBrowserButton id="XDataBrowserButton5" runat="server" Text="导入CRM产品信息" Width="150px" HiddenExpress="DF_SA_MarketInquiry.BU=='ATBU'" DisplayColumns="DESCRIPTION:销售机会,;QUANTITY:数量,;EXTENDEDPRICE:含税销售单价,;NAME:产品型号,;PRODUCTID:产品CRMID," XDataSource="DataSource:CRM正式库;TableName:BPM_PRODUCT;Filter:OPPORTUNITYID->DF_SA_MarketInquiry.SalesOpportunitiesID;BufferType:RuntimeUpdate" DataMap="QUANTITY->DF_SA_MarketInquiryApparatusList.Number;NAME->DF_SA_MarketInquiryApparatusList.ProductModel;PRODUCTID->DF_SA_MarketInquiryApparatusList.ProductCRMID;CALCPRICE->DF_SA_MarketInquiryApparatusList.PDSellingPriceRest" Height="25px" MultiSelect="True"></aspxform:XDataBrowserButton>--%>
                                <aspxform:XCustomBrowserButton id="XCustomBrowserButton7" runat="server" Width="150px" XClass="Oimec.Dialogs.ProductButton" Text="选择产品信息" AppendMode="Append" DataMap="PrdtID->DF_SA_MarketInquiryApparatusList.ProductBPMID;PrdtName->DF_SA_MarketInquiryApparatusList.ProductNmae;PrdtModelNo->DF_SA_MarketInquiryApparatusList.ProductModel;SalesSapID->SASapID;ServicesSapID->SEVSapID;ProprietarySapID->PROSapID;OtherSapID->OTHSapID;ManufacturerID->DF_SA_MarketInquiryApparatusList.ManufacturerID;OriginCountry->varOrigin" Height="25px" BrowserWindowType="AjaxPanel" MultiSelect="True"></aspxform:XCustomBrowserButton>
                                <asp:Label id="XLabel220" runat="server" text="同一型号不同的供应商采购，请分行填写" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label>
                            </th>
                        </tr>
                        <tr class="scrollColThead">
                            <th width="42" height="44" class="tds">
                                <asp:Label id="XLabel9" runat="server" text="序号" value valuetodisplaytext></asp:Label>
                            </th>
                            <th width="167" class="tds">
                                <asp:Label id="XLabel184" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>
                                <aspxform:XLabel id="XLabel96" runat="server" XDataBind="yewufenlei" Text="业务分类" ValueToDisplayText Value BackColor="#d5dade" Font-Bold="False"></aspxform:XLabel>
                                <input onclick="AllXINPINXIAOSHOU()" type="button" value="全选为新品销售" />
                            </th>
                            <th width="99" class="tds">
                                <asp:Label id="XLabel11" runat="server" text="物料类型" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="139" class="tds">
                                <asp:Label id="XLabel12" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel14" runat="server" text="产品型号" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="117" class="tds">
                                <asp:Label id="XLabel185" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel20" runat="server" text="产品名称" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="101" class="tds">
                                <asp:Label id="XLabel186" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel15" runat="server" text="SAP物料号" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="99" class="tds">
                                <asp:Label id="XLabel187" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel16" runat="server" text="厂商编号" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="99" class="tds">
                                <asp:Label id="XLabel188" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel17" runat="server" text="厂商名称" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="109" class="tds">
                                <asp:Label id="XLabel189" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel21" runat="server" text="数量" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel190" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel23" runat="server" text="含税销售单价（销售币种）" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel24" runat="server" text="含税销售总价（销售币种）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel25" runat="server" text="不含税销售总价（销售币种）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="115" class="tds">
                                <asp:Label id="XLabel26" runat="server" text="含税销售单价（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="115" class="tds">
                                <asp:Label id="XLabel28" runat="server" text="含税销售总价（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="115" class="tds">
                                <asp:Label id="XLabel29" runat="server" text="不含税销售总价（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <td width="119" class="tds">
                                <asp:Label id="XLabel232" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel102" runat="server" text="采购模式" value valuetodisplaytext xdatabind="caigoumoshi"></asp:Label></td>
                            <th width="150" class="tds">
                                <asp:Label id="XLabel246" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel247" runat="server" text="供应商直发" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="199" class="tds">
                                <asp:Label id="XLabel249" runat="server" text="直发原因" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="99" class="tds">
                                <asp:Label id="XLabel200" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel31" runat="server" text="采购数量" value valuetodisplaytext font-bold="False"></asp:Label> 
                            </th>
                            <th width="115" class="tds">
                                <asp:Label id="XLabel201" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel32" runat="server" text="采购币种" value valuetodisplaytext font-bold="False" xdatabind="caigoubizhong"></asp:Label> 
                            </th>
                            <td width="120" class="tds">
                                <asp:Label id="XLabel202" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel18" runat="server" text="含税采购单价（采购币种）" value valuetodisplaytext></asp:Label> 
                                <input onclick="GetStockingPrice()" type="button" value="SAP备货价格" /></td>
                            <th width="112" class="tds">
                                <asp:Label id="XLabel19" runat="server" text="采购折扣" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel49" runat="server" text="含税采购总价（采购币种）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel50" runat="server" text="不含税采购总价（采购币种）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel51" runat="server" text="含税采购单价（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel52" runat="server" text="含税采购总价（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel58" runat="server" text="不含税采购总价（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel59" runat="server" text="国际运保费率" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="115" class="tds">
                                <asp:Label id="XLabel136" runat="server" text="国际运保费（采购币种）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="112" class="tds">
                                <asp:Label id="XLabel61" runat="server" text="国际运保费(人民币)" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel72" runat="server" text="报关杂费（人民币）" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <td width="115" class="tds">
                                <asp:Label id="XLabel91" runat="server" text="关税税率" value valuetodisplaytext></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label id="XLabel178" runat="server" text="（以实际为准）" value valuetodisplaytext forecolor="Red"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel92" runat="server" text="关税小计(人民币)" value valuetodisplaytext></asp:Label></td>
                            <td width="99" class="tds">
                                <asp:Label id="XLabel135" runat="server" text="毛利" value valuetodisplaytext></asp:Label></td>
                            <td width="115" class="tds">
                                <asp:Label id="XLabel205" runat="server" text="*" value valuetodisplaytext forecolor="MediumBlue"></asp:Label>&nbsp;<asp:Label id="XLabel93" runat="server" text="计划行类别" value valuetodisplaytext></asp:Label></td>
                            <td width="171" class="tds">
                                <asp:Label id="XLabel209" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel103" runat="server" text="采购供应商" value valuetodisplaytext></asp:Label></td>
                            <td width="114" class="tds">
                                <asp:Label id="XLabel104" runat="server" text="联系人" value valuetodisplaytext></asp:Label></td>
                            <td width="114" class="tds">
                                <asp:Label id="XLabel105" runat="server" text="联系电话" value valuetodisplaytext></asp:Label></td>
                            <td width="114" class="tds">
                                <asp:Label id="XLabel106" runat="server" text="采购付款方式" value valuetodisplaytext></asp:Label></td>
                            <td width="121" class="tds">
                                <asp:Label id="XLabel107" runat="server" text="采购发票税点" value valuetodisplaytext xdatabind="caigoufapiaoshuidian"></asp:Label></td>
                            <td width="114" class="tds">
                                <asp:Label id="XLabel133" runat="server" text="供应商货期" value valuetodisplaytext></asp:Label></td>
                            <td width="160" class="tds">
                                <asp:Label id="XLabel218" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel134" runat="server" text="客户保修期" value valuetodisplaytext></asp:Label></td>
                            <td width="150" class="tds">
                                <aspxform:XLabel id="XLabel219" runat="server" HiddenExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' " Text="*" ValueToDisplayText Value BackColor="#d5dade" ForeColor="Red"></aspxform:XLabel>
                                &nbsp;<asp:Label id="XLabel113" runat="server" text="供应商保修期" value valuetodisplaytext></asp:Label></td>
                            <td width="220" class="tds">
                                <aspxform:XLabel id="XLabel179" runat="server" HiddenExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' " Text="*" ValueToDisplayText Value BackColor="#d5dade" ForeColor="Red"></aspxform:XLabel>
                                &nbsp;<asp:Label id="XLabel10" runat="server" text="报供应商最终客户名称" value valuetodisplaytext></asp:Label></td>
                            <td width="175" class="tds">
                                <asp:Label id="XLabel242" runat="server" text="国际运保费小计（采购币种）" value valuetodisplaytext></asp:Label></td>
                            <td width="140" class="tds">
                                <asp:Label id="XLabel241" runat="server" text="采购处理单号" value valuetodisplaytext></asp:Label></td>
                            <td width="134" class="tds">
                                <asp:Label id="XLabel243" runat="server" text="采购员" value valuetodisplaytext></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label4" runat="server" text="加征关税%" value valuetodisplaytext></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label5" runat="server" text="加征关税小计（人民币）" value valuetodisplaytext></asp:Label></td>
                            <%--<td width="104" class="tds">
                                <asp:Label id="Label4" runat="server" valuetodisplaytext value text="不含税库存成本单价(CNY)"></asp:Label></td>--%>
                        </tr>
                        <tbody>
                            <tr>
                                <td height="45" class="tds1" style="TEXT-ALIGN: center">
                                    <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.RowNumber" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="Transparent" TextMode="MultiLine" TextAlign="Center" BorderStyle="None" RenderAs="Label">1</aspxform:XGridLineNo>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.BusinessClassification" XDataSource="TableName:V_DF_SA_SS_BusinessCategories;Filter:OrderBy:'OrderID';BufferType:RuntimeUpdate" DataMap="Value->DF_SA_MarketInquiryApparatusList.MaterialType;Value1->DF_SA_MarketInquiryApparatusList.BusinessClassificationID" DisplayColumn="Name" ValueColumn="Name" PromptText="--请选择--">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XDropDownList id="XDropDownList45" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.TSType" HiddenExpress="DF_SA_MarketInquiryApparatusList.BusinessClassification!='代理维修'&amp;&amp; DF_SA_MarketInquiryApparatusList.BusinessClassification!='代理延保'&amp;&amp; DF_SA_MarketInquiryApparatusList.BusinessClassification!='代理校准'" PromptText="--请选择--">
                                        <asp:ListItem>泰克原厂服务</asp:ListItem>
                                        <asp:ListItem>是德原厂服务</asp:ListItem>
                                        <asp:ListItem>其他</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox186" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.BusinessClassificationID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox117" runat="server" XDataBind="SASapID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox118" runat="server" XDataBind="PROSapID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox119" runat="server" XDataBind="OTHSapID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox120" runat="server" XDataBind="SEVSapID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.MaterialType" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox class="prdtModel" id="XTextBox3" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.ProductModel" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                    <%-- <aspxform:XDropDownList id="XDropDownList29" runat="server" HiddenExpress="1" Width="1px" DataMap="PrdtID->DF_SA_MarketInquiryApparatusList.ProductBPMID;PrdtName->DF_SA_MarketInquiryApparatusList.ProductNmae;SalesSapID->SASapID;ServicesSapID->SEVSapID;OtherSapID->OTHSapID;ProprietarySapID->PROSapID;Name->DF_SA_MarketInquiryApparatusList.Manufacturer;ManufacturerID->DF_SA_MarketInquiryApparatusList.ManufacturerID" XDataSource="ProcedureName:PROC_DF_SA_PRODUCTS;Filter:@PrdtModelNo -> DF_SA_MarketInquiryApparatusList.ProductModel,@CreateName -> DF_SA_MarketInquiry.OwnerID;BufferType:RuntimeUpdate" ValueColumn="PrdtName" DisplayColumn="PrdtName" DisableExpress="1">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>--%>
                                    <aspxform:XCustomBrowserButton id="XCustomBrowserButton8" runat="server" Width="20px" XClass="Oimec.Dialogs.ProductInfoButton" Text="..." DataMap="PrdtID->DF_SA_MarketInquiryApparatusList.ProductBPMID;PrdtName->DF_SA_MarketInquiryApparatusList.ProductNmae;PrdtModelNo->DF_SA_MarketInquiryApparatusList.ProductModel;SalesSapID->SASapID;ServicesSapID->SEVSapID;ProprietarySapID->PROSapID;OtherSapID->OTHSapID;ManufacturerID->DF_SA_MarketInquiryApparatusList.ManufacturerID;OriginCountry->varOrigin" BrowserWindowType="AjaxPanel" MultiSelect="false" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1"></aspxform:XCustomBrowserButton>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.ProductNmae" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox189" runat="server" XDataBind="varOrigin" Width="30px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.MaterialID" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('GetPROSAPID',DF_SA_MarketInquiryApparatusList.MaterialType,SASapID,PROSapID,OTHSapID,SEVSapID)" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox121" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.ProductBPMID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox122" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.ProductCRMID" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.ManufacturerID" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList29" runat="server" Width="1px" HiddenExpress="1" XDataSource="TableName:V_DF_DataSourceList_changshang;Filter:Value->DF_SA_MarketInquiryApparatusList.ManufacturerID" DataMap="Name->DF_SA_MarketInquiryApparatusList.Manufacturer" DisplayColumn="Name" ValueColumn="ItemID">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Manufacturer" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <div style="FLOAT: left">
                                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Number" Width="80" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center"></aspxform:XTextBox>
                                    </div>
                                    <div style="FLOAT: left">
                                        <aspxform:XTextBox id="XTextBox170" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Unit" Width="20" BorderColor="#DCDCDC" BorderWidth="1" Text="台" TextAlign="Center"></aspxform:XTextBox>
                                    </div>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDSellingPriceRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.Number * DF_SA_MarketInquiryApparatusList.PDSellingPriceRest" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('IFBillingCompany',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRest,shuilv)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDSellingPriceRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.PDSellingPriceRest * DF_SA_MarketInquiry.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRest * DF_SA_MarketInquiry.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                    <aspxform:XTextBox class="sellValue" id="XTextBox174" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRMB"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRest * DF_SA_MarketInquiry.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList10" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PurchasingPattern" XDataSource="TableName:V_DF_SA_SS_ProcurementModel;Filter:BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Name" PromptText="--请选择--">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XDropDownList id="XDropDownList35" runat="server" Width="10px" HiddenExpress="1" XDataSource="ProcedureName:PROC_DF_PriceSystem;Filter:@ProductModel->DF_SA_MarketInquiryApparatusList.ProductModel,@Currency->DF_SA_MarketInquiryApparatusList.PrchaseCurrency,@PurchasingPattern->DF_SA_MarketInquiryApparatusList.PurchasingPattern" DataMap="PDPurchasePriceRest->PDPurchasePriceRest;Discount->DingHuoZheKou" DisplayColumn="PDPurchasePriceRest" ValueColumn="PDPurchasePriceRest">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XRadioButtonList id="XRadioButtonList6" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.IsSupplierSend" RepeatDirection="Horizontal">
                                        <asp:ListItem Selected="True">非直发</asp:ListItem>
                                        <asp:ListItem>直发</asp:ListItem>
                                    </aspxform:XRadioButtonList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox180" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SupplierSendReason" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PurchaseNumber" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Express="DF_SA_MarketInquiryApparatusList.Number" TextAlign="Center" ReadOnly="True"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList9" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PrchaseCurrency" XDataSource="TableName:V_DF_SA_SS_PurchasingCurrency;Filter:BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Name" DisableExpress='DF_SA_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox61" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.ExchangeRate" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Format="type:number;.4"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList19" runat="server" Width="10px" HiddenExpress="1" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->DF_SA_MarketInquiryApparatusList.PrchaseCurrency" DataMap="ComputeRate->DF_SA_MarketInquiryApparatusList.ExchangeRate" DisplayColumn="ComputeRate" ValueColumn="ComputeRate">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDPurchasePriceRest" Width="100%" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value HiddenInput="False" Express="javascript('DingHuoCaiGouJiaGe',DF_SA_MarketInquiryApparatusList.PDPurchasePriceRest,PDPurchasePriceRest,DF_SA_MarketInquiryApparatusList.PurchasingPattern)" Format="type:currency;.2" TextAlign="Right" AutoCompleteType="Disabled"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox144" runat="server" XDataBind="PDPurchasePriceRest" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox30" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Discount" Width="70px" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('DingHuoCaiGouZheKou',DF_SA_MarketInquiryApparatusList.Discount,DingHuoZheKou,DF_SA_MarketInquiryApparatusList.PurchasingPattern)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                    % 
                                    <aspxform:XTextBox id="XTextBox76" runat="server" XDataBind="zhekou" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express=" (100 - DF_SA_MarketInquiryApparatusList.Discount)  /  100"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox162" runat="server" XDataBind="DingHuoZheKou" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox31" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('CountPurchasePrices',DF_SA_MarketInquiryApparatusList.Discount,DF_SA_MarketInquiryApparatusList.PDPurchasePriceRest,DF_SA_MarketInquiryApparatusList.PurchaseNumber)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox32" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="javascript('IFPDPurchaseTotalvalueRest',DF_SA_MarketInquiry.BillingCompany,DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRest,caigoushuilv)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox33" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDPurchasePriceRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.ExchangeRate * DF_SA_MarketInquiryApparatusList.PDPurchasePriceRest" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox39" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRest * DF_SA_MarketInquiryApparatusList.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox71" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest * DF_SA_MarketInquiryApparatusList.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                    <aspxform:XTextBox class="purchaseValue" id="XTextBox173" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox36" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.InternationCIF" Width="70px" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' " Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                    %<aspxform:XTextBox id="XTextBox45" runat="server" XDataBind="guoji" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="(DF_SA_MarketInquiryApparatusList.InternationCIF / 100)"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox100" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' " Format="type:number;.2"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.InternationCIFRate" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="guojiyunbaofei2" DisableExpress="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox60" runat="server" XDataBind="guojiyunbaofei2" Width="1px" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress="1" Max="0" Min="0" ValueToDisplayText Value HiddenInput="False" Express="javascript('CountGUOJIYUNFEI',DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign,DF_SA_MarketInquiryApparatusList.ExchangeRate,DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB,guoji) "></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox37" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.CustomsFees" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || (DF_SA_MarketInquiryApparatusList.PrchaseCurrency !='CNY' &amp;&amp; DF_SA_MarketInquiry.ContractCurrency !='CNY') || DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' " Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.TariffRate" Width="80px" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('GetPurchasingTariff',DF_SA_MarketInquiry.ContractCurrency,DF_SA_MarketInquiryApparatusList.ProductModel,DF_SA_MarketInquiryApparatusList.ProductBPMID,DF_SA_MarketInquiryApparatusList.PrchaseCurrency,DF_SA_MarketInquiryApparatusList.RowNumber)" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || (DF_SA_MarketInquiryApparatusList.PrchaseCurrency !='CNY' &amp;&amp; DF_SA_MarketInquiry.ContractCurrency !='CNY')  ||DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' " Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                    %<aspxform:XTextBox id="XTextBox46" runat="server" XDataBind="guanshui" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="DF_SA_MarketInquiryApparatusList.TariffRate / 100"></aspxform:XTextBox>
                                    <%--<aspxform:XDropDownList id="XDropDownList45" runat="server" HiddenExpress="1" DataMap="TaxRate->DF_SA_MarketInquiryApparatusList.TariffRate" XDataSource="TableName:DF_SA_SS_PurchaseTariffRates;Filter:ProductBPMID->DF_SA_MarketInquiryApparatusList.ProductBPMID;BufferType:RuntimeUpdate" ValueColumn="TaxRate" DisplayColumn="TaxRate">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>--%></td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="guanshuixiaoji" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="(DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB + DF_SA_MarketInquiryApparatusList.InternationCIFRate ) *  (DF_SA_MarketInquiryApparatusList.TariffRate / 100)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox75" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.GrossMargin" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRMB - DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB " Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList15" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PlanSort" Express="javascript('ISPlanSort',DF_SA_MarketInquiryApparatusList.PurchaseNumber,DF_SA_MarketInquiryApparatusList.PurchasingPattern)" DisableExpress='DF_SA_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--">
                                        <asp:ListItem>BP</asp:ListItem>
                                        <asp:ListItem>BN</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox77" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SourcingPurchasing" Width="80px" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                    <aspxform:XCheckBox id="XCheckBox3" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.OFHEZUO" Width="78px" Text="合作过"></aspxform:XCheckBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox78" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Linkman" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' "></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox79" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Phone" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' "></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox81" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PurchasePaymentMethod" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' "></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList16" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PurchaseInvoiceTaxPoint" XDataSource="TableName:V_DF_SA_SS_PurchaseInvoice;Filter:BufferType:RuntimeUpdate;OrderBy:OrderID" DataMap="Value->caigoushuilv" DisplayColumn="Name" ValueColumn="Name" Express="javascript('IFCNY',DF_SA_MarketInquiryApparatusList.PrchaseCurrency,DF_SA_MarketInquiryApparatusList.PurchaseInvoiceTaxPoint,DF_SA_MarketInquiryApparatusList.PurchasingPattern)" DisableExpress='DF_SA_MarketInquiryApparatusList.PrchaseCurrency!="CNY"||DF_SA_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox64" runat="server" XDataBind="caigoushuilv" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox91" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SupplierDeliveryDate" Width="100%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList33" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.WarrantyPeriod" XDataSource="BufferType:RuntimeUpdate" PromptText="--请选择--">
                                        <asp:ListItem>1年</asp:ListItem>
                                        <asp:ListItem>2年</asp:ListItem>
                                        <asp:ListItem>3年</asp:ListItem>
                                        <asp:ListItem>5年</asp:ListItem>
                                        <asp:ListItem>其他</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox92" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.WarrantyPeriodOther" Width="90px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_SA_MarketInquiryApparatusList.WarrantyPeriod != '其他'"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList32" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SupplierPeriod" DisableExpress='DF_SA_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--">
                                        <asp:ListItem>1年</asp:ListItem>
                                        <asp:ListItem>2年</asp:ListItem>
                                        <asp:ListItem>3年</asp:ListItem>
                                        <asp:ListItem>5年</asp:ListItem>
                                        <asp:ListItem>其他</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox93" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SupplierPeriodOther" Width="90px" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress='DF_SA_MarketInquiryApparatusList.SupplierPeriod != "其他"' Max="0" Min="0" ValueToDisplayText Value HiddenInput="False"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox143" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SupplierCustomerName" Width="80%" BorderColor="#DCDCDC" BorderWidth="1" Express="if(DF_SA_MarketInquiryApparatusList.SupplierCustomerName=='',DF_SA_PTPClientMessage.PTPName,DF_SA_MarketInquiryApparatusList.SupplierCustomerName)" ReadOnly="True"></aspxform:XTextBox>
                                    <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="20px" XClass="YZSoft.Forms.Field.DataBrowserButton" Text="..." DisplayColumns="CustomerID:客户编号;CustomerNameCH:客户名称;CustomerSAPID:SAPID;IsFlag:红旗客户;CusLeavel:客户等级" XDataSource="TableName:V_DF_MasterData_Customer" DataMap="CustomerNameCH->DF_SA_MarketInquiryApparatusList.SupplierCustomerName;CustomerSAPID->DF_SA_MarketInquiryApparatusList.SupplierCustomerSAPID;IsFlag->DF_SA_MarketInquiryApparatusList.IsFlag" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1"></aspxform:XDataBrowserButton>
                                    <aspxform:XTextBox id="XTextBox51" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.IsFlag" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express="if(DF_SA_MarketInquiryApparatusList.IsFlag=='',DF_SA_MarketInquiry.IsFlag2,DF_SA_MarketInquiryApparatusList.IsFlag)"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox182" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SupplierCustomerSAPID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express="if(DF_SA_MarketInquiryApparatusList.SupplierCustomerSAPID=='',DF_SA_PTPClientMessage.PTPSapID,DF_SA_MarketInquiryApparatusList.SupplierCustomerSAPID)"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox169" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SUMInternationCIF" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express='if(DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign==0||DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign=="",DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest*DF_SA_MarketInquiryApparatusList.InternationCIF/100,DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign)' DisableExpress="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1" bordercolor="#dcdcdc" borderwidth="1">
                                    <aspxform:XHistoryFormLink id="XHistoryFormLink1" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.PurchseTaskID" BackColor="#e9f1f4" Express="taskId" PopupWndHeight="-1" PopupWndWidth="-1" EmptyText="尚未关联">#SerialNum</aspxform:XHistoryFormLink>
                                </td>
                                <td class="tds1" bordercolor="#dcdcdc" borderwidth="1">
                                    <aspxform:XTextBox id="XTextBox176" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.Purchaser" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox188" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express='javascript("UpLineItemStyle",DF_SA_MarketInquiry.ContractCurrency,DF_SA_MarketInquiryApparatusList.PrchaseCurrency,DF_SA_MarketInquiryApparatusList.PurchasingPattern,DF_SA_MarketInquiryApparatusList.RowNumber)'></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox177" style="HEIGHT: 22px; WIDTH: 1px" runat="server" XDataBind="taskId" Width="1px" BorderColor="Gainsboro" HiddenExpress="1" Max="0" Min="0" ValueToDisplayText Value HiddenInput="False"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox191" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.IncreaseTariff" Width="80px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value BackColor="#E6F1F8" HiddenInput="False" Express="javascript('GetPurchasingTariff',DF_SA_MarketInquiry.ContractCurrency,DF_SA_MarketInquiryApparatusList.ProductModel,DF_SA_MarketInquiryApparatusList.ProductBPMID,DF_SA_MarketInquiryApparatusList.PrchaseCurrency,DF_SA_MarketInquiryApparatusList.RowNumber)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                    %</td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox190" runat="server" XDataBind="DF_SA_MarketInquiryApparatusList.SUMIncreaseTariff" Width="100%" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value BackColor="#E6F1F8" HiddenInput="False" Express="(DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB + DF_SA_MarketInquiryApparatusList.InternationCIFRate ) *  (DF_SA_MarketInquiryApparatusList.IncreaseTariff / 100)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right" AutoCompleteType="Disabled"></aspxform:XTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td height="23">
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td class="tds">
                                    <asp:Label id="XLabel137" runat="server" text="合计" value valuetodisplaytext></asp:Label></td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox27" runat="server" XDataBind="DF_SA_MarketInquiry.SUMPDSellingTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRest)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRest)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox68" runat="server" XDataBind="DF_SA_MarketInquiry.SUMPDSellingTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.PDSellingTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox73" runat="server" XDataBind="DF_SA_MarketInquiry.SUMNPDSellingTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.NPDSellingTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_SA_MarketInquiry.SUMPDPurchaseTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRest)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                    <aspxform:XTextBox id="XTextBox80" runat="server" XDataBind="DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRest" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox112" runat="server" XDataBind="DF_SA_MarketInquiry.SUMPDPurchaseTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.PDPurchaseTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox44" runat="server" XDataBind="DF_SA_MarketInquiry.SUMNPDPurchaseTotalvalueRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" BackColor="#E6F1F8" Express="sum(DF_SA_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </tbody>
                </table>
            </div>
        </div>
        <aspxform:XRequiredFieldValidator id="该产品没有物料号" runat="server" ControlToValidate="XTextBox5" ErrorMessage="该产品没有物料号,请发起SAP物料主数据申请" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择业务分类" runat="server" ControlToValidate="XDropDownList1" ErrorMessage="请选择业务分类" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写产品型号" runat="server" ControlToValidate="XTextBox3" ErrorMessage="请填写产品型号" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写产品名称" runat="server" ControlToValidate="XTextBox4" ErrorMessage="请填写产品名称" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写厂商编号" runat="server" ControlToValidate="XTextBox8" ErrorMessage="请填写厂商编号" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写生产厂商" runat="server" ControlToValidate="XTextBox10" ErrorMessage="请填写生产厂商" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写数量" runat="server" ControlToValidate="XTextBox11" ErrorMessage="请填写数量" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写含税销售单价" runat="server" ControlToValidate="XTextBox12" ErrorMessage="请填写含税销售单价（销售币种）" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择采购模式" runat="server" ControlToValidate="XDropDownList10" ErrorMessage="请选择采购模式" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写采购数量" runat="server" ControlToValidate="XTextBox24" ErrorMessage="请填写采购数量" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写供应商直发原因" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.IsSupplierSend!='直发'" ControlToValidate="XTextBox180" ErrorMessage="请填写供应商直发原因" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择采购币种" runat="server" ControlToValidate="XDropDownList9" ErrorMessage="请选择采购币种" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写含税采购单价" runat="server" ControlToValidate="XTextBox28" ErrorMessage="请填写含税采购单价" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写国际运保费率" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY'  ||DF_SA_MarketInquiryApparatusList.InternationCIFRateForeign !=''" ControlToValidate="XTextBox36" ErrorMessage="请填写国际运保费率" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写国际运保费" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || DF_SA_MarketInquiryApparatusList.InternationCIF !=''" ControlToValidate="XTextBox100" ErrorMessage="请填写国际运保费" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写报关杂费" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || (DF_SA_MarketInquiryApparatusList.PrchaseCurrency !='CNY' &amp;&amp; DF_SA_MarketInquiry.ContractCurrency !='CNY') " ControlToValidate="XTextBox37" ErrorMessage="请填写报关杂费" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写关税税率" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || (DF_SA_MarketInquiryApparatusList.PrchaseCurrency !='CNY' &amp;&amp; DF_SA_MarketInquiry.ContractCurrency !='CNY') " ControlToValidate="XTextBox19" ErrorMessage="请填写关税税率" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择计划行类别" runat="server" ControlToValidate="XDropDownList15" ErrorMessage="请选择计划行类别" Display="None" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写采购供应商" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货'" ControlToValidate="XTextBox77" ErrorMessage="请填写采购供应商 " Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写采购联系人" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' || DF_SA_MarketInquiryApparatusList.OFHEZUO =='1'" ControlToValidate="XTextBox78" ErrorMessage="请填写采购联系人" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写采购联系电话" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' || DF_SA_MarketInquiryApparatusList.OFHEZUO =='1'" ControlToValidate="XTextBox79" ErrorMessage="请填写采购联系电话" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写采购付款方式" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货' || DF_SA_MarketInquiryApparatusList.OFHEZUO =='1'" ControlToValidate="XTextBox81" ErrorMessage="请填写采购付款方式" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写采购发票税点" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern!='备货' || DF_SA_MarketInquiryApparatusList.OFHEZUO =='1' ||DF_SA_MarketInquiryApparatusList.PrchaseCurrency!=&quot;CNY&quot;" ControlToValidate="XDropDownList16" ErrorMessage="请填写采购发票税点" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写供应商货期" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货'" ControlToValidate="XTextBox91" ErrorMessage="请填写供应商货期" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写客户保修期" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货'" ControlToValidate="XDropDownList33" ErrorMessage="请填写客户保修期" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写供应商保修期" runat="server" DisableExpress="DF_SA_MarketInquiryApparatusList.PurchasingPattern=='备货'" ControlToValidate="XDropDownList32" ErrorMessage="请填写供应商保修期" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写报供应商最终客户名称" runat="server" ControlToValidate="XTextBox143" ErrorMessage="请填写报供应商最终客户名称" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择是否上传附件" runat="server" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择是否上传附件" Display="None" ValidationGroup="yewuyuan"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择附件" runat="server" DisableExpress="DF_SA_MarketInquiry.OFAccessory=='否'" ControlToValidate="XAttachments2" ErrorMessage="请选择附件" Display="None" ValidationGroup="yewuyuan"></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="XLabel150" runat="server" text="合同文档上传" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_SA_MarketInquiry.Accessory" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;*.msg;*.eml"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="431" class="title1">
                        <asp:Label id="XLabel237" runat="server" text="上传附件" value valuetodisplaytext></asp:Label><asp:Label id="XLabel203" runat="server" text="产品配置清单与物料申请不一致，需要上传附件" value valuetodisplaytext forecolor="Red" font-size="8pt"></asp:Label></td>
                    <td width="765" class="title1">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_SA_MarketInquiry.OFAccessory" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_SA_MarketInquiry.Accessory1" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;*.msg;*.eml"></aspxform:XAttachments>
                    </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="XLabel183" runat="server" text="备注" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox113" runat="server" XDataBind="DF_SA_MarketInquiry.Remark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="80px" 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">
                        <aspxform:XLabel id="XLabel240" runat="server" HiddenExpress="DF_SA_MarketInquiry.ContractCurrency=='CNY'" Text="外币直发客户中、英文信息（内容：公司名称、地址、电话、联系人）" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel248" runat="server" HiddenExpress="DF_SA_MarketInquiry.ContractCurrency!='CNY'" Text="直发客户中文信息（内容：公司名称、地址、电话、联系人）" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox163" runat="server" XDataBind="DF_SA_MarketInquiry.SupplierStraightInformation" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="80px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <%--  <table class="table" cellspacing="0" cellpadding="0" width="1200" align="center" border="0">
            <tbody>
                <tr>
                    <td class="title1" width="1200">
                        <aspxform:XLabel id="XLabel211" runat="server" Text="意见" Value ValueToDisplayText></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XCommentsTextBox id="XCommentsTextBox1" runat="server" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" Height="80px" TextMode="MultiLine" Rows="3"></aspxform:XCommentsTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="315" height="22" class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel212" runat="server" XDataBind="diudanyuanyin" Text="丢单原因" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td width="575" class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList20" runat="server" XDataBind="DF_SA_MarketInquiry.LostReasonMain" XDataSource="TableName:V_DF_SA_SS_LostCause;" DisplayColumn="Name" ValueColumn="Name" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="304" class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList21" runat="server" XDataBind="DF_SA_MarketInquiry.LostReasonItem" Width="150px" XDataSource="TableName:V_DF_SA_SS_LostCause;Filter:Name->DF_SA_MarketInquiry.LostReasonMain" DisplayColumn="Value" ValueColumn="Value" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel239" runat="server" XDataBind="diudanyuanyin" Text="合同未签回原因" ValueToDisplayText Value BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XDropDownList id="XDropDownList40" runat="server" XDataBind="DF_SA_MarketInquiry.ContractNotSigned" Width="160px" PromptText="--请选择--">
                            <asp:ListItem>订单取消</asp:ListItem>
                            <asp:ListItem>预审有变化，重新制作</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox161" style="WIDTH: 70%" runat="server" XDataBind="DF_SA_MarketInquiry.OtherContractNotSigned" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_SA_MarketInquiry.ContractNotSigned !='其他'"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False" SaveButtonVisible="False" SaveAsTemplateButtonVisible="False"></aspxform:XProcessButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XDropDownList20" ErrorMessage="请选择丢单原因" Display="None" ValidationGroup="C">请选择丢单原因</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XDropDownList21" ErrorMessage="请选择丢单原因" Display="None" ValidationGroup="C">请选择丢单原因</aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
