<%@ 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 strPO = Request.QueryString["PO"];
            string strPORowNumber = Request.QueryString["PORowNumber"];
            string CompanyCode = Request.QueryString["CompanyCode"];
            string currency = Request.QueryString["currency"];
            int count = Convert.ToInt32(Request.QueryString["Count"]);
            string type = Request.QueryString["type"];
            string ID = Request.QueryString["ID"];
            string FormState = Request.QueryString["FormState"];
            string TWID = Request.QueryString["TWID"];
            this.XTextBox24.Text = CompanyCode;
            this.XTextBox25.Text = strPO;
            this.XTextBox27.Text = strPORowNumber;
            this.XTextBox44.Text = currency;
            this.txtType.Text = type;
            this.XTextBoxID.Text = ID;
            this.XTextBoxFormState.Text = FormState;
            this.XTextBoxTWID.Text = TWID;
        }
    }

</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*/
        }
    </style>

    <script type="text/javascript">
        //批量删除标识
        function onchange_del1() {
            var chk = document.getElementById("ext-151"); //XCheckBox3 控件ID
            var tableObj = document.getElementById("tablenew");
            //alert(tableObj.rows.length);
            //全选
            if (chk.checked == true) {
                for (var i = 2; i < tableObj.rows.length - 1; i++) {
                    agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].setValue("1");//每行是否勾选：0未勾选；1勾选
                }
            }
            else {
                for (var i = 2; i < tableObj.rows.length - 1 ; i++) {
                    agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].setValue("0");//每行是否勾选：0未勾选；1勾选
                }
            }
        }


        //删除行项目-批量删除
        function DeleteBlocks1() {
            var table = agent.findGridFromTableName(null, 'DF_SD_ArrivalOrReceiveApp_Detail'); //获取table对象
            var tableObj = document.getElementById("tablenew");
            //获取选中的行数
            var count = 0;
            for (var i = 2; i < tableObj.rows.length - 1 ; i++) {//遍历Table的所有Row //遍历Row中的每一列
                var chk = agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].getValue();
                if (chk == "1") {
                    count++;
                }
            }
            while (count > 0) {
                for (var i = 2, res = false; i < tableObj.rows.length - 1 ; i++) {//遍历Table的所有Row //遍历Row中的每一列
                    var chk = agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].getValue();
                    if (chk == "1" && res == false) {
                        //删除选中行
                        table.deleteBlocks(i - 2, 1);
                        count--;
                        res = true;
                    }
                }
            }

        }
        function getXValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }

        function setXValue(id, value) {
            agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].setValue(value);
        }

        // 获取产品明细信息
        function GetProductDetailsInfo() {

            //根据PO和PO行号获取产品信息
            var strPO = getXValue("XTextBox25");
            var strPORowNumber = getXValue("XTextBox27");
            //strPO = "4500005996/4500005992";
            //strPORowNumber = "10/10";
            var url = YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx');
            YZSoft.Ajax.request({
                async: false,
                url: url,
                method: 'POST',
                params: {
                    method: 'GetPurchaseAOGAppInfo',
                    strPO: strPO,
                    strPORowNumber: strPORowNumber
                },
                success: function (action) {
                    var res = action.result; //返回的产品信息数据
                    var data = res.listInfo;

                    var rv = new Array();
                    if (res.count > 0) {

                        //数据dataMap
                        for (var i = 0; i < data.length; i++) {
                            var item = data[i];
                            rv.push({
                                PO: item.PO,
                                POLineNum: item.POLineNum,
                                SO: item.SO,
                                SOLineNumber: item.SOLineNum,
                                Currency: item.CurrencyCode,

                                SupplierName: item.SupplierName,
                                Currency: item.CurrencyCode,

                                Plant: item.Plant,
                                PlanReceivePlanceID: item.PantPlanceCode,

                                ProductName: item.PrdtName,
                                SupplierDeliveryDate: item.SupplierDeliveryDate,

                                PlanAOGDate: item.PantArrivalDate,

                                SalesMan: item.SalesMan,
                                SalesManID: item.SalesManID,

                                UnitPrice: item.UnitPrice,
                                PlanAOGNumber: item.PantNum,
                                PlantName: item.PlantName,
                                PlanReceivePlance: item.PantPlanceName,

                                ProductModel: item.PrdtMondel,

                                SoldCustomerName: item.STPCustomerName,
                                BU: item.BU,
                                PurchaseContractNo: item.PurchaseContractNo,
                                ManufacturerName: item.ManufacturerName,
                                ManufactureID: item.ManufacturerID, //厂商编号
                                PrdtSAPID: item.PrdtSAPID,
                            });
                        }

                        var table = agent.findGridFromTableName(null, 'DF_SD_ArrivalOrReceiveApp_Detail'); //获取table对象
                        if (table == undefined) return;
                        table.deleteBlocks(0, 1); //删除现有table行
                        table.appendBlock(data.length);//重新添加行

                        var tableObj = document.getElementById('tablenew');

                        //对行进行赋值
                        for (var i = 0; i < rv.length; i++) {
                            var item = rv[i];

                            //索引行对应控件赋值
                            var block = table.Blocks[i];

                            for (var e = 0; e < block.Eles.length; e++) {
                                var xel = block.Eles[e];
                                var et = xel.getEleType();

                                if (!et.DataBind)
                                    continue;

                                var cname = et.DataBind.DataColumn.ColumnName;//对应字段名
                                for (var obj in item) {
                                    if (cname == obj) {
                                        var value = item[obj];
                                        xel.setValue(value);
                                        XFormOnChange(xel);
                                    }
                                }
                            }

                        }

                    }
                },
                failure: function (action) {
                }
            });

        }

        Ext.onReady(function () {
            var xtxtTaskID = agent.Eles[document.getElementById("xtxtTaskID").getAttribute("xform_xele_index")].getValue();
            var type = document.getElementById("txtType").value;

            //type="App"时才调用此 方法"
            if (xtxtTaskID == "" && type == "App") {

                GetProductDetailsInfo();
            }

        });


        //修改后计划数量
        function UpPlanAOGNumber(PlanAOGNumber, IsAddLineItem, UpPlanAOGNumber) {
            if (UpPlanAOGNumber == 0) {
                if (IsAddLineItem == "1") {
                    return 0;
                }
                else {
                    return PlanAOGNumber;
                }
            }
            else { return UpPlanAOGNumber; }

        }



        //提交事件
        agent.on('beforeSubmit', function (name, name1) {

            var ID = agent.Eles[document.getElementById("XTextBoxID").getAttribute("xform_xele_index")].getValue();
            var TWID = agent.Eles[document.getElementById("XTextBoxTWID").getAttribute("xform_xele_index")].getValue();
            var FormState = agent.Eles[document.getElementById("XTextBoxFormState").getAttribute("xform_xele_index")].getValue();
            var ArrivalRequisitionNo;
            var textTaskID = agent.Eles[document.getElementById("xtxtTaskID").getAttribute("xform_xele_index")].getValue();
            ArrivalRequisitionNo = agent.Eles[document.getElementById("XLabel1").getAttribute("xform_xele_index")].getValue();

            if (getXValue("XTextBoxID") != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/WorkFlow/Services/StockInListHandler.ashx'),
                    method: 'POST',
                    async: false,
                    params: {
                        method: 'UpPaydays',
                        param: ID,
                        pstate: FormState,
                        ArrivalRequisitionNo: ArrivalRequisitionNo
                    },
                    success: function (action) {

                    },
                    failure: function (action) {
                        if (!confirm(action.result.Msg)) {
                            return;
                        }
                    }
                });
            }


            if (name1 == "完成报关") {
                var tableObj = document.getElementById('tablenew');
                for (var i = 2; i < tableObj.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                    var Tariff = agent.Eles[tableObj.rows[i].cells[17].children[0].getAttribute("xform_xele_index")].getValue();     //关税%
                    var TariffAmount = agent.Eles[tableObj.rows[i].cells[18].children[0].getAttribute("xform_xele_index")].getValue();     //关税(采购币种)
                    if (Tariff == "" && TariffAmount == "") {
                        tableObj.rows[i].cells[17].children[0].style.backgroundColor = "red";
                        alert("请填写关税%或者关税(采购币种)");
                        return false;
                    }
                }
            }
            //tablenew

        });

        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")]);
            }
        }
    </script>

</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo"></td>
                    <td class="biaoti">
                        <asp:Label ID="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="--系统自动生成--" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.FormNo" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1176" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="21" colspan="4">
                        <asp:Label ID="Label10" runat="server" Text="标记*的为申请人必填项" ForeColor="Red" Font-Bold="True"></asp:Label>&nbsp;
                        <asp:Label ID="Label36" runat="server" Text="标记*的为物资入库审核员/报关员必填项" ForeColor="Blue" Font-Bold="True"></asp:Label>
                        <aspxform:XTextBox id="XTextBoxID" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.TobeWarehousingID" BorderColor="#DCDCDC" BorderWidth="1" Width="50px"  HiddenInput="True" ></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBoxTWID" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.TWID" BorderColor="#DCDCDC" BorderWidth="1" Width="50px"  HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBoxFormState" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.TobeWarehousingFormState" BorderColor="#DCDCDC" BorderWidth="1" Width="50px"  HiddenInput="True" ></aspxform:XTextBox>
                        
                        <aspxform:XTextBox ID="XTextBox25" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.POList" BorderColor="#DCDCDC" BorderWidth="1" Width="50px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox27" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.PORowNumList" BorderColor="#DCDCDC" BorderWidth="1" Width="100px" HiddenInput="True" ValueToDisplayText></aspxform:XTextBox>
                        <aspxform:XTextBox ID="xtxtTaskID" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.TaskID" BorderColor="#DCDCDC" BorderWidth="1" Width="50px" HiddenInput="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XTextBox ID="XTextBox26" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.BGStartDate" BorderColor="#DCDCDC" BorderWidth="1" Width="100px" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox32" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.BGEndDate" BorderColor="#DCDCDC" BorderWidth="1" Width="100px" HiddenExpress="1"></aspxform:XTextBox>
                        <asp:TextBox ID="txtType" runat="server" Width="50px" type="hidden"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label ID="Label3" runat="server" Text="基本信息"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox15" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.Type" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenInput="True">申请</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="129" height="25" class="tsbottomlabel">
                        <asp:Label ID="Label4" runat="server" Text="申请人"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.CreateAccount" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="459" class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox2" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.CreateName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="129" class="tsbottomlabel">
                        <asp:Label ID="Label5" runat="server" Text="创建日期"></asp:Label></td>
                    <td width="459" class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="XDateTimePicker1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.CreateDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel">
                        <asp:Label ID="Label6" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label7" runat="server" Text="单据类型"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList ID="XDropDownList1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.BillsType" Width="180px" DisableExpress='Global.StepName!="采购员发起到货申请"' XDataSource='TableName:DF_DataSourceList;Filter:Type->"单据类型(采购入库)"' ValueColumn="Name" DisplayColumn="Name" PromptText="--请选择--"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label8" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label9" runat="server" Text="需物资确认收货地"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList ID="XRadioButtonList1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.IsConfirmReceivePlace" DisableExpress='Global.StepName!="采购员发起到货申请"' RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label42" runat="server" Text="采购公司代码"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox24" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.CompanyCode" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label40" runat="server" Text="采购币种"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox44" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.PurchCurrency" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label41" runat="server" Text="报关行"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox40" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.CustomsBroker" BorderColor="#DCDCDC" BorderWidth="1" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label47" Style="height: 14px; width: 48px" runat="server" Text="发货日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="XDateTimePicker4" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.DeliveryDate" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label44" runat="server" Text="国际货运代理"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox41" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.FreightForwarder" BorderColor="#DCDCDC" BorderWidth="1" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label48" runat="server" Text="航班日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="XDateTimePicker5" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.FlightDate" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label45" runat="server" Text="主运单号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox42" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.WaybillNum1" BorderColor="#DCDCDC" BorderWidth="1" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label49" runat="server" Text="供应商账期到期日"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="XDateTimePicker6" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.MaturityDate" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label46" runat="server" Text="分运单号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox43" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.WaybillNum2" BorderColor="#DCDCDC" BorderWidth="1" Width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator1" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择单据类型" ValidationGroup="submit" ControlToValidate="XDropDownList1">请选择单据类型</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator2" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择需物资确认收货地" ValidationGroup="submit" ControlToValidate="XRadioButtonList1">请选择需物资确认收货地</aspxform:XRequiredFieldValidator>
        <br /> 
        <div align="center" id="scrollDiv" style="overflow: scroll; border-top: #93a1ae 1px solid; height: 600px; border-right: #93a1ae 1px solid; width: 1200px; border-bottom: #93a1ae 1px solid; text-align: center; clear: both; border-left: #93a1ae 1px solid">
        <%--<div align="center" id="scrollDiv" style="overflow: scroll; border-top: #93a1ae 1px solid; height: 600px; border-right: #93a1ae 1px solid; width: 1200px; border-bottom: #93a1ae 1px solid; text-align: center; clear: both; border-left: #93a1ae 1px solid">--%>
           
            <table width="3390" align="center" class="scrolltable" id="tablenew" border="0" cellspacing="0" cellpadding="0" runat="server" dynamicarea="2,1" menudock="Left">
                <tbody>
                    <tr class="scrollColThead">
                        <td height="21" class="title1" style="border-top: medium none" colspan="28">
                            <asp:Label ID="Label11" runat="server" Text="产品明细"></asp:Label>&nbsp; 
                            &nbsp;<aspxform:XCustomBrowserButton ID="XCustomBrowserButton1" runat="server" Text="增加行项目" XClass="Oimec.Dialogs.AddLineItemInfoButton" Width="80px" DisableExpress='Global.StepName!="采购员发起到货申请"'  HiddenExpress="DF_SD_ArrivalOrReceiveApp_Info.TWID!=''" AppendMode="Append" UseSubmitBehavior="False" DataMap="SOLineNum->DF_SD_ArrivalOrReceiveApp_Detail.SOLineNumber;SupplierName->DF_SD_ArrivalOrReceiveApp_Detail.SupplierName;PurchaseContractNo->DF_SD_ArrivalOrReceiveApp_Detail.PurchaseContractNo;Plant->DF_SD_ArrivalOrReceiveApp_Detail.Plant;PantPlanceCode->DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlanceID;PrdtName->DF_SD_ArrivalOrReceiveApp_Detail.ProductName;SupplierDeliveryDate->DF_SD_ArrivalOrReceiveApp_Detail.SupplierDeliveryDate;PantArrivalDate->DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGDate;PO->DF_SD_ArrivalOrReceiveApp_Detail.PO;UnitPrice->DF_SD_ArrivalOrReceiveApp_Detail.UnitPrice;PantNum->DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGNumber;POLineNum->DF_SD_ArrivalOrReceiveApp_Detail.POLineNum;PlantName->DF_SD_ArrivalOrReceiveApp_Detail.PlantName;PantPlanceName->DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlance;SO->DF_SD_ArrivalOrReceiveApp_Detail.SO;PrdtMondel->DF_SD_ArrivalOrReceiveApp_Detail.ProductModel;STPCustomerName->DF_SD_ArrivalOrReceiveApp_Detail.SoldCustomerName;CurrencyCode->DF_SD_ArrivalOrReceiveApp_Detail.Currency;ManufacturerName->DF_SD_ArrivalOrReceiveApp_Detail.ManufacturerName;ManufacturerID->DF_SD_ArrivalOrReceiveApp_Detail.ManufactureID;PrdtSAPID->DF_SD_ArrivalOrReceiveApp_Detail.PrdtSAPID;IsAddLineItem->DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem;SalesMan->DF_SD_ArrivalOrReceiveApp_Detail.SalesMan;SalesManID->DF_SD_ArrivalOrReceiveApp_Detail.SalesManID;CGGS_BFB->DF_SD_ArrivalOrReceiveApp_Detail.Tariff;CGGS_Z->DF_SD_ArrivalOrReceiveApp_Detail.TariffAmount"></aspxform:XCustomBrowserButton>
                            <aspxform:XExcelDataExportButton ID="XExcelDataExportButton1" runat="server" Text="导出到Excel" ExportTableID="tablenew" PrintOut="False"></aspxform:XExcelDataExportButton>
                        &nbsp;<aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Text="增加PO信息" XClass="Oimec.Dialogs.GetArrivalPOInfoButton" Width="80px" Height="25px" DisableExpress='Global.StepName!="采购员发起到货申请"' HiddenExpress="DF_SD_ArrivalOrReceiveApp_Info.TWID==''" AppendMode="ClearAndAppend" UseSubmitBehavior="False" DataMap="SOLineNum->DF_SD_ArrivalOrReceiveApp_Detail.SOLineNumber;SupplierName->DF_SD_ArrivalOrReceiveApp_Detail.SupplierName;PurchaseContractNo->DF_SD_ArrivalOrReceiveApp_Detail.PurchaseContractNo;Plant->DF_SD_ArrivalOrReceiveApp_Detail.Plant;PantPlanceCode->DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlanceID;PrdtName->DF_SD_ArrivalOrReceiveApp_Detail.ProductName;SupplierDeliveryDate->DF_SD_ArrivalOrReceiveApp_Detail.SupplierDeliveryDate;PantArrivalDate->DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGDate;PO->DF_SD_ArrivalOrReceiveApp_Detail.PO;UnitPrice->DF_SD_ArrivalOrReceiveApp_Detail.UnitPrice;PantNum->DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGNumber;POLineNum->DF_SD_ArrivalOrReceiveApp_Detail.POLineNum;PlantName->DF_SD_ArrivalOrReceiveApp_Detail.PlantName;PantPlanceName->DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlance;SO->DF_SD_ArrivalOrReceiveApp_Detail.SO;PrdtMondel->DF_SD_ArrivalOrReceiveApp_Detail.ProductModel;STPCustomerName->DF_SD_ArrivalOrReceiveApp_Detail.SoldCustomerName;CurrencyCode->DF_SD_ArrivalOrReceiveApp_Detail.Currency;ManufacturerName->DF_SD_ArrivalOrReceiveApp_Detail.ManufacturerName;ManufacturerID->DF_SD_ArrivalOrReceiveApp_Detail.ManufactureID;PrdtSAPID->DF_SD_ArrivalOrReceiveApp_Detail.PrdtSAPID;IsAddLineItem->DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem;SalesMan->DF_SD_ArrivalOrReceiveApp_Detail.SalesMan;SalesManID->DF_SD_ArrivalOrReceiveApp_Detail.SalesManID;CGGS_BFB->DF_SD_ArrivalOrReceiveApp_Detail.Tariff;CGGS_Z->DF_SD_ArrivalOrReceiveApp_Detail.TariffAmount"></aspxform:XCustomBrowserButton>
                            <aspxform:XButton ID="XButton2" runat="server" Text="批量删除" Width="80px" Height="25px" OnClientClick="DeleteBlocks1();"  DisableExpress='Global.StepName!="采购员发起到货申请"'></aspxform:XButton>
                       
                             </td>
                    </tr>
                    <tr class="scrollColThead">
                        <td class="tds" style="width: 50px; " onchange="onchange_del1()">删除 
                            <aspxform:XCheckBox ID="XCheckBox3" runat="server" Width="30px" ></aspxform:XCheckBox>
                        </td>
                        <td width="64" height="43" class="tds">
                            <asp:Label ID="Label12" runat="server" Text="行号"></asp:Label></td>
                        <td width="95" class="tds">&nbsp;<asp:Label ID="Label13" runat="server" Text="PO号"></asp:Label></td>
                        <td width="72" class="tds">&nbsp;<asp:Label ID="Label14" runat="server" Text="PO行号"></asp:Label></td>
                        <td width="171" class="tds">
                            <asp:Label ID="Label15" runat="server" Text="采购合同号"></asp:Label></td>
                        <td width="234" class="tds">
                            <asp:Label ID="Label43" runat="server" Text="供应商名称"></asp:Label></td>
                        <td width="104" class="tds">
                            <asp:Label ID="Label16" runat="server" Text="工厂名称"></asp:Label></td>
                        <td width="119" class="tds">&nbsp;<asp:Label ID="Label17" runat="server" Text="计划收货地"></asp:Label></td>
                        <td width="147" class="tds">&nbsp;<asp:Label ID="Label18" runat="server" Text="*" ForeColor="Blue"></asp:Label>&nbsp;
                            <asp:Label ID="Label21" runat="server" Text="实际收货地"></asp:Label>
                            <input style="height: 25px" onclick="copyLine(8);" type="button" value="复制首行" hiddenexpress='Global.StepName!="报关员报关处理"' />
                        </td>
                        <td width="40" class="tds" hidden="hidden">
                            <asp:Label ID="Label19" runat="server" Text="转发"></asp:Label></td>
                        <td width="119" class="tds">
                            <asp:Label ID="Label20" runat="server" Text="产品SAPID"></asp:Label></td>
                        <td width="179" class="tds">
                            <asp:Label ID="Label22" runat="server" Text="产品型号"></asp:Label></td>
                        <td width="168" class="tds">
                            <asp:Label ID="Label23" runat="server" Text="产品名称"></asp:Label></td>
                        <td width="120" class="tds">
                            <asp:Label ID="Label25" runat="server" Text="* " ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label26" runat="server" Text="计划到货数量"></asp:Label></td>
                        <td width="117" class="tds">
                            <asp:Label ID="Label39" runat="server" Text="* " ForeColor="Blue"></asp:Label>&nbsp;<asp:Label ID="Label27" runat="server" Text="物流分货数量"></asp:Label></td>
                        <td width="95" class="tds">
                            <asp:Label ID="Label29" runat="server" Text="含税采购单价(采购币种)"></asp:Label></td>
                        <td width="95" class="tds">
                            <asp:Label ID="Label30" runat="server" Text="计划到货总价(采购币种)"></asp:Label></td>
                        <td width="94" class="tds">
                            <asp:Label ID="Label31" runat="server" Text="采购币种"></asp:Label></td>
                        <td width="98" class="tds">
                            <asp:Label ID="Label53" runat="server" Text="* " ForeColor="Blue"></asp:Label>&nbsp;<asp:Label ID="Label51" runat="server" Text="关税%"></asp:Label></td>
                        <td width="113" class="tds">
                            <asp:Label ID="Label54" runat="server" Text="* " ForeColor="Blue"></asp:Label>&nbsp;<asp:Label ID="Label52" runat="server" Text="关税(采购币种)"></asp:Label></td>
                        <td width="117" class="tds">
                            <asp:Label ID="Label32" runat="server" Text="业务员/备货"></asp:Label></td>
                        <td width="117" class="tds">
                            <asp:Label ID="Label33" runat="server" Text="SO号"></asp:Label></td>
                        <td width="95" class="tds">
                            <asp:Label ID="Label34" runat="server" Text="SO行号"></asp:Label></td>
                        <td width="232" class="tds">
                            <asp:Label ID="Label35" runat="server" Text="售达方客户名称"></asp:Label></td>
                        <td width="139" class="tds">&nbsp;<asp:Label ID="Label37" runat="server" Text="供应商发货日期"></asp:Label></td>
                        <td width="139" class="tds">&nbsp;<asp:Label ID="Label38" runat="server" Text="预计到货日期"></asp:Label></td>
                        <td width="174" class="tds">
                            <asp:Label ID="Label24" runat="server" Text="厂商名称"></asp:Label></td>
                        <td width="121" class="tds">
                            <asp:Label ID="Label28" runat="server" Text="备注"></asp:Label></td>
                    </tr>
                    <tr>
                         <td class="tds1" style="text-align:center;" >
                            <aspxform:XCheckBox ID="XCheckBox4" runat="server" Width="30px"></aspxform:XCheckBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XGridLineNo ID="XGridLineNo1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.LineNum" BorderWidth="1" Width="100%" TextAlign="Center" BorderStyle="None" name="XGridLineNo1">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox3" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PO" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox3"></aspxform:XTextBox>
                            <br />
                            <aspxform:XTextBox ID="XTextBox38" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenExpress="1" TextAlign="Center" name="XTextBox38"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox39" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.BU" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="True" ReadOnly="True" name="XTextBox39"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox4" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.POLineNum" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Center" name="XTextBox4"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox5" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PurchaseContractNo" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox5"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox14" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SupplierName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox14"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox33" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.Plant" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" HiddenInput="True" ReadOnly="True" TextAlign="Center" name="XTextBox33"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox6" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlantName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" PrintOut="False" TextAlign="Center" name="XTextBox6"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox7" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlance" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox7"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox28" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlanceID" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenInput="True" PrintOut="False" name="XTextBox28"></aspxform:XTextBox>
                            <aspxform:XDropDownList ID="XDropDownList3" runat="server" Width="50px" HiddenExpress="1" XDataSource="TableName:V_DF_Logistics_StorageInfo;Filter:SAPStorageID->DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlanceID,SAPPlant->DF_SD_ArrivalOrReceiveApp_Detail.Plant" DataMap="StorageName->DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlance" name="XDropDownList3"></aspxform:XDropDownList>
                        </td>
                        <td class="tds1">
                            <aspxform:XDropDownList ID="XDropDownList2" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlance" Width="90%" DisableExpress='Global.StepName!="物资入库审核员确认收货地" &amp;&amp; Global.StepName!="报关员报关处理"' XDataSource="TableName:V_DF_Logistics_Storage;Filter:--请选择--" ValueColumn="Storage" DisplayColumn="Storage" PromptText="--请选择--" DataMap="StorageID->DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlanceID" name="XDropDownList2"></aspxform:XDropDownList>
                            <aspxform:XTextBox ID="XTextBox34" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlanceOld" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="True" name="XTextBox34" Express='if(Global.StepName=="采购员发起到货申请",DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlance,DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlanceOld)'></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox37" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlanceID" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="True" name="XTextBox37"></aspxform:XTextBox>
                        </td>
                        <td align="center" class="tds1" hidden="hidden">
                            <aspxform:XCheckBox ID="XCheckBox1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.IsDeliver" DisableExpress='Global.StepName!="物资入库审核员确认收货地"'></aspxform:XCheckBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox8" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PrdtSAPID" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox8"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox9" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.ProductModel" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox9"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox10" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.ProductName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox10"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox12" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.UpPlanAOGNumber" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisableExpress='Global.StepName!="采购员发起到货申请"' TextAlign="Center" name="XTextBox12" Express='javascript("UpPlanAOGNumber",DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGNumber,DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem,DF_SD_ArrivalOrReceiveApp_Detail.UpPlanAOGNumber)' Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox29" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGNumber" BorderColor="Gainsboro" BorderWidth="1px" Width="42px" HiddenInput="True" Max="0" Min="0" ValueToDisplayText DisableExpress='Global.StepName!="采购员发起到货申请"' TextAlign="Center" name="XTextBox29" Format="type:number;.0"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox30" name="XTextBox30" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SortNumber" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisableExpress='Global.StepName!="物资入库审核员确认收货地"  &amp;&amp; Global.StepName!="报关员报关处理"' TextAlign="Center" Express="DF_SD_ArrivalOrReceiveApp_Detail.UpPlanAOGNumber" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox31" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealAOGNumber" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenExpress="1" ReadOnly="True" TextAlign="Center" name="XTextBox31" Express="DF_SD_ArrivalOrReceiveApp_Detail.SortNumber" Format="type:number;.0"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox16" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.UnitPrice" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Right" name="XTextBox16" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox17" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.TotalPrice" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Right" name="XTextBox17" Express="DF_SD_ArrivalOrReceiveApp_Detail.UpPlanAOGNumber*DF_SD_ArrivalOrReceiveApp_Detail.UnitPrice" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox18" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.Currency" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Center" name="XTextBox18"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox45" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.Tariff" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisableExpress='Global.StepName!="采购员发起到货申请" &amp;&amp; Global.StepName!="报关员报关处理"' TextAlign="Right" name="XTextBox45"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox46" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.TariffAmount" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisableExpress='Global.StepName!="采购员发起到货申请" &amp;&amp; Global.StepName!="报关员报关处理"' TextAlign="Right" name="XTextBox46" Format="type:number;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox19" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SalesMan" BackColor="#D4E4FE" BorderColor="Gainsboro" BorderWidth="1px" Width="100%" HiddenInput="False" Max="0" Min="0" ValueToDisplayText ReadOnly="True" TextAlign="Center" name="XTextBox19" Height="21px"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox13" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SalesManID" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="True" name="XTextBox13"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox20" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SO" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Center" name="XTextBox20"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox21" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SOLineNumber" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Center" name="XTextBox21"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox22" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SoldCustomerName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox22"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox48" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SupplierDeliveryDate" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox48"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox49" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGDate" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox49"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox35" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.ManufacturerName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" name="XTextBox35"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox11" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.ManufactureID" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="True" ReadOnly="True" name="XTextBox11"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox47" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.Remark" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ValueToDisplayText DisableExpress='Global.StepName!="采购员发起到货申请" &amp;&amp; Global.StepName!="报关员报关处理"' TextAlign="Left" name="XTextBox47"></aspxform:XTextBox>
                            <aspxform:XDropDownList ID="XDropDownList4" runat="server" Width="10px" HiddenExpress="1" XDataSource="TableName:V_DF_MM_PurchaseHandleAndStockApp;Filter:PO->DF_SD_ArrivalOrReceiveApp_Detail.PO,PORowNumber->DF_SD_ArrivalOrReceiveApp_Detail.POLineNum" DataMap="Remark->DF_SD_ArrivalOrReceiveApp_Detail.Remark"></aspxform:XDropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="20" class="tds1" colspan="15"></td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox36" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.Total" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Right" Express="sum(DF_SD_ArrivalOrReceiveApp_Detail.TotalPrice)" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" colspan="11"></td>
                    </tr>
                </tbody>
            </table>
        </div>
                 <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator3" runat="server" ForeColor="Red" ControlToValidate="XTextBox12" ValidationGroup="submit" ErrorMessage="请填写计划到货数量" Display="None">请填写计划到货数量</aspxform:XRequiredFieldValidator>
        <aspxform:XCompareValidator ID="XCompareValidator1" runat="server" ForeColor="Red" ControlToValidate="XTextBox12" ValidationGroup="submit" ErrorMessage="计划到货数量必须大于0" Display="None" Operator="GreaterThan" ValueToCompare="0">计划到货数量必须大于0</aspxform:XCompareValidator>
        &nbsp;&nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator4" runat="server" ForeColor="Blue" ControlToValidate="XDropDownList2" ValidationGroup="rksh" ErrorMessage="请选择实际收货地" Display="None">请选择实际收货地</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator5" runat="server" ForeColor="Blue" ControlToValidate="XTextBox30" ValidationGroup="rksh" ErrorMessage="请填写物流分货数量" Display="None">请填写物流分货数量</aspxform:XRequiredFieldValidator>
        &nbsp;
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator8" runat="server" ForeColor="Blue" ControlToValidate="XDropDownList2" ValidationGroup="bgcl" ErrorMessage="请选择实际收货地" Display="None">请选择实际收货地</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator9" runat="server" ForeColor="Blue" ControlToValidate="XTextBox30" ValidationGroup="bgcl" ErrorMessage="请填写物流分货数量" Display="None">请填写物流分货数量</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress='DF_SD_ArrivalOrReceiveApp_Detail.TariffAmount!=""' Display="None" ErrorMessage="请填写关税%或者关税(采购币种)" ValidationGroup="bgcl" ControlToValidate="XTextBox45" ForeColor="Red">请填写关税%或者关税(采购币种)</aspxform:XRequiredFieldValidator>
        &nbsp; <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress='DF_SD_ArrivalOrReceiveApp_Detail.Tariff!="" ' Display="None" ErrorMessage="请填写关税%或者关税(采购币种)" ValidationGroup="bgcl" ControlToValidate="XTextBox46" ForeColor="Red">请填写关税%或者关税(采购币种)</aspxform:XRequiredFieldValidator>
        <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" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.Attachment" BackColor="#d4e4fe" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif,*.png"></aspxform:XAttachments>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label50" runat="server" Text="上传外币到货单据（供应商运单、发票、箱单）"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 80%">
                        <aspxform:XAttachments ID="XAttachments2" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.Attachment1" BackColor="#d4e4fe" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif,*.png"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label ID="Label83" runat="server" Text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox23" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.Remark" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" TextMode="MultiLine" Rows="5"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <br />
        <aspxform:XSignTrace ID="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
    </form>
</body>
</html>
