<%@ 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)
    {
        string strPO = Request.QueryString["PO"];
        string strPORowNumber = Request.QueryString["PORowNumber"];
        string CompanyCode = Request.QueryString["CompanyCode"];
        int count = Convert.ToInt32(Request.QueryString["Count"]);
        this.XTextBox24.Text = CompanyCode;
        this.XTextBox25.Text = strPO;
        this.XTextBox27.Text = strPORowNumber;
    }

</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 GetPurchaseAOGAppInfo(PO, POLineNum,LineNum) {
           
            if (PO != null && PO != undefined && PO != "") {
                PO = PO.toString().replace(/,/g, '/');
                POLineNum = POLineNum.toString().replace(/,/g, '/');
                var strLineNum = new Array();
                strLineNum = LineNum.toString().split(",");

                YZSoft.Ajax.request({
                    async: false,
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    params: {
                        method: 'GetPurchaseAOGAppInfo',
                        strPO: PO,
                        strPORowNumber: POLineNum
                    },
                    success: function (action) {
                        var data = action.result;
                        var count = data.count;
                        var list = data.listInfo;
                        if (count > 0) {
                            for (var i = 0; i < count; i++) {
                                var table = document.getElementById("tablenew");
                                for (var j = 2; j < strLineNum.length+2; j++) {
                                    var strpo= agent.Eles[table.rows[j].cells[1].children[0].getAttribute("xform_xele_index")].getValue();
                                    var strpoLineNum= agent.Eles[table.rows[j].cells[2].children[0].getAttribute("xform_xele_index")].getValue();
                                    if(list[i].PO==strpo && list[i].POLineNum==strpoLineNum)
                                    {
                                        agent.Eles[table.rows[j].cells[3].children[0].getAttribute("xform_xele_index")].setValue(list[i].PurchaseContractNo);
                                        agent.Eles[table.rows[j].cells[4].children[0].getAttribute("xform_xele_index")].setValue(list[i].SupplierName);
                                        agent.Eles[table.rows[j].cells[5].children[1].getAttribute("xform_xele_index")].setValue(list[i].Plant);
                                        agent.Eles[table.rows[j].cells[5].children[0].getAttribute("xform_xele_index")].setValue(list[i].PlantName);
                                        agent.Eles[table.rows[j].cells[6].children[0].getAttribute("xform_xele_index")].setValue(list[i].PantPlanceName);
                                        agent.Eles[table.rows[j].cells[6].children[1].getAttribute("xform_xele_index")].setValue(list[i].PantPlanceCode);

                                        agent.Eles[table.rows[j].cells[8].children[0].getAttribute("xform_xele_index")].setValue(list[i].PrdtSAPID);
                                        agent.Eles[table.rows[j].cells[9].children[0].getAttribute("xform_xele_index")].setValue(list[i].PrdtMondel);
                                        agent.Eles[table.rows[j].cells[10].children[0].getAttribute("xform_xele_index")].setValue(list[i].PrdtName);
                                        agent.Eles[table.rows[j].cells[11].children[0].getAttribute("xform_xele_index")].setValue(list[i].ManufacturerName);
                                        agent.Eles[table.rows[j].cells[12].children[0].getAttribute("xform_xele_index")].setValue(list[i].PantNum);
                                        agent.Eles[table.rows[j].cells[15].children[0].getAttribute("xform_xele_index")].setValue(list[i].UnitPrice);
                                        agent.Eles[table.rows[j].cells[17].children[0].getAttribute("xform_xele_index")].setValue(list[i].CurrencyCode);
                                        agent.Eles[table.rows[j].cells[19].children[0].getAttribute("xform_xele_index")].setValue(list[i].SO);
                                        agent.Eles[table.rows[j].cells[20].children[0].getAttribute("xform_xele_index")].setValue(list[i].SOLineNum);
                                        agent.Eles[table.rows[j].cells[21].children[0].getAttribute("xform_xele_index")].setValue(list[i].STPCustomerName);
                                        agent.Eles[table.rows[j].cells[22].children[0].getAttribute("xform_xele_index")].setValue(list[i].SupplierDeliveryDate);
                                        agent.Eles[table.rows[j].cells[23].children[0].getAttribute("xform_xele_index")].setValue(list[i].StaffSAPNumber);
                                        agent.Eles[table.rows[j].cells[18].children[0].getAttribute("xform_xele_index")].setValue(list[i].SalesMan);
                                        agent.Eles[table.rows[j].cells[18].children[0].getAttribute("xform_xele_index")].setValue(list[i].SalesManID);
                                       // agent.Eles[table.rows[j].cells[6].children[0].getAttribute("xform_xele_index")].setValue(list[i].IsAddLineItem);

                                    }
                                }
                            
                            }
                        }

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


    Ext.onReady(function () {
        //XTextBox30
        //agent.Eles[document.getElementById("XTextBox30").getAttribute("xform_xele_index")].setValue(userToken.Account);
        XFormOnChange(agent.Eles[document.getElementById("XTextBox25").getAttribute("xform_xele_index")]);

    });

</script>
</head>
<body>
    <form runat="server">
        <br />
        <!-- 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" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.FormNo" BackColor="#8AB3DF" Text="--系统自动生成--"></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="标记*的为申请人必填项" font-bold="True" forecolor="Red"></asp:Label>&nbsp; <asp:Label id="Label36" runat="server" text="标记*的为物资入库审核员必填项" font-bold="True" forecolor="Blue"></asp:Label></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">
                        <aspxform:XTextBox id="XTextBox39" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="100%" Express="DF_SD_ArrivalOrReceiveApp_Info.POList"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" xclass="Oimec.Dialogs.AddLineItemInfoButton">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Info.POList" BorderColor="#DCDCDC" BorderWidth="1" Width="50px" HiddenInput="False"></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>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" Display="None" ErrorMessage="请选择单据类型" ValidationGroup="submit" ControlToValidate="XDropDownList1" ForeColor="Red">请选择单据类型</aspxform:XRequiredFieldValidator>
        &nbsp;
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" Display="None" ErrorMessage="请选择需物资确认收货地" ValidationGroup="submit" ControlToValidate="XRadioButtonList1" ForeColor="Red">请选择需物资确认收货地</aspxform:XRequiredFieldValidator>
        <br />
        <div class="scrollDiv" id="scrollDiv">
            <table width="2800" align="center" class="scrolltable" id="tablenew" style="BORDER-TOP: medium none" border="0" cellspacing="0" cellpadding="0" datamap="PO->DF_SD_ArrivalOrReceiveApp_Detail.PO;POLineNum->DF_SD_ArrivalOrReceiveApp_Detail.POLineNum" dynamicarea="2,1" menudock="Left" xdatasource="ESB:WebService:GetPOInfo;Filter:PO->DF_SD_ArrivalOrReceiveApp_Info.POList,PORowNumber->DF_SD_ArrivalOrReceiveApp_Info.PORowNumList">
                <tbody>
                    <%--<tr class="scrollColThead">--%>
                    <tr>
                        <%--<td height="18" class="scrollRowThead scrollCR" colspan="24">--%>
                        <td height="17" class="title1" style="BORDER-TOP: medium none" colspan="25">
                            <asp:Label id="Label11" runat="server" text="产品明细"></asp:Label>&nbsp;<aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="增加行项目" Width="80px" xclass="Oimec.Dialogs.AddLineItemInfoButton" AppendMode="Append" UseSubmitBehavior="False" DataMap="IsAddLineItem->DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem;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;SalesMan->DF_SD_ArrivalOrReceiveApp_Detail.SalesMan;SalesManID->DF_SD_ArrivalOrReceiveApp_Detail.SalesManID;UnitPrice->DF_SD_ArrivalOrReceiveApp_Detail.UnitPrice;PantNum->PlanNumber1;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;PrdtSAPID->DF_SD_ArrivalOrReceiveApp_Detail.PrdtSAPID"></aspxform:XCustomBrowserButton>
                            <aspxform:XTextBox id="XTextBox35" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="100px" Express='javascript("GetPurchaseAOGAppInfo",DF_SD_ArrivalOrReceiveApp_Detail.PO,DF_SD_ArrivalOrReceiveApp_Detail.POLineNum,DF_SD_ArrivalOrReceiveApp_Detail.LineNum)'></aspxform:XTextBox>
                        </td>
                    </tr>
                    <%--<tr class="scrollColThead">--%>
                    <tr>
                        <td width="54" height="21" class="tds">
                            <asp:Label id="Label12" runat="server" text="行号"></asp:Label></td>
                        <td width="80" class="tds">
                            &nbsp;<asp:Label id="Label13" runat="server" text="PO号"></asp:Label></td>
                        <td width="60" class="tds">
                            &nbsp;<asp:Label id="Label14" runat="server" text="PO行号"></asp:Label></td>
                        <td width="150" class="tds">
                            <asp:Label id="Label15" runat="server" text="采购合同号"></asp:Label></td>
                        <td width="200" class="tds">
                            <asp:Label id="Label43" runat="server" text="供应商名称"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label16" runat="server" text="工厂名称"></asp:Label></td>
                        <td width="80" class="tds">
                            &nbsp;<asp:Label id="Label17" runat="server" text="计划收货地"></asp:Label></td>
                        <td width="120" class="tds">
                            &nbsp;<asp:Label id="Label18" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp; <asp:Label id="Label21" runat="server" text="实际收货地"></asp:Label></td>
                        <td width="40" class="tds" hidden="hidden">
                            <asp:Label id="Label19" runat="server" text="转发"></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label20" runat="server" text="产品SAPID"></asp:Label></td>
                        <td width="150" class="tds">
                            <asp:Label id="Label22" runat="server" text="产品型号"></asp:Label></td>
                        <td width="150" class="tds">
                            <asp:Label id="Label23" runat="server" text="产品名称"></asp:Label></td>
                        <td width="150" class="tds">
                            <asp:Label id="Label24" runat="server" text="厂商名称"></asp:Label></td>
                        <td width="100" 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="100" 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="100" class="tds">
                            <asp:Label id="Label40" runat="server" text="* " forecolor="Black"></asp:Label>&nbsp;<asp:Label id="Label28" runat="server" text="实际到货数量"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label29" runat="server" text="采购单价"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label30" runat="server" text="采购总价"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label31" runat="server" text="采购币种"></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label32" runat="server" text="业务员/备货"></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label33" runat="server" text="SO号"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label34" runat="server" text="SO行号"></asp:Label></td>
                        <td width="200" class="tds">
                            <asp:Label id="Label35" runat="server" text="售达方客户名称"></asp:Label></td>
                        <td width="120" class="tds">
                            &nbsp;<asp:Label id="Label37" runat="server" text="供应商发货日期"></asp:Label></td>
                        <td width="120" class="tds">
                            &nbsp;<asp:Label id="Label38" runat="server" text="预计到货日期"></asp:Label></td>
                    </tr>
                    <tr>
                        <td height="101" class="tds1">
                            <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.LineNum" BorderWidth="1" Width="100%" TextAlign="Center" BorderStyle="None">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"></aspxform:XTextBox>
                            <br />
                            <aspxform:XTextBox id="XTextBox38" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" TextAlign="Center" HiddenExpress="1"></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"></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"></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"></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"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlantName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" TextAlign="Center"></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"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanReceivePlanceID" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenInput="True"></aspxform:XTextBox>
                            <aspxform:XDropDownList id="XDropDownList3" runat="server" Width="50px" 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" HiddenExpress="1"></aspxform:XDropDownList>
                        </td>
                        <td class="tds1">
                            <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlance" Width="100%" DisableExpress='Global.StepName!="物资入库审核员确认收货地"' XDataSource="TableName:V_DF_Logistics_Storage;Filter:--请选择--" ValueColumn="Storage" DisplayColumn="Storage" PromptText="--请选择--" DataMap="StorageID->DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlanceID"></aspxform:XDropDownList>
                            <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealReceivePlanceOld" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" width="100%" 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" HiddenInput="True" width="100%"></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"></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"></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"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.ManufacturerName" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True"></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!="采购员发起到货申请"' Express='if(DF_SD_ArrivalOrReceiveApp_Detail.IsAddLineItem=="1",0,DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGNumber)' TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGNumber" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" HiddenInput="True" DisableExpress='Global.StepName!="采购员发起到货申请"' Express="PlanNumber1-PlanNumber" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="PlanNumber" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" HiddenInput="True" ValueToDisplayText TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox32" runat="server" XDataBind="PlanNumber1" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" HiddenInput="True" ValueToDisplayText TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XDropDownList id="XDropDownList5" runat="server" Width="50px" XDataSource="TableName:V_DF_SD_PlanArrivalGoodsNumber;Filter:PO->DF_SD_ArrivalOrReceiveApp_Detail.PO,POLineNum->DF_SD_ArrivalOrReceiveApp_Detail.POLineNum" DataMap="Number->PlanNumber" HiddenExpress="1"></aspxform:XDropDownList>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox30" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SortNumber" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisableExpress='Global.StepName!="物资入库审核员确认收货地"' Express="DF_SD_ArrivalOrReceiveApp_Detail.UpPlanAOGNumber" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox31" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.RealAOGNumber" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True" Express="DF_SD_ArrivalOrReceiveApp_Detail.SortNumber" TextAlign="Center" 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" 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" Express="DF_SD_ArrivalOrReceiveApp_Detail.UpPlanAOGNumber*DF_SD_ArrivalOrReceiveApp_Detail.UnitPrice" TextAlign="Right" 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"></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" ReadOnly="True" ValueToDisplayText TextAlign="Center" Height="21px"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SalesManID" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" HiddenInput="True"></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"></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"></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"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.SupplierDeliveryDate" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisplayOnly="True"></aspxform:XDateTimePicker>
                        </td>
                        <td class="tds1">
                            <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_SD_ArrivalOrReceiveApp_Detail.PlanAOGDate" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" DisplayOnly="True"></aspxform:XDateTimePicker>
                        </td>
                    </tr>
                    <tr>
                        <td height="14" class="tds1" colspan="17">
                        </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" Express="sum(DF_SD_ArrivalOrReceiveApp_Detail.TotalPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" colspan="7">
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" Display="None" ErrorMessage="请填写计划到货数量" ValidationGroup="submit" ControlToValidate="XTextBox12" ForeColor="Red">请填写计划到货数量</aspxform:XRequiredFieldValidator>
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" Display="None" ErrorMessage="计划到货数量必须大于0" ValidationGroup="submit" ControlToValidate="XTextBox12" ForeColor="Red" ValueToCompare="0" Operator="GreaterThan">计划到货数量必须大于0</aspxform:XCompareValidator>
        &nbsp;&nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" Display="None" ErrorMessage="请选择实际收货地" ValidationGroup="rksh" ControlToValidate="XDropDownList2" ForeColor="Blue">请选择实际收货地</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" Display="None" ErrorMessage="请填写物流分货数量" ValidationGroup="rksh" ControlToValidate="XTextBox30" ForeColor="Blue">请填写物流分货数量</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>
            </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>
