<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<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 src="../../../../Oimec/Script/jquery-3.2.1.js"></script>
    <script src="../../../../Oimec/Script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">

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

        agent.on('beforeSubmit', function (action, actionname) {

            if (actionname == "提交") {

                //数据控制验证
                var SCompanyName = getXValue("XTextBox45");
                var SCompanyAddr = getXValue("XTextBox46");
                var SContacts = getXValue("XTextBox48");
                var SPhone = getXValue("XTextBox49");
                var RCompanyName = getXValue("XTextBox50");
                var RCompanyAddr = getXValue("XTextBox51");
                var RContacts = getXValue("XTextBox53");
                var RPhone = getXValue("XTextBox54");
                var way = $("input[name='XRadioButtonList1']:checked").val();//运输方式
                var XAttachments1 = getXValue("XAttachments1"); //客户签收单
                //var XAttachments2 = getXValue("XAttachments2"); //供应商发货单据
                //var XAttachments3 = getXValue("XAttachments3"); //供应商发货单据

                if (way == "其他") {
                    //未上传客户签收单时 收货信息必填
                    if (XAttachments1 == "") {
                        if (RCompanyName == "") {
                            Ext.Msg.alert("提示", "请填写收货客户名称！");
                            return false;
                        }
                        if (RCompanyAddr == "") {
                            Ext.Msg.alert("提示", "请填写收货地址！");
                            return false;
                        }
                        if (RContacts == "") {
                            Ext.Msg.alert("提示", "请填写联系人！");
                            return false;
                        }
                        if (RPhone == "") {
                            Ext.Msg.alert("提示", "请填写电话！");
                            return false;
                        }
                    }
                }
                if (way == "东方中科安排物流") {
                    if (SCompanyName == "") {
                        Ext.Msg.alert("提示", "请填写发货公司名称！");
                        return false;
                    }
                    if (SCompanyAddr == "") {
                        Ext.Msg.alert("提示", "请填写发货地址！");
                        return false;
                    }
                    if (SContacts == "") {
                        Ext.Msg.alert("提示", "请填写联系人！");
                        return false;
                    }
                    if (SPhone == "") {
                        Ext.Msg.alert("提示", "请填写电话！");
                        return false;
                    }
                    if (RCompanyName == "") {
                        Ext.Msg.alert("提示", "请填写收货客户名称！");
                        return false;
                    }
                    if (RCompanyAddr == "") {
                        Ext.Msg.alert("提示", "请填写收货地址！");
                        return false;
                    }
                    if (RContacts == "") {
                        Ext.Msg.alert("提示", "请填写联系人！");
                        return false;
                    }
                    if (RPhone == "") {
                        Ext.Msg.alert("提示", "请填写电话！");
                        return false;
                    }
                }



                var table = document.getElementById("tableItems");
                if (table.rows.length > 1) {
                    for (var i = 2; i < table.rows.length - 1; i++) {
                        //实际直发数量
                        var ActNum = agent.Eles[table.rows[i].cells[11].children[0].getAttribute("xform_xele_index")].getValue();
                        //alert(ActNum);
                        //可直发数量
                        var EnableNum = agent.Eles[table.rows[i].cells[11].children[1].getAttribute("xform_xele_index")].getValue();
                        //alert(EnableNum);
                        if (ActNum > EnableNum) {
                            Ext.MessageBox.alert("提示：", "产品明细第[" + (i - 1) + "]行实际直发数量大于可直发数量,请重新输入");
                            return false;
                        }
                    }
                }


            }
        });

        //获取第一行PO采购公司代码、采购币种
        function GetPoCompy(companyCode) {
            companyCode = companyCode + ",";
            return companyCode.split(",")[0];
        }

        //获取物料凭证号
        function GetVoucher() {
            //SAP交货单号
            var deliveryNum = agent.Eles[document.getElementById("XTextBox25").getAttribute("xform_xele_index")].getValue();
            if (deliveryNum != '') {
                YZSoft.Ajax.request({
                    async: false,
                    url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                    params: {
                        method: 'GetDeliveryInfo',
                        DeliveryNum: deliveryNum
                    },
                    success: function (action) {
                        var data = action.result;
                        var count = data.TotalRows;
                        if (count > 0) {
                            var info = data.headInfo;
                            //物料凭证号
                            agent.Eles[document.getElementById("XTextBox27").getAttribute("xform_xele_index")].setValue(info.MBLNR);
                        }
                    },
                    failure: function (response) {
                    }
                });
            }

        }
    </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" BackColor="#8AB3DF" XDataBind="DF_MM_SupplierDeliver_Info.FormNo" Text="--系统自动生成--"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" 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></td>
                </tr>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.AppAccount" HiddenInput="True" Width="20px" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_SupplierDeliver_Info.AppName" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="创建日期"></asp:Label></td>
                    <td width="35%" class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_SupplierDeliver_Info.CreateDate" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label42" runat="server" text="采购公司代码"></asp:Label>
                        <aspxform:XTextBox id="XTextBox42" runat="server" BackColor="#E6F1F8" XDataBind="varCompanyCode" Width="30px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="CompanyCode" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox24" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_SupplierDeliver_Info.CompanyCode" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="javascript('GetPoCompy',varCompanyCode)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label6" runat="server" text="采购币种"></asp:Label>
                        <aspxform:XTextBox id="XTextBox41" runat="server" BackColor="#E6F1F8" XDataBind="varCurrency" Width="30px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="Currency" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox15" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_SupplierDeliver_Info.Currency" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="javascript('GetPoCompy',varCurrency)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label59" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="SAP交货单号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.DeliveryNo" Width="500px" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="Global.StepName!='物资入库审核员SAP收货、创建SAP交货单并过账' &amp;&amp; Global.StepName!='物资入库审核员SAP收货、创建SAP交货单并过账1'"></aspxform:XTextBox>
                        &nbsp; <asp:Label id="Label8" runat="server" text="（可以输入多个交货单，以“/”分隔）"></asp:Label></td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel">
                        <asp:Label id="Label9" runat="server" text="SAP物料凭证号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox27" runat="server" BackColor="#E6F1F8" XDataBind="DF_MM_SupplierDeliver_Info.MaterialVoucher" Width="500px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp; <asp:Label id="Label41" runat="server" text="（多个SAP物料凭证号，以“/”分隔）"></asp:Label>
                        <aspxform:XButton id="XButton3" runat="server" Text="更新SAP凭证" Width="100px" Height="22px" OnClientClick="GetVoucher()"></aspxform:XButton>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label44" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label48" runat="server" text="运输方式"></asp:Label></td>
                    <td class="tsbottomtext" xclass="Oimec.Dialogs.GetPOInfoSupplierDirectButton">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.TransWay" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">其他</asp:ListItem>
                            <asp:ListItem>东方中科安排物流</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label49" runat="server" text="发货公司名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox45" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.SendComapnyName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label51" runat="server" text="发货地址"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox46" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.SendAddress" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label57" runat="server" text="邮编"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox47" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.SendZipCode" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel">
                        <asp:Label id="Label50" runat="server" text="联系人"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox48" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.SendContacts" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label52" runat="server" text="电话"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox49" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.SendPhone" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label53" runat="server" text="收货客户名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox50" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.ReceiveCustomerName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label55" runat="server" text="收货地址"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox51" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.SendAddress" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label58" runat="server" text="邮编"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox52" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.ReceiveZipCode" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label54" runat="server" text="联系人"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox53" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.ReceiveContacts" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label56" runat="server" text="电话"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox54" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.ReceivePhone" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="sb" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择运输方式" ForeColor="Red">请选择运输方式</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="rkshy" ControlToValidate="XTextBox25" ErrorMessage="请填写SAP交货单号" ForeColor="Blue">请填写SAP交货单号</aspxform:XRequiredFieldValidator>
        <br />
        <div align="center" id="scrollDiv" style="BORDER-TOP: #93a1ae 1px solid; HEIGHT: auto; BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 1200px; OVERFLOW-X: scroll; BORDER-BOTTOM: #93a1ae 1px solid; TEXT-ALIGN: center; CLEAR: both; BORDER-LEFT: #93a1ae 1px solid">
            <table width="2450" align="center" class="scrolltable" id="tableItems" style="BORDER-TOP: medium none" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" menudock="Left" dynamicarea="2,1">
                <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">
                            <%--<aspxform:XTextBox id="XTextBox57" runat="server" XDataBind="DF_MM_SupplierDeliver_Detail.Plant" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" ReadOnly="True"></aspxform:XTextBox>--%><asp:Label id="Label11" runat="server" text="产品明细"></asp:Label>&nbsp;<aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Text="获取SAP-PO信息" XClass="Oimec.Dialogs.SupplierDeliverDetailButton" Width="120px" HiddenExpress="Global.StepName!='采购员发起到货申请'" Height="22px" UseSubmitBehavior="False" AppendMode="Append" DataMap="HandlerTaskID->DF_MM_SupplierDeliver_Detail.HandlerTaskID;HandlerFormNo->DF_MM_SupplierDeliver_Detail.HandlerFormNo;PO->DF_MM_SupplierDeliver_Detail.PO;PORowNumber->DF_MM_SupplierDeliver_Detail.PORowNumber;PurchaseContractNo->DF_MM_SupplierDeliver_Detail.PurchaseContractNo;SupplierName->DF_MM_SupplierDeliver_Detail.SupplierName;Plant->DF_MM_SupplierDeliver_Detail.Plant;Storage->DF_MM_SupplierDeliver_Detail.Storage;ProductSAPID->DF_MM_SupplierDeliver_Detail.ProductSAPID;ProductModel->DF_MM_SupplierDeliver_Detail.ProductModel;ProductName->DF_MM_SupplierDeliver_Detail.ProductName;PurchaseQuantity->DF_MM_SupplierDeliver_Detail.PurchaseQuantity;UnitPrice->DF_MM_SupplierDeliver_Detail.UnitPrice;SalesMan->DF_MM_SupplierDeliver_Detail.SalesMan;SalesManID->DF_MM_SupplierDeliver_Detail.SalesManID;SO->DF_MM_SupplierDeliver_Detail.SO;SORowNumber->DF_MM_SupplierDeliver_Detail.SORowNumber;SellerCustomerName->DF_MM_SupplierDeliver_Detail.SellerCustomerName;DeliveryDate->DF_MM_SupplierDeliver_Detail.DeliveryDate;ManufacturerName->DF_MM_SupplierDeliver_Detail.ManufacturerName;CompanyCode->CompanyCode;CurrencyCode->Currency;ActNum->DF_MM_SupplierDeliver_Detail.DeliverNumber;EnabelNum->DF_MM_SupplierDeliver_Detail.ActDeliverNumber;IsBatch->DF_MM_SupplierDeliver_Detail.IsBatch;SerialCode->DF_MM_SupplierDeliver_Detail.SerialCode;FKFCustomerName->DF_MM_SupplierDeliver_Detail.FKFCustomerName;PlantName->DF_MM_SupplierDeliver_Detail.PlantName;Plant1->Plant1;StorageName->DF_MM_SupplierDeliver_Detail.StorageName;Storage1->Storage1"></aspxform:XCustomBrowserButton>
                            &nbsp; <asp:Label id="Label47" runat="server" text="（注：暂时只能选择一个PO）" forecolor="Blue" font-size="9"></asp:Label></td>
                    </tr>
                    <%--<tr class="scrollColThead">--%> 
                    <tr>
                        <td width="54" height="15" 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="120" class="tds">
                            <asp:Label id="Label16" runat="server" text="工厂"></asp:Label></td>
                        <td width="120" class="tds">
                            &nbsp;<asp:Label id="Label17" 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="100" class="tds">
                            <asp:Label id="Label26" runat="server" text="实际采购数量"></asp:Label></td>
                        <td width="110" class="tds">
                            <asp:Label id="Label39" runat="server" text="* " forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label27" runat="server" text="实际直发数量"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label29" runat="server" text="含税采购单价(采购币种)"></asp:Label></td>
                        <td width="120" class="tds">
                            <asp:Label id="Label30" 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="150" class="tds">
                            <asp:Label id="Label24" runat="server" text="厂商名称"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tds1">
                            <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_MM_SupplierDeliver_Detail.LineNumber" Width="100%" BorderWidth="1" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                            <aspxform:XTextBox id="XTextBox39" runat="server" BackColor="#D4E4FE" XDataBind="CompanyCode" HiddenInput="true" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox40" runat="server" BackColor="#D4E4FE" XDataBind="Currency" HiddenInput="true" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox34" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.HandlerTaskID" HiddenInput="true" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox37" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.HandlerFormNo" HiddenInput="true" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox38" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.IsBatch" HiddenInput="true" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox44" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.SerialCode" HiddenInput="true" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox3" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.PO" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.PORowNumber" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox5" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.PurchaseContractNo" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox14" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.SupplierName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox33" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.Plant" HiddenInput="True" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox56" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.PlantName" HiddenInput="False" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox58" runat="server" BackColor="#D4E4FE" XDataBind="Plant1" HiddenInput="True" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox7" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.Storage" HiddenInput="True" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox59" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.StorageName" HiddenInput="False" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox60" runat="server" BackColor="#D4E4FE" XDataBind="Storage1" HiddenInput="True" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox8" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.ProductSAPID" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox9" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.ProductModel" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox10" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.ProductName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox30" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.PurchaseQuantity" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox31" runat="server" XDataBind="DF_MM_SupplierDeliver_Detail.ActDeliverNumber" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="Global.StepName!='采购员发起到货申请'" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox6" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.DeliverNumber" HiddenInput="False" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" HiddenExpress="1" Format="type:number;.0">0</aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox16" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.UnitPrice" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox17" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.TotalPrice" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="DF_MM_SupplierDeliver_Detail.ActDeliverNumber*DF_MM_SupplierDeliver_Detail.UnitPrice" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox19" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.SalesMan" HiddenInput="False" Width="100%" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" ReadOnly="True" Height="21px" TextAlign="Center" ValueToDisplayText></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_MM_SupplierDeliver_Detail.SalesManID" HiddenInput="true" Width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox20" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.SO" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox21" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.SORowNumber" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox22" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.SellerCustomerName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox55" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.FKFCustomerName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.DeliveryDate" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox35" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Detail.ManufacturerName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="14" class="tds1" colspan="13">
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox36" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_Info.Total" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="sum(DF_MM_SupplierDeliver_Detail.TotalPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" colspan="6">
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <aspxform:XCompareValidator id="XCompareValidator2" runat="server" Type="Integer" ValidationGroup="sb" ControlToValidate="XTextBox31" ErrorMessage="实际直发数量必须大于0" ForeColor="Red" ValueToCompare="0" SetFocusOnError="True" Operator="GreaterThan"></aspxform:XCompareValidator>
        <br />
        <table width="1200" align="center" class="table" id="tableSerial" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" menudock="Left" dynamicarea="2,1">
            <tbody>
                <tr>
                    <td height="17" class="title1" style="BORDER-TOP: medium none" colspan="8">
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="产品批次和序列号" XClass="Oimec.Dialogs.SupplierDeliverSerialButton" Width="120px" DisableExpress="Global.StepName!='采购员发起到货申请'" UseSubmitBehavior="False" AppendMode="ClearAndAppend" DataMap="ProductSAPID->DF_MM_SupplierDeliver_SerialDetail.ProductSAPID;ProductModel->DF_MM_SupplierDeliver_SerialDetail.ProductModel;PO->DF_MM_SupplierDeliver_SerialDetail.PO;PORowNumber->DF_MM_SupplierDeliver_SerialDetail.PORowNumber;Batch->DF_MM_SupplierDeliver_SerialDetail.Batch;SerialParam->DF_MM_SupplierDeliver_SerialDetail.SerialParam;SerialParamDes->DF_MM_SupplierDeliver_SerialDetail.SerialParamDes" DisabledExpress="Global.StepName!='采购员发起到货申请'"></aspxform:XCustomBrowserButton>
                        &nbsp; <asp:Label id="Label45" runat="server" text="（注：若对应产品无批次或无序列号管理，则此列表不显示数据）" forecolor="Blue" font-size="9"></asp:Label></td>
                </tr>
                <tr align="center">
                    <td width="50" height="17" class="tds">
                        <asp:Label id="Label18" runat="server" text="行号"></asp:Label></td>
                    <td width="110" class="tds">
                        <asp:Label id="Label19" runat="server" text="产品SAPID"></asp:Label></td>
                    <td width="150" class="tds">
                        <asp:Label id="Label31" runat="server" text="产品型号"></asp:Label></td>
                    <td width="150" class="tds">
                        <asp:Label id="Label21" runat="server" text="PO号"></asp:Label></td>
                    <td width="80" class="tds">
                        <asp:Label id="Label25" runat="server" text="PO行号"></asp:Label></td>
                    <td width="80" class="tds">
                        <asp:Label id="Label28" runat="server" text="批次"></asp:Label></td>
                    <td width="150" class="tds">
                        <asp:Label id="Label38" runat="server" text="序列号"></asp:Label></td>
                    <td width="150" class="tds">
                        <asp:Label id="Label40" runat="server" text="序列号参数"></asp:Label></td>
                </tr>
                <tr align="center">
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo2" runat="server" XDataBind="DF_MM_SupplierDeliver_SerialDetail.LineNunber" Width="100%" BorderWidth="1" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox11" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.ProductSAPID" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox28" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.ProductModel" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox29" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.PO" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox12" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.PORowNumber" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox18" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.Batch" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_MM_SupplierDeliver_SerialDetail.SerialNo" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="Global.StepName!='采购员发起到货申请'"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox43" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.SerialParamDes" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox32" runat="server" BackColor="#D4E4FE" XDataBind="DF_MM_SupplierDeliver_SerialDetail.SerialParam" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" HiddenExpress="1" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" DisableExpress="DF_MM_SupplierDeliver_SerialDetail.SerialParam!='Z003'&amp;&amp;DF_MM_SupplierDeliver_SerialDetail.SerialParam!='Z001'" ValidationGroup="sb" ControlToValidate="XTextBox26" ErrorMessage="请填写序列号" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="Label83" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_MM_SupplierDeliver_Info.Remark" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextAlign="left" Rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1192" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="131" class="tsbottomlabel">
                        <asp:Label id="Label82" runat="server" text="上传客户签收单附件"></asp:Label></td>
                    <td width="1061" class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments1" runat="server" BackColor="#d4e4fe" XDataBind="DF_MM_SupplierDeliver_Info.ReceiptAttch" Width="100%" FileTypes="*.JPEG;*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif,*.png;*.eml;*.msg"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress='DF_MM_SupplierDeliver_Info.Currency!="CNY"' ValidationGroup="sb" ControlToValidate="XAttachments1" ErrorMessage="请上传客户签收单" ForeColor="Red">请上传客户签收单</aspxform:XRequiredFieldValidator>
        <br />
        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
    </form>
</body>
</html>
