<%@ Page Language="C#" %>

<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //

    protected void Page_Load(object sender, EventArgs e)
    {
        string formstate = Convert.ToString(Request.Params["formstate"]);
        this.XTextBox33.Text = formstate;
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="/Oimec/Styles/CSS/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <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*/
        }
    </style>
    <script type="text/javascript">

        Ext.onReady(function () {

            //发运要求样式设置
            FYYQStyle();

            JHDStyle();
        });

        //已创建SAP交货单样式设置
        function JHDStyle() {
            //div_IsCreateDeliveryNo
            var div = document.getElementById("div_IsCreateDeliveryNo");
            var inputs = div.getElementsByTagName("label");
            var inputsV = div.getElementsByTagName("input");


            var value = IsCreateDeliveryNoValue();
            if (value == "是") {
                for (var i = 0; i < inputs.length; i++) {
                    var obj = inputs[i];
                    var str = inputsV[i];
                    //alert(obj.innerHTML);
                    if (str.checked == true) {
                        obj.style.color = "red";
                        obj.style.fontWeight = 'bold';
                    }
                    else {
                        obj.style.color = "black";
                        obj.style.fontWeight = '';
                    }
                }
            }
        }

        //发运要求样式设置
        function FYYQStyle() {
            var div = document.getElementById("div_ShippingRequirements");
            var inputs = div.getElementsByTagName("label");
            var inputsV = div.getElementsByTagName("input");

            for (var i = 0; i < inputs.length; i++) {
                var obj = inputs[i];
                var str = inputsV[i];

                if (str.checked == true) {
                    obj.style.color = "red";
                    obj.style.fontWeight = 'bold';
                }
                else {
                    obj.style.color = "black";
                    obj.style.fontWeight = '';
                }

            }
        }

        //打印快递单
        function Print_Waybill() {
            //参数：收方公司名称、收方联系人、电话、手机、地址、邮编
            var obj_param = {};
            obj_param["d_company"] = agent.Eles[document.getElementById("XTextBox8").getAttribute("xform_xele_index")].getValue();
            obj_param["d_contact"] = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
            obj_param["d_address"] = agent.Eles[document.getElementById("XTextBox10").getAttribute("xform_xele_index")].getValue();
            obj_param["d_tel"] = agent.Eles[document.getElementById("XTextBox11").getAttribute("xform_xele_index")].getValue();
            if (checkPhone(agent.Eles[document.getElementById("XTextBox37").getAttribute("xform_xele_index")].getValue())) {
                obj_param["d_mobile"] = agent.Eles[document.getElementById("XTextBox37").getAttribute("xform_xele_index")].getValue();
            }
            else
                obj_param["d_mobile"] = "";

            //obj_param["logistics"] = "2";//1顺丰 2跨越
            obj_param["printType"] = "03";//2 两联单；3三联单
            obj_param["d_province"] = agent.Eles[document.getElementById("XTextBox19").getAttribute("xform_xele_index")].getValue();
            obj_param["d_city"] = agent.Eles[document.getElementById("XTextBox34").getAttribute("xform_xele_index")].getValue();

            //判断物流公司 logistics 1顺丰 2跨越
            var company = agent.Eles[document.getElementById("XDropDownList3").getAttribute("xform_xele_index")].getValue();
            if (company == "顺丰速运") {
                obj_param["logistics"] = "1";
            }
            else if (company == "跨越物流") {
                obj_param["logistics"] = "2";
            }
            else { Ext.Msg.alert("提示", "只能打印顺丰或者跨越运单！"); return false; }

            //签回单:1要求 其它为不要求
            var radio1 = document.getElementById("XRadioButtonList2_0");
            var radio2 = document.getElementById("XRadioButtonList2_1");
            if (radio1.checked == true) { //是
                obj_param["need_return_tracking_no"] = "1";
            }
            if (radio2.checked == true) { //否
                obj_param["need_return_tracking_no"] = "";
            }

            //TEST
            // obj_param["need_return_tracking_no"] = "";

            //获取产品型号、数量
            var str = "";
            var tableObj = document.getElementById('tablenew');//按照交货单出库

            var arr = new Array();

            var IsCreateDeliveryNo_0 = document.getElementById('IsCreateDeliveryNo_0');
            var IsCreateDeliveryNo_1 = document.getElementById('IsCreateDeliveryNo_1');
            //
            if (IsCreateDeliveryNo_0.checked == true) {

            }
            else {
                tableObj = document.getElementById('tablenew1');//按照SO出库
            }
            for (var j = 1; j < tableObj.rows.length; j++) {

                var model;
                if (IsCreateDeliveryNo_0.checked == true) {
                    model = agent.Eles[tableObj.rows[j].cells[6].children[0].getAttribute("xform_xele_index")].getValue();   //型号
                }
                else
                    model = agent.Eles[tableObj.rows[j].cells[5].children[0].getAttribute("xform_xele_index")].getValue();   //型号

                if (arr.indexOf(model) > -1) { }
                else
                    arr.push(model);
            }
            for (var k = 0; k < arr.length; k++) {

                var number = 0;
                for (var i = 1; i < tableObj.rows.length; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                    var model;
                    var num;
                    if (IsCreateDeliveryNo_0.checked == true) {
                        num = parseInt(agent.Eles[tableObj.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].getValue());     //数量
                        model = agent.Eles[tableObj.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].getValue();   //型号
                    }
                    else {
                        num = parseInt(agent.Eles[tableObj.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].getValue());     //数量
                        model = agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();   //型号
                    }
                    if (model == arr[k]) {
                        number = parseInt(number) + num;
                    }
                }

                str += arr[k] + ";" + number + "/";
            }
            //alert(str);

            if (str.length == 0) str = "无";
            //备注信息
            obj_param["remark"] = str;
            obj_param["jtw"] = "测试仪器";//寄托物

            //包裹数
            obj_param["PackNumber"] = agent.Eles[document.getElementById("XTextBox24").getAttribute("xform_xele_index")].getValue();
            if (obj_param["PackNumber"] == "") { Ext.Msg.alert("提示", "包装件数不能为空！"); return false; }

            //发运时效
            var radio1_0 = document.getElementById("XRadioButtonList1_0");
            var radio1_1 = document.getElementById("XRadioButtonList1_1");
            var radio1_2 = document.getElementById("XRadioButtonList1_2");

            if (radio1_0.checked == true) {
                obj_param["DeliveryWay"] = "次日达";
            }
            if (radio1_1.checked == true) {
                obj_param["DeliveryWay"] = "隔日达";
            }
            if (radio1_2.checked == true) {
                obj_param["DeliveryWay"] = "普货";
            }


            if (obj_param["DeliveryWay"] == "" || obj_param["DeliveryWay"] == "undefined" || obj_param["DeliveryWay"] == null) {
                Ext.Msg.alert("提示", "请选择发运时效！");
                return false;
            }

            //月结类型：财务，物流
            obj_param["YJType"] = "物资";
            //运单打印
            WaybillOrder(obj_param);
        }


        function PrintYSD() {
            //var temp = document.getElementById('XLabel1').innerText;
            //window.open("增值销售出库单(非套打).aspx?serialNum=" + temp);
            var temp = document.getElementById('XLabel1').innerText;
            var IsCreateDeliveryNo_0 = document.getElementById('IsCreateDeliveryNo_0');
            var IsCreateDeliveryNo_1 = document.getElementById('IsCreateDeliveryNo_1');

            if (IsCreateDeliveryNo_0.checked == true || IsCreateDeliveryNo_1.checked == true) {
                window.open("销售出库客户验收单.aspx?serialNum=" + temp);
            }
            else {
                window.open("增值销售出库单(非套打).aspx?serialNum=" + temp);
            }
        }

        //验收单 XTextBox20
        function signRead() {
            var sign = agent.Eles[document.getElementById("txt_SignPath").getAttribute("xform_xele_index")].getValue();
            if (sign != "") {
                YZSoft.Ajax.request({
                    async: false,
                    url: YZSoft.$url('Oimec/ApiServices/LogisticsAPIHandler.ashx'),
                    params: {
                        method: 'GetOssImgUrl',
                        SignPath: sign
                    },
                    success: function (action) {
                        var data = action.result;
                        window.open(data.imgurl, null, 'width=600,height=400,top=100px,left=0px')
                    },
                    failure: function (response) {
                    }
                });
            }
        }

        //下载验收单
        function signDownload() {
            var deliveryNum = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();
            var sign = agent.Eles[document.getElementById("txt_SignPath").getAttribute("xform_xele_index")].getValue();
            var url = YZSoft.$url('Oimec/ApiServices/LogisticsAPIHandler.ashx');
            YZSoft.src.ux.File.download(url, {
                method: 'DownloadToAliOss',
                SignPath: sign,
                deliveryNum: deliveryNum
            });

        }
        function checkPhone(phone) {
            if (!(/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(phone))) {
                //alert("手机号码有误，请重填");
                return false;
            }
            else
                return true;
        }

        //更新抬头物料凭证号和行项目序列号
        function UpdateData() {

            //SAP交货单号
            var deliveryNum = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();

            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;
                        var items = data.lilist;

                        //物料凭证号
                        agent.Eles[document.getElementById("XTextBox27").getAttribute("xform_xele_index")].setValue(info.MBLNR);
                        var row = data.Rows;
                        var rv = new Array();
                        if (data.Rows > 0) {
                            var tableObj = document.getElementById('tablenew');
                            for (var i = 1; i < tableObj.rows.length; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                                // alert(agent.Eles[tableObj.rows[i].cells[1].children[1].getAttribute("xform_xele_index")].getValue());
                                for (var j = 0; j < data.Rows; j++) {
                                    var item = items[j];
                                    var ItemNo = agent.Eles[tableObj.rows[i].cells[2].children[0].getAttribute("xform_xele_index")].getValue();     //SAP行项目号
                                    var DeliveryNo = agent.Eles[tableObj.rows[i].cells[1].children[0].getAttribute("xform_xele_index")].getValue();     //交货单号
                                    if (ItemNo == item.LineItemNo && DeliveryNo == item.DeliveryNo) {
                                        //序列号
                                        agent.Eles[tableObj.rows[i].cells[10].children[0].getAttribute("xform_xele_index")].setValue(item.SerialNumber);
                                    }
                                }
                            }
                        }


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

        //是否已创建SAP交货单
        function IsCreateDeliveryNoValue() {
            var IsCreateDeliveryNo_0 = document.getElementById('IsCreateDeliveryNo_0');
            var IsCreateDeliveryNo_1 = document.getElementById('IsCreateDeliveryNo_1');

            if (IsCreateDeliveryNo_0.checked == true)
                return "是";
            else if (IsCreateDeliveryNo_1.checked == true)
                return "否";
        }

        //序列号自动换行
        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">
        <div id="div_print" style="display: none">
        </div>
        <!-- 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_DeliveryHandle_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="25" colspan="3">
                        <asp:Label ID="Label10" runat="server" Text="标记*的为出库管理员必填项" ForeColor="Blue" Font-Bold="True"></asp:Label>&nbsp; <%--<asp:Label ID="Label26" runat="server" Text="标记为*的为出货地的仓库主管人员上传" Font-Bold="True" ForeColor="Blue"></asp:Label>&nbsp;&nbsp;</td>--%></td>
                    <td align="right" colspan="1">
                        <aspxform:XButton ID="XButton4" runat="server" Text=" 打印快递单" OnClientClick="Print_Waybill()"></aspxform:XButton>
                        &nbsp;<aspxform:XButton ID="XButton2" runat="server" Text="打印客户验收单" OnClientClick="PrintYSD()" Height="23px"></aspxform:XButton>
                    </td>
                </tr>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label ID="Label3" runat="server" Text="基本信息"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox43" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.TaskID" Width="64px" Min="0" Max="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox33" runat="server" XDataBind="varState" Width="64px" Min="0" Max="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="131" height="24" class="tsbottomlabel">
                        <asp:Label ID="Label4" runat="server" Text="创建用户"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox22" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.CreateAccount" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td width="534" class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox1" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.CreateName" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="62" class="tsbottomlabel">
                        <asp:Label ID="Label11" runat="server" Text="创建日期"></asp:Label></td>
                    <td width="465" class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="XDateTimePicker1" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.CreateDate" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel">
                        <asp:Label ID="Label5" runat="server" Text="业务员"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox25" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SalesManID" Width="20px" Min="0" Max="0" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox2" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SalesMan" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label46" runat="server" Text="事业部"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox18" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.BU" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label47" runat="server" Text="所属地区"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox26" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Area" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label57" runat="server" Text="已创建SAP交货单"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <div id="div_IsCreateDeliveryNo">
                            <aspxform:XRadioButtonList ID="IsCreateDeliveryNo" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.IsCreateDeliveryNo" RepeatDirection="Horizontal" DisableExpress="1">
                                <asp:ListItem>是</asp:ListItem>
                                <asp:ListItem Selected="True">否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </div>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label59" runat="server" Text="出库方式"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="XDropDownList1" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.DeliveryWay" Height="25px" Width="150px" DisableExpress="1" PromptText="----请选择----">
                            <asp:ListItem>自提</asp:ListItem>
                            <asp:ListItem>发货到客户</asp:ListItem>
                            <asp:ListItem>发货到分支机构</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label8" runat="server" Text="SAP-SO号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox6" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SO" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td height="22" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label6" runat="server" Text="客户合同号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox20" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.CustomerContractNo" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label15" runat="server" Text="SAP交货单号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox5" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.DeliveryFormNo" BackColor="#E6F1F8" Width="70%" Min="0" Max="0" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label49" runat="server" Text="SAP物料凭证号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox27" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.MBLNR" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XButton ID="XButton3" runat="server" Text="更新数据" OnClientClick="UpdateData()" Height="22px" Width="70px" HiddenExpress="DF_SD_DeliveryHandle_Info.IsCreateDeliveryNo!='是'"></aspxform:XButton>
                        <aspxform:XCustomBrowserButton ID="XCustomBrowserButton1" runat="server" Text="更新数据" XClass="Oimec.Dialogs.DeliveryInfoButton" Height="22px" Width="70px" HiddenExpress="DF_SD_DeliveryHandle_Info.IsCreateDeliveryNo!='否'" Filter="DeliveryFormNo->DF_SD_DeliveryHandle_Info.DeliveryFormNo,Plant->DF_SD_DeliveryHandle_Detail_Delivery.Plant" AppendMode="ClearAndAppend" DataMap="DeliveryLineNum->DF_SD_DeliveryHandle_Detail_Delivery.DeliveryLineNum;Plant->DF_SD_DeliveryHandle_Detail_Delivery.Plant;Storage->DF_SD_DeliveryHandle_Detail_Delivery.Storage;PrdtSAPID->DF_SD_DeliveryHandle_Detail_Delivery.PrdtSAPID;ProductModel->DF_SD_DeliveryHandle_Detail_Delivery.ProductModel;ProductName->DF_SD_DeliveryHandle_Detail_Delivery.ProductName;Number->DF_SD_DeliveryHandle_Detail_Delivery.Number;BatchCode->DF_SD_DeliveryHandle_Detail_Delivery.BatchCode;IsBatch->DF_SD_DeliveryHandle_Detail_Delivery.IsBatch;SerialNo->DF_SD_DeliveryHandle_Detail_Delivery.SerialNo;SerialCode->DF_SD_DeliveryHandle_Detail_Delivery.SerialCode;LineItemCategory->DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory"></aspxform:XCustomBrowserButton>
                    </td>
                </tr>
                <tr hiddenexpress="DF_SD_DeliveryHandle_Info.IsCreateDeliveryNo!='是'">
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label26" runat="server" Text="实物出货库存地"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox48" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.PhysicalDelivery" BackColor="#E6F1F8" Width="70%" Min="0" Max="0" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label60" runat="server" Text="SAP出货库存地"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="DeliveryStore" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.DeliveryStore" BackColor="#E6F1F8" Width="70%" Min="0" Max="0" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label36" runat="server" Text="实际发货日期"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDateTimePicker ID="XDateTimePicker2" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SendGoodsDate" Width="70%" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                    <td height="22" class="tsbottomlabel" style="width: 10%"></td>
                    <td class="tsbottomtext" style="width: 35%"></td>
                </tr>
                <tr>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label19" runat="server" Text="收货公司名称"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox8" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.UserCompanyName" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label23" runat="server" Text="联系人"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox9" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Contact" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="height: auto; width: 10%">
                        <asp:Label ID="Label21" runat="server" Text="收货详细地址"></asp:Label></td>
                    <td class="tsbottomtext" style="height: auto; width: 35%">
                        <aspxform:XTextBox ID="XTextBox19" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Province" BackColor="#E6F1F8" Height="25px" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox34" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.City" BackColor="#E6F1F8" Height="25px" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <br />
                        <aspxform:XTextBox ID="XTextBox10" Style="width: 100%; color: black" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SendGoodsAddr" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label25" runat="server" Text="电话"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox11" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Phone" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label50" runat="server" Text="邮编"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox28" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Code" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">&nbsp;<asp:Label ID="Label13" runat="server" Text="手机"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox37" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.MobilePhone" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <%--按交货单出库--%>
        <div hiddenexpress="DF_SD_DeliveryHandle_Info.IsCreateDeliveryNo!='是'">
            <table width="1200" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1" emptygrid="KeepEmpty">
                <tbody>
                    <tr align="center">
                        <td class="tds" style="height: 16px; width: 50px">
                            <asp:Label ID="Label38" runat="server" Text="序号"></asp:Label></td>
                        <td class="tds" style="width: 130px">交货单号</td>
                        <td class="tds" style="width: 100px">交货单行号</td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label40" runat="server" Text="工厂"></asp:Label></td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label42" runat="server" Text="库存地"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label44" runat="server" Text="销售产品SAPID"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label48" runat="server" Text="产品型号"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label51" runat="server" Text="产品名称"></asp:Label></td>
                        <td class="tds" style="width: 50px">
                            <asp:Label ID="Label53" runat="server" Text="数量"></asp:Label></td>
                        <td class="tds" style="width: 120px">
                            <asp:Label ID="Label54" runat="server" Text="行项目类别"></asp:Label></td>
                        <td class="tds" style="width: 300px">
                            <asp:Label ID="Label55" runat="server" Text="序列号"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label56" runat="server" Text="特殊发运说明"></asp:Label></td>
                    </tr>
                    <tr align="center">
                        <td class="tds1">
                            <aspxform:XGridLineNo ID="XGridLineNo2" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.SerialNum" Height="30px" Width="100%" BorderWidth="1" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox46" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.DeliveryNo" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox23" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.LineItemNo" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox35" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.Plant" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox36" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.Storage" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox38" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.PrdtSAPID" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox39" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.ProductModel" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox40" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.ProductName" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox41" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.Number" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox42" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.LineItemCategory" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox44" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.SerialNo" BackColor="#E6F1F8" Height="30px" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextMode="MultiLine" OnChange="Serial_OnChange(this)" name="SerialNo"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox45" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail.ShippingRequirements" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
        </div>
        <%--系统创建的交货单--%>
        <div hiddenexpress="DF_SD_DeliveryHandle_Info.IsCreateDeliveryNo!='否'">
            <table width="1305" align="center" class="table" id="tablenew1" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1" menudock="Left" xdatasource="Filter:DF_SD_DeliveryHandle_Detail_Delivery.DeliveryLineNum">
                <tbody>
                    <tr align="center">
                        <td class="tds" style="height: 16px; width: 50px">
                            <asp:Label ID="Label27" runat="server" Text="序号"></asp:Label></td>
                        <td class="tds" style="height: 16px; width: 80px">
                            <asp:Label ID="Label9" runat="server" Text="交货单行号"></asp:Label></td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label28" runat="server" Text="工厂"></asp:Label></td>
                        <td class="tds" style="width: 80px">
                            <asp:Label ID="Label29" runat="server" Text="SAP库存地"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label30" runat="server" Text="销售产品SAPID"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label31" runat="server" Text="产品型号"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label32" runat="server" Text="产品名称"></asp:Label></td>
                        <td class="tds" style="width: 40px">
                            <asp:Label ID="Label33" runat="server" Text="数量"></asp:Label></td>
                        <td class="tds" style="width: 140px">
                            <asp:Label ID="Label7" runat="server" Text="批次"></asp:Label></td>
                        <td class="tds" style="width: 140px">
                            <asp:Label ID="Label12" runat="server" Text="序列号"></asp:Label></td>
                        <td class="tds" style="width: 100px">
                            <asp:Label ID="Label34" runat="server" Text="行项目类别"></asp:Label></td>
                        <td width="105" class="tds">
                            <asp:Label ID="Label58" runat="server" Text="特殊发运说明"></asp:Label></td>
                    </tr>
                    <tr align="center">
                        <td class="tds1">
                            <aspxform:XGridLineNo ID="XGridLineNo1" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.LineItemNo" Width="100%" BorderWidth="1" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox4" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.DeliveryLineNum" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox3" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.Plant" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox7" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.Storage" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory=='单独采购订单'||DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory=='单独采购订单(免费）'" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox12" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.PrdtSAPID" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox13" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.ProductModel" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <%--<aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.ProductName" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>--%>
                            <aspxform:XLabel ID="XTextBox14" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.ProductName" TextAlign="Left" BackColor="#E6F1F8"></aspxform:XLabel>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox15" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.Number" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox29" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.BatchCode" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="(DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory=='单独采购订单' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.IsBatch!='Y')||(DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory=='单独采购订单(免费）' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.IsBatch!='Y')||(DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory!='单独采购订单' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory!='单独采购订单(免费）' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.IsBatch!='X'&amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.IsBatch!='Y')||varState=='Edit'"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox31" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.IsBatch" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox21" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.SerialNo" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="(DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory=='单独采购订单' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.SerialCode!='Y')||(DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory=='单独采购订单(免费）' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.SerialCode!='Y')||&#13;&#10;(DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory!='单独采购订单' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory!='单独采购订单(免费）' &amp;&amp; DF_SD_DeliveryHandle_Detail_Delivery.SerialCode=='')||varState=='Edit'" OnChange="Serial_OnChange(this)" name="SerialNo1"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox30" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.SerialCode" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox16" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.LineItemCategory" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox47" runat="server" XDataBind="DF_SD_DeliveryHandle_Detail_Delivery.ShippingRequirements" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
            <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator7" runat="server" DisableExpress="DF_SD_DeliveryHandle_Detail_Delivery.SerialCode==''" ForeColor="Red" ErrorMessage="请填写序列号" ControlToValidate="XTextBox21" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator8" runat="server" DisableExpress="DF_SD_DeliveryHandle_Detail_Delivery.IsBatch!='X'" ForeColor="Red" ErrorMessage="请填写批次编号" ControlToValidate="XTextBox29" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
            <br />
        </div>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label ID="Label24" runat="server" Text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox32" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Remark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextMode="MultiLine" Rows="5"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <div hiddenexpress='DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到分支机构" '>
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td class="tsbottomlabel" style="width: 10%">
                            <asp:Label ID="Label37" runat="server" Text="发运要求"></asp:Label></td>
                        <td class="tsbottomtext" style="width: 80%" colspan="3">
                            <div id="div_ShippingRequirements">
                                <aspxform:XCheckBoxList ID="ShippingRequirements" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.ShippingRequirements" RepeatDirection="Horizontal" DisableExpress="1">
                                    <asp:ListItem>次日达</asp:ListItem>
                                    <asp:ListItem>验收单、运单备注客户PO号</asp:ListItem>
                                    <asp:ListItem>用户指定文件需要随货发运</asp:ListItem>
                                    <asp:ListItem>周末可正常送货</asp:ListItem>
                                     <asp:ListItem>透明胶带</asp:ListItem>
                                    <asp:ListItem>不返客户验收单</asp:ListItem>
                                </aspxform:XCheckBoxList>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td class="tsbottomlabel" style="width: 10%">
                            <asp:Label ID="Label17" runat="server" Text="*" ForeColor="blue" Font-Bold="True"></asp:Label>&nbsp;
                            <asp:Label ID="Label14" runat="server" Text="物流公司"></asp:Label></td>
                        <td class="tsbottomtext" style="width: 35%">
                            <aspxform:XDropDownList ID="XDropDownList3" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.LogisticsCompany" Width="50%" DisableExpress="Global.StepName!='出库管理员执行发货'  &amp;&amp; Global.StepName!='出库管理员执行发货并发货过账'" PromptText="---请选择---" XDataSource="TableName:V_LogisCompany" ValueColumn="Name" DisplayColumn="Name"></aspxform:XDropDownList>
                        </td>
                        <td class="tsbottomlabel" style="width: 10%">
                            <asp:Label ID="Label16" runat="server" Text="*" ForeColor="blue" Font-Bold="True"></asp:Label>&nbsp;
                            <asp:Label ID="Label39" runat="server" Text="发运时效"></asp:Label></td>
                        <td class="tsbottomtext" style="width: 35%">
                            <aspxform:XRadioButtonList ID="XRadioButtonList1" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SendGoodsWay" RepeatDirection="Horizontal" DisableExpress="Global.StepName!='出库管理员执行发货' &amp;&amp; Global.StepName!='出库管理员执行发货并发货过账'">
                                <asp:ListItem>次日达</asp:ListItem>
                                <asp:ListItem>隔日达</asp:ListItem>
                                <asp:ListItem>普货</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td height="16" class="tsbottomlabel" style="width: 10%">
                            <asp:Label ID="Label18" runat="server" Text="*" ForeColor="blue" Font-Bold="True"></asp:Label>&nbsp;
                            <asp:Label ID="Label41" runat="server" Text="运单号"></asp:Label></td>
                        <td class="tsbottomtext" style="width: 35%">
                            <aspxform:XTextBox ID="txt_mailno" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.WaybillNo" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='出库管理员执行发货' &amp;&amp; Global.StepName!='出库管理员执行发货并发货过账'" TextMode="MultiLine"></aspxform:XTextBox>
                        </td>
                        <td class="tsbottomlabel" style="width: 10%">
                            <asp:Label ID="Label22" runat="server" Text="*" ForeColor="blue" Font-Bold="True"></asp:Label>&nbsp;
                            <asp:Label ID="Label43" runat="server" Text="包装件数"></asp:Label></td>
                        <td class="tsbottomtext" style="width: 35%">
                            <aspxform:XTextBox ID="XTextBox24" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.PackNumber" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='出库管理员执行发货' &amp;&amp; Global.StepName!='出库管理员执行发货并发货过账'"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="16" class="tsbottomlabel" style="width: 10%">
                            <asp:Label ID="Label52" runat="server" Text="签回单"></asp:Label></td>
                        <td class="tsbottomtext" style="width: 35%">
                            <aspxform:XRadioButtonList ID="XRadioButtonList2" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SignReceipt" RepeatDirection="Horizontal" DisableExpress="Global.StepName!='出库管理员执行发货' &amp;&amp; Global.StepName!='出库管理员执行发货并发货过账'">
                                <asp:ListItem Selected="True">是</asp:ListItem>
                                <asp:ListItem>否</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                        <td class="tsbottomlabel" style="width: 10%">&nbsp;</td>
                        <td class="tsbottomtext" style="width: 35%">&nbsp;</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator2" runat="server" DisableExpress='DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到分支机构"' ForeColor="Red" ErrorMessage="请选择物流公司" ControlToValidate="XDropDownList3" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator3" runat="server" DisableExpress='DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到分支机构"' ForeColor="Red" ErrorMessage="请选择发运时效" ControlToValidate="XRadioButtonList1" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator4" runat="server" DisableExpress='DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到分支机构"' ForeColor="Red" ErrorMessage="请填写运单号" ControlToValidate="txt_mailno" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator5" runat="server" DisableExpress='DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_DeliveryHandle_Info.DeliveryWay!="发货到分支机构"' ForeColor="Red" ErrorMessage="请填写包装件数" ControlToValidate="XTextBox24" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">&nbsp;<asp:Label ID="Label45" runat="server" Text="验收单"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 80%" colspan="3">
                        <aspxform:XAttachments ID="XAttachments1" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.Attachment" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif;*.png"></aspxform:XAttachments>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label20" runat="server" Text="其他附件"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 80%" colspan="3">
                        <aspxform:XAttachments ID="XAttachments2" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.OtherAttachment" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif;*.png"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="145" class="tsbottomlabel" style="width: 22%">阿里云验收单(东方验收单/客户验收单)&nbsp;<aspxform:XTextBox ID="txt_SignPath" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.SignPath" Width="50px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td width="1051" class="tsbottomtext" style="width: 77%">
                        <div id="div_sign" hiddenexpress='DF_SD_DeliveryHandle_Info.SignPath==""'>
                            <input id="btn_read" onclick="signRead()" type="button" value="查看" />&nbsp; 
                            <input id="btn_download" onclick="signDownload()" type="button" value="下载" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label ID="Label35" runat="server" Text="拒绝原因"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox17" runat="server" XDataBind="DF_SD_DeliveryHandle_Info.RejectReason" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextMode="MultiLine" Rows="3"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator1" runat="server" ForeColor="Red" ErrorMessage="请填写拒绝原因" ControlToValidate="XTextBox17" ValidationGroup="reject"></aspxform:XRequiredFieldValidator>
        <table width="1200" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XSignTrace ID="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <script src="../../../../Oimec/Dialogs/Waybill.js"></script>
    </form>
</body>
</html>
