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

    // Insert page code here
    //
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        { //首次加载
            string formart = Request.QueryString["formstate"];
    
            if (formart == "TransCreate")
            {
                //this.XDropDownList3.SelectedIndex = this.XDropDownList3.Items.IndexOf(this.XDropDownList3.Items.FindByValue("30%"));
                //this.XDropDownList3.SelectedValue = "30%";
                //this.XDropDownList3.SelectedIndex = 2;
                string tid = Request.QueryString["ItemID"];
                if (tid != null)
                {
                    this.SalesLeadsID.Text = tid;//原来 this.XTextBox9.Text = tid;
                    // this.XDropDownList38.DataMap = "";
                    this.XDrList.DataMap = "";
                    this.XTextBox6.Express = "";
                    this.XTextBox8.Express = "";
                }
            }
            if (formart == "New")
            {
                string tids = Request.QueryString["ItemID"];
                // string salesProgress = Request.QueryString["salesProgress"];
                if (tids != null)
                {
                    this.BackfillItemId.Text = tids;
                    //this.XDataBrowserButton9.DataMap = "";
                    this.XDropDownList37.DataMap = "";
    
                    // this.XDataBrowserButton8.DataMap = "";
                    this.XTextBox83.Express = "";
                    this.XTextBox43.Express = "";
                    this.BPMID.Express = "";
                    //this.SalesProgress.Text = "30%";
                    //参考创建把自动赋值事件清空1231日期改动
                    this.XTextBox56.Express = "";//付款方客户名称
                    //this.XDropDownList31.DataMap = "";
                    this.XTextBox57.Express = "";
                    this.XTextBox63.Express = "";
                    this.XRadioButtonList4.Express = "";//付款方实体清单客户
    
                    this.CustomerReceivingName.Express = "";//客户收货公司名称
                    this.CustomerReceivingContacts.Express = "";//客户收货联系人
                    this.XTextBox183.Express = "";//客户收货发运地址
    
                    this.CustomerReceivingLandline.Express = "";//客户收货联系人座机
                    this.CustomerReceivingPhone.Express = "";//客户收货联系人手机
    
                    this.XTextBox99.Express = "";
                    this.customID.Express = "";
    
                    this.XTextBox28.Express = "";
                    this.MailTicketPhone.Express = "";
                    this.MailTicketTel.Express = "";
                    this.SAPEmail.Express = "";
    
                    this.XTextBox187.Express = "";
                    this.ContractTel.Express = "";
                    this.ContractPhone.Express = "";
                    this.XTextBox217.Express = "";
    
                    this.XTextBox29.Express = "";
                    //this.XTextBox74.Express = "";
    
                }
                else
                {
                    //this.XDropDownList38.DataMap = "";
                    this.XDrList.DataMap = "";
                    this.SalesProgress.Text = "10%";
    
                }
                this.XDropDownList4.DataMap = "";
    
    
            }
    
        }
    
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <title>BPM Form</title>
    <style>
        BODY {
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        TABLE {
            border-collapse: collapse;
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        P {
            PADDING-RIGHT: 0px;
            PADDING-LEFT: 0px;
            PADDING-BOTTOM: 0px;
            MARGIN: 0px;
            PADDING-TOP: 0px;
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        TD {
            PADDING-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;
        }

        #div_mljs .yz-xform-field-cnt {
            display: block;
        }

        label {
            pointer-events: none;
        }

        #tablenew tr:nth-child(odd) {
            background: #c8def5;
        }

        #tablenew tr:nth-child(even) {
            background: #dff2ff;
        }

        .tds1 {
            background: none;
        }
    </style>
        <script src="../../../../Oimec/Script/jquery-3.2.1.js"></script>
    <script src="../../../../Oimec/Script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">

        //agent.on({
        //    afterSaveFormApplication: function () {
        //        location.reload();
        //        return false;
        //    }
        //})

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

        /*   注**：这是一个公共的方法
**  获取行项目table对应标签控件元素id
**  参数说明：name(控件name)，i(行索引)，htmltag(要获取控件div中对应的标签名)
**  示例：获取第1行行项目文本框name="txtname",参数：txtname,0,input
*/
        function getElementId(name, i, htmltag) {
            var divs = document.getElementsByName(name);
            var div = divs[i];
            var id = div.getElementsByTagName(htmltag)[0].id;
            return id;

        }


        //实体清单客户
        function stqdkh(sdf, fkf) {
            //查询是否是实体清单客户

            //产品明细
            var tableObj = document.getElementById('tablenew');

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

                var IsFlagSDF = document.getElementById(getElementId("IsFlagSDF", i - 2, "select")).value;
                var IsFlagFKF = document.getElementById(getElementId("IsFlagFKF", i - 2, "select")).value;

                if (IsFlagSDF)
                    issdf = true;
                if (IsFlagFKF)
                    isfkf = true;
            }
            if (issdf)
                $("input[name='XRadioButtonList3'][value=T]").attr("checked", true);//T为是
            else
                $("input[name='XRadioButtonList3'][value=F]").attr("checked", true);

            if (isfkf)
                $("input[name='XRadioButtonList4'][value=T]").attr("checked", true);//T为是
            else
                $("input[name='XRadioButtonList4'][value=F]").attr("checked", true);
        }

    </script>

    <%--//销售线索转销售机会更新销售线索"跟进状态"--%>
    <script type="text/javascript">

        Ext.onReady(function () {

            document.getElementById("div_fymx").style.display = "none";//隐藏
            document.getElementById("div_mljs").style.display = "none";//隐藏
        });

        //获取付款信息
        function getFKInfo(InvoiceType, PTPSapID, value) {
            if (PTPSapID == "1036401")//一次性客户 1036401 1035321
            {
                if (InvoiceType == "6%增值税普通发票" || InvoiceType == "13%增值税普通发票") {
                    return null;
                }
            }
            return value;
        }

        //付款信息失效表达式
        function FKInfoDisable(InvoiceType, PTPSapID) {
            if (PTPSapID == "1036401")//一次性客户
            {
                if (InvoiceType == "6%增值税普通发票" || InvoiceType == "13%增值税普通发票") {
                    return false;
                }
            }
            return true;
        }

        agent.on('beforeSubmit', function () {
            var state = request("formstate");
            var tid = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();


            //一次性客户控制:发票类型不允许开6%或13%增值税专用发票
            var PTPSapID = GetXValue('XTextBox57');
            if (PTPSapID == "1036401") {
                var salesInvoiceType = GetXValue('SalesOpportunitiesInvoiceType');
                if (salesInvoiceType == "6%增值税专用发票" || salesInvoiceType == "13%增值税专用发票") {
                    Ext.MessageBox.alert("提示", "公司财务规定：一次性客户不能开具增值税专用发票，请申请SAP客户主数据。");
                    return false;
                }
            }


            //销售线索转销售机会更新销售线索"跟进状态"
            if (state == "TransCreate" && tid != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'UpdateFollowState',
                        ItemID: tid,
                        FollowState: "有效",
                        ContractAmount: ""
                    },
                    success: function (action) {
                    },
                    failure: function (action) {
                        var mbox = Ext.Msg.show({
                            title: '错误提示',
                            msg: YZSoft.HttpUtility.htmlEncode(action.result.message, true),
                            buttons: Ext.Msg.OK,
                            icon: Ext.MessageBox.WARNING
                        });
                        me.store.reload({ mbox: mbox });
                    }
                });
            }
        });


        function request(paras) {
            var url = location.href;
            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
            var paraObj = {};
            for (i = 0; j = paraString[i]; i++) {
                paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
            }
            var returnValue = paraObj[paras.toLowerCase()];
            if (typeof (returnValue) == "undefined")
            { return ""; }
            else
            { return returnValue; }
        }

    </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 == "2000上海颐合") {

                return "供应商直发**机场";
            }
            else if (Company == "1000东方中科北京" || Company == "1010东方中科上海" || Company == "1020东方中科深圳" || Company == "2100苏州博德") {
                return "";
            }
            else {
                if (ClearlyStateDelivery == "") {
                    return ClearlyStateDelivery;
                }
                else {
                    return YUANZHI;
                }

            }
        }

        //根据开票公司，清空直发机场
        function ClearlyStateDelivery1(Company, YUANZHI, ClearlyStateDelivery) {
            if (Company == "2000上海颐合") {

                return "";
            }
            else 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">

        //删除数组中某数据
        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 == "供应商直发**机场" || 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) {
            var 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) {
            //alert(SUMNPDSellingTotalvalueRMB);
            // alert(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');

            var v_supplier = true; //标识是否供应商全部为空
            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();

                if (tableInfo1[i - 2] != "")
                    v_supplier = false;
            }


            var v_total = 0;
            if (v_supplier) {
                for (var i = 0; i < tableInfo1.length ; i++) {
                    v_total += Number(tableInfo2[i]);

                    if (tableInfo3[i] != 0) {
                        NewArr[i] = 1;      //记录行项目是否填写国际运保费
                    }
                    else
                        NewArr[i] = 0;
                }
                tableInfo2 = new Array();
                tableInfo2[0] = v_total;
            }
            else {
                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>

    <%--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: 15
                    },
                    success: function (action) {
                        var result = action.result;
                        var data = action.result.Value;

                        if (data != null) {
                            agent.Eles[document.getElementById("XTextBox105").getAttribute("xform_xele_index")].setValue(data.I_DMBTR_C);
                            agent.Eles[document.getElementById("XTextBox54").getAttribute("xform_xele_index")].setValue(data.I_DMBTR_Y);
                        } else {
                            agent.Eles[document.getElementById("XTextBox105").getAttribute("xform_xele_index")].setValue("0");
                            agent.Eles[document.getElementById("XTextBox54").getAttribute("xform_xele_index")].setValue("0");
                        }


                    },
                    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;
                        if (data != null) {

                            agent.Eles[document.getElementById("XTextBox107").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);

                        } else {

                            agent.Eles[document.getElementById("XTextBox107").getAttribute("xform_xele_index")].setValue("0");
                            agent.Eles[document.getElementById("XTextBox62").getAttribute("xform_xele_index")].setValue("0");
                            agent.Eles[document.getElementById("XTextBox149").getAttribute("xform_xele_index")].setValue("0");
                            agent.Eles[document.getElementById("XTextBox184").getAttribute("xform_xele_index")].setValue("0");
                            agent.Eles[document.getElementById("XTextBox185").getAttribute("xform_xele_index")].setValue("0");
                        }



                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetDMBTRData',
                        KEHUID: kehuID,
                        days: 15
                    },
                    success: function (action) {
                        var result = action.result;
                        var data = action.result.Value;
                        if (data != null) {
                            agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].setValue(data.I_DAY_C);
                        } else {
                            agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].setValue("");
                        }


                    },
                    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">


        //点击全选新品销售按钮，将物料类型赋值为销售物料
        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,Proportion, ManufacturersID) {
           if (ManufacturersID == "217") {
                //计算公式：采购单价×（1+标准服务比例）×数量×（1-采购折扣%）
                console.log(Proportion)
                if (Proportion == "") {
                    Proportion = 0;
                }
                Proportion = parseFloat(Proportion);
                Proportion = (100 + Proportion) / 100;

                if (CaiGouMoShi == "原厂采购" && CaiGouJiaGe != "") {
                    if (parseInt(CaiGouJiaGe) >= 0) {
                        return CaiGouJiaGe * Proportion;
                    }
                    else {
                        return YuanCaiGouJiaGe;
                    }
                }
                else {
                    return YuanCaiGouJiaGe;
                }

              

            } else {
            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 fymx_ShowHidden() {
            //费用明细 展开 隐藏
            var btn_value = document.getElementById('btn_fymx').value;
            if (btn_value == "▽展开") {
                document.getElementById('btn_fymx').value = "△隐藏";
                document.getElementById("div_fymx").style.display = "";//显示
            }
            else {
                document.getElementById("div_fymx").style.display = "none";//隐藏
                document.getElementById('btn_fymx').value = "▽展开";
            }
        }

        function mljs_ShowHidden() {
            //毛利计算 展开 隐藏
            var btn_value = document.getElementById('btn_mljs').value;
            if (btn_value == "▽展开") {
                document.getElementById('btn_mljs').value = "△隐藏";
                document.getElementById("div_mljs").style.display = "";//显示
            }
            else {
                document.getElementById('btn_mljs').value = "▽展开";
                document.getElementById("div_mljs").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>

    <%--受达方---%>
    <script type="text/javascript">



        //表单加载的时候进行数据及业务逻辑处理
        Ext.onReady(function () {

            //隐藏：费用明细、毛利计算公式
            document.getElementById("div_fymx").style.display = "none";//隐藏
            document.getElementById("div_mljs").style.display = "none";//隐藏

            //产品型号触发事件（已取消）
            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 chenckBox = document.getElementById("XCheckBox1");
            ////if (chenckBox.checked) {
            if (XChecked("Review") == 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("请注意汇率波动，此单特别注意！");
                }
            }




        });
        //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("XTextBox106").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("XTextBox108").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) {


            //付款方是实体清单客户，合同币种为外币，申请不能提交
            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();


            //售达方和付款方是否是实体清单客户，如果是就在提交的时候给出一个提示

            var radio3_0 = document.getElementById("XRadioButtonList3_0");
            var radio4_0 = document.getElementById("XRadioButtonList4_0");
            if (radio3_0.checked) {
                alert("售达方客户是实体清单客户！");
                //return false;
            }
            if (radio4_0.checked) {
                alert("付款方客户是实体清单客户！");
                //return false;
            }
            //售达方客户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();

            //查看售达方和付款方客户是否有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;
                        }
                    }

                }*/
            }


            //联系人邮箱可是否正确
            var APPID = agent.Eles[document.getElementById("XTextBox17").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("XTextBox17").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>
    <%--生成合同---%>
    <style>
        /*#loadmask-1082-msgWrapEl {
           position:absolute;
            top:80%;
            left:50%;
            margin:2600px 0 30px -200px;
           border:1px solid #008800;
        }*/
        .x-mask-fixed {
            position: inherit;
        }

        .inputbtn {
            width: 65px;
            height: 20px;
        }
    </style>

</head>
<body id="show">
    <form runat="server">
        <script src="../../../../Oimec/CRM/CR/SaleOpportunitesEvent.js?v=<%=Guid.NewGuid().ToString()%>"></script>
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <aspxform:XTextBox id="XTextBox216" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ItemId" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="BackfillItemId" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BackfillItemId" HiddenInput="true" HiddenExpress="1"></aspxform:XTextBox>
                    <aspxform:XTextBox id="ReferenceOpportunityName" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ReferenceOpportunityName" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="ReferenceFormNo" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ReferenceFormNo" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="ContractChange" runat="server" XDataBind="DF_CRM_SalesOpportunities.ContractChange" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="ContractChangeFlag" runat="server" XDataBind="DF_CRM_SalesOpportunities.ContractChangeFlag" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="BusinessApprovalContractChangeFlag" runat="server" XDataBind="DF_CRM_SalesOpportunities.BusinessApprovalContractChangeFlag" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="ContractChangeCount" runat="server" XDataBind="DF_CRM_SalesOpportunities.ContractChangeCount" HiddenInput="true"></aspxform:XTextBox>
                    <aspxform:XTextBox id="AdvancePayFlag" runat="server" XDataBind="DF_CRM_SalesOpportunities.AdvancePayFlag" HiddenInput="true"></aspxform:XTextBox>
                    <td class="biaoti">
                        <asp:Label id="Label1" runat="server" text="销售机会"></asp:Label></td>
                    <td width="400" class="formno">
                        <asp:Label id="Label2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" XDataBind="DF_CRM_SalesOpportunities.FormNo" Text="--系统自动生成--" BackColor="#8AB3DF" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" id="tb1" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="22" class="title1" colspan="5">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label>
                        <aspxform:XTextBox id="SalesLeadsID" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SalesLeadsID" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SalesLeadsID" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" HiddenExpress="1" DataMap="CustomerName->DF_CRM_SalesOpportunities.CustomerName;Contacts->DF_CRM_SalesOpportunities.CustomerContact;CustomerDemand->DF_CRM_SalesOpportunities.Remarks" XDataSource="TableName:DF_CRM_SaleLeads;Filter:ItemID->SalesLeadsID"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox2" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BU" HiddenInput="true" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="20px" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox31" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Area" HiddenInput="true" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="20px" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox5" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Phone" HiddenInput="true" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="20px" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="ContactTel" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ContactTel" HiddenInput="true" HiddenExpress="1" Height="20px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Department" HiddenInput="true" DisableBehavior="ReadOnly" BackColor="#E6F1F8" Height="20px" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="p" runat="server" Width="40PX" XDataBind="P" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="t" runat="server" Width="40PX" XDataBind="T" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="CreditControlApprovalMark" runat="server" Width="100px" XDataBind="DF_CRM_SalesOpportunities.CreditControlApprovalMark" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label187" runat="server" text="创建用户"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="CreateName" runat="server" Width="30%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CreateName" BackColor="#E6F1F8" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="CreateAccount" runat="server" XDataBind="DF_CRM_SalesOpportunities.CreateAccount" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label5" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CreateDate" DisableBehavior="ReadOnly" BackColor="#E6F1F8" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label4" runat="server" text="业务员"></asp:Label>
                        <aspxform:XTextBox id="XTextBox17" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ownerId" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SalesmanID" runat="server" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SalesmanID" HiddenExpress="1" Express="DF_CRM_SalesOpportunities.ownerId"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SalesEmployeeID" runat="server" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SalesEmployeeID" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SalesmanName" runat="server" XDataBind="DF_CRM_SalesOpportunities.SalesmanName" HiddenInput="true" Express="DF_CRM_SalesOpportunities.ownerName"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" Width="30%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ownerName" HiddenInput="False" BackColor="#E6F1F8" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" HiddenExpress="1" DataMap="MobilePhone->DF_CRM_SalesOpportunities.Phone;ContactPhoneUumber->DF_CRM_SalesOpportunities.ContactTel" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_CRM_SalesOpportunities.ownerId"></aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList20" runat="server" HiddenExpress="1" DataMap="SalesOffice->DF_CRM_SalesOpportunities.SalesOffice;StaffSAPNumber->DF_CRM_SalesOpportunities.SalesEmployeeID;StaffID->DF_CRM_SalesOpportunities.SalesmanID;Region->DF_CRM_SalesOpportunities.Area;SalesOfficeDes->DF_CRM_SalesOpportunities.Department;productLine->DF_CRM_SalesOpportunities.BU;BUID->DF_CRM_SalesOpportunities.ProductLine;" XDataSource="TableName:V_DF_SA_SS_SalesPersonnel;Filter:StaffID->DF_CRM_SalesOpportunities.ownerId"></aspxform:XDropDownList>
                        <%--<aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="35px" Text="查询" DataMap="StaffID->DF_CRM_SalesOpportunities.SalesmanID; " XDataSource="ProcedureName:proc_DF_SD_PersonnelSearch;Filter:@bpmAccount->DF_CRM_SalesOpportunities.ownerId" DisplayColumns="StaffName:姓名,;SalesOffice:销售办公室,"></aspxform:XDataBrowserButton>--%>
                        <aspxform:XLabel id="Department" runat="server" XDataBind="Department" BackColor="#d4e4fe" Express="DF_CRM_SalesOpportunities.Department"></aspxform:XLabel>
                        <aspxform:XDropDownList id="XDD7" runat="server" HiddenExpress="1" DataMap="MobilePhone->P;ContactPhoneUumber->T" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_CRM_SalesOpportunities.ownerId"></aspxform:XDropDownList>
                        <%--<aspxform:XDataBrowserButton id="XDataBrowserButton11" runat="server" Width="60px" Text="查询" XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="Name->DF_CRM_SalesOpportunities.ownerName;Department->DF_CRM_SalesOpportunities.Department;Region->DF_CRM_SalesOpportunities.Area;AttendanceKakaNO->DF_CRM_SalesOpportunities.ownerId;BUName->DF_CRM_SalesOpportunities.BU;MobilePhone->DF_CRM_SalesOpportunities.Phone;ContactPhoneUumber->DF_CRM_SalesOpportunities.ContactTel;" DisplayColumns="Name:员工姓名,;Department:部门,"></aspxform:XDataBrowserButton>--%>
                        <aspxform:XDataBrowserButton id="ywy" runat="server" Width="35px" Text="查询" DataMap="StaffID->DF_CRM_SalesOpportunities.ownerId;StaffName->DF_CRM_SalesOpportunities.ownerName;SalesOffice->DF_CRM_SalesOpportunities.Department;ProductLine->DF_CRM_SalesOpportunities.BU;Region->DF_CRM_SalesOpportunities.Area;StaffSAPNumber->DF_CRM_SalesOpportunities.SalesEmployeeID;" XDataSource="ProcedureName:proc_DF_SD_PersonnelSearch;Filter:@bpmAccount->DF_CRM_SalesOpportunities.CreateAccount" DisplayColumns="StaffName:姓名,;SalesOffice:销售办公室,"></aspxform:XDataBrowserButton>
                    </td>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label9" runat="server" text="销售机会名称"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.opportunityName" DisableBehavior="ReadOnly" ValueToDisplayText Express="DF_CRM_SalesOpportunities.ReferenceOpportunityName"></aspxform:XTextBox>
                    </td>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label116" runat="server" text="销售机会来源"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="SourcesOpportunity" runat="server" XDataBind="DF_CRM_SalesOpportunities.SourcesOpportunity" DisableExpress="1">
                            <asp:ListItem>销售线索</asp:ListItem>
                            <asp:ListItem Selected="True">自建</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label12" runat="server" text="客户名称"></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerID" HiddenInput="True" DisableBehavior="ReadOnly" ReadOnly="True" Express="SalesOpportunitiesCustomerID"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SalesOpportunitiesCustomerID" runat="server" XDataBind="SalesOpportunitiesCustomerID" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerName" Express="SalesOpportunitiesCustomerName"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SalesOpportunitiesCustomerName" runat="server" XDataBind="SalesOpportunitiesCustomerName" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XDataBrowserCustomer" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" Text="查询" DataMap="CustomerNameCH->SalesOpportunitiesCustomerName;CustomerID->SalesOpportunitiesCustomerID;CustomerSAPID->DF_CRM_SalesOpportunities.STPSapID;CusLeavel->DF_CRM_SalesOpportunities.STPCustomerLevel;IsRelatedCus->DF_CRM_SalesOpportunities.IsRelatedCus;IsFlag->DF_CRM_SalesOpportunities.IsFlag1" Height="25px" AppendMode="ClearAndAppend"></aspxform:XCustomBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton9" runat="server" Width="35px" XClass="Oimec.Dialogs.CustomerAddButton" Text="新建" Height="25px" BrowserWindowType="AjaxPanel"></aspxform:XCustomBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label172" runat="server" text="">重点复核</asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XCheckBox id="Review" runat="server" XDataBind="DF_CRM_SalesOpportunities.Review"></aspxform:XCheckBox>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label40" runat="server" text="行业及形态"></asp:Label>
                        <aspxform:XLabel id="industryID" runat="server" Width="40px" XDataBind="DF_CRM_SalesOpportunities.industryID" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList tabIndex="2" id="Industry" runat="server" Width="40%" XDataBind="DF_CRM_SalesOpportunities.Industry" DataMap="Value->DF_CRM_SalesOpportunities.industryID" XDataSource='TableName:DF_DataSourceList;Filter:Type->"行业及形态",Value1->0;OrderBy:OrderID' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="IndustryOther" runat="server" Width="227px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_SalesOpportunities.IndustryOther" HiddenInput="False" Max="0" Min="0" HiddenExpress="DF_CRM_SalesOpportunities.industryID!=99" ValueToDisplayText CssClass="IndustryOther"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <div hiddenexpress="DF_CRM_SalesOpportunities.industryID==15 || DF_CRM_SalesOpportunities.industryID==16 || DF_CRM_SalesOpportunities.industryID==17 "><asp:Label id="Label194" runat="server" text="子行业"></asp:Label>
                            <aspxform:XDropDownList id="XDropDownList13" runat="server" Width="23px" HiddenExpress="1" DataMap="CustomerShape->industryItemID;CustomerShapeOther->DF_CRM_SalesOpportunities.IndustryOther" XDataSource="TableName:DF_Partner_ZK;Filter:PartnerID->DF_CRM_SalesOpportunities.CustomerID"></aspxform:XDropDownList>
                            <aspxform:XDropDownList id="XDropDownList25" runat="server" Width="23px" HiddenExpress="1" DataMap="Name->DF_CRM_SalesOpportunities.Industry;Value->DF_CRM_SalesOpportunities.industryID" XDataSource='TableName:DF_DataSourceList;Filter:ItemID->industryItemID,Type->"行业及形态",Value1->0' DisplayColumn="ItemID" ValueColumn="ItemID"></aspxform:XDropDownList>
                            <aspxform:XLabel id="XLabel12" runat="server" Width="40px" XDataBind="industryItemID" HiddenExpress="1" ValueToDisplayText></aspxform:XLabel>
                        </div>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList tabIndex="2" id="SubIndustry" runat="server" Width="40%" XDataBind="DF_CRM_SalesOpportunities.SubIndustry" HiddenExpress="DF_CRM_SalesOpportunities.industryID==15 || DF_CRM_SalesOpportunities.industryID==16 || DF_CRM_SalesOpportunities.industryID==17 || DF_CRM_SalesOpportunities.industryID==99" XDataSource='TableName:DF_DataSourceList;Filter:Type->"行业及形态",Value1->DF_CRM_SalesOpportunities.industryID;OrderBy:Value1' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="SubIndustryOther" runat="server" Width="227px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_SalesOpportunities.SubIndustryOther" Max="0" Min="0" HiddenExpress="DF_CRM_SalesOpportunities.industryID!=99 && DF_CRM_SalesOpportunities.SubIndustry!='其他'" CssClass="SubIndustryOther"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label38" runat="server" text="客户需求"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox115" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Remarks" TextMode="MultiLine"></aspxform:XTextBox>
                        <asp:Label id="Label171" runat="server" text="是否投标项目" hiddenexpress="1"></asp:Label>
                        <aspxform:XRadioButtonList id="IsTendering" runat="server" XDataBind="DF_CRM_SalesOpportunities.IsTendering" HiddenExpress="1" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="Label2412" runat="server" text="联系人信息" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        <aspxform:XTextBox id="XTextBox138" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPContactExmessage" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <%--<tr>
                        <td width="298" height="14" class="ts">
                            <asp:Label id="XLabel82" runat="server" text="售达方客户名称" valuetodisplaytext value></asp:Label>
                            <aspxform:XTextBox id="XTextBox164" runat="server" XDataBind="DF_CRM_SalesOpportunities.SAPContactExmessageCode" BorderWidth="1" BorderColor="#DCDCDC" Width="10px" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td width="298" class="ts1">
                            <aspxform:XTextBox id="XTextBox82" style="WIDTH: 70%" runat="server" XDataBind="DF_CRM_SalesOpportunities.SAPOFName" BorderWidth="1" BorderColor="#DCDCDC" Express="DF_CRM_SalesOpportunities.STPName" DisableExpress="1"></aspxform:XTextBox>
                        </td>
                        <td width="298" class="ts">
                            <asp:Label id="XLabel83" runat="server" text="联系人SapID" valuetodisplaytext value></asp:Label></td>
                        <td width="298" class="ts1">

                        </td>
                    </tr>--%> 
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label14" runat="server" text="主联系人"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerContact" Express="SalesOpportunitiesCustomerContact"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SalesOpportunitiesCustomerContact" runat="server" XDataBind="SalesOpportunitiesCustomerContact" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton8" runat="server" Width="35px" Text="查询" DataMap="ContactName->SalesOpportunitiesCustomerContact;ContactSAPID->DF_CRM_SalesOpportunities.SAPOFSapID;ContactTel->DF_CRM_SalesOpportunities.SAPOFPhone;ContactMobile->DF_CRM_SalesOpportunities.SAPOFTelephone;ContactEmail->DF_CRM_SalesOpportunities.SAPOFEmail;ContactDept->DF_CRM_SalesOpportunities.SAPOFDepartment;ContactAddr->DF_CRM_SalesOpportunities.SAPOFAddress" XDataSource="TableName:V_DF_MasterData_OrderContact;Filter:CustomerID->DF_CRM_SalesOpportunities.CustomerID,OwnerAccount->DF_CRM_SalesOpportunities.ownerId" Height="25px" DisplayColumns="ContactName:联系人,60;ContactTel:电话,100;ContactMobile:手机号,120;ContactEmail:邮箱,120;ContactAddr:地址,150;ContactDepart:部门描述,150"></aspxform:XDataBrowserButton>
                        <%--<aspxform:XDataBrowserButton id="XDataBrowserCustomerContact" runat="server" Width="35px" XClass="YZSoft.Forms.Field.DataBrowserButton" Text="查询" XDataSource="TableName:DF_MCustomer_Contact;Filter:CustomerID->DF_CRM_SalesOpportunities.CustomerID" DataMap="ContactName->DF_CRM_SalesOpportunities.CustomerContact" Height="25px" DisplayColumns="ContactName:联系人姓名;ContactTel:联系人电话;ContactMobile:联系人手机;ContactEmail:联系人邮箱" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1"></aspxform:XDataBrowserButton>--%><%--<aspxform:XCustomBrowserButton id="XCustomBrowserButton10" runat="server" Width="35px" XClass="Oimec.Dialogs.SalesContactAddButton" Text="新建" DisableExpress='DF_CRM_SalesOpportunities.CustomerID ==  "" ' Height="25px" BrowserWindowType="AjaxPanel"></aspxform:XCustomBrowserButton>--%></td>
                    <td class="ts">
                        <asp:Label id="XLabel85" runat="server" text="联系电话" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox136" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFAreaCode" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="SAPOFPhone" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFPhone" onchange="param.SAPOFPhone()" oninput="param.SAPOFPhone()"></aspxform:XTextBox>
                        <%-- -
                            <aspxform:XTextBox id="XTextBox137" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFExtCode"></aspxform:XTextBox>--%><asp:Label id="SAPOFPhoneLabel" style="DISPLAY: none" runat="server" text="移动电话">联系电话格式不正确</asp:Label></td>
                </tr>
                <tr>
                    <td height="14" class="ts">
                        <aspxform:XLabel id="XLabel86" runat="server" XDataBind="BUMEN" Text="部门" BackColor="#d4e4fe" ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox141" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="Department" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox142" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFDepartmentID" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList37" runat="server" HiddenExpress="1" DataMap="Value->DF_CRM_SalesOpportunities.SAPOFDepartment" XDataSource="TableName:DF_DataSourceList;Filter:Type->BUMEN,Value->Department;BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="Name">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts1">
                        <aspxform:XDropDownList id="XDropDownList36" runat="server" XDataBind="DF_CRM_SalesOpportunities.SAPOFDepartment" DataMap="Value->DF_CRM_SalesOpportunities.SAPOFDepartmentID" XDataSource="TableName:V_DF_SA_SS_DF_Department;BufferType:RuntimeUpdate" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Value">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel87" runat="server" text="移动电话" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="SAPOFTelephone" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFTelephone" oninput="param.SAPOFTelephone()" onporpertychange="param.SAPOFTelephone()"></aspxform:XTextBox>
                        <asp:Label id="SAPOFTelephoneLabel" style="DISPLAY: none" runat="server" text="移动电话">移动电话格式不正确</asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel88" runat="server" text="联系地址" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox85" style="WIDTH: 100%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFAddress"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFEmail" oninput="param.SAPOFEmail()" onporpertychange="param.SAPOFEmail()"></aspxform:XTextBox>
                        <asp:Label id="EmailLabel" style="DISPLAY: none" runat="server" text="Email">邮箱格式不正确</asp:Label></td>
                </tr>
                <tr>
                    <td height="26" class="ts">
                        <asp:Label id="XLabel84" runat="server" text="其他联系人" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" colspan="3">
                        <aspxform:XTextBox id="XTextBox83" style="WIDTH: 50%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFContact" HiddenInput="true" Express="SalesOpportunitiesCustomerContact"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton9" runat="server" Width="35px" HiddenExpress="1" Text="查询" DataMap="ContactName->DF_CRM_SalesOpportunities.SAPOFContact;ContactSAPID->DF_CRM_SalesOpportunities.SAPOFSapID;ContactTel->DF_CRM_SalesOpportunities.SAPOFPhone;ContactMobile->DF_CRM_SalesOpportunities.SAPOFTelephone;ContactEmail->DF_CRM_SalesOpportunities.SAPOFEmail;ContactDept->DF_CRM_SalesOpportunities.SAPOFDepartment;ContactAddr->DF_CRM_SalesOpportunities.SAPOFAddress" XDataSource="TableName:V_DF_MasterData_OrderContact;Filter:CustomerID->DF_CRM_SalesOpportunities.STPClientBPMID,OwnerAccount->DF_CRM_SalesOpportunities.ownerId" Height="25px" DisplayColumns="ContactName:联系人,60;ContactSAPID:联系人SapID,90;ContactTel:电话,100;ContactMobile:手机号,120;ContactEmail:邮箱,120;ContactAddr:地址,150;ContactDepart:部门描述,150"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="XTextBox86" style="WIDTH: 20%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPOFSapID" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="OtherContacts" style="WIDTH: 86.9%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.OtherContacts"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label27" runat="server" text="机会跟进" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label15" runat="server" text="销售阶段"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" xclass="Oimec.ControlEvent.CrmCrSalesProgressChange">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" Width="150px" XDataBind="DF_CRM_SalesOpportunities.SalesProgress" XDataSource='TableName:DF_DataSourceList;Filter:Type->"销售进展";OrderBy:OrderID' Express="SalesProgress" DisplayColumn="Name" ValueColumn="Value" name="SalesProgress"></aspxform:XDropDownList>
                        <aspxform:XCheckBox id="RapidSales" runat="server" Width="30%" XDataBind="DF_CRM_SalesOpportunities.RapidSales" Text="快速销售"></aspxform:XCheckBox>
                        <aspxform:XTextBox id="SalesProgress" runat="server" XDataBind="SalesProgress" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label17" runat="server" text="预计销售金额"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.EstimatedSalesAmount" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label31" runat="server" text="客户预算"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox134" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerBudget" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label34" runat="server" text="销售机会价值"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox135" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SalesOpportunityValue" Express="javascript('param.GetTotalSalesOpportunities',DF_CRM_SalesOpportunities.SalesProgress,DF_CRM_SalesOpportunities.EstimatedSalesAmount)" DisableExpress="1" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label88" runat="server" text="预计/实际签单日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SignatureDate"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label89" runat="server" text="销售币种" font-bold="True"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList41" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.ContractCurrency" XDataSource="TableName:V_DF_SA_SS_SalesCurrency;Filter:BufferType:RuntimeUpdate" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" onchange="param.change()" Font-Bold="True">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts" style="WIDTH: 8.5%">
                        <asp:Label id="XLabel67" runat="server" text="税种" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 29%">
                        <aspxform:XDropDownList id="TaxType" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.TaxType" XDataSource="TableName:DF_SA_SS_TaxRate;BufferType:RuntimeUpdate" Express="javascript('ClearlyStateRate1',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.TaxType)" DisableExpress="DF_CRM_SalesOpportunities.BillingCompany =='A300HOSIC 香港'||DF_CRM_SalesOpportunities.BillingCompany=='2000上海颐合'" PromptText="--请选择--" DisplayColumn="TaxType" ValueColumn="TaxType">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts" style="WIDTH: 8.5%">
                        <asp:Label id="XLabel68" runat="server" text="发票类型" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 29%">
                        <aspxform:XDropDownList id="SalesOpportunitiesInvoiceType" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.InvoiceType" XDataSource="TableName:V_DF_DF_SA_SS_TaxRate;Filter:TaxType->DF_CRM_SalesOpportunities.TaxType;BufferType:RuntimeUpdate;OrderBy:ItemID DESC" Express="javascript('ClearlyStateRate1',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.InvoiceType)" DisableExpress="DF_CRM_SalesOpportunities.BillingCompany =='A300HOSIC 香港'||DF_CRM_SalesOpportunities.BillingCompany=='2000上海颐合'" PromptText="--请选择--" DisplayColumn="InvoiceType" ValueColumn="InvoiceType" name>
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="ts" style="WIDTH: 8.5%">
                        <asp:Label id="XLabel71" runat="server" text="税率" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 29%">
                        <aspxform:XTextBox id="XTextBox70" runat="server" Width="70%" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_SalesOpportunities.Rate" HiddenInput="False" Max="0" Min="0" BackColor="#E6F1F8" ValueToDisplayText Value Express="javascript('ClearlyStateRate',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.Rate)" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox15" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="shuilv" HiddenExpress="1" Express="javascript('GetRate',DF_CRM_SalesOpportunities.Rate)"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList18" runat="server" HiddenExpress="1" DataMap="TaxRate->DF_CRM_SalesOpportunities.Rate" XDataSource="TableName:DF_SA_SS_TaxRate;Filter:TaxType->DF_CRM_SalesOpportunities.TaxType,InvoiceType->DF_CRM_SalesOpportunities.InvoiceType" DisplayColumn="TaxRate" ValueColumn="TaxRate">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="122" class="ts" style="WIDTH: 8.5%">
                        <asp:Label id="Label11" runat="server" text="销售币种/人民币汇率" value valuetodisplaytext></asp:Label></td>
                    <td width="173" class="ts1" style="WIDTH: 29%">
                        <aspxform:XTextBox id="XTextBox181" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ExchangeRate" BackColor="#E6F1F8" DisableExpress="1" Format="type:number;.4"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts" style="WIDTH: 8.5%">
                        <asp:Label id="XLabel75" runat="server" text="税额" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 29%">
                        <aspxform:XTextBox id="XTextBox74" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TaxLimit" BackColor="#E6F1F8" Express="javascript('IFTaxLimit',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB,shuilv )" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 8.5%">
                        <asp:Label id="XLabel73" runat="server" text="合同总金额" value valuetodisplaytext font-bold="True"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 29%">
                        <aspxform:XTextBox id="XTextBox72" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ContractAmount" BackColor="#E6F1F8" Express="DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRest" DisableExpress="1" Format="type:currency;.2" Font-Bold="True" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label18" runat="server" text="丢单"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XCheckBox id="XCheckBox1" runat="server" XDataBind="DF_CRM_SalesOpportunities.IsThrowSingle"></aspxform:XCheckBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label19" runat="server" text="丢单原因"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList9" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.ThrowSingleReason" DisableExpress="DF_CRM_SalesOpportunities.IsThrowSingle==0" PromptText="----请选择----">
                            <asp:ListItem>价格原因</asp:ListItem>
                            <asp:ListItem>产品参数原因</asp:ListItem>
                            <asp:ListItem>客户关系原因</asp:ListItem>
                            <asp:ListItem>厂商政策</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label185" runat="server" text="备注"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="3">
                        <aspxform:XTextBox id="SalesOpportunitiesRemark" runat="server" Width="86.9%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SalesOpportunitiesRemark" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <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="fymx_ShowHidden();" 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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PaymentDaysCharge" BackColor="#E6F1F8" Express="(DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRMB - DF_CRM_SalesOpportunities.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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ImportTariff" BackColor="#E6F1F8" Express="sum(guanshuixiaoji)" 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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.InternationCIF" BackColor="#E6F1F8" Express="javascript('GetInfoFromTable1',DF_CRM_MarketInquiryApparatusList.SourcingPurchasing,DF_CRM_MarketInquiryApparatusList.InternationCIF,DF_CRM_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" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_SalesOpportunities.BankFee" HiddenInput="False" Max="0" Min="0" BackColor="#E6F1F8" ValueToDisplayText Value Express="javascript('OFHOSICBankFee',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.TermsPayment,DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB,DF_CRM_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="XTextBox13" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Quality" 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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SIPBFdeduct" BackColor="#E6F1F8" Express="javascript('SIPdeduct',DF_CRM_MarketInquiryApparatusList.BusinessClassification,DF_CRM_SalesOpportunities.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="质保金付款条件" BackColor="#d4e4fe" ValueToDisplayText Value></aspxform:XLabel>
                            <aspxform:XTextBox id="XTextBox156" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.RetentionPaymentTermsSAPID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox157" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.DebitPoints" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox158" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.RetentionDebitPoints" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext">
                            <aspxform:XDropDownList id="XDropDownList39" runat="server" Width="250px" XDataBind="DF_CRM_SalesOpportunities.RetentionPaymentTerms" DataMap="Value->DF_CRM_SalesOpportunities.RetentionPaymentTermsSAPID;Email->DF_CRM_SalesOpportunities.RetentionDebitPoints;LdType->DF_CRM_SalesOpportunities.DebitPoints" XDataSource="TableName:V_DF_SA_SS_PaymentTerms;Filter:ValueAssociate->'质保金'" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name">
                                <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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SIPBFdeductRMB" BackColor="#E6F1F8" Express="DF_CRM_SalesOpportunities.SIPBFdeduct * DF_CRM_SalesOpportunities.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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.RetentionDebit" BackColor="#E6F1F8" Express="DF_CRM_SalesOpportunities.Quality * DF_CRM_SalesOpportunities.RetentionDebitPoints" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel5">
                            <asp:Label id="XLabel79" runat="server" text="HOSIC手续费(人民币)" value valuetodisplaytext></asp:Label>
                            <aspxform:XTextBox id="XTextBox130" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HOSICCost" HiddenExpress="1" Express="javascript('HOSICTransactionFee',DF_CRM_SalesOpportunities.CustomerDeliveryWay,DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB,meiyuan)"></aspxform:XTextBox>
                            <%--HOSIC接/送货运费--%>
                            <aspxform:XTextBox id="XTextBox131" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HOSICFreightFee" HiddenExpress="1" Express="javascript('HOSICFreight',DF_CRM_SalesOpportunities.CustomerDeliveryWay,meiyuan)"></aspxform:XTextBox>
                            <%--香港国内运保费--%>
                            <aspxform:XTextBox id="XTextBox132" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HOSICInsuranceFee" HiddenExpress="1" Express="javascript('HOSICTransportationInsurance',DF_CRM_SalesOpportunities.CustomerDeliveryWay,DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB,meiyuan,DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRMB)"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox14" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HOSICFee" BackColor="#E6F1F8" Express="javascript('CountBankCost',DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB,DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.CustomerDeliveryWay,DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRMB,DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts5">
                            <asp:Label id="Label192" runat="server" text="AM业务基金扣款(销售币种)" valuetodisplaytext value></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox114" style="WIDTH: 70%" runat="server" XDataBind="DF_CRM_SalesOpportunities.NIdeduct" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8" Express="sum(varNI)" DisableExpress="1" Format="type:.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td class="ts5">
                            <asp:Label id="Label193" runat="server" text="AM业务基金扣款(人民币)" valuetodisplaytext value></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox116" style="WIDTH: 70%" runat="server" HiddenInput="False" XDataBind="DF_CRM_SalesOpportunities.NIdeductRMB" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" Value ValueToDisplayText BackColor="#E6F1F8" Express="sum(varNIRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.OtherCosts" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.OtherFee"></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 hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <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" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SumMaoLi" HiddenExpress="1" Express="sum(DF_CRM_MarketInquiryApparatusList.GrossMargin)"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox102" runat="server" Width="10px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="CustomsFees" HiddenInput="False" Max="0" Min="0" HiddenExpress="1" ValueToDisplayText Value Express="sum(DF_CRM_MarketInquiryApparatusList.CustomsFees)"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox50" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GrossMargin" BackColor="#E6F1F8" Express="if(DF_CRM_SalesOpportunities.BillingCompany =='A300HOSIC 香港',SumMaoLi - DF_CRM_SalesOpportunities.PaymentDaysCharge -DF_CRM_SalesOpportunities.SIPBFdeductRMB -DF_CRM_SalesOpportunities.HOSICFee -DF_CRM_SalesOpportunities.InternationCIF - DF_CRM_SalesOpportunities.ImportTariff - CustomsFees + DF_CRM_SalesOpportunities.RebateGrossMargin - DF_CRM_SalesOpportunities.RetentionDebit  - DF_CRM_SalesOpportunities.OtherCosts - DF_CRM_SalesOpportunities.NIdeductRMB,SumMaoLi - DF_CRM_SalesOpportunities.PaymentDaysCharge -DF_CRM_SalesOpportunities.BankFee -DF_CRM_SalesOpportunities.SIPBFdeductRMB -DF_CRM_SalesOpportunities.HOSICFee -DF_CRM_SalesOpportunities.InternationCIF - DF_CRM_SalesOpportunities.ImportTariff - CustomsFees + DF_CRM_SalesOpportunities.RebateGrossMargin - DF_CRM_SalesOpportunities.RetentionDebit  - DF_CRM_SalesOpportunities.OtherCosts - DF_CRM_SalesOpportunities.NIdeductRMB) " DisableExpress="1" Format="type:currency;pfx:￥;.2" Font-Bold="True"></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" Width="220px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GrossProfitRate" BackColor="#E6F1F8" Express="(DF_CRM_SalesOpportunities.GrossMargin / DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB) * 100" DisableExpress="1" Format="type:number;.2" Font-Bold="True" 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" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.RebateGrossMargin" 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" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.RebateGrossMarginString"></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="mljs_ShowHidden();" type="button" value=▽展开 /></td>
                </tr>
            </tbody>
        </table>
        <div id="div_mljs">
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td class="tsbottomtext" colspan="4">
                            <p>
                                <aspxform:XLabel id="XLabel121" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="A300HOSIC 香港"' Text="外币销售(HOSIC开票)、外币采购" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Medium"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel33" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="A300HOSIC 香港"' Text="整单毛利(人民币)＝不含税销售总价(人民币) + 预计返点毛利(人民币) —不含税采购总价(人民币)—国际运保费(人民币)—HOSIC相关费用(人民币)—账期扣款(人民币) －质保金扣款(人民币) －其他费用(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="10.5pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                            <p>
                                &nbsp;<aspxform:XLabel id="XLabel122" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="2000上海颐合"' Text="外币销售(颐合开票)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Medium"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel60" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="2000上海颐合"' Text="整单毛利(人民币)＝行项目毛利汇总(人民币) + 预计返点毛利(人民币) －账期扣款(人民币)—银行费用(人民币) — SIP业务基金扣款（人民币）—国际运保费(人民币)－质保金扣款(人民币)  －其他费用(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="10.5pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel123" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="2000上海颐合"' Text="外币采购：" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel90" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="2000上海颐合"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="10.5pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel124" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="2000上海颐合"' Text="人民币采购：" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel120" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany!="2000上海颐合"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="10.5pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel125" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合" || DF_CRM_SalesOpportunities.BillingCompany=="A300HOSIC 香港"' Text="人民币销售(国内开票)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Medium"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel128" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合" || DF_CRM_SalesOpportunities.BillingCompany=="A300HOSIC 香港"' Text="整单毛利(人民币)＝行项目毛利汇总(人民币) + 预计返点毛利(人民币) －账期扣款(人民币) — SIP业务基金扣款（人民币）—国际运保费(人民币)—关税(人民币)—报关杂费(人民币)－质保金扣款(人民币) －其他费用(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="10.5pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel127" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合" || DF_CRM_SalesOpportunities.BillingCompany=="A300HOSIC 香港"' Text="人民币采购：" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel99" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合" || DF_CRM_SalesOpportunities.BillingCompany=="A300HOSIC 香港"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="11pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel126" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合" || DF_CRM_SalesOpportunities.BillingCompany=="A300HOSIC 香港"' Text="外币采购：" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="Small"></aspxform:XLabel>
                            </p>
                            <p>
                                <aspxform:XLabel id="XLabel119" runat="server" HiddenExpress='DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合" || DF_CRM_SalesOpportunities.BillingCompany=="A300HOSIC 香港"' Text="行项目毛利(人民币)＝不含税销售总价(人民币)—不含税采购总价(人民币)" BackColor="#d4e4fe" ValueToDisplayText Value Font-Size="10.5pt" ForeColor="Blue"></aspxform:XLabel>
                            </p>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <br hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <aspxform:XTextBox id="XTextBox172" runat="server" Width="88px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="varSumSalesAmount" HiddenInput="true" Max="0" Min="0" ValueToDisplayText Value Height="20" Express="DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRMB*0.1"></aspxform:XTextBox>
        <aspxform:XTextBox id="XTextBox175" runat="server" Width="88px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="varSumSalesAmount" HiddenInput="true" Max="0" Min="0" ValueToDisplayText Value Height="20" Express="DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRMB"></aspxform:XTextBox>
        <div id="dnew" style="TEXT-ALIGN: center" runat="server">
            <br />
            <div class="scrollDiv" id="scrollDiv" style="HEIGHT: auto; MARGIN: 0px auto; MAX-HEIGHT: 600px">
                <table width="5960" align="center" class="scrolltable" id="tablenew" style="MARGIN: 0px auto" border="0" runat="server" dynamicarea="2,1" menudock="Left" datamap="BusinessClassification->DF_CRM_MarketInquiryApparatusList.BusinessClassification;MaterialType->DF_CRM_MarketInquiryApparatusList.MaterialType;ProductModel->DF_CRM_MarketInquiryApparatusList.ProductModel;ProductNmae->DF_CRM_MarketInquiryApparatusList.ProductNmae;MaterialID->DF_CRM_MarketInquiryApparatusList.MaterialID;ManufacturerID->DF_CRM_MarketInquiryApparatusList.ManufacturerID;Manufacturer->DF_CRM_MarketInquiryApparatusList.Manufacturer;Number->DF_CRM_MarketInquiryApparatusList.Number;PDSellingPriceRest->DF_CRM_MarketInquiryApparatusList.PDSellingPriceRest;PDSellingTotalvalueRest->DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRest;NPDSellingTotalvalueRest->DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRest;PDSellingPriceRMB->DF_CRM_MarketInquiryApparatusList.PDSellingPriceRMB;PDSellingTotalvalueRMB->DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRMB;NPDSellingTotalvalueRMB->DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRMB;PurchaseNumber->DF_CRM_MarketInquiryApparatusList.PurchaseNumber;PDPurchasePriceRest->DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRest;PDPurchaseTotalvalueRest->DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRest;NPDPurchaseTotalvalueRest->DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest;PDPurchasePriceRMB->DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRMB;PDPurchaseTotalvalueRMB->DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRMB;NPDPurchaseTotalvalueRMB->DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB;InternationCIF->DF_CRM_MarketInquiryApparatusList.InternationCIF;CustomsFees->DF_CRM_MarketInquiryApparatusList.CustomsFees;Discount->DF_CRM_MarketInquiryApparatusList.Discount;ExchangeRate->DF_CRM_MarketInquiryApparatusList.ExchangeRate;GrossMargin->DF_CRM_MarketInquiryApparatusList.GrossMargin;TariffRate->DF_CRM_MarketInquiryApparatusList.TariffRate;PlanSort->DF_CRM_MarketInquiryApparatusList.PlanSort;PurchasingPattern->DF_CRM_MarketInquiryApparatusList.PurchasingPattern;SourcingPurchasing->DF_CRM_MarketInquiryApparatusList.SourcingPurchasing;Linkman->DF_CRM_MarketInquiryApparatusList.Linkman;Phone->DF_CRM_MarketInquiryApparatusList.Phone;PurchasePaymentMethod->DF_CRM_MarketInquiryApparatusList.PurchasePaymentMethod;SupplierDeliveryDate->DF_CRM_MarketInquiryApparatusList.SupplierDeliveryDate;WarrantyPeriod->DF_CRM_MarketInquiryApparatusList.WarrantyPeriod;WarrantyPeriodOther->DF_CRM_MarketInquiryApparatusList.WarrantyPeriodOther;ProductBPMID->DF_CRM_MarketInquiryApparatusList.ProductBPMID;ProductCRMID->DF_CRM_MarketInquiryApparatusList.ProductCRMID;SupplierPeriod->DF_CRM_MarketInquiryApparatusList.SupplierPeriod;SupplierPeriodOther->DF_CRM_MarketInquiryApparatusList.SupplierPeriodOther;InternationCIFRateForeign->DF_CRM_MarketInquiryApparatusList.InternationCIFRateForeign;InternationCIFRate->DF_CRM_MarketInquiryApparatusList.InternationCIFRate;SupplierCustomerName->DF_CRM_MarketInquiryApparatusList.SupplierCustomerName;SupplierCustomerSAPID->DF_CRM_MarketInquiryApparatusList.SupplierCustomerSAPID;IsFlag->DF_CRM_MarketInquiryApparatusList.IsFlag;SUMInternationCIF->DF_CRM_MarketInquiryApparatusList.SUMInternationCIF;Unit->DF_CRM_MarketInquiryApparatusList.Unit;TSType->DF_CRM_MarketInquiryApparatusList.TSType;IsSupplierSend->DF_CRM_MarketInquiryApparatusList.IsSupplierSend;SupplierSendReason->DF_CRM_MarketInquiryApparatusList.SupplierSendReason;IncreaseTariff->DF_CRM_MarketInquiryApparatusList.IncreaseTariff;SUMIncreaseTariff->DF_CRM_MarketInquiryApparatusList.SUMIncreaseTariff;CustomerDesignatedSupplier->DF_CRM_MarketInquiryApparatusList.CustomerDesignatedSupplier;DeliveryDeadline->DF_CRM_MarketInquiryApparatusList.DeliveryDeadline;DeliveryDeadlineDayOrWeek->DF_CRM_MarketInquiryApparatusList.DeliveryDeadlineDayOrWeek;SupplierSAPID->DF_CRM_MarketInquiryApparatusList.SupplierSAPID;CustomerDesignatedSupplier->DF_CRM_MarketInquiryApparatusList.CustomerDesignatedSupplier;DirectDistribution->DF_CRM_MarketInquiryApparatusList.DirectDistribution;SupplierDeliveryDateUnit->DF_CRM_MarketInquiryApparatusList.SupplierDeliveryDateUnit;" xdatasource="TableName:DF_CRM_MarketInquiryApparatusList;Filter:FKID->DF_CRM_SalesOpportunities.BackfillItemId">
                    <tbody>
                        <tr class="scrollColThead">
                            <th height="26" class="scrollRowThead scrollCR" style="TEXT-ALIGN: left" colspan="54">
                                <asp:Label id="XLabel8" runat="server" text="产品明细 " value valuetodisplaytext></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_CRM_MarketInquiryApparatusList.Number;NAME->DF_CRM_MarketInquiryApparatusList.ProductModel;PRODUCTID->DF_CRM_MarketInquiryApparatusList.ProductCRMID;CALCPRICE->DF_CRM_MarketInquiryApparatusList.PDSellingPriceRest" Height="25px" MultiSelect="True"></aspxform:XDataBrowserButton>--%>
                                <aspxform:XCustomBrowserButton id="XCustomBrowserButton7" runat="server" Width="150px" XClass="Oimec.Dialogs.ProductButton" Text="选择产品信息" DataMap="PrdtID->DF_CRM_MarketInquiryApparatusList.ProductBPMID;PrdtName->DF_CRM_MarketInquiryApparatusList.ProductNmae;PrdtModelNo->DF_CRM_MarketInquiryApparatusList.ProductModel;SalesSapID->SASapID;ServicesSapID->SEVSapID;ProprietarySapID->PROSapID;OtherSapID->OTHSapID;ManufacturerID->DF_CRM_MarketInquiryApparatusList.ManufacturerID;OriginCountry->varOrigin" Height="25px" AppendMode="Append" BrowserWindowType="AjaxPanel" MultiSelect="True"></aspxform:XCustomBrowserButton>
                                <asp:Label id="XLabel220" runat="server" text="同一型号不同的供应商采购，请分行填写" value valuetodisplaytext font-size="8pt" forecolor="Red"></asp:Label>
                            </th>
                        </tr>
                        <tr class="scrollColThead" id="ww">
                            <th width="42" height="44" class="tds">
                                <asp:Label id="XLabel9" runat="server" text="序号" value valuetodisplaytext></asp:Label>
                            </th>
                            <th width="167" class="tds">
                                <aspxform:XLabel id="XLabel96" runat="server" XDataBind="yewufenlei" Text="业务分类" BackColor="#d5dade" ValueToDisplayText Value 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="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=""></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="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=""></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=""></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="XLabel21" runat="server" text="销售数量" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <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="XLabel102" runat="server" text="采购模式" value valuetodisplaytext xdatabind="caigoumoshi"></asp:Label></td>
                            <th width="150" class="tds">
                                <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="XLabel31" runat="server" text="采购数量" value valuetodisplaytext font-bold="False"></asp:Label>
                            </th>
                            <th width="115" class="tds">
                                <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="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">
                                &nbsp;<asp:Label id="XLabel93" runat="server" text="计划行类别" value valuetodisplaytext></asp:Label></td>
                            <td width="171" class="tds">
                                <asp:Label id="XLabel103" runat="server" text="采购供应商" value valuetodisplaytext></asp:Label>
                                <br />
                                <input style="HEIGHT: 25px" onclick="param.copyLine1(this);" type="button" value="复制首行" />
                            </td>
                            <td width="114" class="tds">
                                <asp:Label id="XLabel104" runat="server" text="联系人" value valuetodisplaytext></asp:Label>
                                <br />
                                <input style="HEIGHT: 25px" onclick="param.copyLine2(this);" type="button" value="复制首行" />
                            </td>
                            <td width="114" class="tds">
                                <asp:Label id="XLabel105" runat="server" text="联系电话" value valuetodisplaytext></asp:Label>
                                <br />
                                <input style="HEIGHT: 25px" onclick="param.copyLine2(this);" type="button" value="复制首行" />
                            </td>
                            <td width="330" class="tds">
                                <asp:Label id="XLabel106" runat="server" text="采购付款方式" value valuetodisplaytext></asp:Label></td>
                            <td width="105" class="tds">
                                <asp:Label id="XLabel107" runat="server" text="采购发票税点" value valuetodisplaytext xdatabind="caigoufapiaoshuidian"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel133" runat="server" text="供应商货期" value valuetodisplaytext></asp:Label></td>
                            <td width="110" class="tds">
                                <asp:Label id="XLabel134" runat="server" text="客户保修期" value valuetodisplaytext></asp:Label></td>
                            <td width="110" class="tds">
                                <aspxform:XLabel id="XLabel219" runat="server" HiddenExpress="DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " Text="*" BackColor="#d5dade" ValueToDisplayText Value 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_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " Text="*" BackColor="#d5dade" ValueToDisplayText Value ForeColor="Red"></aspxform:XLabel>
                                &nbsp;<asp:Label id="XLabel10" runat="server" text="报供应商最终客户名称" value valuetodisplaytext></asp:Label> 
                                <br />
                                <input style="HEIGHT: 25px" onclick="param.copyLine3(this);" type="button" value="复制首行" />
                            </td>
                            <td width="105" 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="Label118" runat="server" text="加征关税%" value valuetodisplaytext></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label119" runat="server" text="加征关税小计（人民币）" value valuetodisplaytext></asp:Label></td>
                            <td width="134" class="tds">
                                <asp:Label id="Label120" runat="server" text="客户指定供应商" value valuetodisplaytext></asp:Label></td>
                            <td width="134" class="tds">
                                <asp:Label id="Label170" runat="server" text="厂商直/分销" value valuetodisplaytext></asp:Label></td>
                            <td width="134" class="tds">
                                <asp:Label id="Label126" runat="server" text="客户交货期限" value valuetodisplaytext></asp:Label></td>
                           
                            <td width="4" hidden="hidden">
                            </td>
							<td width="100" class="tds">
                                <asp:Label id="Label199" runat="server" text="含标准服务" value valuetodisplaytext></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label200" runat="server" text="标准服务年限" value valuetodisplaytext></asp:Label></td>
                              <td width="100" class="tds">
                                <asp:Label id="Label201" runat="server" text="标准服务%" value valuetodisplaytext></asp:Label></td>
                             <td width="134" class="tds">
                                <asp:Label id="Label103" 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" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.RowNumber" BackColor="Transparent" TextMode="MultiLine" TextAlign="Center" RenderAs="Label" BorderStyle="None">1</aspxform:XGridLineNo>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.BusinessClassification" DataMap="Value->DF_CRM_MarketInquiryApparatusList.MaterialType;Value1->DF_CRM_MarketInquiryApparatusList.BusinessClassificationID" XDataSource="TableName:V_DF_SA_SS_BusinessCategories;Filter:OrderBy:'OrderID';BufferType:RuntimeUpdate" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" CssClass="BusinessClassification">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XDropDownList id="XDropDownList45" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.TSType" HiddenExpress="DF_CRM_MarketInquiryApparatusList.BusinessClassification!='代理维修'&amp;&amp; DF_CRM_MarketInquiryApparatusList.BusinessClassification!='代理延保'&amp;&amp; DF_CRM_MarketInquiryApparatusList.BusinessClassification!='代理校准'" PromptText="--请选择--">
                                        <asp:ListItem>泰克原厂服务</asp:ListItem>
                                        <asp:ListItem>是德原厂服务</asp:ListItem>
                                        <asp:ListItem>其他</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox186" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.BusinessClassificationID" HiddenInput="true" DisableExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox117" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SASapID" HiddenInput="true" DisableExpress="1" name="SASapID"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox118" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="PROSapID" HiddenInput="true" DisableExpress="1" name="PROSapID"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox119" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="OTHSapID" HiddenInput="true" DisableExpress="1" name="OTHSapID"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox120" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SEVSapID" HiddenInput="true" DisableExpress="1" name="SEVSapID"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox16" runat="server" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.MaterialType" BackColor="#E6F1F8" ValueToDisplayText DisableExpress="1" name="MaterialTypes"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox class="prdtModel" id="XTextBox18" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ProductModel" BackColor="#E6F1F8" DisableExpress="1" name="prdtModel"></aspxform:XTextBox>
                                    <%-- <aspxform:XDropDownList id="XDropDownList29" runat="server" HiddenExpress="1" Width="1px" DataMap="PrdtID->DF_CRM_MarketInquiryApparatusList.ProductBPMID;PrdtName->DF_CRM_MarketInquiryApparatusList.ProductNmae;SalesSapID->SASapID;ServicesSapID->SEVSapID;OtherSapID->OTHSapID;ProprietarySapID->PROSapID;Name->DF_CRM_MarketInquiryApparatusList.Manufacturer;ManufacturerID->DF_CRM_MarketInquiryApparatusList.ManufacturerID" XDataSource="ProcedureName:PROC_DF_SA_PRODUCTS;Filter:@PrdtModelNo -> DF_CRM_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_CRM_MarketInquiryApparatusList.ProductBPMID;PrdtName->DF_CRM_MarketInquiryApparatusList.ProductNmae;PrdtModelNo->DF_CRM_MarketInquiryApparatusList.ProductModel;SalesSapID->SASapID;ServicesSapID->SEVSapID;ProprietarySapID->PROSapID;OtherSapID->OTHSapID;ManufacturerID->DF_CRM_MarketInquiryApparatusList.ManufacturerID;OriginCountry->varOrigin" BrowserWindowType="AjaxPanel" MultiSelect="false" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XCustomBrowserButton>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox19" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ProductNmae" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox189" runat="server" Width="30px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="varOrigin" HiddenInput="True"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox tabIndex="1" id="XTextBox20" runat="server" Width="90%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.MaterialID" BackColor="#E6F1F8" Express="javascript('GetPROSAPID',DF_CRM_MarketInquiryApparatusList.MaterialType,SASapID,PROSapID,OTHSapID,SEVSapID)" DisableExpress="1" CssClass="2w"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox121" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ProductBPMID" HiddenExpress="1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox122" runat="server" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ProductCRMID" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox21" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ManufacturerID" BackColor="#E6F1F8" DisableExpress="1" name="ManufacturerID"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList29" runat="server" Width="1px" HiddenExpress="1" DataMap="ManufacturerName->DF_CRM_MarketInquiryApparatusList.Manufacturer;SalesSapID->SASapID1;ServicesSapID->SEVSapID1;ProprietarySapID->PROSapID1;OtherSapID->OTHSapID1;" XDataSource="TableName:V_DF_PRODUCTS_ProductManagement;Filter:PrdtID->DF_CRM_MarketInquiryApparatusList.ProductBPMID" DisplayColumn="Name" ValueColumn="ItemID">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox82" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SASapID1" HiddenInput="true" name="SASapID1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox87" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="PROSapID1" HiddenInput="true" DisableExpress="1" name="PROSapID1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox88" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="OTHSapID1" HiddenInput="true" DisableExpress="1" name="OTHSapID1"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox103" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SEVSapID1" HiddenInput="true" DisableExpress="1" name="SEVSapID1"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="IsFlagSDF" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.IsFlagSDF" HiddenExpress="1" XDataSource="TableName:DF_MasterData_RedFlagCustomer;Filter:CustomerCode->DF_CRM_SalesOpportunities.STPClientBPMID,ManufacturerCode->DF_CRM_MarketInquiryApparatusList.ManufacturerID" DisplayColumn="ItemId" ValueColumn="ItemId" name="IsFlagSDF" CssClass="IsFlagSDF"></aspxform:XDropDownList>
                                    <br />
                                    <aspxform:XDropDownList id="IsFlagFKF" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.IsFlagFKF" HiddenExpress="1" XDataSource="TableName:DF_MasterData_RedFlagCustomer;Filter:CustomerCode->DF_CRM_SalesOpportunities.PTPClientBPMID,ManufacturerCode->DF_CRM_MarketInquiryApparatusList.ManufacturerID" DisplayColumn="ItemId" ValueColumn="ItemId" name="IsFlagFKF" CssClass="IsFlagFKF"></aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox22" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Manufacturer" BackColor="#E6F1F8" DisableExpress="1" name="Manufacturer"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <div style="FLOAT: left">
                                        <aspxform:XTextBox id="XTextBox23" runat="server" Width="40" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Number" TextAlign="Center" CssClass="ProductQuantity"></aspxform:XTextBox>
                                    </div>
                                    <div style="FLOAT: left">
                                        <aspxform:XTextBox id="XTextBox170" runat="server" Width="20" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Unit" Text="台" TextAlign="Center"></aspxform:XTextBox>
                                    </div>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox24" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDSellingPriceRest" Format="type:currency;.2" TextAlign="Right" CssClass="PDSellingPriceRest"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox26" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRest" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.Number * DF_CRM_MarketInquiryApparatusList.PDSellingPriceRest" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox27" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRest" BackColor="#E6F1F8" Express="javascript('IFBillingCompany',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRest,shuilv)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox111" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="varNI" HiddenInput="True" Express="if(DF_CRM_MarketInquiryApparatusList.ManufacturerID=='217',DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRest*0.02,0)" Format="type:number;.2"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox113" runat="server" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="varNIRMB" HiddenInput="True" Express="DF_CRM_SalesOpportunities.ExchangeRate*varNI" Format="type:number;.2"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox32" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDSellingPriceRMB" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.PDSellingPriceRest * DF_CRM_SalesOpportunities.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox33" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRMB" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRest * DF_CRM_SalesOpportunities.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_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRMB"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox34" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRMB" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRest * DF_CRM_SalesOpportunities.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList10" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.PurchasingPattern" XDataSource="TableName:V_DF_CRM_ProcurementModel;" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" name="PurchasingPattern" CssClass="PurchasingPattern">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XDropDownList id="XDropDownList35" runat="server" Width="10px" HiddenExpress="1" DataMap="PDPurchasePriceRest->PDPurchasePriceRest;Discount->DingHuoZheKou;Proportion->Proportion;IncludingStandardService->IncludingStandardService;" XDataSource="ProcedureName:PROC_DF_CRM_PriceSystem;Filter:@ProductModel->DF_CRM_MarketInquiryApparatusList.ProductModel,@Currency->DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,@PurchasingPattern->DF_CRM_MarketInquiryApparatusList.PurchasingPattern" DisplayColumn="PDPurchasePriceRest" ValueColumn="PDPurchasePriceRest">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
									 <aspxform:XTextBox runat="server" XDataBind="IncludingStandardService" Width="20" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XRadioButtonList id="XRadioButtonList6" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.IsSupplierSend" Express="javascript('param.IsSupplierSend',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_MarketInquiryApparatusList.PurchasingPattern,DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,DF_CRM_MarketInquiryApparatusList.IsSupplierSend)" DisableExpress="(DF_CRM_SalesOpportunities.BillingCompany=='2000上海颐合'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PurchasingPattern!='备货'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PurchasingPattern!=''&amp;&amp;DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!='CNY'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!='')|| (DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货')" RepeatDirection="Horizontal" name="IsSupplierSend">
                                        <asp:ListItem Selected="True">非直发</asp:ListItem>
                                        <asp:ListItem>直发</asp:ListItem>
                                    </aspxform:XRadioButtonList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList24" style="WIDTH: 90%" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierSendReason" Express="if((DF_CRM_SalesOpportunities.BillingCompany=='2000上海颐合'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PurchasingPattern!='备货'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PurchasingPattern!=''&amp;&amp;DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!='CNY'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!='')||(DF_CRM_MarketInquiryApparatusList.IsSupplierSend!='直发'),'',DF_CRM_MarketInquiryApparatusList.SupplierSendReason)" DisableExpress="(DF_CRM_SalesOpportunities.BillingCompany=='2000上海颐合'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PurchasingPattern!='备货'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PurchasingPattern!=''&amp;&amp;DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!='CNY'&amp;&amp;DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!='')||(DF_CRM_MarketInquiryApparatusList.IsSupplierSend!='直发') ||(DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货')" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" CssClass="SupplierSendReason">
                                        <asp:ListItem>重量超过50KGS 体积超过1立方米</asp:ListItem>
                                        <asp:ListItem>产品数量大于30件，且单个货物体积超过0.2立方米</asp:ListItem>
                                        <asp:ListItem>特殊运输要求（易燃易爆产品、精密仪器、不适合转运产品）</asp:ListItem>
                                        <asp:ListItem>无实物产品</asp:ListItem>
                                        <asp:ListItem>客户货期紧急：要求3个工作日内交付</asp:ListItem>
                                        <asp:ListItem>符合以上多种情况</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox180" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="SupplierSendReason" HiddenExpress="1" TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox35" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PurchaseNumber" HiddenInput="False" ReadOnly="True" Express="DF_CRM_MarketInquiryApparatusList.Number" TextAlign="Center" CssClass="PurchaseNumber"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList14" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.PrchaseCurrency" HiddenExpress="javascript('param.CustomerDirectDelivery',DF_CRM_MarketInquiryApparatusList.PurchasingPattern,DF_CRM_MarketInquiryApparatusList.IsSupplierSend,DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,ContractCurrency)" XDataSource="TableName:V_DF_SA_SS_PurchasingCurrency;Filter:BufferType:RuntimeUpdate" DisableExpress='DF_CRM_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" name="PrchaseCurrency" CssClass="PrchaseCurrency">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox61" runat="server" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ExchangeRate" HiddenExpress="1" Format="type:number;.4"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList19" runat="server" Width="10px" HiddenExpress="1" DataMap="ComputeRate->DF_CRM_MarketInquiryApparatusList.ExchangeRate" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->DF_CRM_MarketInquiryApparatusList.PrchaseCurrency" DisplayColumn="ComputeRate" ValueColumn="ComputeRate">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox36" runat="server" Width="100%" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRest" HiddenInput="False" Max="0" Min="0" ValueToDisplayText Value Express="javascript('DingHuoCaiGouJiaGe',DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRest,PDPurchasePriceRest,DF_CRM_MarketInquiryApparatusList.PurchasingPattern,DF_CRM_MarketInquiryApparatusList.Proportion,DF_CRM_MarketInquiryApparatusList.ManufacturerID)" Format="type:currency;.2" TextAlign="Right" CssClass="PDPurchasePriceRest" AutoCompleteType="Disabled"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox144" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="PDPurchasePriceRest" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox37" runat="server" Width="70px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Discount" Express="javascript('DingHuoCaiGouZheKou',DF_CRM_MarketInquiryApparatusList.Discount,DingHuoZheKou,DF_CRM_MarketInquiryApparatusList.PurchasingPattern)" Format="type:number;.2" TextAlign="Right" CssClass="Discount"></aspxform:XTextBox>
                                    % 
                                    <aspxform:XTextBox id="XTextBox76" runat="server" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="zhekou" HiddenExpress="1" Express=" (100 - DF_CRM_MarketInquiryApparatusList.Discount)  /  100"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox162" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DingHuoZheKou" HiddenExpress="1"></aspxform:XTextBox>
									  <aspxform:XTextBox id="XTextBox200" runat="server" HiddenExpress="1" BorderWidth="1" BorderColor="#DCDCDC" Width="10px" XDataBind="Proportion"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox38" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRest" BackColor="#E6F1F8" Express="javascript('CountPurchasePrices',DF_CRM_MarketInquiryApparatusList.Discount,DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRest,DF_CRM_MarketInquiryApparatusList.PurchaseNumber)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox39" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest" BackColor="#E6F1F8" Express="javascript('IFPDPurchaseTotalvalueRest',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRest,caigoushuilv)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox40" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRMB" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.ExchangeRate * DF_CRM_MarketInquiryApparatusList.PDPurchasePriceRest" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox41" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRMB" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRest * DF_CRM_MarketInquiryApparatusList.ExchangeRate" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox71" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB" BackColor="#E6F1F8" Express="DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest * DF_CRM_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_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox42" runat="server" Width="70px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.InternationCIF" DisableExpress="DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " Format="type:number;.2" TextAlign="Right" CssClass="InternationCIF"></aspxform:XTextBox>
                                    %<aspxform:XTextBox id="XTextBox45" runat="server" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="guoji" HiddenExpress="1" Express="(DF_CRM_MarketInquiryApparatusList.InternationCIF / 100)"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox100" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.InternationCIFRateForeign" DisableExpress="DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " Format="type:number;.2"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox44" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.InternationCIFRate" BackColor="#E6F1F8" Express="guojiyunbaofei2" DisableExpress="1" name="InternationCIFRate" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox60" runat="server" Width="1px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="guojiyunbaofei2" HiddenInput="False" Max="0" Min="0" HiddenExpress="1" ValueToDisplayText Value Express="javascript('CountGUOJIYUNFEI',DF_CRM_MarketInquiryApparatusList.InternationCIFRateForeign,DF_CRM_MarketInquiryApparatusList.ExchangeRate,DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB,guoji) "></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox46" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.CustomsFees" DisableExpress="DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || (DF_CRM_MarketInquiryApparatusList.PrchaseCurrency !='CNY' &amp;&amp; DF_CRM_SalesOpportunities.ContractCurrency !='CNY') || DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " name="CustomsFeesList" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox48" runat="server" Width="80px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.TariffRate" DisableExpress="DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY' || (DF_CRM_MarketInquiryApparatusList.PrchaseCurrency !='CNY' &amp;&amp; DF_CRM_SalesOpportunities.ContractCurrency !='CNY')  ||DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " name="TariffRate" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                    %<aspxform:XTextBox id="XTextBox51" runat="server" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="guanshui" HiddenExpress="1" Express="DF_CRM_MarketInquiryApparatusList.TariffRate / 100"></aspxform:XTextBox>
                                    <%--<aspxform:XDropDownList id="XDropDownList45" runat="server" HiddenExpress="1" DataMap="TaxRate->DF_CRM_MarketInquiryApparatusList.TariffRate" XDataSource="TableName:DF_SA_SS_PurchaseTariffRates;Filter:ProductBPMID->DF_CRM_MarketInquiryApparatusList.ProductBPMID;BufferType:RuntimeUpdate" ValueColumn="TaxRate" DisplayColumn="TaxRate">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>--%></td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox52" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="guanshuixiaoji" BackColor="#E6F1F8" Express="(DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB + DF_CRM_MarketInquiryApparatusList.InternationCIFRate ) *  (DF_CRM_MarketInquiryApparatusList.TariffRate / 100)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox75" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.GrossMargin" Express="DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRMB - DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB " Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList15" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.PlanSort" Express="javascript('ISPlanSort',DF_CRM_MarketInquiryApparatusList.PurchaseNumber,DF_CRM_MarketInquiryApparatusList.PurchasingPattern)" DisableExpress='DF_CRM_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--" CssClass="PlanSort">
                                        <asp:ListItem>BP</asp:ListItem>
                                        <asp:ListItem>BN</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox77" runat="server" Width="120px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SourcingPurchasing" CssClass="SourcingPurchasing"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="SupplierSAPID" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierSAPID" HiddenInput="true" name="SupplierSAPID"></aspxform:XTextBox>
                                    <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="20px" XClass="YZSoft.Forms.Field.DataBrowserButton" Text="..." DataMap="SupplierName->DF_CRM_MarketInquiryApparatusList.SourcingPurchasing;SupplierID->PartnerID;SupplierSAPID->DF_CRM_MarketInquiryApparatusList.SupplierSAPID" XDataSource="TableName:V_DF_Supplier_ZK;" DisplayColumns="SupplierName:供应商名称;SupplierID:供应商ID;SupplierSAPID:供应商SAPID" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                                    <%--<aspxform:XCheckBox id="XCheckBox3" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.OFHEZUO" Width="30px" Text="合作过"></aspxform:XCheckBox>--%></td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox78" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Linkman" DisableExpress="DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " CssClass="Linkman"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="PartnerID" runat="server" Width="80px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="PartnerID" HiddenExpress="1"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList27" runat="server" HiddenExpress="1" DataMap="ContactName->DF_CRM_MarketInquiryApparatusList.Linkman;ContactTel->DF_CRM_MarketInquiryApparatusList.Phone" XDataSource="TableName:V_DF_MSupplier_Contact;Filter:CustomerID->PartnerID"></aspxform:XDropDownList>
                                    <aspxform:XDataBrowserButton id="browser" runat="server" Width="20px" XClass="YZSoft.Forms.Field.DataBrowserButton" Text="..." DataMap="ContactName->DF_CRM_MarketInquiryApparatusList.Linkman;ContactTel->DF_CRM_MarketInquiryApparatusList.Phone" XDataSource="TableName:V_DF_MSupplier_Contact;Filter:CustomerID->PartnerID" DisplayColumns="ContactName:联系人;ContactTel:联系人电话;"></aspxform:XDataBrowserButton>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox79" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Phone" DisableExpress="DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " CssClass="Phone"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox81" runat="server" Width="45%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.PurchasePaymentMethod" DisableExpress="DF_CRM_MarketInquiryApparatusList.PurchasingPattern=='备货' " name="PurchasePaymentMethod"></aspxform:XTextBox>
                                    <%--<aspxform:XCheckBox id="IsAdvancePay" runat="server" Width="50%" XDataBind="DF_CRM_MarketInquiryApparatusList.IsAdvancePayForSupplier" Text="有供应商预付" CssClass="IsAdvancePay"></aspxform:XCheckBox>--%><asp:Label id="r" runat="server" text="供应商预付"></asp:Label>
                                    <aspxform:XRadioButtonList id="IsAdvancePay" style="FLOAT: right" runat="server" Width="28%" XDataBind="DF_CRM_MarketInquiryApparatusList.IsAdvancePayForSupplier" RepeatDirection="Horizontal" CssClass="IsAdvancePay">
                                        <asp:ListItem Value="1">有</asp:ListItem>
                                        <asp:ListItem Value="0">无</asp:ListItem>
                                    </aspxform:XRadioButtonList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList16" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.PurchaseInvoiceTaxPoint" DataMap="Value->caigoushuilv" XDataSource="TableName:V_DF_SD_PurchaseTax;Filter:BufferType:RuntimeUpdate;OrderBy:OrderID" Express="javascript('IFCNY',DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,DF_CRM_MarketInquiryApparatusList.PurchaseInvoiceTaxPoint,DF_CRM_MarketInquiryApparatusList.PurchasingPattern)" DisableExpress='DF_CRM_MarketInquiryApparatusList.PrchaseCurrency!="CNY"||DF_CRM_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" name="PurchaseInvoiceTaxPoint">
                                        <asp:ListItem>未绑定</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox64" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="caigoushuilv" HiddenExpress="1"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox91" runat="server" Width="40%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierDeliveryDate" name="SupplierDeliveryDate" Format="type:number;0"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="SupplierDeliveryDateUnit" runat="server" Width="50%" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierDeliveryDateUnit" PromptText="--请选择--" name="SupplierDeliveryDateUnit">
                                        <asp:ListItem>周</asp:ListItem>
                                        <asp:ListItem>天</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList33" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.WarrantyPeriod" XDataSource="BufferType:RuntimeUpdate" PromptText="--请选择--" CssClass="WarrantyPeriod">
                                        <asp:ListItem>1年</asp:ListItem>
                                        <asp:ListItem>2年</asp:ListItem>
                                        <asp:ListItem>3年</asp:ListItem>
                                        <asp:ListItem>5年</asp:ListItem>
                                        <asp:ListItem>按厂商质量技术标准</asp:ListItem>
                                        <asp:ListItem>其他</asp:ListItem>
                                    </aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox92" runat="server" Width="90px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.WarrantyPeriodOther" HiddenExpress="DF_CRM_MarketInquiryApparatusList.WarrantyPeriod != '其他'"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList32" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierPeriod" DisableExpress='DF_CRM_MarketInquiryApparatusList.PurchasingPattern=="备货"' PromptText="--请选择--" CssClass="SupplierPeriod">
                                        <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" Width="90px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierPeriodOther" HiddenInput="False" Max="0" Min="0" HiddenExpress='DF_CRM_MarketInquiryApparatusList.SupplierPeriod != "其他"' ValueToDisplayText Value></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="tdsuppliername" runat="server" Width="80%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierCustomerName" ReadOnly="True" Express="if(DF_CRM_MarketInquiryApparatusList.SupplierCustomerName=='',DF_CRM_SalesOpportunities.PTPName,DF_CRM_MarketInquiryApparatusList.SupplierCustomerName)" name="SupplierCustomerName" CssClass="SupplierCustomerName"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox182" runat="server" Width="60px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierCustomerSAPID" HiddenInput="True" Express="if(DF_CRM_MarketInquiryApparatusList.SupplierCustomerSAPID=='',DF_CRM_SalesOpportunities.PTPSapID,DF_CRM_MarketInquiryApparatusList.SupplierCustomerSAPID)" CssClass="SupplierCustomerSAPID"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox53" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.IsFlag" HiddenInput="true" Express='if(SUPPLIERCID=="","否","是")' name="IsFlag"></aspxform:XTextBox>
                                    <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Width="20px" XClass="YZSoft.Forms.Field.DataBrowserButton" Text="..." DataMap="CustomerNameCH->DF_CRM_MarketInquiryApparatusList.SupplierCustomerName;CustomerSAPID->DF_CRM_MarketInquiryApparatusList.SupplierCustomerSAPID;IsFlag->DF_CRM_MarketInquiryApparatusList.IsFlag" XDataSource="TableName:V_DF_MasterData_Customer" DisplayColumns="CustomerID:客户编号;CustomerNameCH:客户名称;CustomerSAPID:SAPID;IsFlag:实体清单客户;CusLeavel:客户等级" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                                    <aspxform:XDropDownList id="XDropDownList7" runat="server" XDataBind="SUPPLIERCID" HiddenExpress="1" XDataSource="TableName:DF_MasterData_RedFlagCustomer;Filter:CustomerCode->DF_CRM_MarketInquiryApparatusList.SupplierCustomerID,ManufacturerCode->DF_CRM_MarketInquiryApparatusList.ManufacturerID" DisplayColumn="ItemId" ValueColumn="ItemId" name="IsFlagFKF"></aspxform:XDropDownList>
                                    <br />
                                    <aspxform:XTextBox id="XTextBox109" runat="server" Width="60px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SupplierCustomerID" HiddenInput="False" HiddenExpress="1" Express="if(DF_CRM_MarketInquiryApparatusList.SupplierCustomerID=='',DF_CRM_SalesOpportunities.PTPClientBPMID,DF_CRM_MarketInquiryApparatusList.SupplierCustomerID)" CssClass="SupplierCustomerID"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox169" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.SUMInternationCIF" Express='if(DF_CRM_MarketInquiryApparatusList.InternationCIFRateForeign==0||DF_CRM_MarketInquiryApparatusList.InternationCIFRateForeign=="",DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest*DF_CRM_MarketInquiryApparatusList.InternationCIF/100,DF_CRM_MarketInquiryApparatusList.InternationCIFRateForeign)' DisableExpress="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds1" bordercolor="#dcdcdc" hidden="hidden" borderwidth="1">
                                    <aspxform:XHistoryFormLink id="XHistoryFormLink1" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.PurchseTaskID" BackColor="#e9f1f4" Express="taskId" name="PurchseTaskID" PopupWndWidth="-1" PopupWndHeight="-1" EmptyText="尚未关联">#SerialNum</aspxform:XHistoryFormLink>
                                </td>
                                <td class="tds1" bordercolor="#dcdcdc" hidden="hidden" borderwidth="1">
                                    <aspxform:XTextBox id="XTextBox176" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Purchaser" BackColor="#E6F1F8" DisableExpress="1" name="Purchaser"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox188" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express='javascript("UpLineItemStyle",DF_CRM_SalesOpportunities.ContractCurrency,DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,DF_CRM_MarketInquiryApparatusList.PurchasingPattern,DF_CRM_MarketInquiryApparatusList.RowNumber)'></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="IncreaseTariff" runat="server" Width="80px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_MarketInquiryApparatusList.IncreaseTariff" HiddenInput="False" Max="0" Min="0" BackColor="#E6F1F8" ValueToDisplayText Value Express="javascript('param.GetPurchasingTariff',DF_CRM_SalesOpportunities.ContractCurrency,DF_CRM_MarketInquiryApparatusList.ProductModel,DF_CRM_MarketInquiryApparatusList.ProductBPMID,DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,DF_CRM_MarketInquiryApparatusList.RowNumber)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                    %</td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="SUMIncreaseTariff" runat="server" Width="100%" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_MarketInquiryApparatusList.SUMIncreaseTariff" HiddenInput="False" Max="0" Min="0" BackColor="#E6F1F8" ValueToDisplayText Value Express="(DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRMB + DF_CRM_MarketInquiryApparatusList.InternationCIFRate ) *  (DF_CRM_MarketInquiryApparatusList.IncreaseTariff / 100)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right" AutoCompleteType="Disabled"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="CustomerDesignatedSupplier" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.CustomerDesignatedSupplier" PromptText="--请选择--" name="CustomerDesignatedSupplier">
                                        <asp:ListItem>是</asp:ListItem>
                                        <asp:ListItem>否</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="DirectDistribution" runat="server" XDataBind="DF_CRM_MarketInquiryApparatusList.DirectDistribution" Express="if(DF_CRM_MarketInquiryApparatusList.SupplierSAPID!='1026806' &amp;&amp; DF_CRM_MarketInquiryApparatusList.SupplierSAPID!='1027639' &amp;&amp; DF_CRM_MarketInquiryApparatusList.SupplierSAPID!='1005975','',DF_CRM_MarketInquiryApparatusList.DirectDistribution)" DisableExpress="DF_CRM_MarketInquiryApparatusList.SupplierSAPID!='1026806' &amp;&amp; DF_CRM_MarketInquiryApparatusList.SupplierSAPID!='1027639' &amp;&amp; DF_CRM_MarketInquiryApparatusList.SupplierSAPID!='1005975'&amp;&amp; DF_CRM_MarketInquiryApparatusList.SupplierSAPID!=''" PromptText="--请选择--" name="DirectDistribution">
                                        <asp:ListItem>直销</asp:ListItem>
                                        <asp:ListItem>分销</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="DeliveryDeadline" runat="server" Width="55%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.DeliveryDeadline" name="DeliveryDeadline"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="DeliveryDeadlineDayOrWeek" runat="server" Width="40%" XDataBind="DF_CRM_MarketInquiryApparatusList.DeliveryDeadlineDayOrWeek">
                                        <asp:ListItem>周</asp:ListItem>
                                        <asp:ListItem>天</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                             
                                <td hidden="hidden">
                                    <aspxform:XTextBox id="XTextBox177" style="HEIGHT: 22px; WIDTH: 3px" runat="server" Width="1px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="taskId" HiddenInput="False" Max="0" Min="0" HiddenExpress="1" ValueToDisplayText Value name="taskId"></aspxform:XTextBox>
                                </td>
                                <td hidden="hidden">
                                    <aspxform:XTextBox id="itid" runat="server" XDataBind="ItemID" name="itid"></aspxform:XTextBox>
                                </td>
								 <td class="tds1">
                                      <aspxform:XDropDownList ID="IncludingStandardService" DisableExpress="1" XDataBind="DF_CRM_MarketInquiryApparatusList.IncludingStandardService" Express="if(IncludingStandardService==''|| IncludingStandardService=='否', '否','是')" runat="server" PromptText="--请选择--">
                                            <asp:ListItem>是</asp:ListItem>
                                        <asp:ListItem>否</asp:ListItem>
                                      </aspxform:XDropDownList>
                                </td>
                                 <td class="tds1">
                                      <aspxform:XDropDownList ID="YearsService" DisableExpress="if(DF_CRM_MarketInquiryApparatusList.IncludingStandardService=='否','1','')"   XDataBind="DF_CRM_MarketInquiryApparatusList.YearsService" runat="server" PromptText="--请选择--" XDataSource="ProcedureName:PROC_DF_CRM_PriceSystem_distinct;Filter:@ProductModel->DF_CRM_MarketInquiryApparatusList.ProductModel,@Manufacturers->DF_CRM_MarketInquiryApparatusList.Manufacturer,@status->'1'"       DisplayColumn="YearsService" ValueColumn="YearsService" >
                                          <%--  <asp:ListItem>三年NI标准服务</asp:ListItem>
                                        <asp:ListItem>五年NI标准服务</asp:ListItem>--%>
                                      </aspxform:XDropDownList>
                                      <aspxform:XDropDownList ID="XDropDownList26"   runat="server" PromptText="" HiddenExpress="1" DataMap="Proportion->DF_CRM_MarketInquiryApparatusList.Proportion;" XDataSource="ProcedureName:PROC_DF_CRM_PriceSystem_Proportion;Filter:@ProductModel->DF_CRM_MarketInquiryApparatusList.ProductModel,@Manufacturers->DF_CRM_MarketInquiryApparatusList.Manufacturer,@YearsService->DF_CRM_MarketInquiryApparatusList.YearsService;"       DisplayColumn="Proportion" ValueColumn="Proportion" >
                                          <%--  <asp:ListItem>三年NI标准服务</asp:ListItem>
                                        <asp:ListItem>五年NI标准服务</asp:ListItem>--%>
                                      </aspxform:XDropDownList>
                                </td>
                                <td class="tds1">
                                       <aspxform:XTextBox id="ysProportion" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.Proportion" BackColor="#E6F1F8"  DisableExpress="1"  CssClass="Proportion" name="Proportion"></aspxform:XTextBox>%
                                </td>
								   <td class="tds1" bordercolor="#dcdcdc" borderwidth="1">
                                    <aspxform:XTextBox id="XTextBox205" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_MarketInquiryApparatusList.ApprovalStatus" BackColor="#E6F1F8" DisableExpress="1" name="ApprovalStatus" CssClass="ApprovalStatus"></aspxform:XTextBox>
                                </td>
                                <%--<td class="tds1">
                                    <aspxform:XTextBox id="XTextBox186" runat="server" BorderWidth="1px" BorderColor="Gainsboro" Width="100%" XDataBind="DF_CRM_MarketInquiryApparatusList.NTCostUnitPrice" Max="0" Min="0" Value ValueToDisplayText HiddenInput="False" Format="type:currency;.2" TextAlign="Right" AutoCompleteType="Disabled"></aspxform:XTextBox>
                                </td>--%>
                            </tr>
                            <tr style="BACKGROUND: #fff">
                                <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="tds2">
                                    <aspxform:XTextBox id="XTextBox68" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRest" BackColor="#E6F1F8" Express="sum(DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRest)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox73" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRest" BackColor="#E6F1F8" Express="sum(DF_CRM_MarketInquiryApparatusList.NPDSellingTotalvalueRest)" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox80" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRMB" BackColor="#E6F1F8" Express="sum(DF_CRM_MarketInquiryApparatusList.PDSellingTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox84" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB" BackColor="#E6F1F8" Express="sum(DF_CRM_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="XTextBox96" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMPDPurchaseTotalvalueRest" HiddenExpress="1" BackColor="#E6F1F8" Express="sum(DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRest)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                    <aspxform:XTextBox id="XTextBox97" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRest" HiddenExpress="1" BackColor="#E6F1F8" Express="sum(DF_CRM_MarketInquiryApparatusList.NPDPurchaseTotalvalueRest)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox112" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMPDPurchaseTotalvalueRMB" BackColor="#E6F1F8" Express="sum(DF_CRM_MarketInquiryApparatusList.PDPurchaseTotalvalueRMB)" DisableExpress="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                                </td>
                                <td class="tds2">
                                    <aspxform:XTextBox id="XTextBox98" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRMB" BackColor="#E6F1F8" Express="sum(DF_CRM_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>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </tbody>
                </table>
            </div>
        </div>
        <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 font-size="8pt" forecolor="Red"></asp:Label></td>
                    <td width="765" class="title1">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_CRM_SalesOpportunities.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" Width="100%" XDataBind="DF_CRM_SalesOpportunities.Accessory1" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;*.msg;*.eml"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr id="product1" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label23" runat="server" text="审批信息" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr id="product2" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
                    <td height="30" class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label52" runat="server" text="一二线产品报备" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <input id="ManufacturerProductsButton" onclick="param.GetManufacturerProducts()" type="button" value="发起一二线产品报备审批" />
                    </td>
                    <td height="30" class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label55" runat="server" text="跨BU产品报备" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <input id="BUButton" onclick="param.GetBUProducts();" type="button" value="发起跨BU产品报备审批" />
                    </td>
                </tr>
                <tr id="product3" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
                    <td height="22" class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label183" runat="server" text="采购预付款审批" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <input class="inputbtn" id="btn_AdvanceCharge" style="WIDTH: 140px" onclick="param.GetClickAdvanceCharge()" type="button" size="46" value="发起采购预付款审批" />
                        <aspxform:XTextBox id="AdvanceCharge" runat="server" Width="30%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.AdvanceCharge" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td height="30" class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="业务序列审批" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <input class="inputbtn" id="btn_BusinessApproval" style="WIDTH: 140px" onclick="param.btnBusinessApproval();" type="button" size="46" value="发起业务序列审批" />
                        <aspxform:XTextBox id="XTextBox129" runat="server" Width="60%" BorderColor="#E6F1F8" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BusinessApprovalState" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr id="product4" hidden="hidden" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
                    <td height="30" class="ts" style="WIDTH: 10%" hidden="hidden">
                        <asp:Label id="Label106" runat="server" text="" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%" hidden="hidden">
                        <input id="CreditControlButton" onclick="param.CreditControl()" type="button" value="发起信控审批申请" />
                        <aspxform:XTextBox id="zt" runat="server" Width="20%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CreditControlState" BackColor="#E6F1F8" DisableExpress="1" CssClass="zt" placeholder="Search W3School"></aspxform:XTextBox>
                    </td>
                    <td height="22" class="ts" style="WIDTH: 10%">
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td class="ts" id="qj" style="WIDTH: 8.9%">
                        <asp:Label id="Label152" style="FONT-SIZE: 16px; FONT-FAMILY: 微软雅黑; FONT-WEIGHT: bold" runat="server" text="清洁信息" value valuetodisplaytext></asp:Label></td>
                    <td class="ts" style="WIDTH: 5%">
                        <%--<aspxform:XCheckBox id="CleanerContractChk" onclick="param.GetCleanerContractChk()" runat="server" XDataBind="DF_CRM_SalesOpportunities.CleanerContract" Text="合同" Express="javascript('param.GetCleanerContract',DF_CRM_SalesOpportunities.CleanerContract,DF_CRM_SalesOpportunities.AddedContract)" DisableExpress="DF_CRM_SalesOpportunities.AddedContract=='1'" name="CleanerContractChk"></aspxform:XCheckBox>--%></td>
                    <td class="ts1" style="WIDTH: 19%; BORDER-LEFT: #93a1ae 0px solid">
                        <%--<aspxform:XTextBox runat="server" ID="contractCleaningReason" Width="40%"></aspxform:XTextBox>--%></td>
                    <td class="ts" style="WIDTH: 2%">
                        <aspxform:XCheckBox id="CleanerDeliverChk" onclick="param.GetCleanerDeliverChk()" runat="server" XDataBind="DF_CRM_SalesOpportunities.CleanerDeliver" Text="发货" Express="javascript('param.GetCleanerDeliver',DF_CRM_SalesOpportunities.CleanerDeliver,DF_CRM_SalesOpportunities.AddedDeliver)" DisableExpress="DF_CRM_SalesOpportunities.AddedDeliver=='1'" name="CleanerDeliverChk"></aspxform:XCheckBox>
                    </td>
                    <td class="ts1" style="WIDTH: 19%; BORDER-LEFT: #93a1ae 0px solid">
                        <aspxform:XDropDownList id="XDCleaningReasonNo" runat="server" Width="50%" XDataBind="DF_CRM_SalesOpportunities.XDCleaningReasonNo" HiddenExpress="DF_CRM_SalesOpportunities.CleanerDeliver=='1'">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem>暂不能确定收货人信息与地点</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="CleaningReasonNo" runat="server" Width="40%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CleaningReasonNo" HiddenExpress="DF_CRM_SalesOpportunities.XDCleaningReasonNo!='其他' || DF_CRM_SalesOpportunities.CleanerDeliver=='1'" Value></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 1%">
                        <aspxform:XCheckBox id="CleanerinvoiceChk" onclick="param.GetCleanerinvoiceChk()" runat="server" XDataBind="DF_CRM_SalesOpportunities.Cleanerinvoice" Text="寄发票" Express="javascript('param.GetCleanerinvoice',DF_CRM_SalesOpportunities.Cleanerinvoice,DF_CRM_SalesOpportunities.Addedinvoice)" DisableExpress="DF_CRM_SalesOpportunities.Addedinvoice=='1'"></aspxform:XCheckBox>
                    </td>
                    <td class="ts1" style="WIDTH: 19%; BORDER-LEFT: #93a1ae 0px solid">
                        <aspxform:XDropDownList id="XDCleanerinvoice" runat="server" Width="50%" XDataBind="DF_CRM_SalesOpportunities.XDCleanerinvoice" HiddenExpress="DF_CRM_SalesOpportunities.Cleanerinvoice=='1'">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem>暂不能确定发票收件人及开票要求</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="CleanerinvoiceReason" runat="server" Width="40%" XDataBind="DF_CRM_SalesOpportunities.CleanerinvoiceReason" HiddenExpress="DF_CRM_SalesOpportunities.XDCleanerinvoice!='其他' || DF_CRM_SalesOpportunities.Cleanerinvoice=='1'"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 6%" hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                    </td>
                    <td class="ts" style="WIDTH: 6%" hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                    </td>
                    <%-- <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label153" runat="server" text="不清洁原因" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        
                    </td>--%>
                </tr>
            </tbody>
        </table>
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td class="ts" id="zz" style="WIDTH: 8.9%">
                        <asp:Label id="Label154" style="FONT-SIZE: 16px; FONT-FAMILY: 微软雅黑; FONT-WEIGHT: bold" runat="server" text="增值服务" value valuetodisplaytext></asp:Label></td>
                    <td class="ts" style="WIDTH: 5%">
                        <aspxform:XCheckBox id="AddedContractChk" runat="server" XDataBind="DF_CRM_SalesOpportunities.AddedContract" Text="合同"></aspxform:XCheckBox>
                    </td>
                    <td class="ts" style="WIDTH: 19%; BORDER-LEFT: #93a1ae 0px solid">
                        <aspxform:XDropDownList id="XDAddedContract" runat="server" Width="50%" XDataBind="DF_CRM_SalesOpportunities.XDAddedContract" HiddenExpress="DF_CRM_SalesOpportunities.AddedContract=='1'">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem>客户不接受非业务人员联系</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="AddedContractReason" runat="server" Width="40%" XDataBind="DF_CRM_SalesOpportunities.AddedContractReason" HiddenExpress="DF_CRM_SalesOpportunities.XDAddedContract!='其他'||DF_CRM_SalesOpportunities.AddedContract=='1' "></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 2%">
                        <aspxform:XCheckBox id="AddedDeliverChk" runat="server" XDataBind="DF_CRM_SalesOpportunities.AddedDeliver" Text="发货"></aspxform:XCheckBox>
                    </td>
                    <td class="ts" style="WIDTH: 19%; BORDER-LEFT: #93a1ae 0px solid">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" Width="50%" XDataBind="DF_CRM_SalesOpportunities.ReasonsValueAdded" HiddenExpress="DF_CRM_SalesOpportunities.AddedDeliver=='1'">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem>需现场验收或培训</asp:ListItem>
                            <asp:ListItem>客户希望与业务员直接联系</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="qt" runat="server" Width="40%" XDataBind="DF_CRM_SalesOpportunities.ReasonsValueAddedQt" HiddenExpress="DF_CRM_SalesOpportunities.ReasonsValueAdded!='其他' || DF_CRM_SalesOpportunities.AddedDeliver=='1'"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 1%">
                        <aspxform:XCheckBox id="AddedinvoiceChk" runat="server" XDataBind="DF_CRM_SalesOpportunities.Addedinvoice" Text="寄发票"></aspxform:XCheckBox>
                    </td>
                    <td class="ts" style="WIDTH: 19%; BORDER-LEFT: #93a1ae 0px solid">
                        <aspxform:XDropDownList id="XDAddedinvoice" runat="server" Width="50%" XDataBind="DF_CRM_SalesOpportunities.XDAddedinvoice" HiddenExpress="DF_CRM_SalesOpportunities.Addedinvoice=='1'">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem>借送发票保持与客户联系</asp:ListItem>
                            <asp:ListItem> 送货、带发票一起</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="AddedinvoiceReason" runat="server" Width="40%" XDataBind="DF_CRM_SalesOpportunities.AddedinvoiceReason" HiddenExpress="DF_CRM_SalesOpportunities.XDAddedinvoice!='其他' || DF_CRM_SalesOpportunities.Addedinvoice=='1'"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 6%" hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <aspxform:XCheckBox id="StraightIncreaseChk" runat="server" XDataBind="DF_CRM_SalesOpportunities.StraightIncrease" HiddenExpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'" Text="免表" Express="if(DF_CRM_SalesOpportunities.TermsPaymentID=='0002'||DF_CRM_SalesOpportunities.TermsPaymentID=='0003',0,DF_CRM_SalesOpportunities.StraightIncrease)" DisableExpress="if(DF_CRM_SalesOpportunities.TermsPaymentID=='0002'||DF_CRM_SalesOpportunities.TermsPaymentID=='0003',1,0)"></aspxform:XCheckBox>
                    </td>
                    <td class="ts" style="WIDTH: 6%" hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <aspxform:XCheckBox id="AddedLCValueChk" runat="server" XDataBind="DF_CRM_SalesOpportunities.AddedLCValue" HiddenExpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'" Text="信用证" Express="if(DF_CRM_SalesOpportunities.TermsPaymentID!='0014'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1001'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1002'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1003'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1004'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1005',0,0)" DisableExpress="if(DF_CRM_SalesOpportunities.TermsPaymentID!='0014'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1001'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1002'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1003'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1004'&amp;&amp;DF_CRM_SalesOpportunities.TermsPaymentID!='1005',1,0)"></aspxform:XCheckBox>
                    </td>
                    <%--<td class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label155" runat="server" text="不增值原因" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_CRM_SalesOpportunities.ReasonsValueAdded" Width="50%" HiddenExpress="DF_CRM_SalesOpportunities.AddedContract=='1'&amp;&amp;DF_CRM_SalesOpportunities.AddedDeliver=='1'&amp;&amp;DF_CRM_SalesOpportunities.Addedinvoice=='1'">
                            <asp:ListItem>其他</asp:ListItem>
                            <asp:ListItem>需现场验收或培训</asp:ListItem>
                            <asp:ListItem>供应商直发客户，货物不到我司库房</asp:ListItem>
                            <asp:ListItem>客户希望与业务员直接联系</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="qt" runat="server" XDataBind="DF_CRM_SalesOpportunities.ReasonsValueAddedQt" BorderWidth="1" BorderColor="#DCDCDC" Width="40%" HiddenExpress="DF_CRM_SalesOpportunities.ReasonsValueAdded!='其他'||(DF_CRM_SalesOpportunities.AddedContract=='1'&amp;&amp;DF_CRM_SalesOpportunities.AddedDeliver=='1'&amp;&amp;DF_CRM_SalesOpportunities.Addedinvoice=='1')" Value></aspxform:XTextBox>
                    </td>--%>
                </tr>
            </tbody>
        </table>
        <br hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%'" />
        <br hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <table width="1199" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label36" runat="server" text="商务信息" value valuetodisplaytext></asp:Label>
                        <input class="inputbtn" id="btn_BusinessInformation" onclick="param.ShowHidden('btn_BusinessInformation', 'BusinessInformationTable');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="BusinessInformationTable">
                    <tr>
                        <td height="23" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label94" runat="server" text="开票公司" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList11" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.BillingCompany" XDataSource="TableName:DF_SA_SS_Company;OrderBy:'CompanyCode';BufferType:RuntimeUpdate" PromptText="--请选择--" DisplayColumn="Company" ValueColumn="Company" onchange="param.getContractType()">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td height="23" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label48" runat="server" text="销售币种" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList17" runat="server" Width="70%" XDataBind="ContractCurrency" XDataSource="TableName:V_DF_SA_SS_SalesCurrency;Filter:BufferType:RuntimeUpdate" Express="DF_CRM_SalesOpportunities.ContractCurrency" DisableExpress="1" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="23" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label90" runat="server" text="销售组织" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList28" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.SalesOrganization" XDataSource="TableName:V_DF_SA_SS_SalesOrganizing;Filter:CompanyName->DF_CRM_SalesOpportunities.BillingCompany" DisplayColumn="SalesOrganization" ValueColumn="SalesOrganization">
                                <asp:ListItem Selected="True">未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XTextBox id="XTextBox215" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SalesOrganizationCode" ValueToDisplayText DisableExpress="1"></aspxform:XTextBox>
                            <aspxform:XDropDownList id="XDropDownList34" runat="server" HiddenExpress="1" DataMap="SalesOrganizationCode->DF_CRM_SalesOpportunities.SalesOrganizationCode" XDataSource="ProcedureName:proc_DF_SA_SS_SalesOrganizing;Filter:@Company->DF_CRM_SalesOpportunities.BillingCompany,@SalesOrganization->DF_CRM_SalesOpportunities.SalesOrganization" DisplayColumn="SalesOrganizationCode" ValueColumn="SalesOrganizationCode">
                                <asp:ListItem Selected="True">未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label91" runat="server" text="事业部" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList22" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.ProductLine" XDataSource="TableName:V_DF_CRM_ProductLine;Filter:OrderBy:'OrderID';BufferType:RuntimeUpdate" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Value">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XLabel id="XLabel1" runat="server" Width="70%" XDataBind="chanpinxian" HiddenExpress="1" Text="产品线" BackColor="#d4e4fe" ValueToDisplayText Value></aspxform:XLabel>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label92" runat="server" text="分销渠道" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList12" runat="server" XDataBind="DF_CRM_SalesOpportunities.ChannelOfDistribution" XDataSource="TableName:DF_DataSourceList;Filter:Type->fenxiaoqudao;BufferType:RuntimeUpdate" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Value">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XLabel id="XLabel2" runat="server" XDataBind="fenxiaoqudao" HiddenExpress="1" Text="分销渠道" BackColor="#d4e4fe" ValueToDisplayText Value></aspxform:XLabel>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label93" runat="server" text="销售办公室" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList42" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.SalesOffice" XDataSource="TableName:DF_SA_SS_SalesOffice;OrderBy:OrderID" PromptText="--请选择--" DisplayColumn="SalesOffice" ValueColumn="SalesOfficeID" name="SalesOffice">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="20" class="ts" style="WIDTH: 10%">
                            <asp:Label id="XLabel65" runat="server" text="付款条件" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList1" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.TermsPayment" DataMap="Value->DF_CRM_SalesOpportunities.TermsPaymentID;CalValue->DF_CRM_SalesOpportunities.PaymentDays;Email->koukuanleixing" XDataSource="TableName:V_DF_SA_SS_PaymentTerms;Filter:ValueAssociate->'销售额';OrderBy:OrderID" Express="DF_CRM_SalesOpportunities.TermsPayment" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" onchange="param.PaymentChange()">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XTextBox id="XTextBox90" runat="server" Width="100px" BorderColor="Gainsboro" BorderWidth="1px" XDataBind="DF_CRM_SalesOpportunities.TermsPaymentID" HiddenInput="False" Max="0" Min="0" BackColor="#E6F1F8" ValueToDisplayText Value DisableExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox94" runat="server" Width="10%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="koukuanleixing" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="XLabel66" runat="server" text="账期" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox65" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PaymentDays" BackColor="#E6F1F8" DisableExpress="1" Format="type:number;.0"></aspxform:XTextBox>
                            天</td>
                    </tr>
                    <tr>
                        <td height="23" class="ts" wstyle="width:10%">
                            <asp:Label id="XLabel245" runat="server" text="合同实际付款条件" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox179" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ActTermsPayment" HiddenExpress="DF_CRM_SalesOpportunities.ContractType!='客户合同模板' &amp;&amp;  DF_CRM_SalesOpportunities.ContractType!='客户PO'"></aspxform:XTextBox>
                            <aspxform:XTextBox id="SettlementMethod" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SettlementMethod" HiddenExpress="DF_CRM_SalesOpportunities.ContractType=='客户合同模板' || DF_CRM_SalesOpportunities.ContractType=='客户PO'" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                        </td>
                        <td height="23" class="ts" wstyle="width:10%">
                            <asp:Label id="Label117" runat="server" text="SAP报价单号" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="SAPQuotation" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPQuotation" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="23" class="ts" wstyle="width:10%">
                            <asp:Label id="Label186" runat="server" text="需方合同编号" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="bh" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.DemanderContractNumber"></aspxform:XTextBox>
                        </td>
                        <td height="23" class="ts" wstyle="width:10%">
                            <asp:Label id="Label37" runat="server" text="SAP-SO号" value valuetodisplaytext hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='100%'"></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="SOPR" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SOPR" HiddenExpress="DF_CRM_SalesOpportunities.SalesProgress!='100%'" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                            <input id="so" style="WIDTH: 20%" onclick="param.GetSoInfoByFormNo()" type="button" value="更新SAP-SO" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='100%'" />
                            <aspxform:XTextBox id="UpdateSoDate" runat="server" Width="120" XDataBind="DF_CRM_SalesOpportunities.UpdateSoDate" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </tbody>
        </table>
        <br />
        <table width="1199" align="center" class="table" id="SellingPartyTable" 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><%--   <input id="STPButton" onclick="STPSAPIDCustomer()" type="button" value="售达方客户冻结" />--%>
                        <input class="inputbtn" id="btn_SellingPartyTbody" onclick="param.ShowHidden('btn_SellingPartyTbody', 'SellingPartyTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="SellingPartyTbody">
                    <tr>
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label2411" runat="server" text="售达方信息" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                            <aspxform:XTextBox id="XTextBox104" hiddenexpress="1" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('stqdkh',DF_CRM_MarketInquiryApparatusList.IsFlagSDF,DF_CRM_MarketInquiryApparatusList.IsFlagFKF)"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts">
                            <asp:Label id="XLabel47" runat="server" text="售达方客户名称" value valuetodisplaytext></asp:Label>
                            <aspxform:XDropDownList id="XDropDownList30" runat="server" HiddenExpress="1" DisplayColumn="CustomerNameCH" ValueColumn="CustomerNameCH">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XDropDownList id="XDCustomer" runat="server" Width="120" HiddenExpress="1" DataMap="CustomerSAPID->SDFSAPID;CusLeavel->xdfCusLeavel;IsFlag->xdfIsFlag" XDataSource="TableName:V_DF_PartnerInfo_ZK;Filter:CustomerID->DF_CRM_SalesOpportunities.STPClientBPMID" DisplayColumn="CustomerNameCH" ValueColumn="CustomerNameCH"></aspxform:XDropDownList>
                            <aspxform:XTextBox id="SDFSAPID" runat="server" Width="100" XDataBind="SDFSAPID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="xdfCusLeavel" runat="server" XDataBind="xdfCusLeavel" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="xdfIsFlag" runat="server" XDataBind="xdfIsFlag" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox43" style="WIDTH: 70%" runat="server" BorderColor="Gainsboro" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPName" Express="SalesOpportunitiesCustomerName" DisableExpress="1"></aspxform:XTextBox>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserButton4" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" Text="查询" DataMap="CustomerID->BPMID;CustomerNameCH->DF_CRM_SalesOpportunities.STPName;CustomerSAPID->DF_CRM_SalesOpportunities.STPSapID;CusLeavel->DF_CRM_SalesOpportunities.STPCustomerLevel;IsRelatedCus->DF_CRM_SalesOpportunities.IsRelatedCus;IsFlag->DF_CRM_SalesOpportunities.IsFlag1" Height="25px" AppendMode="ClearAndAppend"></aspxform:XCustomBrowserButton>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Width="35px" XClass="Oimec.Dialogs.CustomerAddButton" Text="新建" Height="25px" BrowserWindowType="AjaxPanel"></aspxform:XCustomBrowserButton>
                            <aspxform:XTextBox id="stpid" runat="server" Width="50%" XDataBind="stpid" HiddenInput="true" Express="DF_CRM_SalesOpportunities.STPName"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="XLabel48" runat="server" text="客户SapID" value valuetodisplaytext></asp:Label>
                            <aspxform:XTextBox id="XTextBox124" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ClientCRMID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox178" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.IsRelatedCus" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox123" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPClientBPMID" HiddenInput="true" Express="BPMID"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BPMID" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="BPMID" HiddenExpress="1" Express="SalesOpportunitiesCustomerID"></aspxform:XTextBox>
                        </td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox49" style="WIDTH: 70%" onpropertychange="STPSAPIDCustomer();" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPSapID" 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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPAccountsReceivable" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel">
                            <asp:Label id="XLabel54" runat="server" text="售达方客户等级" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox55" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPCustomerLevel" 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="XTextBox105" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPOverdueAccountsReceivable" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                            <input onclick="GetInfo()" type="button" value="更新" /></td>
                        <td class="tsbottomlabel">
                            <asp:Label id="XLabel22" runat="server" text="实体清单客户" value valuetodisplaytext></asp:Label>
                            <aspxform:XTextBox id="XTextBox106" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.IsFlag1" HiddenExpress="1" ValueToDisplayText="TableName:V_DF_Customer1;FilterColumn:CustomerID;DisplayColumn:IsFlag"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox140" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('Flag1',DF_CRM_SalesOpportunities.IsFlag1)"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext">
                            <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_CRM_SalesOpportunities.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="XTextBox145" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.STPOverdueAccountsReceivableExplanation"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label2413" runat="server" text="付款方信息" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr>
                        <td width="607" class="ts">
                            <asp:Label id="XLabel56" runat="server" text="付款方客户名称" value valuetodisplaytext></asp:Label>
                            <aspxform:XDropDownList id="XDropDownList31" runat="server" Width="120" HiddenExpress="1" DataMap="CustomerSAPID->FKFSAPID;CusLeavel->FKFCusLeavel;IsFlag->FKFIsFlag;IsRelatedCus->FKFIsRelatedCus" XDataSource="TableName:V_DF_PartnerInfo_ZK;Filter:CustomerID->DF_CRM_SalesOpportunities.PTPClientBPMID" DisplayColumn="CustomerNameCH" ValueColumn="CustomerNameCH">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XTextBox id="XTextBox149" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.OFExtended" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox7" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Overdue15" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="FKFSAPID" runat="server" XDataBind="FKFSAPID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="FKFCusLeavel" runat="server" XDataBind="FKFCusLeavel" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="FKFIsFlag" runat="server" XDataBind="FKFIsFlag" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="FKFIsRelatedCus" runat="server" XDataBind="FKFIsRelatedCus" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox56" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPName" Express="DF_CRM_SalesOpportunities.STPName" DisableExpress="1"></aspxform:XTextBox>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserBtnPTP" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" Text="查询" DataMap="CustomerID->DF_CRM_SalesOpportunities.PTPClientBPMID;CustomerNameCH->DF_CRM_SalesOpportunities.PTPName;CustomerSAPID->DF_CRM_SalesOpportunities.PTPSapID;CusLeavel->DF_CRM_SalesOpportunities.PTPCustomerLevel;IsRelatedCus->DF_CRM_SalesOpportunities.IsRelatedCus;IsFlag->DF_CRM_SalesOpportunities.IsFlag2" Height="25px"></aspxform:XCustomBrowserButton>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" Width="35px" XClass="Oimec.Dialogs.CustomerAddButton" Text="新建" Height="25px" BrowserWindowType="AjaxPanel"></aspxform:XCustomBrowserButton>
                        </td>
                        <td class="ts">
                            <asp:Label id="XLabel57" runat="server" text="客户SapID" value valuetodisplaytext></asp:Label>
                            <aspxform:XTextBox id="XTextBox125" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPClientBPMID" HiddenExpress="1" Express="DF_CRM_SalesOpportunities.STPClientBPMID"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox126" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ClientCRMID" HiddenExpress="1" Express="DF_CRM_SalesOpportunities.ClientCRMID"></aspxform:XTextBox>
                        </td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox57" style="WIDTH: 70%" onpropertychange="PTPSAPIDCustomer();" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPSapID" DisableBehavior="ReadOnly" ValueToDisplayText Express="if(DF_CRM_SalesOpportunities.PTPSapID=='',DF_CRM_SalesOpportunities.STPSapID,DF_CRM_SalesOpportunities.STPSapID)" 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" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPAccountsReceivable" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel">
                            <asp:Label id="XLabel63" runat="server" text="付款方客户等级" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox63" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPCustomerLevel" Express="DF_CRM_SalesOpportunities.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="XTextBox107" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPOverdueAccountsReceivable" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                            <input onclick="GetInfo2()" type="button" value="更新" /></td>
                        <td class="tsbottomlabel">
                            <asp:Label id="XLabel27" runat="server" text="实体清单客户" value valuetodisplaytext></asp:Label>
                            <aspxform:XTextBox id="XTextBox108" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.IsFlag2" HiddenExpress="1" ValueToDisplayText="TableName:V_DF_Customer1;FilterColumn:CustomerID;DisplayColumn:IsFlag" Express="DF_CRM_SalesOpportunities.IsFlag1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox146" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" Express="javascript('Flag2',DF_CRM_SalesOpportunities.IsFlag2)"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomtext">
                            <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_CRM_SalesOpportunities.PTPClientTag" Express="DF_CRM_SalesOpportunities.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" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPOverdueAccountsReceivableExplanation" 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_CRM_SalesOpportunities.IsRelatedCus" Express="DF_CRM_SalesOpportunities.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="Label43" runat="server" text="信贷限额" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox185" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPCreditLimit" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel">
                            <asp:Label id="Label44" runat="server" text="信贷风险总额" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="XTextBox184" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PTPCreditRiskTotal" DisableExpress="1" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </tbody>
        </table>
        <%-- <br />
        <table width="1200" align="center" class="table" id="SAPTable" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="4">
                        <asp:Label id="XLabel81" runat="server" text="SAP订单联系人信息" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox138" runat="server" XDataBind="DF_CRM_SalesOpportunities.SAPContactExmessage" BorderWidth="1" BorderColor="#DCDCDC" Width="10px" HiddenExpress="1"></aspxform:XTextBox>
                        <input class="inputbtn" id="btn_SapOrderTbody" onclick="param.ShowHidden('btn_SapOrderTbody', 'SapOrderTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="SapOrderTbody">
                </tbody>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" id="PayerTable" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="XLabel55" runat="server" text="付款方客户信息" valuetodisplaytext value></asp:Label>
                        <input id="PTPButton" onclick="PTPSAPIDCustomer()" type="button" value="付款方客户冻结" />
                        <input class="inputbtn" id="btn_PayerTbody" onclick="param.ShowHidden('btn_PayerTbody', 'PayerTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="PayerTbody">
                </tbody>
            </tbody>
        </table>--%><%--   <br hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <table width="1200" align="center" class="table" id="CleanerValueAddedTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="Label151" runat="server" text="清洁增值信息" valuetodisplaytext value></asp:Label>&nbsp;
                        <input class="inputbtn" id="btn_CleanerValueAddedTbody" onclick="param.ShowHidden('btn_CleanerValueAddedTbody', 'CleanerValueAddedTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="CleanerValueAddedTbody">

                </tbody>
            </tbody>
        </table>--%>
        <br hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='30%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='10%'" />
        <br hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <table width="1200" align="center" class="table" id="DeliveryTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="XLabel117" runat="server" text="交货信息" value valuetodisplaytext></asp:Label>&nbsp; 
                        <input class="inputbtn" id="btn_DeliveryTbody" onclick="param.ShowHidden('btn_DeliveryTbody', 'DeliveryTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="DeliveryTbody">
                    <tr>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label96" runat="server" text="信息暂时无法确认" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XCheckBox id="XCheckBox2" runat="server" XDataBind="DF_CRM_SalesOpportunities.ConfirmationDelivery"></aspxform:XCheckBox>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label46" runat="server" text="无法确认原因" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox133" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_CRM_SalesOpportunities.ConfirmationDelivery!='1'" Value></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="XLabel98" runat="server" text="客户交货方式" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList8" runat="server" Width="220px" XDataBind="DF_CRM_SalesOpportunities.CustomerDeliveryWay" XDataSource="TableName:V_DF_SA_SS_CustomerDelivery;Filter:BufferType:RuntimeUpdate" Express="javascript('ClearlyStateDelivery',DF_CRM_SalesOpportunities.BillingCompany,DF_CRM_SalesOpportunities.CustomerDeliveryWay)" DisableExpress='DF_CRM_SalesOpportunities.BillingCompany=="1000东方中科北京" || DF_CRM_SalesOpportunities.BillingCompany=="1010东方中科上海" ||DF_CRM_SalesOpportunities.BillingCompany=="1020东方中科深圳" || DF_CRM_SalesOpportunities.BillingCompany=="2100苏州博德" || DF_CRM_SalesOpportunities.BillingCompany=="2000上海颐合"' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XLabel id="XLabel131" runat="server" XDataBind="kehujiaohuofangshi" HiddenExpress="1" Text="客户交货方式" ValueToDisplayText Value></aspxform:XLabel>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="XLabel97" runat="server" text="客户期望交货日期" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDateTimePicker id="XDateTimePicker2" style="WIDTH: 30%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerDeliveryDate" DisableExpress="DF_CRM_SalesOpportunities.SalesProgress=='100%'"></aspxform:XDateTimePicker>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label51" runat="server" text="出库方式" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="XDropDownList21" runat="server" Width="220px" XDataBind="DF_CRM_SalesOpportunities.DepositMode" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" onchange="param.PaymentChange()">
                                <asp:ListItem>自提</asp:ListItem>
                                <asp:ListItem>供应商处自提</asp:ListItem>
                                <asp:ListItem>发货到客户</asp:ListItem>
                                <asp:ListItem>发货到分支机构</asp:ListItem>
                                <asp:ListItem>供应商直发-人民币</asp:ListItem>
                                <asp:ListItem>供应商直发-外币</asp:ListItem>
                                <asp:ListItem>消借出</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label53" runat="server" text="自提原因" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox163" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SelfMention" Value></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel" style="WIDTH: 10%">
                            <asp:Label id="XLabel118" runat="server" text="是否免税" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel" style="WIDTH: 35%">
                            <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_CRM_SalesOpportunities.Exemption" RepeatDirection="Horizontal">
                                <asp:ListItem>是</asp:ListItem>
                                <asp:ListItem>否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                        <td height="14" class="tsbottomlabel" style="WIDTH: 10%">
                            <asp:Label id="XLabel181" runat="server" text="免税说明" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox148" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.DescriptionExemption" Value DisableExpress="DF_CRM_SalesOpportunities.Exemption=='否' || DF_CRM_SalesOpportunities.Exemption==''" ToolTip="特殊说明：如一张免表分批发货，或一个订单分两免表等"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                            <asp:Label id="Label54" runat="server" text="整单/分批交货" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="DeliveryBatch" runat="server" XDataBind="DF_CRM_SalesOpportunities.DeliveryBatch">
                                <asp:ListItem>整单</asp:ListItem>
                                <asp:ListItem>分批</asp:ListItem>
                                <asp:ListItem>货到即发</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                            <asp:Label id="XLabel110" runat="server" text="直发的机场" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox10" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.NonstopAirport" HiddenInput="False" Express="javascript('ClearlyStateDelivery1',DF_CRM_SalesOpportunities.BillingCompany,NonstopAirport)" DisableExpress='DF_CRM_SalesOpportunities.CustomerDeliveryWay == "HOSIC送货到客户香港指定地点"||DF_CRM_SalesOpportunities.CustomerDeliveryWay == "客户到HOSIC办公室自提"||DF_CRM_SalesOpportunities.CustomerDeliveryWay == "客户到供应商处自提" || DF_CRM_SalesOpportunities.BillingCompany=="1000东方中科北京" || DF_CRM_SalesOpportunities.BillingCompany=="1010东方中科上海" ||DF_CRM_SalesOpportunities.BillingCompany=="1020东方中科深圳" || DF_CRM_SalesOpportunities.BillingCompany=="2100苏州博德"'></aspxform:XTextBox>
                            <aspxform:XDropDownList id="XDropDownList43" runat="server" XDataBind="NonstopAirport" HiddenExpress="1" DataMap="NonstopAirport->DF_CRM_SalesOpportunities.NonstopAirport" DisplayColumn="NonstopAirport" ValueColumn="NonstopAirport">
                                <asp:ListItem></asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                            <asp:Label id="Label56" runat="server" text="分批交货备注" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel" style="WIDTH: 35%" colspan="3">
                            <aspxform:XTextBox id="BatchdeliveryRemarks" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BatchdeliveryRemarks" TextMode="MultiLine"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label2415" runat="server" text="客户收货联系人" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label61" runat="server" text="国际运单收货英文公司名称" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsEnglishCompany" onkeyup="param.GoodsEnglishCompany()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsEnglishCompany" Value></aspxform:XTextBox>
                          <asp:Label ID="GoodsEnglishCompanyLabel" style="DISPLAY: none"  runat="server">不能输入中文</asp:Label>
						</td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label62" runat="server" text="收货公司英文地址" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsEnglishAddress" onkeyup="param.GoodsEnglishAddress()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsEnglishAddress" Value></aspxform:XTextBox>
                        <asp:Label ID="GoodsEnglishAddressLabel" style="DISPLAY: none"  runat="server">不能输入中文</asp:Label>
					   </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label63" runat="server" text="到货通知人姓名" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsNotifier" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsNotifier" Value></aspxform:XTextBox>
                        </td>
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label158" runat="server" text="称呼" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XRadioButtonList id="GoodsNotifierSex" runat="server" XDataBind="DF_CRM_SalesOpportunities.GoodsNotifierSex" RepeatDirection="Horizontal">
                                <asp:ListItem>先生</asp:ListItem>
                                <asp:ListItem>女士</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label66" runat="server" text="到货通知人座机" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsTel" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsTel" Value></aspxform:XTextBox>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label64" runat="server" text="到货通知人手机" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsPhone" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsPhone" Value placeholder="多个手机号以/分割"></aspxform:XTextBox>
                            <asp:Label id="GoodsPhoneLabel" style="DISPLAY: none" runat="server" text="手机">手机格式不正确</asp:Label></td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label68" runat="server" text="收货人E-MAIL" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsEmail" onkeyup="param.GoodsEmail()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsEmail" Value></aspxform:XTextBox>
                            <asp:Label id="GoodsEmailLabel" style="DISPLAY: none" runat="server" text="收货人E-MAIL">邮箱格式不正确</asp:Label></td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label67" runat="server" text="收货公司的营业执照五证合一号" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsBusinessLicense" name="GoodsBusinessLicense" onkeyup="param.GoodsBusinessLicense()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsBusinessLicense" Value></aspxform:XTextBox>
                              <asp:Label ID="GoodsBusinessLicenseLabel" style="DISPLAY: none"  runat="server">必须为18位数字</asp:Label>
					   </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td class="ts" style="HEIGHT: 20px; WIDTH: 10%">
                            <asp:Label id="Label167" runat="server" text="贸易条款" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDropDownList id="TradeTerms" runat="server" Width="60%" XDataBind="DF_CRM_SalesOpportunities.TradeTerms" Height="22px" PromptText="--请选择--">
                                <asp:ListItem>CIP</asp:ListItem>
                                <asp:ListItem>CIF</asp:ListItem>
                                <asp:ListItem>EXW</asp:ListItem>
                                <asp:ListItem>FOB</asp:ListItem>
                                <asp:ListItem>CPT</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label69" runat="server" text="到货港" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsPortArrival" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsPortArrival" Value Express="DF_CRM_SalesOpportunities.NonstopAirport" DisableExpress="DF_CRM_SalesOpportunities.CustomerDeliveryWay =='供应商直发**机场' || DF_CRM_SalesOpportunities.CustomerDeliveryWay =='HOSIC发至**机场'"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label70" runat="server" text="原产国" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsCountryOrigin" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsCountryOrigin" Value></aspxform:XTextBox>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label71" runat="server" text="发运港" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="GoodsPortDelivery" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.GoodsPortDelivery" Value></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
                        <td class="ts" style="HEIGHT: 10px; WIDTH: 20%">
                            <asp:Label id="Label72" runat="server" text="信用证预计开出日期或发货前预付款预计付出日期" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDateTimePicker id="XDateTimePicker6" style="WIDTH: 50%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ExpectedIssuingDate"></aspxform:XDateTimePicker>
                        </td>
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label58" runat="server" text="免表预计办好日期" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XDateTimePicker id="XDateTimePicker3" style="WIDTH: 50%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.FreeDate"></aspxform:XDateTimePicker>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency!='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label74" runat="server" text="收货公司名称" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="CustomerReceivingId" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingId" HiddenExpress="1" Value Express="DF_CRM_SalesOpportunities.STPClientBPMID"></aspxform:XTextBox>
                            <aspxform:XTextBox id="CustomerReceivingName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingName" Value Express="DF_CRM_SalesOpportunities.STPName"></aspxform:XTextBox>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserButton6" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" Text="查询" DataMap="CustomerID->DF_CRM_SalesOpportunities.CustomerReceivingId;CustomerNameCH->DF_CRM_SalesOpportunities.CustomerReceivingName;" Height="25px"></aspxform:XCustomBrowserButton>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label76" runat="server" text="联系人" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="CustomerReceivingContacts" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingContacts" Value Express="DF_CRM_SalesOpportunities.SAPOFContact"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton7" runat="server" Width="35px" Text="查询" DataMap="ContactName->DF_CRM_SalesOpportunities.CustomerReceivingContacts;ContactTel->DF_CRM_SalesOpportunities.CustomerReceivingLandline;ContactMobile->DF_CRM_SalesOpportunities.CustomerReceivingPhone;ContactEmail->DF_CRM_SalesOpportunities.CustomerReceivingEmail;ContactAddr->DF_CRM_SalesOpportunities.CustomerReceivingAdress" XDataSource="TableName:V_DF_MasterData_DeliveryContact;Filter:CustomerID->DF_CRM_SalesOpportunities.CustomerReceivingId,OwnerAccount->DF_CRM_SalesOpportunities.ownerId" Height="25px" DisplayColumns="ContactName:联系人,60;ContactTel:电话,100;ContactMobile:手机号,120;ContactEmail:邮箱,120;ContactAddr:地址,150;ZipCode:邮编,100;CustomerReceivingContactsSex:称呼,80"></aspxform:XDataBrowserButton>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency!='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label99" runat="server" text="发运详细地址" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox183" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingAdress" Value Express="DF_CRM_SalesOpportunities.SAPOFAddress"></aspxform:XTextBox>
                        </td>
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label157" runat="server" text="称呼" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XRadioButtonList id="CustomerReceivingContactsSex" runat="server" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingContactsSex" RepeatDirection="Horizontal">
                                <asp:ListItem>先生</asp:ListItem>
                                <asp:ListItem>女士</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency!='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label77" runat="server" text="联系人座机" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="CustomerReceivingLandline" onkeyup="param.CustomerReceivingLandline()" runat="server" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingLandline" Value Express="DF_CRM_SalesOpportunities.SAPOFPhone" CssClass="CustomerReceivingLandline"></aspxform:XTextBox>
                            <asp:Label id="CustomerReceivingLandlineLabel" style="DISPLAY: none" runat="server" text="联系人座机">联系人座机格式不正确</asp:Label></td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label78" runat="server" text="联系人手机" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="CustomerReceivingPhone" onkeyup="param.CustomerReceivingPhone()" runat="server" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingPhone" Value Express="DF_CRM_SalesOpportunities.SAPOFTelephone"></aspxform:XTextBox>
                            <asp:Label id="CustomerReceivingPhoneLabel" style="DISPLAY: none" runat="server" text="手机">联系人手机格式不正确</asp:Label></td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency!='CNY'">
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label100" runat="server" text="邮编" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox202" onkeyup="param.zipcCode()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingZipCode" Value></aspxform:XTextBox>
                            <asp:Label id="LabzipCode" style="DISPLAY: none" runat="server" text="手机">邮编格式不正确</asp:Label></td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label184" runat="server" text="Email" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="CustomerReceivingEmail" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingEmail"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency!='CNY'">
                        <td height="22" class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label101" runat="server" text="其他要求" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%" colspan="3">
                            <aspxform:XTextBox id="XTextBox203" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.CustomerReceivingOther" Value></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </tbody>
        </table>
        <%-- <br />
        <table width="1200" align="center" class="table" id="DeliverysTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="Label166" runat="server" text="客户收货信息" valuetodisplaytext value></asp:Label>&nbsp;
                        <input class="inputbtn" id="btn_DeliverysTbody" onclick="param.ShowHidden('btn_DeliverysTbody', 'DeliverysTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="DeliverysTbody">
                </tbody>
            </tbody>
        </table>--%>
        <br id="DeliveryBr" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <div hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'">
            <table width="1200" align="center" class="table" id="SupplierDirectDeliveryTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
                <tbody>
                    <tr>
                        <td width="1200" class="title1" colspan="4">
                            <asp:Label id="Label159" runat="server" text="免表&amp;信用证信息" value valuetodisplaytext></asp:Label>
                            <input class="inputbtn" id="btn_SupplierDirectDeliveryTbody" onclick="param.ShowHidden('btn_SupplierDirectDeliveryTbody', 'SupplierDirectDeliveryTbody');" type="button" size="46" value=▽展开 />
                        </td>
                    </tr>
                    <tbody id="SupplierDirectDeliveryTbody">
                        <tr>
                            <td class="tsbottomlabel" style="WIDTH: 4%">
                                <asp:Label id="Label160" runat="server" text="用户免表办理人姓名" value valuetodisplaytext></asp:Label></td>
                            <td height="22" class="tsbottomtext">
                                <aspxform:XTextBox id="UserExemptionName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.UserExemptionName"></aspxform:XTextBox>
                            </td>
                            <td class="tsbottomlabel" style="WIDTH: 4%">
                                <asp:Label id="Label163" runat="server" text="用户开证人姓名" value valuetodisplaytext></asp:Label></td>
                            <td height="22" class="tsbottomtext">
                                <aspxform:XTextBox id="UserCardName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.UserCardName"></aspxform:XTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tsbottomlabel" style="WIDTH: 4%">
                                <asp:Label id="Label162" runat="server" text="用户免表办理人邮箱" value valuetodisplaytext></asp:Label></td>
                            <td height="22" class="tsbottomtext">
                                <aspxform:XTextBox id="UserExemptionEmail" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.UserExemptionEmail"></aspxform:XTextBox>
                            </td>
                            <td class="tsbottomlabel" style="WIDTH: 4%">
                                <asp:Label id="Label165" runat="server" text="用户开证人邮箱" value valuetodisplaytext></asp:Label></td>
                            <td height="22" class="tsbottomtext">
                                <aspxform:XTextBox id="UserCardEmail" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.UserCardEmail"></aspxform:XTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="tsbottomlabel" style="WIDTH: 4%">
                                <asp:Label id="Label161" runat="server" text="用户免表办理人电话" value valuetodisplaytext></asp:Label></td>
                            <td height="22" class="tsbottomtext">
                                <aspxform:XTextBox id="UserExemptionPhone" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.UserExemptionPhone"></aspxform:XTextBox>
                            </td>
                            <td class="tsbottomlabel" style="WIDTH: 4%">
                                <asp:Label id="Label164" runat="server" text="用户开证人电话" value valuetodisplaytext></asp:Label></td>
                            <td height="22" class="tsbottomtext">
                                <aspxform:XTextBox id="UserCardPhone" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.UserCardPhone"></aspxform:XTextBox>
                            </td>
                        </tr>
                    </tbody>
                </tbody>
            </table>
        </div>
        <br hiddenexpress="DF_CRM_SalesOpportunities.ContractCurrency==''||DF_CRM_SalesOpportunities.ContractCurrency=='CNY'|| DF_CRM_MarketInquiryApparatusList.PrchaseCurrency=='CNY'" />
        <table width="1200" align="center" class="table" id="FinanceTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td height="22" class="title1" colspan="4">
                        <asp:Label id="Label29" runat="server" text="财务信息" value valuetodisplaytext></asp:Label>&nbsp; 
                        <input class="inputbtn" id="btn_FinanceTbody" onclick="param.ShowHidden('btn_FinanceTbody', 'FinanceTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="FinanceTbody">
                    <tr>
                        <td height="22" class="title1" colspan="4">
                            <asp:Label id="XLabel64" runat="server" text="发票信息" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; <%-- <aspxform:XDropDownList id="XDropDownList42" runat="server" XDataBind="DF_CRM_SalesOpportunities.TermsPayment" HiddenExpress="1" DataMap="TermsPayment->DF_CRM_SalesOpportunities.TermsPayment" ValueColumn="TermsPayment" DisplayColumn="TermsPayment">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox168" runat="server" XDataBind="DF_CRM_SalesOpportunities.InvoiceType" BorderWidth="1" BorderColor="#DCDCDC" Width="20px" HiddenExpress="1"></aspxform:XTextBox>--%></td>
                    </tr>
                    <%--  <tr>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label97" runat="server" text="信息暂时无法确认" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XCheckBox id="XCheckBox4" runat="server" XDataBind="DF_CRM_SalesOpportunities.ConfirmationInvoice"></aspxform:XCheckBox>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label47" runat="server" text="无法确认原因" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox147" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_CRM_SalesOpportunities.ConfirmationInvoice!='1'" Value></aspxform:XTextBox>
                        </td>
                    </tr>--%> 
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label41" runat="server" text="需要付款方税号"></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XRadioButtonList id="XRadioButtonList9" runat="server" XDataBind="DF_CRM_SalesOpportunities.IsNeedTaxNumber" Express="javascript('param.disabelNeedTax',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.IsNeedTaxNumber)" DisableExpress="javascript('param.IsNeedTax',DF_CRM_SalesOpportunities.InvoiceType) " RepeatDirection="Horizontal" CellSpacing="0" CellPadding="0">
                                <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                        <td height="22" class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label45" runat="server" text="无需税号原因" hiddenexpress="DF_CRM_SalesOpportunities.IsNeedTaxNumber==1"></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="XTextBox30" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.NoTaxReason" HiddenExpress="DF_CRM_SalesOpportunities.IsNeedTaxNumber==1"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label110" runat="server" text="付款方地址" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="PaymentAddress" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PaymentAddress" BackColor="#E6F1F8" Express="javascript('getFKInfo',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID,DF_CRM_SalesOpportunities.PaymentAddress)" DisableExpress="javascript('FKInfoDisable',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID)"></aspxform:XTextBox>
                            <%--<aspxform:XTextBox id="PaymentAddress" style="WIDTH: 70%" runat="server"  XDataBind="PaymentAddress" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8"   HiddenExpress ="1" ></aspxform:XTextBox>--%><%--<aspxform:XTextBox id="PaymentTel" style="WIDTH: 70%" runat="server"  XDataBind="PaymentTel" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8"   HiddenExpress="1" ></aspxform:XTextBox>--%>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" DataMap="BillingAddress->DF_CRM_SalesOpportunities.PaymentAddress;BillingTel->DF_CRM_SalesOpportunities.PaymentTel;BankName->DF_CRM_SalesOpportunities.BankName;BankAccount->DF_CRM_SalesOpportunities.BankAccount;SocialCreditCode->DF_CRM_SalesOpportunities.PaymentTaxNumber" XDataSource="TableName:V_DF_Partner_CusBillInfo;Filter:PartnerID->DF_CRM_SalesOpportunities.PTPClientBPMID" DisplayColumns="BillingAddress:付款方地址;BillingTel:付款方电话;BankName:付款方开户行;BankAccount:付款方账号; "></aspxform:XDataBrowserButton>
                        </td>
                        <td class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label111" runat="server" text="付款方税号" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="PaymentTaxNumber" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PaymentTaxNumber" BackColor="#E6F1F8" Express="javascript('getFKInfo',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID,DF_CRM_SalesOpportunities.PaymentTaxNumber)" DisableExpress="javascript('FKInfoDisable',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID)"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label107" runat="server" text="付款方电话" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="PaymentTel" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PaymentTel" BackColor="#E6F1F8" Express="javascript('getFKInfo',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID,DF_CRM_SalesOpportunities.PaymentTel)" DisableExpress="javascript('FKInfoDisable',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID)"></aspxform:XTextBox>
                        </td>
                        <td class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label113" runat="server" text="付款方账号" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="BankAccount" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BankAccount" BackColor="#E6F1F8" Express="javascript('getFKInfo',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID,DF_CRM_SalesOpportunities.BankAccount)" DisableExpress="javascript('FKInfoDisable',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID)"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="22" class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label112" runat="server" text="付款方开户行" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="BankName" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BankName" BackColor="#E6F1F8" Express="javascript('getFKInfo',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID,DF_CRM_SalesOpportunities.BankName)" DisableExpress="javascript('FKInfoDisable',DF_CRM_SalesOpportunities.InvoiceType,DF_CRM_SalesOpportunities.PTPSapID)"></aspxform:XTextBox>
                        </td>
                        <td class="ts" style="WIDTH: 8.5%">
                            <asp:Label id="Label108" runat="server" text="发票备注" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 29%">
                            <aspxform:XTextBox id="NotesInvoice" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.NotesInvoice"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="ty">
                            <asp:Label id="XLabel213" runat="server" text="账期说明" value valuetodisplaytext></asp:Label></td>
                        <td class="tm3" colspan="3">
                            <aspxform:XTextBox id="XTextBox151" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.PaymentDaysExplanation"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label24" runat="server" text="发票邮寄信息" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr hidden="hidden">
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label98" runat="server" text="信息暂时无法确认" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XCheckBox id="XCheckBox5" runat="server" XDataBind="DF_CRM_SalesOpportunities.ConfirmationInvoiceMailing"></aspxform:XCheckBox>
                        </td>
                        <td class="ts" style="WIDTH: 10%">
                            <asp:Label id="Label49" runat="server" text="无法确认原因" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1" style="WIDTH: 35%">
                            <aspxform:XTextBox id="XTextBox154" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="DF_CRM_SalesOpportunities.ConfirmationInvoiceMailing!='1'" Value></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="257" height="22" class="ts">
                            <asp:Label id="Label102" runat="server" text="发票邮寄特殊要求" value valuetodisplaytext></asp:Label></td>
                        <td width="269" class="ts1">
                            <aspxform:XRadioButtonList id="XRadioButtonList8" runat="server" XDataBind="DF_CRM_SalesOpportunities.yq" RepeatDirection="Horizontal" onchange="param.yq()">
                                <asp:ListItem>有</asp:ListItem>
                                <asp:ListItem>无</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                        <td width="257" height="22" class="ts">
                            <asp:Label id="Label26" runat="server" text="寄票方式" value valuetodisplaytext></asp:Label></td>
                        <td width="269" class="ts1">
                            <aspxform:XDropDownList id="MailTicketDropDownList" runat="server" Width="220px" XDataBind="DF_CRM_SalesOpportunities.MailTicket" XDataSource='TableName:DF_DataSourceList;Filter:Type->"邮寄方式"' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" onchange="param.MailTicketChange()">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="257" height="22" class="ts">
                            <asp:Label id="Label109" runat="server" text="分支机构" value valuetodisplaytext></asp:Label></td>
                        <td width="269" class="ts1">
                            <aspxform:XDropDownList id="BranchesDropDownList" runat="server" Width="220px" XDataBind="DF_CRM_SalesOpportunities.BranchID" HiddenExpress="DF_CRM_SalesOpportunities.MailTicket!='邮寄分支机构'" DataMap="BranchID->BranchID" XDataSource="TableName:DF_FI_Branches;" PromptText="--请选择--" DisplayColumn="Branch" ValueColumn="BranchID" onchange="param.GetBranchesDropDownList()" AutoPostBack="false">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td width="373" class="ts">
                            <asp:Label id="Label28" runat="server" text="公司名称" value valuetodisplaytext></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="xbox" runat="server" HiddenExpress="1" Value Express="DF_CRM_SalesOpportunities.TicketingCompany"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox99" runat="server" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TicketingCompany" Value Express="DF_CRM_SalesOpportunities.STPName" DisableExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="customID" runat="server" Width="60%" BorderColor="#DCDCDC" XDataBind="DF_CRM_SalesOpportunities.MailTicketCustomID" HiddenExpress="1" Value Express="DF_CRM_SalesOpportunities.STPClientBPMID"></aspxform:XTextBox>
                            <aspxform:XCustomBrowserButton id="XCustomBrowserButton5" runat="server" Width="35px" XClass="Oimec.Dialogs.SelCustomerButton" HiddenExpress="DF_CRM_SalesOpportunities.MailTicket=='邮寄分支机构'" Text="查询" DataMap="CustomerNameCH->DF_CRM_SalesOpportunities.TicketingCompany;CustomerID->DF_CRM_SalesOpportunities.MailTicketCustomID;" Height="20px"></aspxform:XCustomBrowserButton>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" HiddenExpress="DF_CRM_SalesOpportunities.MailTicket!='邮寄分支机构'" Text="分支机构对应公司" DataMap="CompanyName->DF_CRM_SalesOpportunities.TicketingCompany;CompanyAddress->DF_CRM_SalesOpportunities.SAPOFAddress" XDataSource="TableName:DF_FI_BranchCompany;Filter:BranchID->BranchID" DisplayColumns="CompanyName:公司名称;CompanyAddress:公司地址"></aspxform:XDataBrowserButton>
                        </td>
                    </tr>
                    <tr>
                        <td height="18" class="tsbottomlabel">
                            <asp:Label id="Label30" runat="server" text="联系人" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel">
                            <aspxform:XTextBox id="FkItemId" style="WIDTH: 60%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.FkItemId" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BranchID" runat="server" Width="10%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="BranchID" HiddenExpress="1" Value></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox28" style="WIDTH: 60%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TicketingContacts" Express="DF_CRM_SalesOpportunities.SAPOFContact"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton5" runat="server" Width="35px" HiddenExpress="DF_CRM_SalesOpportunities.MailTicket=='邮寄分支机构'" Text="查询" DataMap="ContactName->DF_CRM_SalesOpportunities.TicketingContacts;ContactTel->DF_CRM_SalesOpportunities.TicketingTel;ContactMobile->DF_CRM_SalesOpportunities.TicketingPhone;ContactEmail->DF_CRM_SalesOpportunities.SAPEmail;ContactAddr->DF_CRM_SalesOpportunities.TicketingAddress;ZipCode->DF_CRM_SalesOpportunities.SAPZipCode" XDataSource="TableName:V_DF_MasterData_InvoiceContact;Filter:CustomerID->DF_CRM_SalesOpportunities.MailTicketCustomID,OwnerAccount->DF_CRM_SalesOpportunities.ownerId" Height="25px" DisplayColumns="ContactName:联系人,60;ContactTel:电话,100;ContactMobile:手机号,120;ContactEmail:邮箱,120;ContactAddr:地址,150;ZipCode:邮编,100;InvoiceMailingSex:称呼"></aspxform:XDataBrowserButton>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton6" runat="server" HiddenExpress="DF_CRM_SalesOpportunities.MailTicket!='邮寄分支机构'" Text="分支机构对应联系人" DataMap="ContactName->DF_CRM_SalesOpportunities.TicketingContacts;Telphone->DF_CRM_SalesOpportunities.TicketingTel;Mobile->DF_CRM_SalesOpportunities.TicketingPhone" XDataSource="TableName:DF_FI_BranchContact;Filter:BranchID->BranchID" DisplayColumns="ContactName:联系人;Telphone:电话;Mobile:手机"></aspxform:XDataBrowserButton>
                        </td>
                        <td class="tsbottomlabel">
                            <asp:Label id="Label10" runat="server" text="称呼" value valuetodisplaytext></asp:Label></td>
                        <td width="123" class="tsbottomlabel" style="WIDTH: 8%">
                            <aspxform:XRadioButtonList id="InvoiceMailingSex" runat="server" Width="30%" XDataBind="DF_CRM_SalesOpportunities.InvoiceMailingSex" RepeatDirection="Horizontal">
                                <asp:ListItem>先生</asp:ListItem>
                                <asp:ListItem>女士</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tsbottomlabel">
                            <asp:Label id="Label32" runat="server" text="手机" value valuetodisplaytext></asp:Label></td>
                        <td width="123" class="tsbottomlabel" style="WIDTH: 8%">
                            <aspxform:XTextBox id="MailTicketPhone" style="WIDTH: 50%" onkeyup="param.MailTicketPhone()" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TicketingPhone" Express="DF_CRM_SalesOpportunities.SAPOFTelephone"></aspxform:XTextBox>
                            <asp:Label id="MailTicketPhoneLabel" style="DISPLAY: none" runat="server" text="手机">手机格式不正确</asp:Label></td>
                        <td width="54" class="tsbottomlabel">
                            <asp:Label id="Label35" runat="server" text="电话" value valuetodisplaytext></asp:Label></td>
                        <td width="124" class="tsbottomlabel" style="WIDTH: 6%">
                            <aspxform:XTextBox id="MailTicketTel" style="WIDTH: 60%" onkeyup="param.MailTicketTel()" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TicketingTel" Express="DF_CRM_SalesOpportunities.SAPOFPhone" CssClass="MailTicketTel"></aspxform:XTextBox>
                            <aspxform:XTextBox id="MailTicketExtension" style="WIDTH: 10%" onkeyup="param.MailTicketTel()" runat="server" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                            <asp:Label id="MailTicketTelLabel" style="DISPLAY: none" runat="server" text="电话">座机格式不正确</asp:Label></td>
                    </tr>
                    <tr>
                        <td height="18" class="tsbottomlabel">
                            <asp:Label id="Label124" runat="server" text="邮编" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel">
                            <aspxform:XTextBox id="SAPZipCode" style="WIDTH: 60%" onkeyup="param.SAPZipCode()" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPZipCode"></aspxform:XTextBox>
                            <asp:Label id="LabelSAPZipCode" style="DISPLAY: none" runat="server" text="电话">邮编格式不正确</asp:Label></td>
                        <td height="18" class="tsbottomlabel">
                            <asp:Label id="Label125" runat="server" text="邮箱" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomlabel">
                            <aspxform:XTextBox id="SAPEmail" style="WIDTH: 60%" onkeyup="param.SAPEmail()" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SAPEmail" Express="DF_CRM_SalesOpportunities.SAPOFEmail"></aspxform:XTextBox>
                            <asp:Label id="LabelSAPEmail" style="DISPLAY: none" runat="server" text="电话">邮箱格式不正确</asp:Label></td>
                    </tr>
                    <tr>
                        <td height="14" class="tsbottomlabel">
                            <asp:Label id="Label33" runat="server" text="地址" value valuetodisplaytext></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <aspxform:XTextBox id="XTextBox204" runat="server" XDataBind="ProvinceID" HiddenExpress="1" Express="DF_CRM_SalesOpportunities.SAPOFAddress"></aspxform:XTextBox>
                            <%-- <aspxform:XDropDownList id="XDropDownList27" runat="server" xdatasource="TableName:DF_Comm_Province" valuecolumn="ProvinceName" displaycolumn="ProvinceName" datamap="ProvinceID->ProvinceID">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XDropDownList id="XDropDownList38" runat="server" xdatasource="TableName:DF_Comm_City;Filter:ProvinceID->ProvinceID" valuecolumn="CityName" displaycolumn="CityName">
                                <asp:ListItem>未绑定</asp:ListItem>
                            </aspxform:XDropDownList>--%>
                            <aspxform:XTextBox id="XTextBox29" runat="server" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TicketingAddress" Express="ProvinceID"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </tbody>
        </table>
        <aspxform:XDropDownList id="XDropDownList23" runat="server" HiddenExpress="1" DataMap="ComputeRate->DF_CRM_SalesOpportunities.ExchangeRate" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->DF_CRM_SalesOpportunities.ContractCurrency" Height="20" DisplayColumn="ComputeRate" ValueColumn="ComputeRate">
            <asp:ListItem>未绑定</asp:ListItem>
        </aspxform:XDropDownList>
        <aspxform:XDropDownList id="XDropDownList38" runat="server" HiddenExpress="1" DataMap="ComputeRate->meiyuan" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->USD" 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" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="meiyuan" HiddenExpress="1" Height="20"></aspxform:XTextBox>
        <br id="FinanceBr" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <table width="1200" align="center" class="table" id="PurchaseTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td width="1200" class="title1" colspan="4">
                        <asp:Label id="Label57" runat="server" text="采购信息" value valuetodisplaytext></asp:Label>
                        <input class="inputbtn" id="btn_PurchaseTbody" onclick="param.ShowHidden('btn_PurchaseTbody', 'PurchaseTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="PurchaseTbody">
                    <tr hidden="hidden">
                        <td class="ts">
                            <asp:Label id="Label50" runat="server" text="供应商审核"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XDropDownList id="XDrList" runat="server" HiddenExpress="1" DataMap="FormNo->DF_CRM_SalesOpportunities.ReferenceFormNo;opportunityName->DF_CRM_SalesOpportunities.opportunityName;opportunityName->DF_CRM_SalesOpportunities.ReferenceOpportunityName;SourcesOpportunity->DF_CRM_SalesOpportunities.SourcesOpportunity;SalesmanID->DF_CRM_SalesOpportunities.SalesmanID;CustomerName->SalesOpportunitiesCustomerName;CustomerContact->SalesOpportunitiesCustomerContact;Remarks->DF_CRM_SalesOpportunities.Remarks;Industry->DF_CRM_SalesOpportunities.Industry;SalesProgress->SalesProgress;EstimatedSalesAmount->DF_CRM_SalesOpportunities.EstimatedSalesAmount;CustomerBudget->DF_CRM_SalesOpportunities.CustomerBudget;SalesOpportunityValue->DF_CRM_SalesOpportunities.SalesOpportunityValue;SignatureDate->DF_CRM_SalesOpportunities.SignatureDate;BillingCompany->DF_CRM_SalesOpportunities.BillingCompany;SalesOrganization->DF_CRM_SalesOpportunities.SalesOrganization;SalesOrganizationCode->DF_CRM_SalesOpportunities.SalesOrganizationCode;ProductLine->DF_CRM_SalesOpportunities.ProductLine;ChannelOfDistribution->DF_CRM_SalesOpportunities.ChannelOfDistribution;ChannelOfDistribution->ChannelOfDistribution;SalesOffice->DF_CRM_SalesOpportunities.SalesOffice;EstimatedSalesAmount->DF_CRM_SalesOpportunities.EstimatedSalesAmount;CustomerBudget->DF_CRM_SalesOpportunities.CustomerBudget;SalesOpportunityValue->DF_CRM_SalesOpportunities.SalesOpportunityValue;STPName->DF_CRM_SalesOpportunities.STPName;STPSapID->DF_CRM_SalesOpportunities.STPSapID;STPAccountsReceivable->DF_CRM_SalesOpportunities.STPAccountsReceivable;STPCustomerLevel->DF_CRM_SalesOpportunities.STPCustomerLevel;STPOverdueAccountsReceivable->DF_CRM_SalesOpportunities.STPOverdueAccountsReceivable;STPClientTag->DF_CRM_SalesOpportunities.STPClientTag;STPOverdueAccountsReceivableExplanation->DF_CRM_SalesOpportunities.STPOverdueAccountsReceivableExplanation;SAPOFSapID->DF_CRM_SalesOpportunities.SAPOFSapID;SAPOFContact->DF_CRM_SalesOpportunities.SAPOFContact;SAPOFPhone->DF_CRM_SalesOpportunities.SAPOFPhone;SAPOFDepartment->DF_CRM_SalesOpportunities.SAPOFDepartment;SAPOFTelephone->DF_CRM_SalesOpportunities.SAPOFTelephone;SAPOFAddress->DF_CRM_SalesOpportunities.SAPOFAddress;SAPOFEmail->DF_CRM_SalesOpportunities.SAPOFEmail;PTPName->DF_CRM_SalesOpportunities.PTPName;PTPSapID->DF_CRM_SalesOpportunities.PTPSapID;PTPAccountsReceivable->DF_CRM_SalesOpportunities.PTPAccountsReceivable;PTPCustomerLevel->DF_CRM_SalesOpportunities.PTPCustomerLevel;PTPOverdueAccountsReceivable->DF_CRM_SalesOpportunities.PTPOverdueAccountsReceivable;PTPClientTag->DF_CRM_SalesOpportunities.PTPClientTag;PTPOverdueAccountsReceivableExplanation->DF_CRM_SalesOpportunities.PTPOverdueAccountsReceivableExplanation;IsRelatedCus->DF_CRM_SalesOpportunities.IsRelatedCus;PTPCreditLimit->DF_CRM_SalesOpportunities.PTPCreditLimit;PTPCreditRiskTotal->DF_CRM_SalesOpportunities.PTPCreditRiskTotal;CustomerDeliveryWay->DF_CRM_SalesOpportunities.CustomerDeliveryWay;CustomerDeliveryDate->DF_CRM_SalesOpportunities.CustomerDeliveryDate;NonstopAirport->DF_CRM_SalesOpportunities.NonstopAirport;Exemption->DF_CRM_SalesOpportunities.Exemption; TermsPayment->DF_CRM_SalesOpportunities.TermsPayment;TermsPaymentID ->DF_CRM_SalesOpportunities.TermsPaymentID;PaymentDays->DF_CRM_SalesOpportunities.PaymentDays; ActTermsPayment->DF_CRM_SalesOpportunities.ActTermsPayment; TaxType->DF_CRM_SalesOpportunities.TaxType;  NotesInvoice ->DF_CRM_SalesOpportunities.NotesInvoice;PaymentDaysExplanation ->DF_CRM_SalesOpportunities.PaymentDaysExplanation ;Rate ->DF_CRM_SalesOpportunities.Rate ; Rate->Rate; ExchangeRate ->DF_CRM_SalesOpportunities.ExchangeRate ; ContractCurrency->DF_CRM_SalesOpportunities.ContractCurrency ;  TaxLimit->DF_CRM_SalesOpportunities.TaxLimit ;ContractAmount ->DF_CRM_SalesOpportunities.ContractAmount  ;PaymentDaysCharge  ->DF_CRM_SalesOpportunities.PaymentDaysCharge;ImportTariff  ->DF_CRM_SalesOpportunities.ImportTariff;       InternationCIF->DF_CRM_SalesOpportunities.InternationCIF;BankFee  ->DF_CRM_SalesOpportunities.BankFee ;Quality ->DF_CRM_SalesOpportunities.Quality ;   SIPBFdeduct ->DF_CRM_SalesOpportunities.SIPBFdeduct  ; RetentionPaymentTerms  ->DF_CRM_SalesOpportunities.RetentionPaymentTerms ; SIPBFdeductRMB  ->DF_CRM_SalesOpportunities.SIPBFdeductRMB;     RetentionDebit ->DF_CRM_SalesOpportunities.RetentionDebit ;OtherCosts ->DF_CRM_SalesOpportunities.OtherCosts; OtherFee->DF_CRM_SalesOpportunities.OtherFee ; HOSICFee  ->DF_CRM_SalesOpportunities.HOSICFee;GrossMargin   ->DF_CRM_SalesOpportunities.GrossMargin ;       GrossProfitRate  ->DF_CRM_SalesOpportunities.GrossProfitRate ;RebateGrossMargin ->DF_CRM_SalesOpportunities.RebateGrossMargin  ; RebateGrossMarginString ->DF_CRM_SalesOpportunities.RebateGrossMarginString;ContractType ->DF_CRM_SalesOpportunities.ContractType ;Accessory ->DF_CRM_SalesOpportunities.Accessory; OFAccessory->DF_CRM_SalesOpportunities.OFAccessory;Accessory1->DF_CRM_SalesOpportunities.Accessory1 ;TicketingAddress->DF_CRM_SalesOpportunities.TicketingAddress ;TicketingTel->DF_CRM_SalesOpportunities.TicketingTel ;TicketingPhone->DF_CRM_SalesOpportunities.TicketingPhone;TicketingContacts->DF_CRM_SalesOpportunities.TicketingContacts;TicketingCompany->DF_CRM_SalesOpportunities.TicketingCompany;   MailTicket->DF_CRM_SalesOpportunities.MailTicket;CustomerReceivingName->DF_CRM_SalesOpportunities.CustomerReceivingName; CustomerReceivingContacts->DF_CRM_SalesOpportunities.CustomerReceivingContacts ;CustomerReceivingLandline->DF_CRM_SalesOpportunities.CustomerReceivingLandline ;CustomerReceivingPhone->DF_CRM_SalesOpportunities.CustomerReceivingPhone;CustomerReceivingAdress->DF_CRM_SalesOpportunities.CustomerReceivingAdress;CustomerReceivingZipCode->DF_CRM_SalesOpportunities.CustomerReceivingZipCode;CustomerReceivingOther->DF_CRM_SalesOpportunities.CustomerReceivingOther;ResponsibleContractsName->DF_CRM_SalesOpportunities.ResponsibleContractsName; ResponsibleContractsLandline->DF_CRM_SalesOpportunities.ResponsibleContractsLandline; ResponsibleContractsPhone->DF_CRM_SalesOpportunities.ResponsibleContractsPhone;      ResponsibleEmail ->DF_CRM_SalesOpportunities.ResponsibleEmail;SUMNPDSellingTotalvalueRest->DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRest;SUMPDSellingTotalvalueRMB->DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRMB ;SUMNPDSellingTotalvalueRMB->DF_CRM_SalesOpportunities.SUMNPDSellingTotalvalueRMB;SUMPDPurchaseTotalvalueRest->DF_CRM_SalesOpportunities.SUMPDPurchaseTotalvalueRest;SUMNPDPurchaseTotalvalueRest->DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRest;SUMPDPurchaseTotalvalueRMB->DF_CRM_SalesOpportunities.SUMPDPurchaseTotalvalueRMB;SUMNPDPurchaseTotalvalueRMB->DF_CRM_SalesOpportunities.SUMNPDPurchaseTotalvalueRMB;   ConfirmationInvoiceMailing->DF_CRM_SalesOpportunities.ConfirmationInvoiceMailing; ConfirmationDelivery->DF_CRM_SalesOpportunities.ConfirmationDelivery; SUMPDSellingTotalvalueRest->DF_CRM_SalesOpportunities.SUMPDSellingTotalvalueRest; GoodsEnglishCompany->DF_CRM_SalesOpportunities.GoodsEnglishCompany;GoodsEnglishAddress->DF_CRM_SalesOpportunities.GoodsEnglishAddress;GoodsNotifier->DF_CRM_SalesOpportunities.GoodsNotifier; GoodsPhone->DF_CRM_SalesOpportunities.GoodsPhone;GoodsTel->DF_CRM_SalesOpportunities.GoodsTel;    GoodsBusinessLicense->DF_CRM_SalesOpportunities.GoodsBusinessLicense;GoodsEmail->DF_CRM_SalesOpportunities.GoodsEmail;GoodsPortArrival->DF_CRM_SalesOpportunities.GoodsPortArrival; GoodsCountryOrigin->DF_CRM_SalesOpportunities.GoodsCountryOrigin;GoodsPortDelivery->DF_CRM_SalesOpportunities.GoodsPortDelivery; PaymentAddress->DF_CRM_SalesOpportunities.PaymentAddress;PaymentTaxNumber->DF_CRM_SalesOpportunities.PaymentTaxNumber; PaymentTel->DF_CRM_SalesOpportunities.PaymentTel;BankAccount->DF_CRM_SalesOpportunities.BankAccount; BankName->DF_CRM_SalesOpportunities.BankName;   AnnexFollowingOrder->DF_CRM_SalesOpportunities.AnnexFollowingOrder;STPClientBPMID->BPMID;PTPClientBPMID->DF_CRM_SalesOpportunities.PTPClientBPMID;SourcesOpportunity->DF_CRM_SalesOpportunities.SourcesOpportunity;BranchID->DF_CRM_SalesOpportunities.BranchID; CreditControlState->DF_CRM_SalesOpportunities.CreditControlState;DepositMode->DF_CRM_SalesOpportunities.DepositMode;NonStandardClauses->DF_CRM_SalesOpportunities.NonStandardClauses;ObjName->DF_CRM_SalesOpportunities.ObjName;CustomerID->SalesOpportunitiesCustomerID;    SelfMention->DF_CRM_SalesOpportunities.SelfMention;SAPZipCode->DF_CRM_SalesOpportunities.SAPZipCode;SAPEmail->DF_CRM_SalesOpportunities.SAPEmail;SevenContractPayment->DF_CRM_SalesOpportunities.SevenContractPayment;ReceivedInvoiceContractPayment->DF_CRM_SalesOpportunities.ReceivedInvoiceContractPayment;SalesLeadsID->DF_CRM_SalesOpportunities.SalesLeadsID;Fax->DF_CRM_SalesOpportunities.Fax;ContactTel->DF_CRM_SalesOpportunities.ContactTel;ElectronicChapterType->DF_CRM_SalesOpportunities.ElectronicChapterType; KeysightTechnologiesChineseName->DF_CRM_SalesOpportunities.KeysightTechnologiesChineseName;KeysightTechnologiesEnglishName->DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishName;      KeysightTechnologiesVendorSalesperson->DF_CRM_SalesOpportunities.KeysightTechnologiesVendorSalesperson;KeysightTechnologiesEnglishAdress->DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishAdress;TEKChineseName->DF_CRM_SalesOpportunities.TEKChineseName;TEKFlukeExpectedDateExemption->DF_CRM_SalesOpportunities.TEKFlukeExpectedDateExemption;TEKFlukeDemandShipment->DF_CRM_SalesOpportunities.TEKFlukeDemandShipment;TEKFlukeSalesman->DF_CRM_SalesOpportunities.TEKFlukeSalesman;TEKFlukeExplain->DF_CRM_SalesOpportunities.TEKFlukeExplain;BKChineseName->DF_CRM_SalesOpportunities.BKChineseName; BKEnglishName->DF_CRM_SalesOpportunities.BKEnglishName;BKContacts->DF_CRM_SalesOpportunities.BKContacts;AMTEKChineseName->DF_CRM_SalesOpportunities.AMTEKChineseName;AMTEKEnglishName->DF_CRM_SalesOpportunities.AMTEKEnglishName;AMTEKContacts->DF_CRM_SalesOpportunities.AMTEKContacts;AMTEKTel->DF_CRM_SalesOpportunities.AMTEKTel;AMTEKAdress->DF_CRM_SalesOpportunities.AMTEKAdress; HIOKIChineseName->DF_CRM_SalesOpportunities.HIOKIChineseName;HIOKIContacts->DF_CRM_SalesOpportunities.HIOKIContacts;HIOKITel->DF_CRM_SalesOpportunities.HIOKITel;HIOKIAgentName->DF_CRM_SalesOpportunities.HIOKIAgentName;  HIOKIAgentContacts->DF_CRM_SalesOpportunities.HIOKIAgentContacts;HIOKIAgentTel->DF_CRM_SalesOpportunities.HIOKIAgentTel;ChrysanthemumChineseName->DF_CRM_SalesOpportunities.ChrysanthemumChineseName;ChrysanthemumSalesman->DF_CRM_SalesOpportunities.ChrysanthemumSalesman;DahuaNewspaperNumber->DF_CRM_SalesOpportunities.DahuaNewspaperNumber;EdKorsChineceName->DF_CRM_SalesOpportunities.EdKorsChineceName;CleaningReasonNo->DF_CRM_SalesOpportunities.CleaningReasonNo;AddedContract->DF_CRM_SalesOpportunities.AddedContract;AddedDeliver->DF_CRM_SalesOpportunities.AddedDeliver;Addedinvoice->DF_CRM_SalesOpportunities.Addedinvoice;ReasonsValueAdded->DF_CRM_SalesOpportunities.ReasonsValueAdded;ReasonsValueAddedQt->DF_CRM_SalesOpportunities.ReasonsValueAddedQt;CleanerDeliver->DF_CRM_SalesOpportunities.CleanerDeliver;Cleanerinvoice->DF_CRM_SalesOpportunities.Cleanerinvoice;MailTicketCustomID->DF_CRM_SalesOpportunities.MailTicketCustomID;CustomerReceivingId->DF_CRM_SalesOpportunities.CustomerReceivingId;CustomerReceivingContactsSex->DF_CRM_SalesOpportunities.CustomerReceivingContactsSex;ContractSex->DF_CRM_SalesOpportunities.ContractSex;GoodsNotifierSex->DF_CRM_SalesOpportunities.GoodsNotifierSex;ExpectedIssuingDate->DF_CRM_SalesOpportunities.ExpectedIssuingDate;FreeDate->DF_CRM_SalesOpportunities.FreeDate;UserExemptionName->DF_CRM_SalesOpportunities.UserExemptionName;UserExemptionEmail->DF_CRM_SalesOpportunities.UserExemptionEmail;UserExemptionPhone->DF_CRM_SalesOpportunities.UserExemptionPhone;UserCardName->DF_CRM_SalesOpportunities.UserCardName;UserCardEmail->DF_CRM_SalesOpportunities.UserCardEmail;UserCardPhone->DF_CRM_SalesOpportunities.UserCardPhone;KeysightTechnologiesEnglishTel->DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishTel;KeysightTechnologiesEnglishEmail->DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishEmail;KeysightTechnologiesConfirm->DF_CRM_SalesOpportunities.KeysightTechnologiesConfirm;MEUR->DF_CRM_SalesOpportunities.MEUR;KeysightTechnologiesChineseAdress->DF_CRM_SalesOpportunities.KeysightTechnologiesChineseAdress;ManufacturerRemarks->DF_CRM_SalesOpportunities.ManufacturerRemarks;NICustomerContact->DF_CRM_SalesOpportunities.NICustomerContact;NICustomerContactEmail->DF_CRM_SalesOpportunities.NICustomerContactEmail;NICustomerName->DF_CRM_SalesOpportunities.NICustomerName;" XDataSource="TableName:V_DF_CRM_SalesOpportunitiesInfo;Filter:ItemId->DF_CRM_SalesOpportunities.BackfillItemId;Review->DF_CRM_SalesOpportunities.Review;IsTendering->DF_CRM_SalesOpportunities.IsTendering;RapidSales->DF_CRM_SalesOpportunities.RapidSales" Height="20" DisplayColumn="ComputeRate" ValueColumn="ComputeRate"></aspxform:XDropDownList>
                            <aspxform:XTextBox id="ChannelOfDistribution" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="ChannelOfDistribution" HiddenInput="true"></aspxform:XTextBox>
                            <aspxform:XTextBox id="InvoiceType" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="InvoiceType" HiddenInput="true"></aspxform:XTextBox>
                            <aspxform:XTextBox id="Rate" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="Rate" HiddenInput="true"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="title1" colspan="4">
                            <asp:Label id="Label79" runat="server" text="厂商订货下单要求信息" value valuetodisplaytext font-size="12px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="ts" style="WIDTH: 1%">
                            <asp:Label id="Label97" runat="server" text="备注"></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <aspxform:XTextBox id="ManufacturerRemarks" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ManufacturerRemarks" TextMode="MultiLine" Rows="5"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hiddenexpress="1">
                        <td width="1200" class="tsbottomlabel">
                            <asp:Label id="Label114" runat="server" text="厂商下单要求文档上传" value valuetodisplaytext></asp:Label></td>
                        <td height="22" class="tsbottomtext" colspan="3">
                            <aspxform:XAttachments id="AnnexFollowingOrder" runat="server" Width="100%" XDataBind="DF_CRM_SalesOpportunities.AnnexFollowingOrder" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;*.msg;*.eml"></aspxform:XAttachments>
                        </td>
                    </tr>
                    <tr name="kts">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label13" runat="server" text="是德" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="kts">
                        <td class="ts">
                            <asp:Label id="Label80" runat="server" text="最终客户中文公司全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="KeysightSapID" runat="server" Width="70px" XDataBind="KeysightSapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="KeysightSapName" runat="server" Width="70px" XDataBind="KeysightSapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="KeysightTechnologiesChineseName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesChineseName" HiddenExpress="javascript('param.OrderToManufactureShow',DF_CRM_MarketInquiryApparatusList.PurchasingPattern,DF_CRM_MarketInquiryApparatusList.PrchaseCurrency,DF_CRM_MarketInquiryApparatusList.SupplierSAPID,DF_CRM_MarketInquiryApparatusList.DirectDistribution,DF_CRM_MarketInquiryApparatusList.SupplierCustomerName,DF_CRM_MarketInquiryApparatusList.BusinessClassification)"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton11" runat="server" Text="查询历史" DataMap="KeysightTechnologiesChineseName->DF_CRM_SalesOpportunities.KeysightTechnologiesChineseName;KeysightTechnologiesChineseAdress->DF_CRM_SalesOpportunities.KeysightTechnologiesChineseAdress;KeysightTechnologiesEnglishName->DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishName;KeysightTechnologiesEnglishAdress->DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishAdress" XDataSource="TableName:V_DF_CRM_Keysight;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->KeysightSapName,SupplierSAPID->KeysightSapID;" DisplayColumns="KeysightTechnologiesChineseName:最终客户中文公司全称;KeysightTechnologiesChineseAdress:中文地址;KeysightTechnologiesEnglishName:最终客户英文公司全称;KeysightTechnologiesEnglishAdress:英文地址"></aspxform:XDataBrowserButton>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label81" runat="server" text="最终客户英文公司全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="KeysightTechnologiesEnglishName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishName"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="kts">
                        <td class="ts">
                            最终客户中文地址</td>
                        <td class="ts1">
                            <aspxform:XTextBox id="KeysightTechnologiesChineseAdress" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesChineseAdress"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label20" runat="server" text="最终客户英文地址"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="KeysightTechnologiesEnglishAdress" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishAdress"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hidden="hidden" name="kts">
                        <td class="ts">
                            <asp:Label id="Label21" runat="server" text="确认"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XCheckBox id="KeysightTechnologiesConfirm" runat="server" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesConfirm"></aspxform:XCheckBox>
                        </td>
                        <td class="ts">
                        </td>
                        <td class="ts1">
                        </td>
                    </tr>
                    <tr name="kts_fx">
                        <td class="ts">
                            <asp:Label id="Label151" runat="server" text="上传附件"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XAttachments id="XAttachments3" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KYSAttachment1"></aspxform:XAttachments>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label169" runat="server" text="上传附件说明"></asp:Label></td>
                        <td class="tsbottomtext">
                            <asp:Label id="Label166" runat="server" text="教育折扣订单：需要提供给客户的报价单、教育证明" forecolor="Blue"></asp:Label>
                            <br />
                            <asp:Label id="Label168" runat="server" text="特折订单：是德工程师审批邮件、特折申请表" forecolor="Blue"></asp:Label></td>
                    </tr>
                    <tr name="kts_z">
                        <td class="ts">
                            <asp:Label id="Label22" runat="server" text="厂商销售人员"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="KeysightTechnologiesVendorSalesperson" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesVendorSalesperson"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label7" runat="server" text="厂商销售人员电话"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="KeysightTechnologiesEnglishTel" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishTel"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="kts_z">
                        <td class="ts">
                            <asp:Label id="Label8" runat="server" text="厂商销售人员邮箱"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="KeysightTechnologiesEnglishEmail" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KeysightTechnologiesEnglishEmail"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="kts_z">
                        <td class="ts">
                            <asp:Label id="Label123" runat="server" text="上传附件"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XAttachments id="KYSAttachment1" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.KYSAttachment2"></aspxform:XAttachments>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label174" runat="server" text="上传附件说明"></asp:Label></td>
                        <td class="ts1">
                            <asp:Label id="Label175" runat="server" text="三方盖章表" forecolor="Blue"></asp:Label></td>
                    </tr>
                    <tr name="TEKFLUKETitle">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label25" runat="server" text="TEK&amp;FLUKE" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="TEKFLUKETitle">
                        <td class="tsbottomlabel">
                            <asp:Label id="Label75" runat="server" text="厂商销售人员"></asp:Label></td>
                        <td class="tsbottomtext">
                            <aspxform:XTextBox id="TEKFlukeSapID" runat="server" XDataBind="TEKFlukeSapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="TEKFlukeSapName" runat="server" XDataBind="TEKFlukeSapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="TEKFlukeSalesman" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TEKFlukeSalesman"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton12" runat="server" Text="查询历史" DataMap="TEKFlukeSalesman->DF_CRM_SalesOpportunities.TEKFlukeSalesman;TEKChineseName->DF_CRM_SalesOpportunities.TEKChineseName;" XDataSource="TableName:V_DF_CRM_TEKFluke;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->TEKFlukeSapName,SupplierSAPID->TEKFlukeSapID;" DisplayColumns="TEKFlukeSalesman:厂商销售人员;TEKChineseName:最终客户中文全称; "></aspxform:XDataBrowserButton>
                        </td>
                        <td class="tsbottomlabel">
                        </td>
                        <td class="tsbottomtext">
                        </td>
                    </tr>
                    <tr name="TEKFLUKE">
                        <td class="ts" name="TEKFLUKE">
                            <asp:Label id="Label82" runat="server" text="最终客户中文全称"></asp:Label></td>
                        <td class="ts1" colspan="3" name="TEKFLUKE">
                            <aspxform:XTextBox id="TEKChineseName" runat="server" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TEKChineseName"></aspxform:XTextBox>
                            <aspxform:XCheckBox id="TEKConfirm" runat="server" Width="20%" XDataBind="DF_CRM_SalesOpportunities.TEKConfirm" HiddenExpress="1" Text="确认"></aspxform:XCheckBox>
                        </td>
                    </tr>
                    <tr name="TEKFLUKEWB">
                        <td class="ts">
                            <asp:Label id="Label86" runat="server" text="免表预计办好日期"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XDateTimePicker id="TEKFlukeExpectedDateExemption" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TEKFlukeExpectedDateExemption"></aspxform:XDateTimePicker>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label84" runat="server" text="客户需求货期"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XDateTimePicker id="TEKFlukeDemandShipment" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TEKFlukeDemandShipment"></aspxform:XDateTimePicker>
                            <aspxform:XCheckBox id="TEKWBConfirm" runat="server" Width="20%" XDataBind="DF_CRM_SalesOpportunities.TEKWBConfirm" HiddenExpress="1" Text="确认"></aspxform:XCheckBox>
                        </td>
                    </tr>
                    <tr name="TEKFLUKE">
                        <td class="ts">
                            <asp:Label id="Label176" runat="server" text="上传附件"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XAttachments id="XAttachments4" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TEKAttachment"></aspxform:XAttachments>
                        </td>
                        <td class="ts" name="TEKFLUKE">
                            <asp:Label id="Label177" runat="server" text="上传附件说明"></asp:Label></td>
                        <td class="ts1" name="TEKFLUKE">
                            <asp:Label id="Label178" runat="server" text="东方中科与学校合同（要与报备相同）" forecolor="Blue"></asp:Label></td>
                    </tr>
                    <tr hiddenexpress="1">
                        <td class="ts">
                            <asp:Label id="Label85" runat="server" text="说明"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="TEKFlukeExplain" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.TEKFlukeExplain"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="BK">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label42" runat="server" text="B&amp;K" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="BK">
                        <td class="ts">
                            <asp:Label id="Label87" runat="server" text="最终客户中文公司全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="BKSapID" runat="server" Width="70px" XDataBind="BKSapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BKSapName" runat="server" Width="70px" XDataBind="BKSapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BKChineseName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BKChineseName"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton13" runat="server" Text="查询历史" DataMap="BKChineseName->DF_CRM_SalesOpportunities.BKChineseName;BKEnglishName->DF_CRM_SalesOpportunities.BKEnglishName;BKContacts->DF_CRM_SalesOpportunities.BKContacts;" XDataSource="TableName:V_DF_CRM_BK;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->BKSapName,SupplierSAPID->BKSapID;" DisplayColumns="BKChineseName:最终客户中文公司全称;BKEnglishName:最终客户英文公司全称;BKContacts:客户联系人; "></aspxform:XDataBrowserButton>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label83" runat="server" text="最终客户英文公司全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="BKEnglishName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BKEnglishName"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="BK">
                        <td class="ts">
                            <asp:Label id="Label73" runat="server" text="客户联系人"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="BKContacts" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.BKContacts"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="AMTEK">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label131" runat="server" text="AMTEK" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="AMTEK">
                        <td class="ts">
                            <asp:Label id="Label132" runat="server" text="最终客户中文公司全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="AMTEKSapID" runat="server" Width="70px" XDataBind="AMTEKSapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="AMTEKSapName" runat="server" Width="70px" XDataBind="AMTEKSapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="AMTEKChineseName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.AMTEKChineseName"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton14" runat="server" Text="查询历史" DataMap="AMTEKChineseName->DF_CRM_SalesOpportunities.AMTEKChineseName;AMTEKEnglishName->DF_CRM_SalesOpportunities.AMTEKEnglishName;AMTEKContacts->DF_CRM_SalesOpportunities.AMTEKContacts;AMTEKTel->DF_CRM_SalesOpportunities.AMTEKTel;AMTEKAdress->DF_CRM_SalesOpportunities.AMTEKAdress;" XDataSource="TableName:V_DF_CRM_AMETEK;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->AMTEKSapName,SupplierSAPID->AMTEKSapID;" DisplayColumns="AMTEKChineseName:最终客户中文公司全称;AMTEKEnglishName:最终客户英文公司全称;AMTEKContacts:客户联系人;AMTEKAdress:地址;AMTEKTel:客户电话; "></aspxform:XDataBrowserButton>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label133" runat="server" text="最终客户英文公司全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="AMTEKEnglishName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.AMTEKEnglishName"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="AMTEK">
                        <td class="ts">
                            <asp:Label id="Label135" runat="server" text="客户联系人"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="AMTEKContacts" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.AMTEKContacts"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label136" runat="server" text="客户电话"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="AMTEKTel" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.AMTEKTel"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="AMTEK">
                        <td class="ts">
                            <asp:Label id="Label134" runat="server" text="客户地址"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="AMTEKAdress" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.AMTEKAdress"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="NF">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label182" runat="server" text="NF" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="NF">
                        <td class="ts">
                            <asp:Label id="Label179" runat="server" text="上传附件"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XAttachments id="XAttachments5" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.NFAttachment"></aspxform:XAttachments>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label180" runat="server" text="上传附件说明"></asp:Label></td>
                        <td class="ts1">
                            <asp:Label id="Label181" runat="server" text="需要提供最终客户信息表（NF最终用户申明）" forecolor="Blue"></asp:Label></td>
                    </tr>
                    <tr name="HIOKI">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label137" runat="server" text="HIOKI 日置" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="HIOKI">
                        <td class="ts">
                            <asp:Label id="Label138" runat="server" text="最终客户中文全称"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="HIOKISapID" runat="server" Width="70px" XDataBind="HIOKISapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="HIOKISapName" runat="server" Width="70px" XDataBind="HIOKISapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="HIOKIChineseName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HIOKIChineseName"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton17" runat="server" Text="查询历史" DataMap="HIOKIChineseName->DF_CRM_SalesOpportunities.HIOKIChineseName;HIOKIContacts->DF_CRM_SalesOpportunities.HIOKIContacts;HIOKITel->DF_CRM_SalesOpportunities.HIOKITel;" XDataSource="TableName:V_DF_CRM_HIOKI;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->HIOKISapName,SupplierSAPID->HIOKISapID;" DisplayColumns="HIOKIChineseName:最终客户中文公司全称;HIOKIContacts:客户联系人;HIOKITel:客户电话;"></aspxform:XDataBrowserButton>
                        </td>
                    </tr>
                    <tr name="HIOKI">
                        <td class="ts">
                            <asp:Label id="Label140" runat="server" text="客户联系人"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="HIOKIContacts" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HIOKIContacts"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label141" runat="server" text="客户电话"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="HIOKITel" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HIOKITel"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="HIOKI_fx">
                        <td class="ts">
                            <asp:Label id="Label142" runat="server" text="二级代理商名称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="HIOKIAgentName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HIOKIAgentName"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label139" runat="server" text="代理商联系人"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="HIOKIAgentContacts" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HIOKIAgentContacts"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="HIOKI_fx">
                        <td class="ts">
                            <asp:Label id="Label143" runat="server" text="代理商电话"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="HIOKIAgentTel" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.HIOKIAgentTel"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="JS">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label144" runat="server" text="菊水" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="JS">
                        <td class="ts">
                            <asp:Label id="Label145" runat="server" text="最终客户中文全称"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="ChrysanthemumSapID" runat="server" Width="70px" XDataBind="ChrysanthemumSapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="ChrysanthemumSapName" runat="server" Width="70px" XDataBind="ChrysanthemumSapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="ChrysanthemumChineseName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ChrysanthemumChineseName"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton15" runat="server" Text="查询历史" DataMap="ChrysanthemumChineseName->DF_CRM_SalesOpportunities.ChrysanthemumChineseName;ChrysanthemumSalesman->DF_CRM_SalesOpportunities.ChrysanthemumSalesman;" XDataSource="TableName:V_DF_CRM_Chrysanthemum;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->ChrysanthemumSapName,SupplierSAPID->ChrysanthemumSapID;" DisplayColumns="ChrysanthemumChineseName:最终客户中文公司全称;ChrysanthemumSalesman:厂商销售人员名;"></aspxform:XDataBrowserButton>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label146" runat="server" text="厂商销售人员名"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="ChrysanthemumSalesman" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ChrysanthemumSalesman"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="DH">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label147" runat="server" text="大华" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="DH">
                        <td class="ts">
                            <asp:Label id="Label148" runat="server" text="厂商报备单号"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="DahuaNewspaperNumber" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.DahuaNewspaperNumber"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr name="ADKS">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label149" runat="server" text="艾德克斯" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="ADKS">
                        <td class="ts">
                            <asp:Label id="Label150" runat="server" text="最终客户中文全称"></asp:Label></td>
                        <td class="ts1" colspan="3">
                            <aspxform:XTextBox id="EdKorsSapID" runat="server" Width="70px" XDataBind="EdKorsSapID" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="EdKorsSapName" runat="server" Width="70px" XDataBind="EdKorsSapName" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="EdKorsChineceName" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.EdKorsChineceName"></aspxform:XTextBox>
                            <aspxform:XCheckBox id="EdKorsConfirm" style="FLOAT: right; MARGIN-RIGHT: 115px" runat="server" XDataBind="DF_CRM_SalesOpportunities.EdKorsConfirm" HiddenExpress="1"></aspxform:XCheckBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton16" runat="server" Text="查询历史" DataMap="EdKorsChineceName->DF_CRM_SalesOpportunities.EdKorsChineceName;" XDataSource="TableName:V_DF_CRM_EdKors;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->EdKorsSapName,SupplierSAPID->EdKorsSapID;" DisplayColumns="EdKorsChineceName:最终客户中文公司全称;"></aspxform:XDataBrowserButton>
                        </td>
                    </tr>
					  <tr name="NI">
                        <td height="18" class="title1" colspan="4">
                            <asp:Label id="Label195" runat="server" text="NI恩艾" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                    </tr>
                    <tr name="NI">
                         <td class="ts">
                            <asp:Label id="Label196" runat="server" text="最终客户中文全称"></asp:Label></td>
                          <td class="ts1" colspan="3">
                               <aspxform:XTextBox  runat="server" ID="NICustomerSAPID"  XDataBind="NICustomerSAPID" HiddenExpress="1"></aspxform:XTextBox>
                              <aspxform:XTextBox  runat="server" ID="NICustomerSAPName" XDataBind="NICustomerSAPName"  HiddenExpress="1"></aspxform:XTextBox>
                               <aspxform:XTextBox  runat="server" ID="NICustomerName" XDataBind="DF_CRM_SalesOpportunities.NICustomerName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                <aspxform:XDataBrowserButton id="XDataBrowserButton18" runat="server" Text="查询历史" DataMap="NICustomerName->DF_CRM_SalesOpportunities.NICustomerName;NICustomerContact->DF_CRM_SalesOpportunities.NICustomerContact;NICustomerContactEmail->DF_CRM_SalesOpportunities.NICustomerContactEmail;" XDataSource="TableName:V_DF_CRM_NICustomerName;Filter:SalesmanID->DF_CRM_SalesOpportunities.SalesmanID,SupplierCustomerName->NICustomerSAPName,SupplierSAPID->NICustomerSAPID;" DisplayColumns="NICustomerName:最终客户中文公司全称;NICustomerContact:最终客户联系人"></aspxform:XDataBrowserButton>
                  
                               </td>
                     </tr>
                      <tr name="NI">
                        <td height="18" class="ts" >
                            <asp:Label id="Label197" runat="server" text="最终客户联系人" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                           <td class="ts1">
                                <aspxform:XTextBox  runat="server" ID="NICustomerContact" XDataBind="DF_CRM_SalesOpportunities.NICustomerContact" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                           </td>
                            <td height="18" class="ts">
                            <asp:Label id="Label198" runat="server" text="联系人邮箱" value valuetodisplaytext font-size="12px"></asp:Label>&nbsp; 
                        </td>
                           <td class="ts1">
                                <aspxform:XTextBox  runat="server" ID="NICustomerContactEmail" XDataBind="DF_CRM_SalesOpportunities.NICustomerContactEmail" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                           </td>
                    </tr>
                </tbody>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" id="MEURTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td height="22" class="title1" colspan="4">
                        <asp:Label id="Label188" runat="server" text="MEU/MEUR客户分类" value valuetodisplaytext></asp:Label>&nbsp; 
                        <input class="inputbtn" id="btn_MEURTbody" onclick="param.ShowHidden('btn_MEURTbody', 'MEURTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="MEURTbody">
                    <tr>
                        <td class="ts">
                            <asp:Label id="Label153" runat="server" text="MEU/MEUR客户分类"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XDropDownList id="MEUR" runat="server" Width="70%" XDataBind="DF_CRM_SalesOpportunities.MEUR" PromptText="--请选择--">
                                <asp:ListItem>A类</asp:ListItem>
                                <asp:ListItem>B类</asp:ListItem>
                                <asp:ListItem>C类</asp:ListItem>
                                <asp:ListItem>D类</asp:ListItem>
                                <asp:ListItem>E类</asp:ListItem>
                            </aspxform:XDropDownList>
                        </td>
                        <td class="ts" style="WIDTH: 7%">
                            <asp:Label id="Label155" runat="server" text="MEU/MEUR的具有法律效力的书面证明"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XAttachments id="MEURAttachments" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.MEURAttachments"></aspxform:XAttachments>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts">
                            <asp:Label id="Label189" runat="server" text="备注"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="MEURemarks" style="BORDER-BOTTOM: #e4e5e7 1px solid" runat="server" Width="100%" XDataBind="DF_CRM_SalesOpportunities.MEURemarks" TextMode="MultiLine" name="MEURemarks" CssClass="MEURemarks" Rows="2"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label190" runat="server" text="MEU/MEUR客户分类的判定材料"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XAttachments id="MEURJudgingMaterials" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.MEURJudgingMaterials"></aspxform:XAttachments>
                        </td>
                    </tr>
                </tbody>
            </tbody>
        </table>
        <br id="PurchaseBr" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' " />
        <table width="1200" align="center" class="table" id="ContractTable" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_CRM_SalesOpportunities.SalesProgress!='50%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='70%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp;DF_CRM_SalesOpportunities.SalesProgress!='100%' ">
            <tbody>
                <tr>
                    <td width="1200" class="title1" colspan="4">
                        <asp:Label id="Label16" runat="server" text="合同信息" value valuetodisplaytext></asp:Label>
                        <input class="inputbtn" id="btn_ContractTbody" onclick="param.ShowHidden('btn_ContractTbody', 'ContractTbody');" type="button" size="46" value=▽展开 />
                    </td>
                </tr>
                <tbody id="ContractTbody">
                    <tr id="contractType">
                        <td class="ts">
                            <asp:Label id="Label121" runat="server" text="销售合同模板"></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <aspxform:XRadioButtonList id="XRadioButtonList7" runat="server" XDataBind="DF_CRM_SalesOpportunities.ContractType" DisableExpress="DF_CRM_SalesOpportunities.SalesOrganizationCode=='A300' || DF_CRM_SalesOpportunities.SalesOrganizationCode=='2000'" RepeatDirection="Horizontal">
                                <asp:ListItem>我司标准合同且标准条款</asp:ListItem>
                                <asp:ListItem>客户合同模板</asp:ListItem>
                                <asp:ListItem>我司标准合同且非标准条款</asp:ListItem>
                                <asp:ListItem>客户PO</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr id="informalTr">
                        <td class="ts">
                            <asp:Label id="Label173" runat="server" text="合同预览"></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <input class="inputbtn" id="btn_BusinessApprovals" style="WIDTH: 150px" onclick="param.btnBusinessApprovals();" type="button" size="46" value="生成合同预览" />
                        </td>
                    </tr>
                    <tr id="ElectronicChapterTypes" hiddenexpress="DF_CRM_SalesOpportunities.ContractType=='客户合同模板'||  DF_CRM_SalesOpportunities.ContractType=='' || DF_CRM_SalesOpportunities.SalesOrganizationCode=='A300' || DF_CRM_SalesOpportunities.SalesOrganizationCode=='2000' ||DF_CRM_SalesOpportunities.ContractType=='客户PO' ">
                        <td class="ts">
                            <asp:Label id="Label130" runat="server" text="是否盖合同电子章"></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <aspxform:XRadioButtonList id="ElectronicChapterType" runat="server" XDataBind="DF_CRM_SalesOpportunities.ElectronicChapterType" RepeatDirection="Horizontal" name="ElectronicChapterType">
                                <asp:ListItem Selected="True">是</asp:ListItem>
                                <asp:ListItem>否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts">
                            <asp:Label id="Label191" runat="server" text="销售合同中是否包含验收条款"></asp:Label></td>
                        <td class="tsbottomtext" colspan="3">
                            <aspxform:XRadioButtonList id="IsAcceptanceClause" runat="server" XDataBind="DF_CRM_SalesOpportunities.IsAcceptanceClause" RepeatDirection="Horizontal">
                                <asp:ListItem>是</asp:ListItem>
                                <asp:ListItem>否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr hidden="hidden">
                        <td class="ts">
                            <asp:Label id="Label128" runat="server" text="7日支付合同款"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="SevenContractPayment" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.SevenContractPayment"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label129" runat="server" text="收到发票后支付款"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="ReceivedInvoiceContractPayment" runat="server" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ReceivedInvoiceContractPayment"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr hidden="hidden">
                        <td class="ts">
                            <asp:Label id="Label122" runat="server" text="非标准条款"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="SaveState" runat="server" XDataBind="DF_CRM_SalesOpportunities.SaveState" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="NonStandardClauses" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.NonStandardClauses" Express="javascript('param.GetNonStandardClauses',DF_CRM_SalesOpportunities.ContractType)" DisableExpress="DF_CRM_SalesOpportunities.ContractType!='我司标准合同且非标准条款'" TextMode="MultiLine"></aspxform:XTextBox>
                            <aspxform:XTextBox id="tbNonStandardClauses" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="NonStandardClauses" HiddenExpress="1" Express="DF_CRM_SalesOpportunities.NonStandardClauses" TextMode="MultiLine"></aspxform:XTextBox>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label127" runat="server" text="合同签订地点"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="LocationSignature" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="LocationSignature"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr id="trGenerationContractButton" hiddenexpress="DF_CRM_SalesOpportunities.SalesOrganizationCode=='A300' || DF_CRM_SalesOpportunities.SalesOrganizationCode=='2000' ||  DF_CRM_SalesOpportunities.SAPQuotation=='' || DF_CRM_SalesOpportunities.ContractType=='客户PO'">
                        <%--       --%> 
                        <td height="22" class="tsbottomlabel" colspan="4">
                            <aspxform:XTextBox id="ManufacturerProductsExamine" runat="server" XDataBind="ManufacturerProductsExamine" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BUButtonExamine" runat="server" XDataBind="BUButtonExamine" HiddenExpress="1"></aspxform:XTextBox>
                            <input id="GenerationContractButton" onclick="param.GenerationContract()" type="button" value="正式合同盖章" hidden="hidden" />
                            <aspxform:XTextBox id="ObjName" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ObjName" HiddenExpress="1"></aspxform:XTextBox>
                            <input id="ButtonGenerationContract" onclick="param.ButtonGenerationContract()" type="button" value="查看合同" hiddenexpress="DF_CRM_SalesOpportunities.SAPQuotation==''|| DF_CRM_SalesOpportunities.ContractType=='客户PO'" />
                            <input id="DownGenerationContract" onclick="param.DownGenerationContract()" type="button" value="下载合同" hiddenexpress="DF_CRM_SalesOpportunities.SAPQuotation=='' || DF_CRM_SalesOpportunities.ContractType=='客户PO'" />
                        </td>
                    </tr>
                    <tr id="trXAttachments1" hiddenexpress="DF_CRM_SalesOpportunities.ContractType!='客户合同模板'  &amp;&amp; DF_CRM_SalesOpportunities.ContractType!='客户PO' ">
                        <td width="1200" class="tsbottomlabel">
                            <asp:Label id="Label39" runat="server" text="合同文档上传" value valuetodisplaytext></asp:Label></td>
                        <td height="22" class="tsbottomtext">
                            <aspxform:XAttachments id="XAttachments1" runat="server" Width="100%" XDataBind="DF_CRM_SalesOpportunities.Accessory" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;"></aspxform:XAttachments>
                        </td>
                        <td width="150" colspan="2">
                            <aspxform:XLabel id="lab1" runat="server" HiddenExpress="DF_CRM_SalesOpportunities.ContractType!='客户合同模板'" Text="注:目前只支持上传一个客户合同,支持格式:WORD或PDF" BackColor="#d4e4fe" Font-Size="14px" ForeColor="Blue"></aspxform:XLabel>
                            <aspxform:XLabel id="lab2" runat="server" HiddenExpress="DF_CRM_SalesOpportunities.ContractType!='客户PO'" Text="注:目前只支持上传一个客户合同,支持格式:*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG" BackColor="#d4e4fe" Font-Size="14px" ForeColor="Blue"></aspxform:XLabel>
                        </td>
                    </tr>
                    <%-- <tr hiddenexpress="DF_CRM_SalesOpportunities.ContractType!='客户合同模板'&amp;&amp;DF_CRM_SalesOpportunities.SalesOrganizationCode=='A300'&amp;&amp;DF_CRM_SalesOpportunities.BusinessApprovalState!='通过'   ">
                        <td height="22" class="tsbottomtext" colspan="4">
                            <input id="ButtonGenerationContract1" onclick="param.ButtonGenerationContract()" type="button" value="查看带电子章合同" hiddenexpress="DF_CRM_SalesOpportunities.SAPQuotation==''" />
                            <input id="DownGenerationContract1" onclick="param.DownGenerationContract()" type="button" value="下载带电子章合同" hiddenexpress="DF_CRM_SalesOpportunities.SAPQuotation==''" />
                        </td>
                    </tr>--%> 
                    <tr id="EditGenerationContractButtonTr" hiddenexpress="DF_CRM_SalesOpportunities.ContractType=='客户合同模板'||  DF_CRM_SalesOpportunities.ContractType=='' || ( DF_CRM_SalesOpportunities.SalesProgress!='90%' &amp;&amp; DF_CRM_SalesOpportunities.SalesProgress!='100%') || DF_CRM_SalesOpportunities.ContractType=='客户PO' ">
                        <td width="1200" class="tsbottomlabel" colspan="4">
                            <input id="EditGenerationContractButton" onclick="param.EditGenerationContract()" type="button" value="合同信息" />
                        </td>
                    </tr>
                    <tr>
                        <td class="title1" colspan="4">
                            <asp:Label id="Label95" runat="server" text="客户负责合同处理人员信息" value valuetodisplaytext font-size="12px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="ts">
                            <asp:Label id="Label59" runat="server" text="姓名"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox187" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ResponsibleContractsName" Express="DF_CRM_SalesOpportunities.SAPOFContact"></aspxform:XTextBox>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton10" runat="server" Width="35px" Text="查询" DataMap="ContactName->DF_CRM_SalesOpportunities.ResponsibleContractsName;ContactTel->DF_CRM_SalesOpportunities.ResponsibleContractsLandline;ContactMobile->DF_CRM_SalesOpportunities.ResponsibleContractsPhone;ContactEmail->DF_CRM_SalesOpportunities.ResponsibleEmail;Fax->DF_CRM_SalesOpportunities.Fax;ContractSex->DF_CRM_SalesOpportunities.ContractSex" XDataSource="TableName:V_DF_MasterData_ContractContact;Filter:CustomerID->DF_CRM_SalesOpportunities.PTPClientBPMID,OwnerAccount->DF_CRM_SalesOpportunities.ownerId" Height="25px" DisplayColumns="ContactName:联系人,60;ContactTel:电话,100;ContactMobile:手机号,120;ContactEmail:邮箱,120;Fax:传真,120"></aspxform:XDataBrowserButton>
                        </td>
                        <td class="ts">
                            <asp:Label id="Label156" runat="server" text="称呼"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XRadioButtonList id="Sex" runat="server" Width="30%" XDataBind="DF_CRM_SalesOpportunities.ContractSex" RepeatDirection="Horizontal">
                                <asp:ListItem>先生</asp:ListItem>
                                <asp:ListItem>女士</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="ts">
                            <asp:Label id="Label60" runat="server" text="座机"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="ContractTel" onkeyup="param.TelChange()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ResponsibleContractsLandline" Express="DF_CRM_SalesOpportunities.SAPOFPhone" CssClass="ContractTel"></aspxform:XTextBox>
                            <aspxform:XTextBox id="ContractExtension" runat="server" Width="10%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                            <asp:Label id="ContractTelLabel" style="DISPLAY: none" runat="server" text="座机">座机格式不正确</asp:Label></td>
                        <td class="ts">
                            <asp:Label id="Label65" runat="server" text="手机"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="ContractPhone" onkeyup="param.PhoneChange()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ResponsibleContractsPhone" Express="DF_CRM_SalesOpportunities.SAPOFTelephone"></aspxform:XTextBox>
                            <asp:Label id="ContractPhoneLabel" style="DISPLAY: none" runat="server" text="手机">手机格式不正确</asp:Label></td>
                    </tr>
                    <tr>
                        <td class="ts">
                            <asp:Label id="Label104" runat="server" text="Email"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="XTextBox217" onkeyup="param.EmailChange()" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ResponsibleEmail" Express="DF_CRM_SalesOpportunities.SAPOFEmail" CssClass="ResponsibleEmail"></aspxform:XTextBox>
                            <asp:Label id="Label105" runat="server" text="Email">邮箱格式不正确</asp:Label></td>
                        <td class="ts">
                            <asp:Label id="Label115" runat="server" text="联系传真"></asp:Label></td>
                        <td class="ts1">
                            <aspxform:XTextBox id="Fax" runat="server" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.Fax"></aspxform:XTextBox>
                            <%-- <aspxform:XTextBox id="ContractNumber" runat="server" DisableExpress="1" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.ContractNumber"></aspxform:XTextBox>--%></td>
                    </tr>
                    <tr hiddenexpress="DF_CRM_SalesOpportunities.SAPQuotation=='' ">
                        <td class="title1" colspan="4">
                            <asp:Label id="Label47" runat="server" text="合同执行状态" value valuetodisplaytext font-size="12px"></asp:Label></td>
                    </tr>
                    <tr id="ContractReasons" hiddenexpress="DF_CRM_SalesOpportunities.SAPQuotation=='' ">
                        <td height="22" class="tsbottomlabel">
                            <aspxform:XLabel id="XLabel239" runat="server" XDataBind="diudanyuanyin" Text="合同未签回原因" BackColor="#d4e4fe" ValueToDisplayText Value></aspxform:XLabel>
                        </td>
                        <td class="tsbottomtext" colspan="4">
                            <aspxform:XDropDownList id="ContractNotSigned" runat="server" Width="160px" XDataBind="DF_CRM_SalesOpportunities.ContractNotSigned" DisableExpress="1" PromptText="--请选择--">
                                <asp:ListItem>订单取消</asp:ListItem>
                                <asp:ListItem>销售机会有变化，重新制作</asp:ListItem>
                                <asp:ListItem>其他</asp:ListItem>
                            </aspxform:XDropDownList>
                            <aspxform:XTextBox id="XTextBox161" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_CRM_SalesOpportunities.OtherContractNotSigned" HiddenExpress="DF_CRM_SalesOpportunities.ContractNotSigned !='其他'" DisableExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BackfilledBy" runat="server" XDataBind="DF_CRM_SalesOpportunities.BackfilledBy" HiddenExpress="1"></aspxform:XTextBox>
                            <aspxform:XTextBox id="BackfillTime" runat="server" XDataBind="DF_CRM_SalesOpportunities.BackfillTime" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </tbody>
            <script src="../../../../Oimec/Script/jquery-1.8.2.js"></script>
            <script>
                $(document).ready(function () {
                    //  $("#ww").css("width", $("#tablenew").css("width"));
                    $("#scrollDiv").scroll(function () { // 滚动条移动事件

                        var yheight = $("#scrollDiv").scrollTop(); // 滚动条距顶端的距离

                        //  $("#ww").css("top", yheight + "px");

                    });
                });


            </script>
        </table>
    </form>
</body>
</html>
