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

    // Insert page code here
    //

</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/Dialogs/Waybill.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>
        //打印快递单
        function Print_Waybill() {
            //参数：收方公司名称、收方联系人、电话、手机、地址、邮编
            var obj_param = {};
            obj_param["d_company"] = agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].getValue();
            obj_param["d_contact"] = agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].getValue();
            obj_param["d_address"] = agent.Eles[document.getElementById("XTextBox8").getAttribute("xform_xele_index")].getValue();
            obj_param["d_tel"] = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
            obj_param["d_mobile"] = agent.Eles[document.getElementById("XTextBox11").getAttribute("xform_xele_index")].getValue();
            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();

            //发货信息：发货公司名称、发货联系人、发货电话、手机、地址、邮箱
            obj_param["j_company"] = agent.Eles[document.getElementById("XTextBox23").getAttribute("xform_xele_index")].getValue();
            obj_param["j_contact"] = agent.Eles[document.getElementById("XTextBox28").getAttribute("xform_xele_index")].getValue();
            obj_param["j_address"] = agent.Eles[document.getElementById("XTextBox24").getAttribute("xform_xele_index")].getValue();
            obj_param["j_tel"] = agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue();
            obj_param["j_mobile"] = agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].getValue();
            obj_param["j_province"] = agent.Eles[document.getElementById("XDropDownList2").getAttribute("xform_xele_index")].getValue();
            obj_param["j_city"] = agent.Eles[document.getElementById("XDropDownList13").getAttribute("xform_xele_index")].getValue();


            //obj_param["logistics"] = "2";//1顺丰 2跨越
            obj_param["printType"] = "03";//2 两联单；3三联单

            //判断物流公司 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[2].children[0].getAttribute("xform_xele_index")].getValue();   //型号
                var num = agent.Eles[tableObj.rows[i].cells[5].children[0].getAttribute("xform_xele_index")].getValue();     //数量
                str += model + ";" + num + "/";
            }

            //备注信息
            obj_param["remark"] = str;

            //包裹数
            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);
        }
    </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" XDataBind="DF_SD_AllotDispose_Info.FormNo" BackColor="#8AB3DF" Text="--系统自动生成--"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="18" colspan="2">
                        <asp:Label id="Label10" runat="server" text="标记*的为发货库存地库管员必填项" font-bold="True" forecolor="Red"></asp:Label></td>
                    <td align="right" colspan="2">
                        <aspxform:XButton id="XButton4" runat="server" Text=" 打印快递单" DisableExpress="Global.StepName!='销售出库管理员发运'" OnClientClick="Print_Waybill()"></aspxform:XButton>
                        &nbsp;&nbsp;&nbsp; 
                    </td>
                </tr>
                <tr>
                    <td height="18" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label4" runat="server" text="创建用户"></asp:Label>
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_SD_AllotDispose_Info.CreateAccount" width="20px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_SD_AllotDispose_Info.CreateName" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label11" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_SD_AllotDispose_Info.CreateDate" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="100px" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label5" runat="server" text="收货库存地"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveStore" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td 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 class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_SD_AllotDispose_Info.SendGoodsDate" DisableExpress="Global.StepName!='销售出库管理员发运'" BorderWidth="1" BorderColor="#DCDCDC" Width="100px"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label8" runat="server" text="单位名称"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveCompanyName" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label9" runat="server" text="收货联系人"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveContact" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label12" runat="server" text="地址"></asp:Label>
                        <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="ProvinceID" BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="True" Max="0" Min="0" Width="25px" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList19" runat="server" XDataBind="DF_SD_AllotDispose_Info.province" DisableExpress="1" XDataSource="TableName:DF_Comm_Province" ValueColumn="ProvinceName" DisplayColumn="ProvinceName" PromptText="----请选择----" DataMap="ProvinceID->ProvinceID"></aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_SD_AllotDispose_Info.city" DisableExpress="1" XDataSource="TableName:DF_Comm_City;Filter:ProvinceID->ProvinceID" ValueColumn="CityName" DisplayColumn="CityName" PromptText="----请选择----"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveAddr" BackColor="#E6F1F8" width="250px" BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="False" Max="0" Min="0" ReadOnly="True" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label13" runat="server" text="收货联系电话"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveContactPhone" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="邮编"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveCode" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label7" runat="server" text="联系人手机"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_SD_AllotDispose_Info.ReceiveContactMobile" BackColor="#E6F1F8" width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td width="465" height="22" class="title1" colspan="7">
                        <asp:Label id="Label20" runat="server" text="发货信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="131" height="28" class="td">
                        <asp:Label id="Label23" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label24" runat="server" text="单位名称"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_SD_AllotDispose_Info.SendGoodsStoreID" width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="465" class="td1">
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_SD_AllotDispose_Info.FromName" width="70%" HiddenInput="False" ReadOnly="True" ValueToDisplayText backColor="#e6f1f8" CssClass="text1" Value></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" DisableExpress="Global.StepName!='销售出库管理员发运'" Width="40px" XDataSource="TableName:DF_Logistics_StorageAddress;Filter:StorageID->DF_SD_AllotDispose_Info.SendGoodsStoreID" DataMap="CompanyName->DF_SD_AllotDispose_Info.FromName;Address->DF_SD_AllotDispose_Info.FromAddress;Code->DF_SD_AllotDispose_Info.FromZipCode;province->DF_SD_AllotDispose_Info.Sprovince;city->DF_SD_AllotDispose_Info.Scity" PrintOut="False" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" Height="22px" DisplayColumns="CompanyName:公司名称;Address:地址;Code:邮编"></aspxform:XDataBrowserButton>
                    </td>
                    <td width="131" class="td">
                        <asp:Label id="Label25" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label26" runat="server" text="发货联系人"></asp:Label></td>
                    <td width="465" class="td1">
                        <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_SD_AllotDispose_Info.FromContactName" width="70%" HiddenInput="False" ReadOnly="True" ValueToDisplayText backColor="#e6f1f8" CssClass="text1" Value></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" DisableExpress="Global.StepName!='销售出库管理员发运'" Width="40px" XDataSource="TableName:DF_Logistics_StorageContact;Filter:StorageID->DF_SD_AllotDispose_Info.SendGoodsStoreID" DataMap="ContactName->DF_SD_AllotDispose_Info.FromContactName;ContactTelPhone->DF_SD_AllotDispose_Info.FromContactTel;ContactMobile->DF_SD_AllotDispose_Info.FromContactMobile" PrintOut="False" UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" Height="22px" DisplayColumns="ContactName:联系人;ContactTelPhone:联系电话;ContactMobile:联系人手机"></aspxform:XDataBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="新建" XClass="Oimec.Dialogs.StorageContactsAddButton" DisableExpress="Global.StepName!='销售出库管理员发运'" Width="40px" Height="22px" HiddenExpress="1" Filter="StorageID->DF_SD_AllotDispose_Info.SendGoodsStoreID"></aspxform:XCustomBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td height="32" class="td">
                        <asp:Label id="Label44" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label45" runat="server" text="地址"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox50" runat="server" XDataBind="SProvinceID" BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="True" Max="0" Min="0" Width="25px" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="td1">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_SD_AllotDispose_Info.Sprovince" DisableExpress="Global.StepName!='销售出库管理员发运'" XDataSource="TableName:DF_Comm_Province" ValueColumn="ProvinceName" DisplayColumn="ProvinceName" PromptText="----请选择----" DataMap="ProvinceID->SProvinceID"></aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList13" runat="server" XDataBind="DF_SD_AllotDispose_Info.Scity" DisableExpress="Global.StepName!='销售出库管理员发运'" XDataSource="TableName:DF_Comm_City;Filter:ProvinceID->SProvinceID" ValueColumn="CityName" DisplayColumn="CityName" PromptText="----请选择----"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_SD_AllotDispose_Info.FromAddress" width="55%" HiddenInput="False" ReadOnly="True" ValueToDisplayText backColor="#e6f1f8" CssClass="text1" Value TextMode="MultiLine" Rows="2"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        &nbsp;<asp:Label id="Label46" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label47" runat="server" text="发货联系电话"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_SD_AllotDispose_Info.FromContactTel" width="70%" HiddenInput="False" ReadOnly="True" ValueToDisplayText backColor="#e6f1f8" CssClass="text1" Value></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="td">
                        <asp:Label id="Label48" runat="server" text="邮编"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_SD_AllotDispose_Info.FromZipCode" width="70%" HiddenInput="False" ReadOnly="True" ValueToDisplayText backColor="#e6f1f8" CssClass="text1" Value></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        <asp:Label id="Label49" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label50" runat="server" text="联系人手机"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_SD_AllotDispose_Info.FromContactMobile" width="70%" HiddenInput="False" ValueToDisplayText backColor="#e6f1f8" CssClass="text1" Value></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1">
            <tbody>
                <tr align="center">
                    <td width="40" height="33" class="tds">
                        <asp:Label id="Label27" runat="server" text="序号"></asp:Label></td>
                    <td width="120" class="tds">
                        <asp:Label id="Label28" runat="server" text="销售产品SAPID"></asp:Label></td>
                    <td width="200" class="tds">
                        <asp:Label id="Label29" runat="server" text="产品型号"></asp:Label></td>
                    <td width="180" class="tds">
                        <asp:Label id="Label30" runat="server" text="产品名称"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label33" runat="server" text="调拨申请数量"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label18" runat="server" text="实际发货数量"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label34" runat="server" text="特殊库存"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label31" runat="server" text="调拨用途"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label32" runat="server" text="SAP-SO号"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label14" runat="server" text="发货库存地"></asp:Label></td>
                </tr>
                <tr align="center">
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_SD_AllotDispose_Detail.SerialNum" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_SD_AllotDispose_Detail.PrdtSAPID" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_SD_AllotDispose_Detail.ProductModel" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_SD_AllotDispose_Detail.ProductName" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_SD_AllotDispose_Detail.Number" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_SD_AllotDispose_Detail.SendNumber" DisableExpress="Global.StepName!='销售出库管理员发运'" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" TextAlign="Center" Express="DF_SD_AllotDispose_Detail.Number"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_SD_AllotDispose_Detail.SpecialStock" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_SD_AllotDispose_Detail.AllotUse" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_SD_AllotDispose_Detail.SO" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_SD_AllotDispose_Detail.SendGoodsStore" BackColor="#E6F1F8" width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td width="1200" height="14" class="td1">
                        <asp:Label id="Label35" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_SD_AllotDispose_Info.Remark" width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextMode="MultiLine" rows="5"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label36" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<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_AllotDispose_Info.LogisticsCompany" DisableExpress="Global.StepName!='销售出库管理员发运'" Width="50%" XDataSource="TableName:V_LogisCompany" ValueColumn="Name" DisplayColumn="Name" PromptText="---请选择---"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label38" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label39" runat="server" text="发运时效"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_SD_AllotDispose_Info.SendGoodsWay" DisableExpress="Global.StepName!='销售出库管理员发运'" RepeatDirection="Horizontal">
                            <asp:ListItem>次日达</asp:ListItem>
                            <asp:ListItem>隔日达</asp:ListItem>
                            <asp:ListItem>普货</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="36" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label40" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label41" runat="server" text="运单号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="txt_mailno" runat="server" XDataBind="DF_SD_AllotDispose_Info.WaybillNo" DisableExpress="Global.StepName!='销售出库管理员发运'" width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label42" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<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_AllotDispose_Info.PackNumber" DisableExpress="Global.StepName!='销售出库管理员发运'" width="70%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label19" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label15" runat="server" text="签回单"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_SD_AllotDispose_Info.SignReceipt" DisableExpress="Global.StepName!='销售出库管理员发运'" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="fhkgy" ControlToValidate="XDateTimePicker2" ErrorMessage="请选择发货日期！" ForeColor="Red" Display="None">请选择发货日期！</aspxform:XRequiredFieldValidator>
        <%--<aspxform:XCompareValidator id="XCompareValidator1" runat="server" Type="Integer" Display="None" ForeColor="Red" ErrorMessage="实际发货数量不能大于调拨申请数量！" ControlToValidate="XTextBox20" ControlToCompare="XTextBox13" Operator="LessThanEqual">实际发货数量不能大于调拨申请数量！</aspxform:XCompareValidator>--%>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="fhkgy" ControlToValidate="XDropDownList3" ErrorMessage="请选择物流公司！" ForeColor="Red" Display="None">请选择物流公司！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ValidationGroup="fhkgy" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择发运时效！" ForeColor="Red" Display="None">请选择发运时效！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="fhkgy" ControlToValidate="txt_mailno" ErrorMessage="请填写运单号！" ForeColor="Red" Display="None">请填写运单号！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="fhkgy" ControlToValidate="XTextBox21" ErrorMessage="请填写包装件数！" ForeColor="Red" Display="None">请填写包装件数！</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderWidth="1" BorderColor="#dcdcdc" Width="1200px"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
