<%@ 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.textState.Text = formstate;

        string uid = YZAuthHelper.LoginUserAccount;
        //string pid = Convert.ToString(Request.Params["pid"]);
        this.uid.Text = uid;

        if (!string.IsNullOrEmpty(Request.QueryString["type"]))
        {
            var voucher = Request.QueryString["voucher"];
            if (Request.QueryString["type"] == "1")
            {
                this.XTextBox5.Text = voucher;
                this.IsCreateDeliveryNo.Text = "是";
            }
            else if (Request.QueryString["type"] == "0")
            {
                this.SO1.Text = voucher;
                this.IsCreateDeliveryNo.Text = "否";
            }

            this.SourceNo.Text = Convert.ToString(Request.QueryString["FormNo"]);
        }

    }

</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>
    <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">

        //批量删除标识 SO显示行
        function onchange_del1() {
            var chk = document.getElementById("ext-151"); //XCheckBox3 控件ID
            var tableObj = document.getElementById("tablenew1");
            //alert(tableObj.rows.length);
            //全选
            if (chk.checked == true) {
                for (var i = 1; i < tableObj.rows.length; i++) {//遍历Table的所有Row //遍历Row中的每一列
                    agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].setValue("1");//每行是否勾选：0未勾选；1勾选
                }
            }
            else {
                for (var i = 1; i < tableObj.rows.length; i++) {//遍历Table的所有Row //遍历Row中的每一列
                    agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].setValue("0");//每行是否勾选：0未勾选；1勾选
                }
            }
        }

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

        }


        function PrintTD() {
            var temp = document.getElementById('XLabel1').innerText;
            window.open("销售出库单(套打).aspx?serialNum=" + temp);
        }

        //客户验收单
        function PrintNTD() {
            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) {
                window.open("销售出库单(非套打).aspx?serialNum=" + temp);
            }
            if (IsCreateDeliveryNo_1.checked == true) {
                window.open("增值销售出库单(非套打).aspx?serialNum=" + temp);
            }
        }
        var returnstatus = false;

        //页面加载时获取当前出货库存地值
        Ext.onReady(function () {

            //var deliveryStore = agent.Eles[document.getElementById("XDropDownList2").getAttribute("xform_xele_index")].getValue();
            var stepid = request("pid");
            agent.Eles[document.getElementById("XTextBox40").getAttribute("xform_xele_index")].setValue(stepid);

            //var table = agent.findGridFromTableName(null, 'DF_SD_Delivery_Detail'); //获取table对象
            //alert(table.Blocks.length);
            //table.insertBlockBelow(2);


        });

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

            //SAP交货单号
            var deliveryNum;
            var IsCreateDeliveryNo = IsCreateDeliveryNoValue();
            if (IsCreateDeliveryNo == "是")
                deliveryNum = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();
            else if (IsCreateDeliveryNo == "否")
                deliveryNum = agent.Eles[document.getElementById("DeliveryFormNo1").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) {
                }
            });
        }


        /*
         联系电话拼接
        */
        function GetContactPhone(code, ext, phone) {
            code = agent.Eles[document.getElementById("XTextBox34").getAttribute("xform_xele_index")].getValue();
            ext = agent.Eles[document.getElementById("XTextBox35").getAttribute("xform_xele_index")].getValue();
            phone = agent.Eles[document.getElementById("XTextBox36").getAttribute("xform_xele_index")].getValue();
            if (code.length > 0) {
                code = code;
            }
            if (ext.length > 0 && code.length > 0) {
                code += "-" + ext
            }
            else {
                code += ext
            }

            if (phone.length > 0 && ext.length > 0 && code.length > 0) {
                code += "-" + phone;
            }
            else {
                code += phone
            }
            return code;
        }

        var rescode = 0;
        agent.on('Submit', function (action, actionname) {
            var status = false;
            var strText = "";
            if (actionname == "退回重填") {
                var msg;
                msg = returnmsg(msg);
                //var msg = window.prompt("请输入退回理由：", "");
                if (rescode == 0)
                    return false;
                if (rescode == 1)
                    return true;
                //if (msg == undefined)
                //    return true;
                if (msg == null || msg == "null")
                    return false;
                if (msg == "") {
                    // alert("请输入退回理由");
                    return false;
                }
            }

        });

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

            //若出库方式为非消借出，且行项目为1000工厂且3000借出库时，系统弹窗提示：行项目库存地有3000借出库，请确认！点击【确定】按钮后可以继续提交。
            if (actionname == "提交") {
                var type = agent.Eles[document.getElementById("XDropDownList1").getAttribute("xform_xele_index")].getValue();
                if (type != "消借出") {
                    var table = document.getElementById("tablenew");
                    if (table.rows.length > 1) {
                        //工厂
                        var plant = agent.Eles[table.rows[1].cells[3].children[0].getAttribute("xform_xele_index")].getValue();
                        //alert(plant);
                        //库存地
                        var storage = agent.Eles[table.rows[1].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                        //alert(storage);
                        if (plant == "1000" && storage == "3000") {
                            if (confirm("行项目库存地有3000借出库，请确认！")) {
                                return true;
                            } else {
                                return false;
                            }

                        }
                    }
                }

            }

            //拒绝结束提交
            if (actionname == "拒绝结束") {
                var res = beforeSubmitRefuse();
                if (res == false)
                    return false;
            }

            if (actionname == "提交") {
                var type = agent.Eles[document.getElementById("XDropDownList1").getAttribute("xform_xele_index")].getValue();
                if (type == "发货到客户" || type == "发货到分支机构") {

                    //收货人座机
                    var tel = agent.Eles[document.getElementById("XTextBox11").getAttribute("xform_xele_index")].getValue();
                    //收货人手机
                    var phone = agent.Eles[document.getElementById("XTextBox37").getAttribute("xform_xele_index")].getValue();
                    if (tel.length == 0) {
                        if (!checkPhone(phone)) {
                            alert("收货人手机号格式不正确！");
                            return false;
                        }
                    }

                }
            }


        });

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

        function returnmsg(msg) {
            msg = window.prompt("请输入退回理由：", "");
            if (msg == null)
                return msg;
            else if (msg == "" || msg == undefined) {
                alert("请输入退回理由");
                returnmsg(msg);
            }
            else if (msg != "" || msg != null)  //记录退回理由
            {
                if (rescode == 0) {
                    return recordMsg(msg);
                }
            }

        }

        function recordMsg(msg) {
            if (msg != "" || msg != null)  //记录退回理由
            {
                rescode++;
                strText = msg;
                var StepID = request("pid");//tid,pid
                var TaskID = agent.Eles[document.getElementById("XTextBox43").getAttribute("xform_xele_index")].getValue();
                //alert(StepID);
                YZSoft.Ajax.request({
                    async: false,
                    url: YZSoft.$url('Oimec/ApiServices/BPMSysAPIHandler.ashx'),
                    params: {
                        method: 'UpdateReturnReason',
                        StepID: StepID,
                        Comments: strText,
                        TaskID: TaskID
                    },
                    success: function (action) {
                        var data = action.result;
                        var code = data.code;
                        return true;

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

                return false;
            }
            return msg;
        }

        function request(paras) {
            var url = location.href;
            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
            var paraObj = {};
            for (i = 0; j = paraString[i]; i++) {
                paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
            }
            var returnValue = paraObj[paras.toLowerCase()];
            if (typeof (returnValue) == "undefined")
            { return ""; }
            else
            { return returnValue; }
        }

        function Reset(value, value1) {
            //初始值
            var initValue = agent.Eles[document.getElementById("XTextBox47").getAttribute("xform_xele_index")].getValue();
            //var initValue = agent.Eles[document.getElementById("XTextBox49").getAttribute("xform_xele_index")].getValue();
            if (value != '' && value != initValue) {
                return "";
            }
            else
                return value1;
        }


    </script>

    <script type="text/javascript">
        //打印快递单
        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();
            obj_param["d_mobile"] = agent.Eles[document.getElementById("XTextBox37").getAttribute("xform_xele_index")].getValue();
            //obj_param["logistics"] = "2";//1顺丰 2跨越
            obj_param["printType"] = "03";//2 两联单；3三联单
            obj_param["d_province"] = agent.Eles[document.getElementById("XDropDownList19").getAttribute("xform_xele_index")].getValue();
            obj_param["d_city"] = agent.Eles[document.getElementById("XDropDownList6").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");
            //alert(radio1.checked);
            //alert(radio2.checked);
            //return false;
            if (radio1.checked == true) { //是
                obj_param["need_return_tracking_no"] = "1";
            }
            if (radio2.checked == true) { //否
                obj_param["need_return_tracking_no"] = "";
            }

            //获取产品型号、数量
            var str = "";
            var tableObj = document.getElementById('tablenew');
            for (var i = 1; i < tableObj.rows.length; i++) {    //遍历Table的所有Row //遍历Row中的每一列
                var model = agent.Eles[tableObj.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();   //型号
                var num = agent.Eles[tableObj.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].getValue();     //数量
                str += model + ";" + num + "/";
            }

            //备注信息
            obj_param["remark"] = str;
            obj_param["jtw"] = "测试仪器";//寄托物

            //包裹数
            obj_param["PackNumber"] = agent.Eles[document.getElementById("XTextBox21").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);
        }

        //验收单 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 btn() {
            var table = agent.findGridFromTableName(null, 'DF_SD_Delivery_Detail'); //获取table对象
            //if (table == undefined) return;
            table.deleteBlocks(0, 1);
            //table.appendBlock(count);//添加行
        }

        //发运要求
        function checkSendRequire(str) {
            var flag = 0;
            FYYQStyle(str);

            if (str != null && str != undefined && str != '') {

                if (str.indexOf("用户指定文件需要随货发运") != -1)
                    flag = 1;

            }
            return flag;
        }

        //发运要求样式设置
        function FYYQStyle(str) {
            var div = document.getElementById("div_ShippingRequirements");
            var inputs = div.getElementsByTagName("label");
            for (var i = 0; i < inputs.length; i++) {
                var obj = inputs[i];

                if (str.indexOf("次日达") != -1) {
                    if (obj.innerText == "次日达") {
                        obj.style.color = "red";
                        obj.style.fontWeight = 'bold';
                    }

                } else {
                    if (obj.innerText == "次日达") {
                        obj.style.color = "black";
                        obj.style.fontWeight = '';
                    }
                }

                if (str.indexOf("验收单、运单备注客户PO号") != -1) {
                    if (obj.innerText == "验收单、运单备注客户PO号") {
                        obj.style.color = "red";
                        obj.style.fontWeight = 'bold';
                    }

                } else {
                    if (obj.innerText == "验收单、运单备注客户PO号") {
                        obj.style.color = "black";
                        obj.style.fontWeight = '';
                    }
                }

                if (str.indexOf("用户指定文件需要随货发运") != -1) {
                    if (obj.innerText == "用户指定文件需要随货发运") {
                        obj.style.color = "red";
                        obj.style.fontWeight = 'bold';
                    }

                } else {
                    if (obj.innerText == "用户指定文件需要随货发运") {
                        obj.style.color = "black";
                        obj.style.fontWeight = '';
                    }
                }

                if (str.indexOf("周末可正常送货") != -1) {
                    if (obj.innerText == "周末可正常送货") {
                        obj.style.color = "red";
                        obj.style.fontWeight = 'bold';
                    }

                } else {
                    if (obj.innerText == "周末可正常送货") {
                        obj.style.color = "black";
                        obj.style.fontWeight = '';
                    }
                }

            }
        }

        //执行发货时 显示交货单行信息
        function IsShowDelivery(OldOutboundAdmin) {

            var pid = request("pid"); //当前处理任务步骤编号

            var acc = OldOutboundAdmin;

            //获取处理任务步骤拥有人信息
            var ownerAccount = "";
            YZSoft.Ajax.request({
                async: false,
                url: YZSoft.$url('Oimec/ApiServices/LogisticsAPIHandler.ashx'),
                params: {
                    method: 'GetStepOwnerAccount',
                    pid: pid
                },
                success: function (action) {
                    var data = action.result;
                    if (data != "") {
                        ownerAccount = data[0].OwnerAccount;
                    }
                }
            });

            //记录拥有人账号
            agent.Eles[document.getElementById("oaccount").getAttribute("xform_xele_index")].setValue(ownerAccount);

            if (ownerAccount == acc)
                return false;
            else
                return true;

        }

        //拒绝
        function clickRefusechk() {
            var id = document.getElementsByName("IsRefuse")[0].getElementsByTagName('input')[0].id;
            var IsRefuse = document.getElementById(id).checked;
            if (IsRefuse == true)//勾选拒绝
            {
                //将行项目初始库管员与当前步骤拥有人相同的行勾选
                var divs = document.getElementsByName("OldOutboundAdmin");
                var divs_Refuse = document.getElementsByClassName("XCheckBoxRefuse");//拒绝
                var oaccount = agent.Eles[document.getElementById("oaccount").getAttribute("xform_xele_index")].getValue();

                for (var i = 0; i < divs.length; i++) {
                    var id_old = getElementId("OldOutboundAdmin", i, "input");
                    var oldaccount = document.getElementById(id_old).value;

                    var div_Refuse = divs_Refuse[i];
                    var id_Refuse = div_Refuse.getElementsByTagName('input')[0].id;

                    if (oaccount == oldaccount) {
                        document.getElementById(id_Refuse).checked = true;
                    }
                }

            }
            else {

                //将行项目初始库管员与当前步骤拥有人相同的行勾选
                var divs = document.getElementsByName("OldOutboundAdmin");
                var divs_Refuse = document.getElementsByClassName("XCheckBoxRefuse");//拒绝
                var oaccount = agent.Eles[document.getElementById("oaccount").getAttribute("xform_xele_index")].getValue();

                for (var i = 0; i < divs.length; i++) {
                    var id_old = getElementId("OldOutboundAdmin", i, "input");
                    var oldaccount = document.getElementById(id_old).value;

                    var div_Refuse = divs_Refuse[i];
                    var id_Refuse = div_Refuse.getElementsByTagName('input')[0].id;

                    if (oaccount == oldaccount) {
                        document.getElementById(id_Refuse).checked = false;
                    }
                }

            }

        }

        //拒绝结束提交前控制
        function beforeSubmitRefuse() {
            //检查交货单行项目是否都已拒绝

            var divs = document.getElementsByName("OldOutboundAdmin");
            var divs_Refuse = document.getElementsByClassName("XCheckBoxRefuse");//拒绝
            var oaccount = agent.Eles[document.getElementById("oaccount").getAttribute("xform_xele_index")].getValue();

            for (var i = 0; i < divs.length; i++) {
                var id_old = getElementId("OldOutboundAdmin", i, "input");
                var oldaccount = document.getElementById(id_old).value;

                var div_Refuse = divs_Refuse[i];
                var id_Refuse = div_Refuse.getElementsByTagName('input')[0].id;
                var IsRefuse = document.getElementById(id_Refuse).checked;
                if (oaccount == oldaccount) {
                    if (IsRefuse == false) {
                        alert("行项目必须全部勾选拒绝！");
                        return false;
                    }
                }
            }
            return true;

        }


        //是否已创建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 "否";
        }


        /*   注**：这是一个公共的方法
      **  获取行项目table对应标签控件元素id
      **  参数说明：name(控件name)，i(行索引)，htmltag(要获取控件div中对应的标签名)
      **  示例：获取第1行行项目文本框name="txtname",参数：txtname,0,input
      */
        function getElementId(name, i, htmltag) {
            var divs = document.getElementsByName(name);
            var div = divs[i];
            var id = div.getElementsByTagName(htmltag)[0].id;
            return id;

        }



    </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_Delivery_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="2">
                        <asp:Label ID="Label10" runat="server" Text="标记*的为申请人必填项" Font-Bold="True" ForeColor="Red"></asp:Label>&nbsp; 
                    </td>
                    <td align="right" colspan="2">
                        <%--<aspxform:XButton ID="XButton4" runat="server" Text=" 打印快递单" OnClientClick="Print_Waybill()"></aspxform:XButton>--%><%--&nbsp;<aspxform:XButton ID="XButton1" runat="server" Text="打印【套打】" XClass="YZSoft.Forms.Field.Button" OnClientClick="PrintTD()" Height="23px" UseSubmitBehavior="False"></aspxform:XButton>--%><%--&nbsp;<aspxform:XButton ID="XButton2" runat="server" Text="打印客户验收单" OnClientClick="PrintNTD()" 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="XTextBox40" runat="server" XDataBind="DF_SD_Delivery_Info.ReturnStepID" Width="64px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox42" runat="server" XDataBind="DF_SD_Delivery_Info.Status" Width="64px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox43" runat="server" XDataBind="DF_SD_Delivery_Info.TaskID" Width="64px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <%--<aspxform:XTextBox ID="XTextBox23" runat="server" XDataBind="DF_SD_Delivery_Info.SourceNo" BorderWidth="1" BorderColor="#DCDCDC" ValueToDisplayText="TableName:DF_CRM_SalesOpportunities;FilterColumn:FormNo;DisplayColumn:FormNo" Width="150px" DataMap="CustomerReceivingName->DF_SD_Delivery_Info.UserCompanyName;CustomerReceivingContacts->DF_SD_Delivery_Info.Contact;CustomerReceivingLandline->DF_SD_Delivery_Info.Phone;CustomerReceivingPhone->DF_SD_Delivery_Info.MobilePhone;CustomerReceivingAdress->DF_SD_Delivery_Info.SendGoodsAddr;CustomerReceivingZipCode->DF_SD_Delivery_Info.Code;CustomerReceivingId->DF_SD_Delivery_Info.UserCompanyID" HiddenExpress="1"></aspxform:XTextBox>--%>
                        <aspxform:XTextBox ID="textState" runat="server" XDataBind="varState" Width="64px" Min="0" Max="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="uid" runat="server" XDataBind="uid" Width="64px" Min="0" Max="0" HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="oaccount" runat="server" XDataBind="uid" 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_Delivery_Info.CreateAccount" Width="20px" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:Account" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" DataMap="DisplayName->DF_SD_Delivery_Info.CreateName"></aspxform:XTextBox>
                    </td>
                    <td width="534" class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox1" runat="server" XDataBind="DF_SD_Delivery_Info.CreateName" BackColor="#E6F1F8" Width="70%" ValueToDisplayText="TableName:V_Users;FilterColumn:DisplayName;DisplayColumn:DisplayName" 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_Delivery_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_Delivery_Info.SalesManID" Width="20px" Min="0" Max="0" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DataMap="BUName->DF_SD_Delivery_Info.BU;Region->DF_SD_Delivery_Info.Area" Express="DF_SD_Delivery_Info.CreateAccount" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox48" runat="server" XDataBind="StaffSAPNumber" Width="20px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox2" runat="server" XDataBind="DF_SD_Delivery_Info.SalesMan" BackColor="#E6F1F8" Width="70%" ValueToDisplayText BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDropDownList ID="XDropDownList4" runat="server" DataMap="StaffID->DF_SD_Delivery_Info.SalesManID;StaffName->DF_SD_Delivery_Info.SalesMan" HiddenExpress="1" DisplayColumn="DisplayName" ValueColumn="DisplayName" XDataSource="TableName:DF_SA_SS_SalesPersonnel;Filter:StaffSAPNumber->StaffSAPNumber"></aspxform:XDropDownList>
                    </td>
                    <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_Delivery_Info.BU" BackColor="#E6F1F8" Width="70%" ValueToDisplayText BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <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_Delivery_Info.Area" BackColor="#E6F1F8" Width="70%" ValueToDisplayText BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></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="Label42" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;
                        <asp:Label ID="Label40" runat="server" Text="已创建SAP交货单"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XRadioButtonList ID="IsCreateDeliveryNo" runat="server" XDataBind="DF_SD_Delivery_Info.IsCreateDeliveryNo" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label12" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label6" runat="server" Text="出库方式"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="XDropDownList1" runat="server" XDataBind="DF_SD_Delivery_Info.DeliveryWay" Width="150px" DisableExpress="Global.StepName!='申请人发起申请'" PromptText="----请选择----" Height="20px">
                            <asp:ListItem>自提</asp:ListItem>
                            <asp:ListItem>发货到客户</asp:ListItem>
                            <asp:ListItem>发货到分支机构</asp:ListItem>
                        </aspxform:XDropDownList>
                        <%--<asp:ListItem>发货到客户</asp:ListItem>--%></td>
                    <%--<td class="tsbottomlabel" style="WIDTH: 10%">
                        <aspxform:XLabel id="XLabel5" runat="server" BackColor="#D4E4FE" Text="*" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="消借出"' ForeColor="Red"></aspxform:XLabel>
                        &nbsp;<asp:Label id="Label22" runat="server" text="借出申请单号" hiddenexpress='DF_SD_Delivery_Info.DeliveryWay!="消借出"'></asp:Label>
                        <aspxform:XTextBox id="XTextBox41" runat="server" XDataBind="DF_SD_Delivery_Info.LendAppTaskID" Width="20px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox39" runat="server" XDataBind="DF_SD_Delivery_Info.LendAppFormNo" BackColor="#E6F1F8" Width="130px" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="消借出"'></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" Width="40px" DataMap="TaskID->DF_SD_Delivery_Info.LendAppTaskID;SerialNum->DF_SD_Delivery_Info.LendAppFormNo" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="消借出"' XDataSource="TableName:DF_ProductLendApp_Info" DisableExpress="Global.StepName!='申请人发起申请'" DisplayColumns="SerialNum:借出申请单号;SalesManName:业务员;LendDate:借出日期;LendReason:借出原因;ExpectReturnDate:预计归还日期"></aspxform:XDataBrowserButton>
                    </td>--%>
                </tr>
                <tr hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='否'">
                    <td height="22" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label61" runat="server" Text="*   " BackColor="#D4E4FE" ForeColor="Red"></asp:Label><asp:Label ID="Label62" runat="server" Text="SAP-SO号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="SO1" Style="height: 100%; width: 150px" runat="server" XDataBind="DF_SD_Delivery_Info.SO1" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        &nbsp;<asp:Label ID="Label63" runat="server" Text="(只能输入一个SO)"></asp:Label>
                        <aspxform:XCustomBrowserButton ID="XCustomBrowserButton5" runat="server" Text="获取数据" XClass="Oimec.Dialogs.IncrementDeliveryInfoButton" Width="70px" DataMap="lineItemNo->DF_SD_IncrementDelivery_Detail.SOLineNum;plant->DF_SD_IncrementDelivery_Detail.Plant;storage->DF_SD_IncrementDelivery_Detail.Storage;prdtSAPID->DF_SD_IncrementDelivery_Detail.PrdtSAPID;prdtName->DF_SD_IncrementDelivery_Detail.ProductName;prdtModel->DF_SD_IncrementDelivery_Detail.ProductModel;number->varNumber;lineItemCategory->DF_SD_IncrementDelivery_Detail.LineItemCategory" DisableExpress="Global.StepName!='申请人发起申请'" Height="25px" Filter="SO->DF_SD_Delivery_Info.SO1" AppendMode="ClearAndAppend" UseSubmitBehavior="False"></aspxform:XCustomBrowserButton>
                    </td>
                    <td height="22" class="tsbottomlabel" style="width: 10%"></td>
                    <td class="tsbottomtext" style="width: 35%"></td>
                </tr>
                <tr hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='否'">
                    <td height="22" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label65" runat="server" Text="SAP交货单号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%" colspan="3">
                        <aspxform:XTextBox ID="DeliveryFormNo1" runat="server" XDataBind="DF_SD_Delivery_Info.DeliveryFormNo1" BackColor="#E6F1F8" Width="400px" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        <asp:Label ID="Label66" runat="server" Text="（多个交货单号，以“/”分隔，例如：80012345/80012346）"></asp:Label></td>
                </tr>
                <tr hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'">
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label7" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label15" runat="server" Text="SAP交货单号"></asp:Label>
                        <%--<aspxform:XDropDownList ID="XDropDownList7" runat="server" Width="21px" DataMap="State->state;TaskID->taskID" HiddenExpress="1" XDataSource="TableName:V_DF_SD_DeliveryGoods_APPState1;Filter:DeliveryFormNo->DF_SD_Delivery_Info.DeliveryFormNo"></aspxform:XDropDownList>--%>
                        <aspxform:XTextBox ID="XTextBox44" runat="server" XDataBind="state" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox45" runat="server" XDataBind="taskID" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="width: 80%" colspan="3">
                        <aspxform:XTextBox ID="XTextBox5" runat="server" XDataBind="DF_SD_Delivery_Info.DeliveryFormNo" Width="400px" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableExpress="Global.StepName!='申请人发起申请'" Height="25px"></aspxform:XTextBox>
                        <asp:Label ID="XLabel8" runat="server" Text="（可以输入多个交货单号，以“/”分隔，例如：80012345/80012346）" ForeColor="Blue"></asp:Label>
                        <aspxform:XCustomBrowserButton ID="XCustomBrowserButton1" runat="server" Text="获取数据" XClass="Oimec.Dialogs.SalesDeliveryInfoButton" Width="70px" DataMap="DeliveryNo->DF_SD_Delivery_Detail.DeliveryNo;prdtModel->DF_SD_Delivery_Detail.ProductModel;number->DF_SD_Delivery_Detail.Number;lineItemNo->DF_SD_Delivery_Detail.LineItemNo;prdtSAPID->DF_SD_Delivery_Detail.PrdtSAPID;SerialNumber->DF_SD_Delivery_Detail.SerialNo;storage->DF_SD_Delivery_Detail.Storage;prdtName->DF_SD_Delivery_Detail.ProductName;lineItemCategory->DF_SD_Delivery_Detail.LineItemCategory;plant->DF_SD_Delivery_Detail.Plant" DisableExpress="Global.StepName!='申请人发起申请'" Height="22px" Filter="deliveryNum->DF_SD_Delivery_Info.DeliveryFormNo" AppendMode="ClearAndAppend" UseSubmitBehavior="False"></aspxform:XCustomBrowserButton>
                        <aspxform:XTextBox ID="XTextBox38" runat="server" XDataBind="customerName" BackColor="#E6F1F8" Width="20px" Min="0" Max="0" ValueToDisplayText="TableName:V_DF_MasterData_Customer;FilterColumn:CustomerNameCH;DisplayColumn:CustomerNameCH" HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" DataMap="CustomerID->CustomerID" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="SourceNo" runat="server" XDataBind="DF_SD_Delivery_Info.SourceNo" BackColor="#E6F1F8" ValueToDisplayText="TableName:DF_CRM_SalesOpportunities;FilterColumn:FormNo;DisplayColumn:FormNo" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1" DataMap="CustomerReceivingName->DF_SD_Delivery_Info.UserCompanyName;CustomerReceivingContacts->DF_SD_Delivery_Info.Contact;CustomerReceivingLandline->DF_SD_Delivery_Info.Phone;CustomerReceivingPhone->DF_SD_Delivery_Info.MobilePhone;CustomerReceivingAdress->DF_SD_Delivery_Info.SendGoodsAddr;CustomerReceivingZipCode->DF_SD_Delivery_Info.Code;DepositMode->DF_SD_Delivery_Info.DeliveryWay;CustomerReceivingId->CustomerID" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress="1">
                    <td height="22" class="tsbottomlabel">
                        <asp:Label ID="Label49" runat="server" Text="SAP物料凭证号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox ID="XTextBox27" runat="server" XDataBind="DF_SD_Delivery_Info.MBLNR" BackColor="#E6F1F8" Width="400px" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        <asp:Label ID="XLabel9" runat="server" Text="（多个SAP物料凭证号，以“/”分隔）" ForeColor="Blue"></asp:Label>
                        <aspxform:XButton ID="XButton3" runat="server" Text="更新数据" Width="70px" HiddenExpress="Global.StepName=='申请人发起申请' || Global.StepName=='出库管理员执行发货' || DF_SD_Delivery_Info.IsCreateDeliveryNo!='是' " Height="22px" OnClientClick="UpdateData()"></aspxform:XButton>
                        <%--<aspxform:XCustomBrowserButton id="XCustomBrowserButton6" runat="server" Text="更新数据" HiddenExpress=" DF_SD_Delivery_Info.IsCreateDeliveryNo!='否' || DF_SD_Delivery_Info.MBLNR==''" XClass="Oimec.Dialogs.DeliveryInfoButton" Height="22px" Width="70px" Filter="DeliveryFormNo->DF_SD_Delivery_Info.DeliveryFormNo1,Plant->DF_SD_IncrementDelivery_Detail_Delivery.Plant" AppendMode="ClearAndAppend" DataMap="DeliveryLineNum->DF_SD_IncrementDelivery_Detail_Delivery.DeliveryLineNum;Plant->DF_SD_IncrementDelivery_Detail_Delivery.Plant;Storage->DF_SD_IncrementDelivery_Detail_Delivery.Storage;PrdtSAPID->DF_SD_IncrementDelivery_Detail_Delivery.PrdtSAPID;ProductModel->DF_SD_IncrementDelivery_Detail_Delivery.ProductModel;ProductName->DF_SD_IncrementDelivery_Detail_Delivery.ProductName;Number->DF_SD_IncrementDelivery_Detail_Delivery.Number;BatchCode->DF_SD_IncrementDelivery_Detail_Delivery.BatchCode;IsBatch->DF_SD_IncrementDelivery_Detail_Delivery.IsBatch;SerialNo->DF_SD_IncrementDelivery_Detail_Delivery.SerialNo;SerialCode->DF_SD_IncrementDelivery_Detail_Delivery.SerialCode;LineItemCategory->DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory"></aspxform:XCustomBrowserButton>--%></td>
                </tr>
                <tr hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'">
                    <td height="22" class="tsbottomlabel">
                        <asp:Label ID="Label8" runat="server" Text="SAP-SO号"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox ID="XTextBox6" runat="server" XDataBind="DF_SD_Delivery_Info.SO" BackColor="#E6F1F8" Width="400px" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" Height="25px"></aspxform:XTextBox>
                        <asp:Label ID="XLabel10" runat="server" Text="（多个SAP-SO号，以“/”分隔）" ForeColor="Blue"></asp:Label></td>
                </tr>
                <tr hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'">
                    <td height="20" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label36" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label14" runat="server" Text="实物出货库存地"></asp:Label>
                    </td>
                    <td width="415" class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="XDropDownList8" runat="server" XDataBind="DF_SD_Delivery_Info.PhysicalDelivery" Width="120px" DataMap="BPMStorageID->DF_SD_Delivery_Info.PhysicalDeliveryID" DisplayColumn="StorageName" ValueColumn="StorageName" XDataSource="TableName:DF_Logistics_SAPStorage" DisableExpress="Global.StepName!='申请人发起申请' || (DF_SD_Delivery_Detail.Storage!='1016' && DF_SD_Delivery_Detail.Storage!='2113')" PromptText="----请选择----"></aspxform:XDropDownList>
                        <aspxform:XTextBox ID="PhysicalDeliveryID" runat="server" XDataBind="DF_SD_Delivery_Info.PhysicalDeliveryID" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="OutboundAdministrator" runat="server" XDataBind="DF_SD_Delivery_Info.OutboundAdministrator" Width="50px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td height="20" class="tsbottomlabel" id="Label24" runat="server">SAP出货库存地 
                        <aspxform:XTextBox ID="XTextBox32" runat="server" XDataBind="sapstorage" Width="20px" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox31" runat="server" XDataBind="plant" Width="20px" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox19" runat="server" XDataBind="DF_SD_Delivery_Info.DeliveryStore" BackColor="#E6F1F8" Width="70%" ValueToDisplayText BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDropDownList ID="XDropDownList5" runat="server" DataMap="BPMStorageID->DF_SD_Delivery_Info.PhysicalDeliveryID;StorageName->DF_SD_Delivery_Info.PhysicalDelivery" HiddenExpress="1" DisplayColumn="BPMStorageID" ValueColumn="BPMStorageID" XDataSource="TableName:DF_Logistics_SAPStorage;Filter:SAPStorageID->sapstorage,SAPPlant->plant" DisableExpress="Global.StepName!='申请人发起申请' &amp;&amp; Global.StepName!='出库管理员执行发货' &amp;&amp; Global.StepName!='出库管理员执行发货并发货过账'" PromptText="----请选择----"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td width="117" class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label16" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label17" runat="server" Text="发货日期"></asp:Label></td>
                    <td width="414" class="tsbottomtext" style="width: 35%">
                        <aspxform:XDateTimePicker ID="XDateTimePicker2" runat="server" XDataBind="DF_SD_Delivery_Info.SendGoodsDate" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起申请'"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label9" runat="server" Text="客户合同号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox7" runat="server" XDataBind="DF_SD_Delivery_Info.CustomerContractNo" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator19" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="IsCreateDeliveryNo" ErrorMessage="请选择已创建SAP交货单！" Display="None">请选择已创建SAP交货单！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator1" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择出库方式！" Display="None">请选择出库方式！</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator16" runat="server" ForeColor="Red" DisableExpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'" ValidationGroup="submit" ControlToValidate="XTextBox5" ErrorMessage="请填写SAP交货单号！" Display="None">请填写SAP交货单号！</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator3" runat="server" ForeColor="Red" DisableExpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='否'" ValidationGroup="submit" ControlToValidate="SO1" ErrorMessage="请填写SAP-SO号！" Display="None">请填写SAP-SO号！</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator15" runat="server" ForeColor="Red" DisableExpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'" ValidationGroup="submit" ControlToValidate="XDropDownList8" ErrorMessage="请选择实物出货库存地！" Display="None">请选择实物出货库存地！</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator9" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker2" ErrorMessage="请选择交货日期！" Display="None">请选择交货日期！</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr hiddenexpress="DF_SD_Delivery_Info.DeliveryWay!='发货到分支机构'">
                    <td class="tsbottomlabel" style="width: 10%">
                        <aspxform:XLabel ID="XLabel11" runat="server" Text="*" BackColor="#D4E4FE" ForeColor="Red" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"'></aspxform:XLabel>
                        <asp:Label ID="Label38" runat="server" Text="分支机构" hiddenexpress="DF_SD_Delivery_Info.DeliveryWay!='发货到分支机构'"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox61" runat="server" XDataBind="DF_SD_Delivery_Info.BranchID" Width="20px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox class="text" ID="XTextBox60" runat="server" XDataBind="DF_SD_Delivery_Info.Branch" BackColor="#E6F1F8" Width="150" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" HiddenExpress="DF_SD_Delivery_Info.DeliveryWay!='发货到分支机构'" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton ID="XCustomBrowserButton3" runat="server" Text="查询" XClass="Oimec.Dialogs.BranchInfoButton" Width="40px" DataMap="BranchID->DF_SD_Delivery_Info.BranchID;Branch->DF_SD_Delivery_Info.Branch;PreBranch->varBranch;Address->DF_SD_Delivery_Info.SendGoodsAddr;CompanyName->DF_SD_Delivery_Info.UserCompanyName;Contact->DF_SD_Delivery_Info.Contact;Phone->DF_SD_Delivery_Info.Phone;Mobile->DF_SD_Delivery_Info.MobilePhone;ZipCode->DF_SD_Delivery_Info.Code" HiddenExpress="Global.StepName!='申请人发起申请'" DisableExpress="Global.StepName!='申请人发起申请'" Height="25px" Filter="Branch->DF_SD_Delivery_Info.Branch,InitBranch->varBranch,Address->DF_SD_Delivery_Info.SendGoodsAddr,CompanyName->DF_SD_Delivery_Info.UserCompanyName,Contact->DF_SD_Delivery_Info.Contact,Phone->DF_SD_Delivery_Info.Phone,Mobile->DF_SD_Delivery_Info.MobilePhone,ZipCode->DF_SD_Delivery_Info.Code"></aspxform:XCustomBrowserButton>
                        <aspxform:XTextBox ID="XTextBox47" runat="server" XDataBind="varBranch" Width="50px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%"></td>
                    <td class="tsbottomtext" style="width: 35%"></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label18" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label19" runat="server" Text="收货公司名称"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox33" runat="server" XDataBind="CustomerID" BackColor="#E6F1F8" Width="20px" Min="0" Max="0" ValueToDisplayText HiddenInput="true" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox8" runat="server" XDataBind="DF_SD_Delivery_Info.UserCompanyName" BackColor="#E6F1F8" Width="70%" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XCustomBrowserButton ID="XCustomBrowserButton4" runat="server" Text="查询" XClass="Oimec.Dialogs.SelCustomerButton" Width="40px" DataMap="CustomerID->CustomerID;CustomerNameCH->DF_SD_Delivery_Info.UserCompanyName" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay=="发货到分支机构"' DisableExpress="Global.StepName!='申请人发起申请'" Height="25px"></aspxform:XCustomBrowserButton>
                        <aspxform:XDataBrowserButton ID="XDataBrowserButton4" runat="server" Text="查询" Width="40px" DataMap="ID->CustomerID;CompanyName->DF_SD_Delivery_Info.UserCompanyName;CompanyAddress->DF_SD_Delivery_Info.SendGoodsAddr;CompanyZipCode->DF_SD_Delivery_Info.Code" HiddenExpress="DF_SD_Delivery_Info.DeliveryWay!=&quot;发货到分支机构&quot;||Global.StepName!='申请人发起申请'" XDataSource="TableName:DF_FI_BranchCompany;Filter:BranchID->DF_SD_Delivery_Info.BranchID" DisableExpress="Global.StepName!='申请人发起申请'" Height="22px" DisplayColumns="CompanyName:公司名称,260;CompanyAddress:公司地址,300;CompanyZipCode:邮编,60"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox ID="XTextBox24" runat="server" XDataBind="DF_SD_Delivery_Info.UserCompanyID" Width="50px" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel ID="XLabel4" runat="server" Text="*" BackColor="#D4E4FE" ForeColor="Red" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"'></aspxform:XLabel>
                        <asp:Label ID="Label23" runat="server" Text="联系人"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox34" runat="server" XDataBind="Tel1" BackColor="#E6F1F8" Width="20px" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox35" runat="server" XDataBind="Tel2" BackColor="#E6F1F8" Width="20px" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox ID="XTextBox36" runat="server" XDataBind="Tel3" BackColor="#E6F1F8" Width="20px" Min="0" Max="0" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" DisableBehavior="ReadOnly" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox9" runat="server" XDataBind="DF_SD_Delivery_Info.Contact" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton ID="XDataBrowserButton8" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="40px" DataMap="ContactName->DF_SD_Delivery_Info.Contact;ContactTel->DF_SD_Delivery_Info.Phone;ContactMobile->DF_SD_Delivery_Info.MobilePhone;ContactAddr->DF_SD_Delivery_Info.SendGoodsAddr;ZipCode->DF_SD_Delivery_Info.Code" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay=="发货到分支机构"' XDataSource="TableName:DF_Partner_ContactZK;Filter:PartnerID->CustomerID,ContactType->'客户',OwnerAccount->DF_SD_Delivery_Info.SalesManID" DisableExpress="Global.StepName!='申请人发起申请'  || DF_SD_Delivery_Info.UserCompanyName=='' || DF_SD_Delivery_Info.SalesMan==''" Height="25px" UseSubmitBehavior="False" DisplayColumns="ContactName:联系人;ContactTel:联系电话;ContactMobile:联系人手机;ContactAddr:地址,260;ZipCode:邮编" PrintOut="False" PopupWndWidth="-1" PopupWndHeight="-1"></aspxform:XDataBrowserButton>
                        <aspxform:XCustomBrowserButton ID="XCustomBrowserButton2" runat="server" Text="新建" XClass="Oimec.Dialogs.ContactAddButton" Width="40px" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay=="发货到分支机构"' DisableExpress="Global.StepName!='申请人发起申请'  || DF_SD_Delivery_Info.UserCompanyName=='' || DF_SD_Delivery_Info.SalesMan==''" Height="25px" Filter="OwnerAccount->DF_SD_Delivery_Info.SalesManID,CustomerID->CustomerID" PrintOut="False" BeforePopupCallFunc="MOA" BrowserWindowType="AjaxPanel" NavigateUrl="DFJC/Sales/Dialogs/ContactAdd.js"></aspxform:XCustomBrowserButton>
                        <aspxform:XDataBrowserButton ID="XDataBrowserButton5" runat="server" Text="查询" Width="41px" DataMap="ContactName->DF_SD_Delivery_Info.Contact;Telphone->DF_SD_Delivery_Info.Phone;Mobile->DF_SD_Delivery_Info.MobilePhone" HiddenExpress="DF_SD_Delivery_Info.DeliveryWay!='发货到分支机构'||Global.StepName!='申请人发起申请'" XDataSource="TableName:DF_FI_BranchContact;Filter:BranchID->DF_SD_Delivery_Info.BranchID" DisableExpress="Global.StepName!='申请人发起申请'" Height="25px" DisplayColumns="ContactName:联系人,100;Telphone:电话,200;Mobile:手机,100" PrintOut="False"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel ID="XLabel2" runat="server" Text="*   " BackColor="#D4E4FE" ForeColor="Red" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构" '></aspxform:XLabel>
                        &nbsp;<asp:Label ID="Label21" runat="server" Text="收货详细地址"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox20" runat="server" XDataBind="ProvinceID" Width="25px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XDropDownList ID="XDropDownList19" Style="height: 25px; width: 120px" runat="server" XDataBind="DF_SD_Delivery_Info.province" DataMap="ProvinceID->ProvinceID" DisplayColumn="ProvinceName" ValueColumn="ProvinceName" XDataSource="TableName:DF_Comm_Province" PromptText="----请选择----"></aspxform:XDropDownList>
                        &nbsp;<aspxform:XDropDownList ID="XDropDownList6" Style="height: 25px; width: 100px" runat="server" XDataBind="DF_SD_Delivery_Info.city" DisplayColumn="CityName" ValueColumn="CityName" XDataSource="TableName:DF_Comm_City;Filter:ProvinceID->ProvinceID" PromptText="----请选择----"></aspxform:XDropDownList>
                        &nbsp;<aspxform:XTextBox ID="XTextBox10" Style="height: 25px; width: 75%" runat="server" XDataBind="DF_SD_Delivery_Info.SendGoodsAddr" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel ID="XLabel6" runat="server" Text="*" BackColor="#D4E4FE" ForeColor="Red" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"'></aspxform:XLabel>
                        <asp:Label ID="Label25" runat="server" Text="电话"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox11" runat="server" XDataBind="DF_SD_Delivery_Info.Phone" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel ID="XLabel3" runat="server" Text="*" BackColor="#D4E4FE" ForeColor="Red" HiddenExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"'></aspxform:XLabel>
                        &nbsp;<asp:Label ID="Label13" runat="server" Text="手机"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox37" runat="server" XDataBind="DF_SD_Delivery_Info.MobilePhone" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label ID="Label50" runat="server" Text="邮编"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox28" runat="server" XDataBind="DF_SD_Delivery_Info.Code" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td height="20" class="tsbottomlabel">&nbsp;</td>
                    <td class="tsbottomtext"></td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator21" runat="server" ForeColor="Blue" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' ValidationGroup="submit" ControlToValidate="XTextBox60" ErrorMessage="请选择分支机构"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator10" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox8" ErrorMessage="请填写用户单位名称！" Display="None">请填写用户单位名称！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator17" runat="server" ForeColor="Red" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' ValidationGroup="submit" ControlToValidate="XTextBox10" ErrorMessage="请填写收货详细地址！" Display="None">请填写收货详细地址！</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator18" runat="server" ForeColor="Red" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' ValidationGroup="submit" ControlToValidate="XDropDownList19" ErrorMessage="请填写收货详细地址！" Display="None">请填写收货详细地址！</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator11" runat="server" ForeColor="Red" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' ValidationGroup="submit" ControlToValidate="XDropDownList6" ErrorMessage="请填写收货详细地址！" Display="None">请填写收货详细地址！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator12" runat="server" ForeColor="Red" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' ValidationGroup="submit" ControlToValidate="XTextBox9" ErrorMessage="请填写联系人！" Display="None">请填写联系人！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator13" runat="server" ForeColor="Red" DisableExpress='(DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构") || DF_SD_Delivery_Info.MobilePhone!=""' ValidationGroup="submit" ControlToValidate="XTextBox11" ErrorMessage="请填写电话！" Display="None">请填写电话！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator2" runat="server" ForeColor="Red" DisableExpress='(DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构") || DF_SD_Delivery_Info.Phone!=""' ValidationGroup="submit" ControlToValidate="XTextBox37" ErrorMessage="请填写手机！" Display="None">请填写手机！</aspxform:XRequiredFieldValidator>
        <%--已创建SAP交货单时显示--%>
        <div hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'">
            <%-- <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <aspxform:XButton ID="XButton1" runat="server" Text="批量删除" OnClientClick="DeleteBlocks();"></aspxform:XButton>
                    </td>
                </tr>
            </table>--%>
            <table width="1200" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" dynamicarea="1,1">
                <tbody>
                    <tr align="center">
                        <%--  <td class="tds" onchange="onchange_del()">删除
                              <aspxform:XCheckBox ID="XCheckBox1" runat="server" Width="30px"></aspxform:XCheckBox>
                        </td>--%>
                        <td class="tds" style="height: 16px; width: 50px">
                            <asp:Label ID="Label27" runat="server" Text="序号"></asp:Label></td>
                        <td class="tds" style="width: 120px">交货单号</td>
                        <td class="tds" style="width: 100px">交货单行号</td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label28" runat="server" Text="工厂"></asp:Label></td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label29" runat="server" Text="库存地"></asp:Label></td>
                        <td class="tds" style="width: 160px">
                            <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: 170px">
                            <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: 100px">
                            <asp:Label ID="Label34" runat="server" Text="行项目类别"></asp:Label></td>
                        <td class="tds" style="width: 200px">
                            <asp:Label ID="Label51" runat="server" Text="序列号"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label200" runat="server" Text="特殊发运说明"></asp:Label></td>
                    </tr>
                    <tr align="center">
                        <%-- <td class="tds1">
                            <aspxform:XCheckBox ID="XCheckBox2" runat="server" Width="30px"></aspxform:XCheckBox>
                        </td>--%>
                        <td class="tds1">
                            <aspxform:XGridLineNo ID="XGridLineNo1" runat="server" XDataBind="DF_SD_Delivery_Detail.SerialNum" Width="100%" BorderWidth="1" Height="100%" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox46" runat="server" XDataBind="DF_SD_Delivery_Detail.DeliveryNo" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox30" runat="server" XDataBind="DF_SD_Delivery_Detail.LineItemNo" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox3" runat="server" XDataBind="DF_SD_Delivery_Detail.Plant" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox4" runat="server" XDataBind="DF_SD_Delivery_Detail.Storage" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox12" runat="server" XDataBind="DF_SD_Delivery_Detail.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_Delivery_Detail.ProductModel" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox14" runat="server" XDataBind="DF_SD_Delivery_Detail.ProductName" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox15" runat="server" XDataBind="DF_SD_Delivery_Detail.Number" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox16" runat="server" XDataBind="DF_SD_Delivery_Detail.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="XTextBox29" runat="server" XDataBind="DF_SD_Delivery_Detail.SerialNo" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox21" runat="server" XDataBind="DF_SD_Delivery_Detail.ShippingRequirements" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                            <aspxform:XDropDownList ID="XDropDownList2" runat="server" DataMap="ShippingRequirements->DF_SD_Delivery_Detail.ShippingRequirements" HiddenExpress="1" DisplayColumn="PrdtID" ValueColumn="PrdtID" XDataSource="TableName:DF_PRODUCTS;Filter:SalesSapID->DF_SD_Delivery_Detail.PrdtSAPID"></aspxform:XDropDownList>
                        </td>
                    </tr>
                </tbody>
            </table>
            <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator14" runat="server" ForeColor="Red" DisableExpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='是'" ValidationGroup="submit" ControlToValidate="XTextBox4" ErrorMessage="请在SAP交货单里选择库存地并保存，之后在此表单重新获取数据！" Display="None">请在SAP交货单里选择库存地并保存，之后在此表单重新获取数据！</aspxform:XRequiredFieldValidator>
        </div>
        <%--未创建SAP交货单时显示--%>
        <div hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='否'">
            <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td>
                            <aspxform:XButton ID="XButton2" runat="server" Text="批量删除" Width="80px" Height="25px" OnClientClick="DeleteBlocks1();"></aspxform:XButton>
                        </td>
                    </tr>
                </tbody>
            </table>
            <table align="center" class="table" id="tablenew1" style="width: 1200px" border="0" cellspacing="0" cellpadding="0" emptygrid="KeepEmpty" dynamicarea="1,1" menudock="Left">
                <tbody>
                    <tr align="center">
                        <td class="tds" style="width: 50px" onchange="onchange_del1()">删除 
                            <aspxform:XCheckBox ID="XCheckBox3" runat="server" Width="30px"></aspxform:XCheckBox>
                        </td>
                        <td class="tds" style="height: 16px; width: 50px">
                            <asp:Label ID="Label22" runat="server" Text="序号"></asp:Label></td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label44" runat="server" Text="工厂"></asp:Label></td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label48" runat="server" Text="SO行号"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label53" runat="server" Text="销售产品SAPID"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label54" runat="server" Text="产品型号"></asp:Label></td>
                        <td class="tds" style="width: 200px">
                            <asp:Label ID="Label55" runat="server" Text="产品名称"></asp:Label></td>
                        <td class="tds" style="width: 40px">
                            <asp:Label ID="Label56" runat="server" Text="*   " ForeColor="Red"></asp:Label><asp:Label ID="Label57" runat="server" Text="数量"></asp:Label></td>
                        <td class="tds" style="width: 100px">
                            <asp:Label ID="Label58" runat="server" Text="SO行项目类别"></asp:Label></td>
                        <td class="tds" style="width: 220px">
                            <asp:Label ID="Label59" runat="server" Text="特殊发运说明"></asp:Label></td>
                    </tr>
                    <tr align="center">
                        <td class="tds1">
                            <aspxform:XCheckBox ID="XCheckBox4" runat="server" Width="30px"></aspxform:XCheckBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XGridLineNo ID="XGridLineNo2" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.LineItemNo" Width="100%" BorderWidth="1" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                            <aspxform:XTextBox ID="XTextBox39" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.Storage" BackColor="#E6F1F8" Width="10px" HiddenInput="true" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox41" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.Plant" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox50" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.SOLineNum" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox51" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.PrdtSAPID" BackColor="#E6F1F8" Width="100%" ValueToDisplayText="TableName:V_DF_MasterData_Product;FilterColumn:SalesSapID;DisplayColumn:SalesSapID" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" DataMap="ShippingRequirements->DF_SD_IncrementDelivery_Detail.ShippingRequirements" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox52" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.ProductModel" BackColor="#E6F1F8" Width="100%" ValueToDisplayText BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox53" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.ProductName" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox54" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.Number" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="varNumber" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox55" runat="server" XDataBind="varNumber" Width="30px" Min="0" Max="0" ValueToDisplayText HiddenInput="True" BorderColor="Gainsboro" BorderWidth="1px" Format="type:number;.0">0</aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox56" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.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="XTextBox57" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail.ShippingRequirements" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True" TextMode="MultiLine"></aspxform:XTextBox>
                            <%--<aspxform:XDropDownList id="XDropDownList3" runat="server" DataMap="ShippingRequirements->DF_SD_IncrementDelivery_Detail.ShippingRequirements" DisplayColumn="PrdtID" ValueColumn="PrdtID" XDataSource="TableName:DF_PRODUCTS;Filter:SalesSapID->DF_SD_IncrementDelivery_Detail.PrdtSAPID"></aspxform:XDropDownList>--%></td>
                    </tr>
                </tbody>
            </table>
            &nbsp;<aspxform:XCompareValidator ID="XCompareValidator2" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox15" ErrorMessage="交货数量不能大于可交货数量" Operator="LessThanEqual" ValueToCompare="XTextBox21"></aspxform:XCompareValidator>
        </div>
        <br />
        <%--执行发货显示--%><%-- <div hiddenexpress="DF_SD_Delivery_Info.IsCreateDeliveryNo!='否' ||  DF_SD_Delivery_Info.MBLNR==''">
            <table align="center" class="table" id="tablenewFH" style="width: 1200px" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1" emptygrid="KeepEmpty" menudock="Left" xdatasource="Filter:DF_SD_IncrementDelivery_Detail.DeliveryLineNum">
                <tbody>
                    <tr align="center">
                        <td class="tds" style="height: 16px; width: 40px">
                            <asp:Label ID="Label64" runat="server" Text="序号"></asp:Label>
                        </td>
                        <td class="tds" style="height: 16px; width: 40px; text-align: center">拒绝
                            <br />
                            <div style="text-align: center">
                                <aspxform:XCheckBox ID="chkIsRefuse" runat="server" onclick="clickRefusechk()" name="IsRefuse" />
                            </div>
                        </td>
                        <td class="tds" style="height: 16px; width: 80px">
                            <asp:Label ID="Label77" runat="server" Text="交货单号"></asp:Label></td>
                        <td class="tds" style="height: 16px; width: 80px">
                            <asp:Label ID="Label67" runat="server" Text="交货单行号"></asp:Label></td>
                        <td class="tds" style="width: 60px">
                            <asp:Label ID="Label68" runat="server" Text="工厂"></asp:Label></td>
                        <td class="tds" style="width: 80px">
                            <asp:Label ID="Label69" runat="server" Text="SAP库存地"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label70" runat="server" Text="销售产品SAPID"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label71" runat="server" Text="产品型号"></asp:Label></td>
                        <td class="tds" style="width: 150px">
                            <asp:Label ID="Label72" runat="server" Text="产品名称"></asp:Label></td>
                        <td class="tds" style="width: 40px">
                            <asp:Label ID="Label73" runat="server" Text="数量"></asp:Label></td>
                        <td class="tds" style="width: 140px">
                            <asp:Label ID="Label74" runat="server" Text="批次"></asp:Label></td>
                        <td class="tds" style="width: 140px">
                            <asp:Label ID="Label75" runat="server" Text="序列号"></asp:Label></td>
                        <td class="tds" style="width: 100px">
                            <asp:Label ID="Label76" runat="server" Text="行项目类别"></asp:Label></td>
                        <td class="tds" style="width: 100px">
                            <asp:Label ID="Label78" runat="server" Text="特殊发运说明"></asp:Label></td>
                    </tr>
                    <tr align="center" hiddenexpress="javascript('IsShowDelivery',DF_SD_IncrementDelivery_Detail_Delivery.OldOutboundAdmin)">
                        <td class="tds1">
                            <aspxform:XGridLineNo ID="XGridLineNo3" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.LineItemNo" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XCheckBox ID="XCheckBox1" runat="server" DisableExpress="1" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.IsRefuse" name="XCheckBoxRefuse" CssClass="XCheckBoxRefuse"></aspxform:XCheckBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox74" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.DeliveryNo" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox59" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.DeliveryLineNum" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox62" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.Plant" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="OldStorage" name="OldStorage" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.OldStorage" BorderWidth="1" HiddenExpress="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="OldOutboundAdmin" name="OldOutboundAdmin" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.OldOutboundAdmin" BorderWidth="1" HiddenExpress="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox64" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.Storage" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableExpress="DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory=='单独采购订单'||DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory=='单独采购订单(免费）'" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox65" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.PrdtSAPID" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox66" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.ProductModel" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox67" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.ProductName" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox68" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.Number" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox69" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.BatchCode" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableExpress="(DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory=='单独采购订单' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.IsBatch!='Y')||(DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory=='单独采购订单(免费）' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.IsBatch!='Y')||(DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory!='单独采购订单' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory!='单独采购订单(免费）' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.IsBatch!='X'&amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.IsBatch!='Y')||varState=='Edit'"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox70" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.IsBatch" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="height: auto; border-right-width: 1px">
                            <aspxform:XTextBox ID="XTextBox71" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.SerialNo" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableExpress="(DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory=='单独采购订单' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.SerialCode!='Y')||(DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory=='单独采购订单(免费）' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.SerialCode!='Y')||&#13;&#10;(DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory!='单独采购订单' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory!='单独采购订单(免费）' &amp;&amp; DF_SD_IncrementDelivery_Detail_Delivery.SerialCode=='')||varState=='Edit'"></aspxform:XTextBox>
                            <aspxform:XTextBox ID="XTextBox72" runat="server" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.SerialCode" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox73" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.LineItemCategory" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox ID="XTextBox75" runat="server" BackColor="#E6F1F8" XDataBind="DF_SD_IncrementDelivery_Detail_Delivery.ShippingRequirements" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
           <%-- <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator22" runat="server" DisableExpress="DF_SD_IncrementDelivery_Detail_Delivery.SerialCode==''" ErrorMessage="请填写序列号" ControlToValidate="XTextBox21" ValidationGroup="sb" ForeColor="Red"></aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator23" runat="server" DisableExpress="DF_SD_IncrementDelivery_Detail_Delivery.IsBatch!='X'" ErrorMessage="请填写批次编号" ControlToValidate="XTextBox29" ValidationGroup="sb" ForeColor="Red"></aspxform:XRequiredFieldValidator>
      </div>
        <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_Delivery_Info.Remark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" TextMode="MultiLine" Rows="5"></aspxform:XTextBox>
                    </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="Label79" runat="server" Text="拒绝原因"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox76" runat="server" XDataBind="DF_SD_IncrementDelivery_Info.RejectReason" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" TextMode="MultiLine" Rows="3"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator20" runat="server" ErrorMessage="请填写拒绝原因" ControlToValidate="XTextBox17" ValidationGroup="reject" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        --%>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户"  &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构" '>
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label60" runat="server" Text="发运要求"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox58" runat="server" XDataBind="varRequire" Width="50px" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('checkSendRequire',DF_SD_Delivery_Info.ShippingRequirements)"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="width: 80%" colspan="3">
                        <div id="div_ShippingRequirements">
                            <aspxform:XCheckBoxList ID="XCheckBoxList1" runat="server" XDataBind="DF_SD_Delivery_Info.ShippingRequirements" RepeatDirection="Horizontal" name="ShippingRequirements">
                                <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" hiddenexpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户"  &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构" '>
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label37" runat="server" Text="物流公司"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XDropDownList ID="XDropDownList3" runat="server" XDataBind="DF_SD_Delivery_Info.LogisticsCompany" Width="50%" XDataSource="TableName:V_LogisCompany" ValueColumn="Name" DisplayColumn="Name" PromptText="---请选择---" DisableExpress="Global.StepName!='出库管理员执行发货'"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <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_Delivery_Info.SendGoodsWay" RepeatDirection="Horizontal" DisableExpress="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="Label41" runat="server" Text="运单号"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="txt_mailno" runat="server" XDataBind="DF_SD_Delivery_Info.WaybillNo" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" DisableExpress="Global.StepName!='出库管理员执行发货'" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="width: 10%">
                        <asp:Label ID="Label43" runat="server" Text="包装件数"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 35%">
                        <aspxform:XTextBox ID="XTextBox21" runat="server" XDataBind="DF_SD_Delivery_Info.PackNumber" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" DisableExpress="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_Delivery_Info.SignReceipt" RepeatDirection="Horizontal" DisableExpress="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>
        <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="Label20" runat="server" Text="其他附件"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 80%" colspan="3">
                        <aspxform:XAttachments ID="XAttachments2" runat="server" XDataBind="DF_SD_Delivery_Info.OtherAttachment" 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="Label45" runat="server" Text="客户验收单"></asp:Label></td>
                    <td class="tsbottomtext" style="width: 80%" colspan="3">
                        <aspxform:XAttachments ID="XAttachments1" runat="server" XDataBind="DF_SD_Delivery_Info.Attachment" Width="100%" DisableExpress=' Global.StepName!=""' FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.gif;*.png"></aspxform:XAttachments>
                    </td>
                </tr>--%>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator6" runat="server" ForeColor="Red" DisableExpress='varRequire!="1"' ValidationGroup="submit" ControlToValidate="XAttachments2" ErrorMessage="请上传其他附件" Display="None">请上传其他附件</aspxform:XRequiredFieldValidator>
        <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_Delivery_Info.SignPath" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Width="50px"></aspxform:XTextBox>
                    </td>
                    <td width="1051" class="tsbottomtext" style="width: 77%">
                        <div id="div_sign" hiddenexpress='DF_SD_Delivery_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>--%><%--  <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator4" runat="server" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' Display="None" ErrorMessage="请选择物流公司！" ControlToValidate="XDropDownList3" ValidationGroup="FY" ForeColor="Red">请选择物流公司！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator5" runat="server" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' Display="None" ErrorMessage="请选择发运时效！" ControlToValidate="XRadioButtonList1" ValidationGroup="FY" ForeColor="Red">请选择发运时效！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator7" runat="server" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' Display="None" ErrorMessage="请填写运单号！" ControlToValidate="txt_mailno" ValidationGroup="FY" ForeColor="Red">请填写运单号！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator8" runat="server" DisableExpress='DF_SD_Delivery_Info.DeliveryWay!="发货到客户" &amp;&amp; DF_SD_Delivery_Info.DeliveryWay!="发货到分支机构"' Display="None" ErrorMessage="请填写包装件数！" ControlToValidate="XTextBox21" ValidationGroup="FY" ForeColor="Red">请填写包装件数！</aspxform:XRequiredFieldValidator>
        <br />--%>
        <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>
