<%@ 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 (!string.IsNullOrEmpty(Request.QueryString["formstate"]))
        {
            this.XTextBox38.Text = Request.QueryString["formstate"];
        }
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="/Oimec/Styles/CSS/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <title>BPM Form</title>
    <style>
        BODY {
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

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

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

        TD {
            padding: 1px;
        }

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

        TEXTAREA {
            FONT-SIZE: 12px;
        }

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

        .fontsize {
            font-size: 15px;
        }
    </style>
    <script type="text/javascript">

        //复制首行  供应商纸面合同货期、工厂、库存地
        function copyLine(column) {
            var table = document.getElementById("tablenew");
            //alert(agent.Eles[table.rows[2].cells[16].children[0].getAttribute("xform_xele_index")]);
            var obj = agent.Eles[table.rows[2].cells[column].children[0].getAttribute("xform_xele_index")].getValue();
            for (var i = 3; i < table.rows.length - 1; i++) {
                agent.Eles[table.rows[i].cells[column].children[0].getAttribute("xform_xele_index")].setValue(obj);
                XFormOnChange(agent.Eles[table.rows[i].cells[column].children[0].getAttribute("xform_xele_index")]);
            }
        }

        //获取是德人民币采购合同
        function GetContarctRMB() {


            var conditons = [];

            var tableObj = document.getElementById('tablenew'); //获取Table



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

                var obj = {};
                //产品型号
                var productNo = agent.Eles[tableObj.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();
                //产品名称
                var productName = agent.Eles[tableObj.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                //采购数量
                var purchaseNum = agent.Eles[tableObj.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].getValue();



                //采购合同号
                var contactNo = agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].getValue();

                //发票税点
                var InoiceTax = agent.Eles[document.getElementById("XTextBox34").getAttribute("xform_xele_index")].getValue();


                obj['ProductNo'] = productNo;
                obj['ProductName'] = productName;
                obj['PurchaseNum'] = purchaseNum;
                obj['contactNo'] = contactNo;
                obj['InoiceTax'] = InoiceTax;
                conditons.push(obj);


            }
            YZSoft.src.ux.File.download(YZSoft.$url('Oimec/ApiServices/PurchaseDownAPIHandler.ashx'), {
                conditons: JSON.stringify(conditons)
            });
        }

        //获取是德外币采购合同
        function GetContarctFC() {

            var conditons = [];

            var tableObj = document.getElementById('tablenew'); //获取Table

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

                var obj = {};
                //产品型号
                var productNo = agent.Eles[tableObj.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();
                //采购数量
                var purchaseNum = agent.Eles[tableObj.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].getValue();
                //采购合同号
                var contactNo = agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].getValue();
                //forme
                var forme = agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();

                obj['ProductNo'] = productNo;
                obj['PurchaseNum'] = purchaseNum;
                obj['contactNo'] = contactNo;
                obj['forme'] = forme;
                conditons.push(obj);


            }
            YZSoft.src.ux.File.download(YZSoft.$url('Oimec/ApiServices/PurchaseFCContractHandler.ashx'), {
                conditons: JSON.stringify(conditons)
            });
        }

        //打印
        function PrintID() {
            var temp = document.getElementById('XLabel1').innerText;
            window.open("备货采购单.aspx?serialNum=" + temp);
        }


        //获取品牌当月备货累计金额
        function StockTotal(Manufacturer, TaskID) {
            if (Manufacturer != '' && Manufacturer != NaN && Manufacturer != undefined && TaskID == "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'StockTotal',
                        Manufacturer: Manufacturer,
                        TaskID: TaskID
                    },
                    success: function (action) {
                        var data = action.result;
                        agent.Eles[document.getElementById('XTextBox44').getAttribute("xform_xele_index")].setValue(data.SumStockTotalRMB);
                        XFormOnChange(agent.Eles[document.getElementById('XTextBox44').getAttribute("xform_xele_index")]);
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
        }

        //根据SAP物料号获取物料信息(产品型号、产品名称、厂商名称)
        function GetProductInfo(SalesSapID, row) {
            var table = document.getElementById('tablenew');
            if (SalesSapID != '' && SalesSapID != NaN && SalesSapID != undefined) {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/MDAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetProductInfo',
                        SalesSapID: SalesSapID
                    },
                    success: function (action) {
                        var data = action.result;
                        var res = data.list;
                        var i = row + 1;

                        if (data.Rows > 0) {
                            //alert(res[0].PrdtID);
                            agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].setValue(res[0].PrdtModelNo);
                            agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].setValue(res[0].PrdtName);
                            agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].setValue(res[0].ManufacturerName);
                            agent.Eles[table.rows[i].cells[5].children[1].getAttribute("xform_xele_index")].setValue(res[0].PrdtID);
                            XFormOnChange(agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")]);
                            XFormOnChange(agent.Eles[table.rows[i].cells[5].children[1].getAttribute("xform_xele_index")]);
                        }
                        else {
                            agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[table.rows[row + 1].cells[5].children[1].getAttribute("xform_xele_index")].setValue("");
                            XFormOnChange(agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")]);
                            XFormOnChange(agent.Eles[table.rows[i].cells[5].children[1].getAttribute("xform_xele_index")]);
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
            else {
                agent.Eles[table.rows[row + 1].cells[3].children[0].getAttribute("xform_xele_index")].setValue("");
                agent.Eles[table.rows[row + 1].cells[4].children[0].getAttribute("xform_xele_index")].setValue("");
                agent.Eles[table.rows[row + 1].cells[6].children[0].getAttribute("xform_xele_index")].setValue("");
                agent.Eles[table.rows[row + 1].cells[5].children[1].getAttribute("xform_xele_index")].setValue("");
                XFormOnChange(agent.Eles[table.rows[row + 1].cells[3].children[0].getAttribute("xform_xele_index")]);
            }
        }

        //根据产品型号和采购币种获取对应的币种金额(含税报价-单价)以及标准折扣(采购折扣1百分比)
        function GetQuoteInfo(ProductModel, row) {
            var table = document.getElementById('tablenew');
            //XDropDownList3
            var PurchaseCurrency = agent.Eles[document.getElementById("XDropDownList3").getAttribute("xform_xele_index")].getValue();
            //alert(PurchaseCurrency);
            if (ProductModel != "" && PurchaseCurrency != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetQuoteInfo',
                        ProductModel: ProductModel
                    },
                    success: function (action) {
                        var res = action.result;
                        var i = row + 1;
                        if (res.length > 0) {
                            var data = res[0];
                            var sDiscount = data.Discount;
                            //alert(sDiscount);
                            if (sDiscount != null) {
                                sDiscount = sDiscount.replace("%", "");
                            }
                            agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].setValue(sDiscount);

                            if (PurchaseCurrency == "CNY") {
                                agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue(data.CNY);
                            }
                            else if (PurchaseCurrency == "USD") {
                                agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue(data.USD);
                            }
                            else {
                                agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue("0");
                            }
                            XFormOnChange(agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")]);
                            XFormOnChange(agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")]);
                        }
                        else {
                            agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].setValue("");
                            agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")].setValue("");
                            XFormOnChange(agent.Eles[table.rows[i].cells[9].children[0].getAttribute("xform_xele_index")]);
                            XFormOnChange(agent.Eles[table.rows[i].cells[8].children[0].getAttribute("xform_xele_index")]);
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
            else {
                agent.Eles[table.rows[row + 1].cells[8].children[0].getAttribute("xform_xele_index")].setValue("");
                agent.Eles[table.rows[row + 1].cells[9].children[0].getAttribute("xform_xele_index")].setValue("");
                XFormOnChange(agent.Eles[table.rows[row + 1].cells[9].children[0].getAttribute("xform_xele_index")]);
                XFormOnChange(agent.Eles[table.rows[row + 1].cells[8].children[0].getAttribute("xform_xele_index")]);
            }

        }

        //发票税点百分数转换成小数
        function GetInvoiceTax(InvoiceTax) {
            if (InvoiceTax.length > 0)
                InvoiceTax = (InvoiceTax.substr(0, InvoiceTax.indexOf("%"))) / 100;
            XFormOnChange(agent.Eles[document.getElementById('XTextBox34').getAttribute("xform_xele_index")]);
            return InvoiceTax;
        }



        //页面加载时触发事件
        Ext.onReady(function () {



            //备货管理员审批时，提示：
            var stepName = agent.Eles[document.getElementById('XTextBox46').getAttribute("xform_xele_index")].getValue();//当前流程审批步骤名
            if (stepName == "备货管理人审批") {
                var brandLimit = agent.Eles[document.getElementById('XTextBox47').getAttribute("xform_xele_index")].getValue();//品牌当月上限额度
                var StockTotalAmount = agent.Eles[document.getElementById('XTextBox11').getAttribute("xform_xele_index")].getValue();//品牌当月备货累计金额(CNY)

                if (brandLimit != '') {
                    if (parseFloat(StockTotalAmount) > parseFloat(brandLimit)) {
                        alert("已超上限");
                    }
                }
                else {
                    alert("已超上限");
                }
            }

            var sTaskid = agent.Eles[document.getElementById('XTextBox50').getAttribute("xform_xele_index")].getValue();
            var Manufacturer = agent.Eles[document.getElementById('XTextBox45').getAttribute("xform_xele_index")].getValue();
            if (sTaskid == "") {
                StockTotal(Manufacturer, sTaskid);  //刷新备货采购累计金额
                XFormOnChange(agent.Eles[document.getElementById('XDropDownList11').getAttribute("xform_xele_index")]);  //刷新以销定采累计金额
            }

        });

        //申请人表单提交验证
        agent.on('beforeSubmit', function (post, acname) {
            if (acname == "提交" || acname == "已复核") {
                var name = "XCheckBox1";
                var inputs = document.getElementsByTagName("input");
                for (var i = 0; i < inputs.length; i++) {
                    var a = document.getElementsByName(name);
                    if (inputs[i].name == name) {
                        if (!inputs[i].checked) {
                            alert("请勾选已核对产品超期库存");
                            return false;
                        }
                    }
                }
            }
            var stepName = agent.Eles[document.getElementById('XTextBox46').getAttribute("xform_xele_index")].getValue();//当前流程审批步骤名
            if (acname == "提交" && stepName == "申请人发起备货采购申请") {
                //第一次申请提交时的含税采购总价CNY
                var iIsSubmit = agent.Eles[document.getElementById('XTextBox52').getAttribute("xform_xele_index")].getValue(); //标识是否为第一次提交
                var sTaskid = agent.Eles[document.getElementById('XTextBox50').getAttribute("xform_xele_index")].getValue();
                //alert(sTaskid);
                if (iIsSubmit != 1) {
                    var XTextBox41 = agent.Eles[document.getElementById('XTextBox41').getAttribute("xform_xele_index")].getValue(); //含税采购总价CNY
                    agent.Eles[document.getElementById('XTextBox51').getAttribute("xform_xele_index")].setValue(XTextBox41);
                    agent.Eles[document.getElementById('XTextBox52').getAttribute("xform_xele_index")].setValue(1);
                }
            }

        });

    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="Label1" runat="server" text="公司备货采购申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="Label2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel1" runat="server" Text="----系统自动生成----" BackColor="#8AB3DF" XDataBind="DF_MM_StockPurchaseApp_Info.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" colspan="3">
                        <asp:Label id="Label40" runat="server" text="标记为*为申请人必填项" font-bold="True" forecolor="Red"></asp:Label>&nbsp; <asp:Label id="Label41" runat="server" text="标记为*为采购员必填项" font-bold="True" forecolor="Blue"></asp:Label></td>
                    <td align="right">
                        <aspxform:XButton id="XButton1" runat="server" Text="打印" OnClientClick="PrintID()"></aspxform:XButton>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox46" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express="Global.StepName"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox47" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.BrandLimit" Width="52px" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" Format="type:currency;.2" ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox50" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.TaskID" Width="52px" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="False" Max="0" Min="0" ValueToDisplayText HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox38" runat="server" XDataBind="formstate" Width="59px" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label4" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.AppAccount" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.AppName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></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" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.CreateDate" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="采购合同号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.PurchaseContractNo" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'    &amp;&amp;  Global.StepName!='采购员执行采购'    &amp;&amp;  Global.StepName!='采购员执行采购1'   &amp;&amp; formstate!='Edit'"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label7" runat="server" text="要求下单日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.OrderDate" Width="60%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label9" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label8" runat="server" text="供应商联系人"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.SupplierContacts" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label11" runat="server" text="邮箱"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.Email" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label13" runat="server" text="电话"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.Phone" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label10" runat="server" text="QQ"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.QQ" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label12" runat="server" text="*" forecolor="Red"></asp:Label><asp:Label id="Label42" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label14" runat="server" text="供应商名称"></asp:Label> 
                        <aspxform:XDropDownList id="XDropDownList10" runat="server" XDataBind="zhekou2" Width="20px" HiddenExpress="1" XDataSource="TableName:DF_MM_PurchaseSupplier;Filter:SupplierID->DF_MM_StockPurchaseApp_Info.SupplierSAPID" DisplayColumn="DrawingsDiscount2" ValueColumn="DrawingsDiscount2"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.SupplierName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" Width="45px" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'  &amp;&amp;  Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource="TableName:V_DF_MSupplier_ZK" Height="22px" DataMap="SupplierName->DF_MM_StockPurchaseApp_Info.SupplierName;SupplierSAPID->DF_MM_StockPurchaseApp_Info.SupplierSAPID" DisplayColumns="SupplierName:供应商名称;SupplierSAPID:供应商SAPID"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label16" runat="server" text="采购组织"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.PurchaseOrg" Width="150px" DisableExpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource='TableName:DF_DataSourceList;Filter:Type->"采购组织",Value1->DF_MM_StockPurchaseApp_Info.CompanyCode' DisplayColumn="Name" ValueColumn="Value" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="15" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label49" runat="server" text="*" forecolor="Red"></asp:Label><asp:Label id="Label76" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label27" runat="server" text="供应商SAPID"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.SupplierSAPID" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" ValueToDisplayText="TableName:DF_MasterData_Supplier" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' &amp;&amp; Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList13" runat="server" HiddenExpress="1" XDataSource="TableName:V_DF_MSupplier_ZK;Filter:SupplierSAPID->DF_MM_StockPurchaseApp_Info.SupplierSAPID" DisplayColumn="SupplierSAPID" ValueColumn="SupplierSAPID" DataMap="SupplierName->DF_MM_StockPurchaseApp_Info.SupplierName"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label19" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label20" runat="server" text="采购组"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.PurchaseGroup" Width="100px" DisableExpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource='TableName:DF_DataSourceList;Filter:Type->"采购组"' DisplayColumn="Name" ValueColumn="Value" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label17" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label18" runat="server" text="采购币种"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.PurchaseCurrency" Width="100px" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'" XDataSource="TableName:V_DF_SA_SS_SalesCurrency" DisplayColumn="Name" ValueColumn="Name" PromptText="----请选择----"></aspxform:XDropDownList>
                        &nbsp;<aspxform:XDropDownList id="XDropDownList12" runat="server" Width="100px" HiddenExpress="1" XDataSource="TableName:DF_SA_SS_ExchangeRate;Filter:ForeignCurrency->DF_MM_StockPurchaseApp_Info.PurchaseCurrency" DisplayColumn="ComputeRate" ValueColumn="ComputeRate" DataMap="ComputeRate->DF_MM_StockPurchaseApp_Info.ExchangeRate" PromptText="----请选择----"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox39" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.ExchangeRate" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.4" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label21" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label22" runat="server" text="供应商付款条件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.PayTerms" Width="70%" DisableExpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource="TableName:V_DF_DataSource_PayItems" DisplayColumn="Name" ValueColumn="Value" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label23" runat="server" text="*" forecolor="Red"></asp:Label><asp:Label id="Label34" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label24" runat="server" text="采购主体公司代码"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.CompanyCode" Width="150px" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' &amp;&amp; Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource="TableName:DF_SA_SS_Company" DisplayColumn="CompanyName" ValueColumn="CompanyCode" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label43" runat="server" text="*" forecolor="Red"></asp:Label><asp:Label id="Label44" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label45" runat="server" text="发票税点"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="InvoiceTax" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express='javascript("GetInvoiceTax",InvoiceTax1)'></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="InvoiceTax1" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.InvoiceTax" Width="100px" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' &amp;&amp; Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource='TableName:DF_DataSourceList;Filter:Type->"发票税点"' DisplayColumn="Name" ValueColumn="Value" DataMap="Name->InvoiceTax1" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label25" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label35" runat="server" text="采购厂商"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList7" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.ManufacturerName" Width="150px" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' " XDataSource="TableName:DF_MM_BrandApprover" DisplayColumn="ManufacturerName" ValueColumn="ManufacturerName" DataMap="ManufacturerID->DF_MM_StockPurchaseApp_Info.Manufacturer" PromptText="----请选择----"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox45" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.Manufacturer" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label30" runat="server" text="*" forecolor="Red"></asp:Label><asp:Label id="Label28" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label29" runat="server" text="需修改本次申请"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.IsUpdateApp" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' &amp;&amp; Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="14" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label26" runat="server" text="品牌当月累计采购总金额(CNY)"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox10" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.MonthTotalAmount" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Express="DF_MM_StockPurchaseApp_Info.StockTotalAmount+DF_MM_StockPurchaseApp_Info.SalesTotalAmount" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label39" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label32" runat="server" text="集成SAP-PO"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.IsPO" DisableExpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="32" class="tsbottomlabel" style="WIDTH: 10%">
                        &nbsp;&nbsp;&nbsp; <asp:Label id="Label31" runat="server" text="  其中备货采购累计金额(CNY)"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.StockTotalAmount" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Express="DF_MM_StockPurchaseApp_Info.SumStockTotalRMB+DF_MM_StockPurchaseApp_Info.OldStockTotalAmount" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox44" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.OldStockTotalAmount" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express='javascript("StockTotal",DF_MM_StockPurchaseApp_Info.Manufacturer,DF_MM_StockPurchaseApp_Info.TaskID)'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="32" class="tsbottomlabel" style="WIDTH: 10%">
                        &nbsp;&nbsp;&nbsp; <asp:Label id="Label33" runat="server" text="  其中以销定采累计金额(CNY)"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox12" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.SalesTotalAmount" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList11" runat="server" XDataBind="PurchaseTotalAmount" Width="50px" HiddenExpress="1" XDataSource="TableName:V_DF_MM_StockSalesTotal;Filter:ManufacturerID->DF_MM_StockPurchaseApp_Info.Manufacturer" DisplayColumn="PurchaseTotalAmount" ValueColumn="PurchaseTotalAmount" DataMap="PurchaseTotalAmount->DF_MM_StockPurchaseApp_Info.SalesTotalAmount" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label38" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label36" runat="server" text="已核对产品超期库存"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XCheckBox id="XCheckBox1" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.PrdtExceedStorage" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XCheckBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label37" runat="server" text="集成SAP-PO结果消息"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 80%" colspan="3">
                        <aspxform:XTextBox id="XTextBox13" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.ResultMessage" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" ReadOnly="True" Rows="2" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XTextBox id="XTextBox41" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.SumStockTotalRMB" Width="62px" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Express="sum(DF_MM_StockPurchaseApp_Detail.DTUnitTotalPriceRMB)" Max="0" Min="0" ValueToDisplayText></aspxform:XTextBox>
        &nbsp; 
        <aspxform:XTextBox id="XTextBox51" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.FirstStockTotalRMB" Width="62px" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" ValueToDisplayText></aspxform:XTextBox>
        &nbsp;<aspxform:XTextBox id="XTextBox52" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.IsSubmit" Width="50px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
        <br />
        <div id="dnew" style="TEXT-ALIGN: center" runat="server">
            <div class="scrollDiv" id="scrollDiv" style="HEIGHT: 430px">
                <table width="4017" align="center" class="scrolltable" id="tablenew" style="BORDER-TOP: medium none" border="0" cellspacing="0" cellpadding="0" menudock="Left" dynamicarea="2,1">
                    <tbody>
                        <tr class="scrollColThead">
                            <td height="19" class="scrollRowThead scrollCR" colspan="9">
                                <asp:Label id="Label84" runat="server" text="产品明细"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                                <aspxform:XButton id="XButton2" runat="server" Text="导出是德人民币采购合同" OnClientClick="GetContarctRMB()" DisableExpress="DF_MM_StockPurchaseApp_Info.PurchaseCurrency!='CNY'"></aspxform:XButton>
                                <aspxform:XButton id="XButton3" runat="server" Text="导出是德外币采购合同" OnClientClick="GetContarctFC()" DisableExpress="DF_MM_StockPurchaseApp_Info.PurchaseCurrency=='CNY'"></aspxform:XButton>
                                &nbsp;<aspxform:XExcelDataExportButton id="XExcelDataExportButton1" runat="server" Text="导出产品明细" ExportTableID="tablenew"></aspxform:XExcelDataExportButton>
                                <%--HiddenExpress="Global.StepName!='采购员执行采购'"--%></td>
                            <td width="167" style="TEXT-ALIGN: center; BACKGROUND-COLOR: #80ff80" colspan="3">
                                <asp:Label id="Label85" runat="server" text="采购折扣1-总价折扣" font-bold="True" font-size="Small"></asp:Label></td>
                            <td class="scrollRowThead scrollCR">
                            </td>
                            <td style="BORDER-RIGHT: medium none; TEXT-ALIGN: center; BACKGROUND-COLOR: #fbc38a" colspan="3">
                                <asp:Label id="Label86" runat="server" text="采购折扣2-特殊折扣" font-bold="True" font-size="Small"></asp:Label></td>
                            <td style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; TEXT-ALIGN: center; BORDER-LEFT: medium none; BACKGROUND-COLOR: #f58819" colspan="2">
                                <asp:Label id="Label88" runat="server" text="采购折扣2-蓄水池提款类特折" font-bold="True" font-size="Small"></asp:Label></td>
                            <td style="TEXT-ALIGN: center; BORDER-LEFT: medium none; BACKGROUND-COLOR: #f7a34d" colspan="4">
                                <asp:Label id="Label87" runat="server" text="采购折扣3-带批文" font-bold="True" font-size="Small"></asp:Label></td>
                            <td class="scrollRowThead scrollCR" colspan="10">
                            </td>
                        </tr>
                        <tr class="scrollColThead">
                            <td width="50" height="23" class="tds">
                                <asp:Label id="Label46" runat="server" text="行号"></asp:Label></td>
                            <td class="tds" style="WIDTH: 100px">
                                <asp:Label id="Label71" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label70" runat="server" text="期望交货日期"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label47" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label48" runat="server" text="SAP物料号"></asp:Label></td>
                            <td class="tds" style="WIDTH: 200px">
                                &nbsp;<asp:Label id="Label50" runat="server" text="产品型号"></asp:Label></td>
                            <td class="tds" style="WIDTH: 4%">
                                <asp:Label id="Label51" runat="server" text="产品名称"></asp:Label></td>
                            <td class="tds" style="WIDTH: 2%">
                                <asp:Label id="Label94" runat="server" text="FORM E"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label52" runat="server" text="厂商名称"></asp:Label></td>
                            <td class="tds" style="WIDTH:2%">
                                <asp:Label id="Label53" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label54" runat="server" text="采购数量"></asp:Label></td>
                            <td class="tds" style="WIDTH: 160px">
                                <asp:Label id="Label55" runat="server" text="*" forecolor="Red"></asp:Label><asp:Label id="Label56" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label57" runat="server" text="含税报价-单价(采购币种）"></asp:Label></td>
                            <td class="tds" style="WIDTH: 80px">
                                <asp:Label id="Label58" runat="server" text="百分比%"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label59" runat="server" text="不含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label60" runat="server" text="含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 180px">
                                <asp:Label id="Label61" runat="server" text="折扣1后含税采购总价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 80px">
                                <asp:Label id="Label62" runat="server" text="百分比%"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label63" runat="server" text="不含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label64" runat="server" text="含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="BORDER-TOP: medium none; WIDTH: 150px">
                                <asp:Label id="Label89" runat="server" text="不含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="BORDER-TOP: medium none; WIDTH: 150px">
                                <asp:Label id="Label90" runat="server" text="含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 80px">
                                <asp:Label id="Label65" runat="server" text="百分比%"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label66" runat="server" text="不含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label67" runat="server" text="含税单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label68" runat="server" text="不含税总价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 160px">
                                <asp:Label id="Label69" runat="server" text="折扣后含税采购单价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 150px">
                                <asp:Label id="Label80" runat="server" text="折扣后含税采购总价(采购币种)"></asp:Label></td>
                            <td class="tds" style="WIDTH: 120px">
                                <asp:Label id="Label92" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label93" runat="server" text="供应商纸面合同货期"></asp:Label> 
                                <input style="HEIGHT: 25px" onclick="copyLine(24);" type="button" value="复制首行" hiddenexpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" />
                            </td>
                            <td class="tds" style="WIDTH: 100px">
                                <asp:Label id="Label72" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label73" runat="server" text="工厂"></asp:Label> 
                                <input style="HEIGHT: 25px" onclick="copyLine(25);" type="button" value="复制首行" hiddenexpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" />
                            </td>
                            <td class="tds" style="WIDTH: 100px">
                                <asp:Label id="Label74" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label75" runat="server" text="库存地"></asp:Label> 
                                <input style="HEIGHT: 25px" onclick="copyLine(26);" type="button" value="复制首行" hiddenexpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" />
                            </td>
                            <td class="tds" style="WIDTH: 100px">
                                &nbsp;<asp:Label id="Label77" runat="server" text="PO号"></asp:Label></td>
                            <td class="tds" style="WIDTH: 60px">
                                &nbsp;<asp:Label id="Label79" runat="server" text="PO行号"></asp:Label></td>
                            <td class="tds" style="WIDTH: 60px">
                                <asp:Label id="Label78" runat="server" text="业务员"></asp:Label></td>
                            <td class="tds" style="WIDTH: 100px">
                                <asp:Label id="Label91" runat="server" text="SAP-SO号"></asp:Label></td>
                        </tr>
                        <tr>
                            <td height="38" class="tds1">
                                <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" XDataBind="DF_MM_StockPurchaseApp_Detail.LineNum" Width="100%" BorderWidth="1" TextAlign="Center" BorderStyle="None" LineNoIncrease="1">1</aspxform:XGridLineNo>
                            </td>
                            <td class="tds1">
                                <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.DeliveryDate" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' &amp;&amp; Global.StepName!=&quot;备货管理人审批&quot;"></aspxform:XDateTimePicker>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.MaterialNo" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox16" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.ProductModel" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('GetProductInfo',DF_MM_StockPurchaseApp_Detail.MaterialNo,DF_MM_StockPurchaseApp_Detail.LineNum)" ReadOnly="True" DisableExpress="Global.StepName!='申请人发起备货采购申请'"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox17" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.ProductName" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox56" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.FORME" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox57" runat="server" XDataBind="prdtid" Width="1px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                                <aspxform:XDropDownList id="XDropDownList14" runat="server" HiddenExpress="1" XDataSource="TableName:DF_SA_SS_PurchaseTariffRates;Filter:ProductBPMID->prdtid" DataMap="FORME->DF_MM_StockPurchaseApp_Detail.FORME"></aspxform:XDropDownList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox18" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.ManufacturerName" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.PurchaseNumber" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.0" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice" XClass="Oimec.ControlEvent.StockPurchase2OnBlur" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express='javascript("GetQuoteInfo",DF_MM_StockPurchaseApp_Detail.ProductModel,DF_MM_StockPurchaseApp_Detail.LineNum)' Format="type:currency;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'  &amp;&amp; Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.Percent1" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox22" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice1" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice1/(1+InvoiceTax)" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox23" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice1" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice*DF_MM_StockPurchaseApp_Detail.Percent1/100" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox24" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.Discou1TaxUnitTotalPrice" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice*DF_MM_StockPurchaseApp_Detail.PurchaseNumber-DF_MM_StockPurchaseApp_Detail.TaxUnitPrice1*DF_MM_StockPurchaseApp_Detail.PurchaseNumber" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.Percent2" XClass="Oimec.ControlEvent.StockPurchase1OnBlur" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' ||  DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice2!=&quot;&quot; " TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice2" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'  || DF_MM_StockPurchaseApp_Detail.Percent2!=&quot;&quot;" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox27" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice2" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="(DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice2*(1+InvoiceTax))" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox42" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.NoTaxUnitPriceDraw2" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核'  || zhekou2==&quot;&quot;" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox43" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.TaxUnitPriceDraw2" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="(DF_MM_StockPurchaseApp_Detail.NoTaxUnitPriceDraw2*(1+InvoiceTax))" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.Percent3" XClass="Oimec.ControlEvent.StockPurchase3OnBlur" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:number;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' || (DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice3!=&quot;&quot;  &amp;&amp; DF_MM_StockPurchaseApp_Detail.Percent3==&quot;&quot;)" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice3" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Format="type:currency;.2" DisableExpress="Global.StepName!='申请人发起备货采购申请'  &amp;&amp;  Global.StepName!='申请人复核' || DF_MM_StockPurchaseApp_Detail.Percent3!=&quot;&quot;" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox30" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice3" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice3*(1+InvoiceTax)" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox31" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.NoTaxUnitTotalPrice3" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.NoTaxUnitPrice3*DF_MM_StockPurchaseApp_Detail.PurchaseNumber" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox32" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.DTUnitPrice" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.TaxUnitPrice-DF_MM_StockPurchaseApp_Detail.TaxUnitPrice1-DF_MM_StockPurchaseApp_Detail.TaxUnitPrice2-DF_MM_StockPurchaseApp_Detail.TaxUnitPrice3+DF_MM_StockPurchaseApp_Detail.TaxUnitPriceDraw2" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox33" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Detail.DTUnitTotalPrice" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.DTUnitPrice*DF_MM_StockPurchaseApp_Detail.PurchaseNumber" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox40" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.DTUnitTotalPriceRMB" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express='if(DF_MM_StockPurchaseApp_Info.ExchangeRate!="",DF_MM_StockPurchaseApp_Detail.DTUnitTotalPrice*DF_MM_StockPurchaseApp_Info.ExchangeRate,0)' Format="type:currency;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.SupplierDelieverDate" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="DF_MM_StockPurchaseApp_Detail.DeliveryDate" DisableExpress="Global.StepName!='采购员执行采购'  &amp;&amp;  Global.StepName!='采购员执行采购1'"></aspxform:XDateTimePicker>
                            </td>
                            <td class="tds1">
                                <aspxform:XDropDownList id="XDropDownList8" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.Plant" Width="100%" DisableExpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource='TableName:DF_DataSourceList;Filter:Type->"工厂",Value1->DF_MM_StockPurchaseApp_Info.CompanyCode' DisplayColumn="Name" ValueColumn="Value" PromptText="----请选择----"></aspxform:XDropDownList>
                            </td>
                            <td class="tds1">
                                <aspxform:XDropDownList id="XDropDownList9" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.Storage" Width="100%" DisableExpress="Global.StepName!='采购员执行采购' &amp;&amp; Global.StepName!='采购员执行采购1'" XDataSource='TableName:DF_MM_SAPStorage;Filter:SAPPlant->DF_MM_StockPurchaseApp_Detail.Plant,DeleteMark->"0"' DisplayColumn="StorageName" ValueColumn="SAPStoreID" PromptText="----请选择----"></aspxform:XDropDownList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox36" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.PO" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='DF_MM_StockPurchaseApp_Info.IsPO=="是"'></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox37" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.PORowNum" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='DF_MM_StockPurchaseApp_Info.IsPO=="是"'></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox54" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.SalesName" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请' "></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox55" runat="server" XDataBind="DF_MM_StockPurchaseApp_Detail.SO" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起备货采购申请' "></aspxform:XTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td width="197">
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td class="tds2">
                                <aspxform:XTextBox id="XTextBox14" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.SumDTUTotalPrice1" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="sum(DF_MM_StockPurchaseApp_Detail.Discou1TaxUnitTotalPrice)" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td class="tds2">
                                <aspxform:XTextBox id="XTextBox48" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.SumNTUTotalPrice3" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="sum(DF_MM_StockPurchaseApp_Detail.NoTaxUnitTotalPrice3)" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td>
                            </td>
                            <td class="tds2">
                                <aspxform:XTextBox id="XTextBox49" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_StockPurchaseApp_Info.SumStockTotal" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="sum(DF_MM_StockPurchaseApp_Detail.DTUnitTotalPrice)" Format="type:currency;.2" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td width="59">
                            </td>
                            <td width="57">
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <p class="fontsize">
            <asp:Label id="Label81" runat="server" text="提示：如使用返点，系统PO需等TEK回传合同后，由产品管理部制作备货申请PO录入版，请按第二次的表录PO。" font-bold="True" forecolor="Red"></asp:Label>
        </p>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label82" runat="server" text="上传附件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 80%">
                        <aspxform:XAttachments id="XAttachments1" runat="server" BackColor="#d4e4fe" XDataBind="DF_MM_StockPurchaseApp_Info.Attachment" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif,*.png;*.msg;*.eml"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" height="14" class="title1">
                        <asp:Label id="Label83" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox53" runat="server" XDataBind="DF_MM_StockPurchaseApp_Info.Remark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
        <br />
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写供应商联系人" ControlToValidate="XTextBox4" ValidationGroup="submit">请填写供应商联系人</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择供应商名称" ControlToValidate="XTextBox8" ValidationGroup="submit">请选择供应商名称</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择采购币种" ControlToValidate="XDropDownList3" ValidationGroup="submit">请选择采购币种</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择采购主体公司代码" ControlToValidate="XDropDownList4" ValidationGroup="submit">请选择采购主体公司代码</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择发票税点" ControlToValidate="XDropDownList5" ValidationGroup="submit">请选择发票税点</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator20" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择采购厂商" ControlToValidate="XDropDownList7" ValidationGroup="submit">请选择采购厂商</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择需修改本次申请" ControlToValidate="XRadioButtonList1" ValidationGroup="submit">请选择需修改本次申请</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择SAP物料号" ControlToValidate="XTextBox15" ValidationGroup="submit">请选择SAP物料号</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写采购数量" ControlToValidate="XTextBox19" ValidationGroup="submit">请填写采购数量</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写含税报价-单价(采购币种)" ControlToValidate="XTextBox20" ValidationGroup="submit">请填写含税报价-单价(采购币种)</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写期望交货日期" ControlToValidate="XDateTimePicker3" ValidationGroup="submit">请填写期望交货日期</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator22" runat="server" ForeColor="Red" Display="None" ErrorMessage="品牌按月累计采购总金额(CNY)必须大于0" ControlToValidate="XTextBox10" ValidationGroup="submit">品牌按月累计采购总金额(CNY)必须大于0</aspxform:XRequiredFieldValidator>
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator15" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择供应商名称" ControlToValidate="XTextBox8" ValidationGroup="cgy">请选择供应商名称</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator14" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择采购组织" ControlToValidate="XDropDownList1" ValidationGroup="cgy">请选择采购组织</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator16" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择采购组" ControlToValidate="XDropDownList2" ValidationGroup="cgy">请选择采购组</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator17" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择采购主体公司代码" ControlToValidate="XDropDownList4" ValidationGroup="cgy">请选择采购主体公司代码</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator18" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择发票税点" ControlToValidate="XDropDownList5" ValidationGroup="cgy">请选择发票税点</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator19" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择供应商付款条件" ControlToValidate="XDropDownList6" ValidationGroup="cgy">请选择供应商付款条件</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator21" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择集成SAP-PO" ControlToValidate="XRadioButtonList2" ValidationGroup="cgy">请选择集成SAP-PO</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写含税报价-单价(采购币种)" ControlToValidate="XTextBox20" ValidationGroup="cgy">请填写含税报价-单价(采购币种)</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择工厂" ControlToValidate="XDropDownList8" ValidationGroup="cgy">请选择工厂</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择库存地" ControlToValidate="XDropDownList9" ValidationGroup="cgy">请选择库存地</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator23" runat="server" DisableExpress='DF_MM_StockPurchaseApp_Info.IsPO!="否"  ||(DF_MM_StockPurchaseApp_Info.IsUpdateApp=="是" &amp;&amp; Global.StepName=="采购员执行采购")' ForeColor="Red" Display="None" ErrorMessage="请填写PO号" ControlToValidate="XTextBox36">请填写PO号</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator24" runat="server" DisableExpress='DF_MM_StockPurchaseApp_Info.IsPO!="否"  ||(DF_MM_StockPurchaseApp_Info.IsUpdateApp=="是" &amp;&amp; Global.StepName=="采购员执行采购")' ForeColor="Red" Display="None" ErrorMessage="请填写PO行号" ControlToValidate="XTextBox37">请填写PO行号</aspxform:XRequiredFieldValidator>
        <br />
        &nbsp;<br />
    </form>
</body>
</html>
