<%@ 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" />
    <script src="../../../../Oimec/Script/jquery-3.2.1.js"></script>
    <script src="../../../../Oimec/Script/jquery-3.2.1.min.js"></script>
    <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*/
        }


        input:disabled {
            /*border: 1px solid #DDD;*/
            /*background-color: #E6F1F8;*/
            /*border: 1px solid #0a0a0a;*/
            /*background-color: #d5dade;*/
        }
    </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();
        }

        //批次号失效表达式
        function DisableBatchNo(IsBatch) {
            var stepName = getXValue("XTextBox3");  //步骤名

            if (stepName != "申请人发起申请" || IsBatch != "是") {
                return true;
            }
            else { return false; }

        }



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

            //重新获取交货日期
            var stepName = getXValue("XTextBox3");  //步骤名

            if ((stepName == "入库管理员确认" && actionname == "已确认")) {

                //var tableObj = document.getElementById("");
                //var divsPO = document.getElementsByName("PO");  //PO    
                //var divsPORow = document.getElementsByName("PORowNumber");   //PO行号
                var divsDeliveyDate = document.getElementsByName("DeliveryDate");     //交货日期

                var divsSO = document.getElementsByName("SO");  //SO    

                var SO;

                //获取SO交货日期
                if (divsSO.length > 0) {
                    var divSO = divsSO[0];
                    SO = divSO.getElementsByTagName('input')[0].value;
                }

                for (var i = 0; i < divsSO.length; i++) {

                    //var divPO = divsPO[i];
                    //var idPO = divPO.getElementsByTagName('input')[0].id;
                    //var po = document.getElementById(idPO).value;

                    //var divPORow = divsPORow[i];
                    //var idPORow = divPORow.getElementsByTagName('input')[0].id;
                    //var porow = document.getElementById(idPORow).value;

                    var divDeliveryDate = divsDeliveyDate[i];
                    var idDeliveryDate = divDeliveryDate.getElementsByTagName('input')[0].id;

                    if (SO != null && SO != "") {
                        YZSoft.Ajax.request({
                            async: false,
                            url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                            params: {
                                method: 'GetDeliveryDateBySO',
                                voucherNo: SO
                            },
                            success: function (action) {
                                var data = action.result;
                                var res;
                                if (data != "")
                                    res = data.substring(0, 4) + "-" + data.substring(6, 4) + "-" + data.substring(8, 6);
                                divDeliveryDate.getElementsByTagName('input')[0].value = res;

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

                    /*
                     if (po != null && po != "") {
                         YZSoft.Ajax.request({
                             async: false,
                             url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                             params: {
                                 method: 'GetDeliveryDateByPO',
                                 po: po,
                                 porow: porow
                             },
                             success: function (action) {
                                 var data = action.result;
 
                                 divDeliveryDate.getElementsByTagName('input')[0].value = data;
                                 //alert(data);
                             },
                             failure: function (response) {
                             }
                         });
                     }
                     */

                }

            }

            if (stepName == "申请人发起申请" && 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 (SCompanyName == "") {
                            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;
                        }
                    }
                    else {
                        if (SCompanyName == "") {
                            Ext.Msg.alert("提示", "请填写发货公司名称！");
                            return false;
                        }
                        if (RCompanyName == "") {
                            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 <= 3) {
                    Ext.MessageBox.alert("提示：", "请先【获取SAP-PO信息】");
                    return false;
                }


                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) {
                        if (Number(ActNum) > Number(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) {
                    }
                });
            }
        }

        function Serial_OnChange(e) {
            var name = $(e).attr("name");
            var nextRowName = $(e).parent().parent().next().find("div[name=" + name + "]").find("input")[0];
            if (nextRowName != undefined) {
                nextRowName.focus();
            }
        }

    </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" Text="--系统自动生成--" XDataBind="DF_SD_ServiceOrder_Info.FormNo" BackColor="#8AB3DF"></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="标记*的为申请人必填项" font-bold="True" forecolor="Red"></asp:Label></td>
                </tr>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="Global.StepName" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 12%">
                        <asp:Label id="Label4" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_SD_ServiceOrder_Info.AppAccount" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_SD_ServiceOrder_Info.AppName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 12%">
                        <asp:Label id="Label5" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_SD_ServiceOrder_Info.CreateDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" Height="25px" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label36" runat="server" text="SAP-PO号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="SAPPO" runat="server" XDataBind="DF_SD_ServiceOrder_Info.SAPPO" BorderColor="#DCDCDC" BorderWidth="1" Width="310px" DisableBehavior="ReadOnly" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'" CssClass="text"></aspxform:XTextBox>
                        &nbsp; <asp:Label id="Label46" runat="server" text="(只能输入一个PO号)" font-bold="true" forecolor="Blue" font-size="9"></asp:Label>&nbsp;
                        &nbsp; 
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Text="获取SAP-PO信息" XClass="Oimec.Dialogs.SupplierDeliverInfoButton1" Width="120px" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'" DataMap="SODeliveryDate->DF_SD_ServiceOrder_Detail.SODeliveryDate;HandlerTaskID->DF_SD_ServiceOrder_Detail.HandlerTaskID;HandlerFormNo->DF_SD_ServiceOrder_Detail.HandlerFormNo;PO->DF_SD_ServiceOrder_Detail.PO;PORowNumber->DF_SD_ServiceOrder_Detail.PORowNumber;PurchaseContractNo->DF_SD_ServiceOrder_Detail.PurchaseContractNo;SupplierName->DF_SD_ServiceOrder_Detail.SupplierName;Plant->DF_SD_ServiceOrder_Detail.Plant;Storage->DF_SD_ServiceOrder_Detail.Storage;ProductSAPID->DF_SD_ServiceOrder_Detail.ProductSAPID;ProductModel->DF_SD_ServiceOrder_Detail.ProductModel;ProductName->DF_SD_ServiceOrder_Detail.ProductName;PurchaseQuantity->DF_SD_ServiceOrder_Detail.PurchaseQuantity;UnitPrice->DF_SD_ServiceOrder_Detail.UnitPrice;SalesMan->DF_SD_ServiceOrder_Detail.SalesMan;SalesManID->DF_SD_ServiceOrder_Detail.SalesManID;SO->DF_SD_ServiceOrder_Detail.SO;SORowNumber->DF_SD_ServiceOrder_Detail.SORowNumber;SellerCustomerName->DF_SD_ServiceOrder_Detail.SellerCustomerName;DeliveryDate->DF_SD_ServiceOrder_Detail.DeliveryDate;ManufacturerName->DF_SD_ServiceOrder_Detail.ManufacturerName;CompanyCode->CompanyCode;CurrencyCode->Currency;ActNum->DF_SD_ServiceOrder_Detail.DeliverNumber;EnabelNum->DF_SD_ServiceOrder_Detail.ActDeliverNumber;IsBatch->DF_SD_ServiceOrder_Detail.IsBatch;SerialCode->DF_SD_ServiceOrder_Detail.SerialCode;FKFCustomerName->DF_SD_ServiceOrder_Detail.FKFCustomerName;PlantName->DF_SD_ServiceOrder_Detail.PlantName;Plant1->Plant1;StorageName->DF_SD_ServiceOrder_Detail.StorageName;Storage1->Storage1" AppendMode="ClearAndAppend" UseSubmitBehavior="False" Filter="PO->DF_SD_ServiceOrder_Info.SAPPO"></aspxform:XCustomBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label42" runat="server" text="采购公司代码"></asp:Label>
                        <aspxform:XTextBox id="XTextBox42" runat="server" XDataBind="varCompanyCode" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="30px" ReadOnly="True" HiddenExpress="1" Express="CompanyCode"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_SD_ServiceOrder_Info.CompanyCode" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" 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" XDataBind="varCurrency" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="30px" ReadOnly="True" HiddenExpress="1" Express="Currency"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_SD_ServiceOrder_Info.Currency" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" Express="javascript('GetPoCompy',varCurrency)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label7" runat="server" text="SAP交货单号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_SD_ServiceOrder_Info.DeliveryNo" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="500px" DisableBehavior="ReadOnly" Height="25px" DisableExpress="Global.StepName!='物资入库审核员确认' &amp;&amp; Global.StepName!='物资入库审核员确认1'"></aspxform:XTextBox>
                        &nbsp; <asp:Label id="Label8" runat="server" text="（多个交货单以“/”分隔）"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label9" runat="server" text="SAP物料凭证号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox27" runat="server" XDataBind="DF_SD_ServiceOrder_Info.MaterialVoucher" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="500px" ReadOnly="True" Height="25px"></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.GetPOInfoServiceOrderButton">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_SD_ServiceOrder_Info.TransWay" DisableExpress="Global.StepName!='申请人发起申请'" 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_SD_ServiceOrder_Info.SendComapnyName" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.SendAddress" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.SendZipCode" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.SendContacts" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.SendPhone" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.ReceiveCustomerName" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.SendAddress" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.ReceiveZipCode" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.ReceiveContacts" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></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_SD_ServiceOrder_Info.ReceivePhone" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ForeColor="Red" ErrorMessage="请选择运输方式" ControlToValidate="XRadioButtonList1" ValidationGroup="sb">请选择运输方式</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ForeColor="Blue" ErrorMessage="请填写SAP交货单号" ControlToValidate="XTextBox25" ValidationGroup="rkshy">请填写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="2600" align="center" class="scrolltable" id="tableItems" style="BORDER-TOP: medium none" border="0" cellspacing="0" cellpadding="0" dynamicarea="2,1" menudock="Left" emptygrid="KeepEmpty">
                <tbody>
                    <tr>
                        <td height="17" class="title1" style="BORDER-TOP: medium none" colspan="26">
                            <asp:Label id="Label11" runat="server" text="产品明细"></asp:Label>&nbsp; <%--&nbsp; <asp:Label id="Label47" runat="server" text="（注：暂时只能选择一个PO）" forecolor="Blue" font-size="9"></asp:Label>--%></td>
                    </tr>
                    <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="100" 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="180" class="tds">
                            <asp:Label id="Label29" runat="server" text="含税采购单价(采购币种)"></asp:Label></td>
                        <td width="180" class="tds">
                            <asp:Label id="Label30" runat="server" text="含税采购总价(采购币种)"></asp:Label></td>
                        <td width="120" class="tds">
                            <asp:Label id="Label28" runat="server" text="批次"></asp:Label></td>
                        <td width="80" class="tds">
                            <asp:Label id="Label32" runat="server" text="业务员"></asp:Label></td>
                        <td width="80" 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_SD_ServiceOrder_Detail.LineNumber" Width="100%" Height="25px" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                            <aspxform:XTextBox id="XTextBox39" runat="server" XDataBind="CompanyCode" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox40" runat="server" XDataBind="Currency" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.HandlerTaskID" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox37" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.HandlerFormNo" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox38" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.IsBatch" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox44" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SerialCode" BackColor="#D4E4FE" BorderColor="#DCDCDC" BorderWidth="1" Width="10px" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="PO" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.PO" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" name="PO"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="PORowNumber" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.PORowNumber" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center" name="PORowNumber"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.PurchaseContractNo" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SupplierName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox33" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.Plant" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" HiddenInput="True" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox56" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.PlantName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" HiddenInput="False" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox58" runat="server" XDataBind="Plant1" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" HiddenInput="True" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.Storage" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" HiddenInput="True" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox59" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.StorageName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" HiddenInput="False" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox60" runat="server" XDataBind="Storage1" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" HiddenInput="True" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.ProductSAPID" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.ProductModel" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.ProductName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox30" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.PurchaseQuantity" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" Height="25px" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox31" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.ActDeliverNumber" BorderColor="#DCDCDC" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.DeliverNumber" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="20px" HiddenInput="False" ReadOnly="True" HiddenExpress="1" Format="type:number;.0">0</aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.UnitPrice" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.TotalPrice" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" Express="DF_SD_ServiceOrder_Detail.ActDeliverNumber*DF_SD_ServiceOrder_Detail.UnitPrice" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="BatchNo" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.BatchNo" BorderColor="#DCDCDC" Width="100%" Height="25px" DisableExpress="javascript('DisableBatchNo',DF_SD_ServiceOrder_Detail.IsBatch)" HiddenExpress="javascript('DisableBatchNo',DF_SD_ServiceOrder_Detail.IsBatch)" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SalesMan" BackColor="#e9f1f4" BorderColor="Gainsboro" Width="100%" HiddenInput="False" Max="0" Min="0" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center" ValueToDisplayText></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SalesManID" BorderColor="#DCDCDC" Width="100%" HiddenInput="true"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SO" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SORowNumber" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SellerCustomerName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox55" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.FKFCustomerName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.DeliveryDate" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" Height="25px" DisplayOnly="True"></aspxform:XDateTimePicker>
                            <aspxform:XDateTimePicker id="DeliveryDate" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.SODeliveryDate" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="20px" DisplayOnly="True" HiddenExpress="1" name="DeliveryDate"></aspxform:XDateTimePicker>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_SD_ServiceOrder_Detail.ManufacturerName" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="14" class="tds1" colspan="13">
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox36" runat="server" XDataBind="DF_SD_ServiceOrder_Info.Total" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Express="sum(DF_SD_ServiceOrder_Detail.TotalPrice)" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" colspan="7">
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <aspxform:XCompareValidator id="XCompareValidator2" runat="server" ForeColor="Red" Type="Integer" ErrorMessage="实际发货数量必须大于0" ControlToValidate="XTextBox31" ValidationGroup="sb" Operator="GreaterThan" SetFocusOnError="True" ValueToCompare="0"></aspxform:XCompareValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" DisableExpress='DF_SD_ServiceOrder_Detail.IsBatch!="是"' ErrorMessage="请填写批次" ControlToValidate="BatchNo" ValidationGroup="sb">请填写批次</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" id="tableSerial" border="0" cellspacing="0" cellpadding="0" dynamicarea="2,1" menudock="Left" emptygrid="KeepEmpty">
            <tbody>
                <tr>
                    <td height="17" class="title1" style="BORDER-TOP: medium none" colspan="8">
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="产品批次和序列号" XClass="Oimec.Dialogs.ServiceOrderSerialButton" Width="120px" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'" DataMap="ProductSAPID->DF_SD_ServiceOrder_SerialDetail.ProductSAPID;ProductModel->DF_SD_ServiceOrder_SerialDetail.ProductModel;PO->DF_SD_ServiceOrder_SerialDetail.PO;PORowNumber->DF_SD_ServiceOrder_SerialDetail.PORowNumber;SerialParam->DF_SD_ServiceOrder_SerialDetail.SerialParam;SerialParamDes->DF_SD_ServiceOrder_SerialDetail.SerialParamDes" AppendMode="ClearAndAppend" UseSubmitBehavior="False" 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="60" 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_SD_ServiceOrder_SerialDetail.LineNunber" Width="100%" Height="25px" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.ProductSAPID" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.ProductModel" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.PO" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.PORowNumber" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <%-- <td class="tds1">
                        <aspxform:XTextBox ID="BatchNo" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.BatchNo" Width="100%" Height="25px" BorderColor="#DCDCDC" TextAlign="Center" DisableExpress="Global.StepName!='申请人发起申请'"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox18" runat="server" BackColor="#e9f1f4" XDataBind="DF_SD_ServiceOrder_SerialDetail.Batch" HiddenExpress="1" Width="100%" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                    </td>--%> 
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox26" name="SerialNo" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.SerialNo" BorderColor="#DCDCDC" Width="100%" Height="25px" DisableExpress="Global.StepName!='申请人发起申请'||DF_SD_ServiceOrder_SerialDetail.SerialParam==''||DF_SD_ServiceOrder_SerialDetail.SerialParam=='Z002'" OnChange="Serial_OnChange(this)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox43" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.SerialParamDes" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px" TextAlign="Center"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox32" runat="server" XDataBind="DF_SD_ServiceOrder_SerialDetail.SerialParam" BackColor="#e9f1f4" BorderColor="#DCDCDC" Width="20px" ReadOnly="True" HiddenExpress="1" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" DisableExpress="DF_SD_ServiceOrder_SerialDetail.SerialParam!='Z003'&amp;&amp;DF_SD_ServiceOrder_SerialDetail.SerialParam!='Z001'" ErrorMessage="请填写序列号" ControlToValidate="XTextBox26" ValidationGroup="sb"></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_SD_ServiceOrder_Info.Remark" BorderColor="#DCDCDC" Width="100%" TextAlign="left" TextMode="MultiLine" Rows="5"></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" XDataBind="DF_SD_ServiceOrder_Info.ReceiptAttch" BackColor="#d4e4fe" 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_SD_ServiceOrder_Info.Currency!="CNY"' ValidationGroup="sb" ControlToValidate="XAttachments1" ErrorMessage="请上传客户签收单" ForeColor="Red">请上传客户签收单</aspxform:XRequiredFieldValidator>--%>
        <br />
        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
    </form>
</body>
</html>
