<%
    //-----------------------------------------------------------
    // 文件名称: Order_Order_Print_Express.aspx
    // 页面名称: 快递单打印
    //
    // 描    述:
    //
    // 创建标识: Add By 张业华 2009-04-20
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Order_Order_Print_Express, V5Shop.Shop.Order" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>快递单打印</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:Panel ID="OrderPanel" runat="server" Width="100%">
        
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="快递单打印" /></div>
        </div>
        <div id="content">
            <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                &nbsp;</div>
        </div>
                <table style="width: 100%; border: 0px; text-align: center;" cellpadding="0" cellspacing="0">
                    <tr style="height: 40px; background-color: #f1f1f1">
                        <td style="text-align: left;" colspan="4">
                            &nbsp;<asp:Label ID="Label41" runat="server" Font-Bold="true" meta:resourcekey="lblTitleResource1" Text="收货人信息"></asp:Label></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td width="20%" height="30" align="right">
                            <asp:Label ID="Label42" runat="server" meta:resourcekey="lblTitleResource1" Text="收货人姓名："></asp:Label></td>
                        <td align="left" style="width: 30%">
                            <asp:TextBox ID="txtReceiveName" Enabled="false" runat="server"></asp:TextBox></td>
                        <td align="right" style="width: 20%">
                            <asp:Label ID="Label45" runat="server" meta:resourcekey="lblTitleResource1" Text="E-Mail："></asp:Label></td>
                        <td align="left" style="width: 30%">
                            <asp:TextBox ID="txtSendEmail" Enabled="false" runat="server" meta:resourcekey="lblTitleResource1"></asp:TextBox>&nbsp;
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td align="right" style="height: 38px">
                            <asp:Label ID="Label55" runat="server" meta:resourcekey="lblTitleResource1" Text="送货地址："></asp:Label></td>
                        <td align="left" style="height: 38px">
                            <asp:TextBox ID="txtReceiveAddress" Enabled="false" runat="server" meta:resourcekey="lblTitleResource1"></asp:TextBox></td>
                        <td align="right" style="height: 38px">
                            <asp:Label ID="Label58" runat="server" meta:resourcekey="lblTitleResource1" Text="邮编："></asp:Label></td>
                        <td align="left" style="height: 38px">
                            <asp:TextBox ID="txtReceivePostCode" Enabled="false" runat="server" meta:resourcekey="lblTitleResource1"></asp:TextBox></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td align="right">
                            <asp:Label ID="Label44" runat="server" meta:resourcekey="lblTitleResource1" Text="联系电话："></asp:Label></td>
                        <td align="left">
                            <asp:TextBox ID="txtSendTel" Enabled="false" runat="server" meta:resourcekey="txtTitleResource1"></asp:TextBox></td>
                        <td align="right">
                            <asp:Label ID="Label48" runat="server" meta:resourcekey="lblTitleResource1" Text="标志性建筑："></asp:Label></td>
                        <td align="left">
                            <asp:TextBox ID="txtBuilding" Enabled="false" runat="server" meta:resourcekey="lblTitleResource1"></asp:TextBox></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td width="20%" height="30" align="right">
                            <asp:Label ID="Label46" runat="server" meta:resourcekey="lblTitleResource1" Text="手机："></asp:Label></td>
                        <td align="left">
                            <asp:TextBox ID="txtSendMobile" Enabled="false" runat="server" meta:resourcekey="lblTitleResource1"></asp:TextBox></td>
                        <td></td>
                        <td align="left">
                            <asp:Button ID="Button1" runat="server" Visible="false" CssClass="button" Text="更新收货人信息"  OnClick="UpdateOrderInfo"/></td>
                    </tr>
                </table>
                <table style="width: 100%; border: 0px; text-align: center;" cellpadding="0" cellspacing="0">
                    <tr style="height: 40px; background-color: #f1f1f1; text-align: left;">
                        <td colspan="4">
                            &nbsp;<asp:Label ID="Label7" runat="server" meta:resourcekey="lblTitleResource1" Text="配送/支付/费用信息" Font-Bold="True" />
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td style="width: 20%; text-align: right; height: 22px;">
                            <asp:Label ID="Label1" runat="server" meta:resourcekey="lblTitleResource1" Text="发货人手机："></asp:Label></td>
                        <td style="width: 30%; text-align: left; height: 22px;">
                            <asp:Label ID="lbtSendMobile" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                        <td style="width: 20%; text-align: right; height: 22px;">
                            <asp:Label ID="Label3" runat="server" meta:resourcekey="lblTitleResource1" Text="发货人Email："></asp:Label></td>
                        <td style="width: 30%; text-align: left; height: 22px;">
                            <asp:Label ID="lbtSendEmail" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                    </tr>                    
                    <tr style="height: 30px;">
                        <td style="width: 20%; text-align: right; height: 22px;">
                            <asp:Label ID="Label8" runat="server" meta:resourcekey="lblTitleResource1" Text="配送方式："></asp:Label></td>
                        <td style="width: 30%; text-align: left; height: 22px;">
                            <asp:Label ID="lblDelivery" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                        <td style="width: 20%; text-align: right; height: 22px;">
                            <asp:Label ID="Label13" runat="server" meta:resourcekey="lblTitleResource1" Text="支付方式："></asp:Label></td>
                        <td style="width: 30%; text-align: left; height: 22px;">
                            <asp:Label ID="lblPayment" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td align="right">
                            <asp:Label ID="Label10" runat="server" meta:resourcekey="lblTitleResource1" Text="配送费用："></asp:Label></td>
                        <td align="left">
                            <asp:Label ID="lblFee" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                        <td style="text-align: right;">
                            <asp:Label ID="Label9" runat="server" meta:resourcekey="lblTitleResource1" Text="手续费："></asp:Label></td>
                        <td style="text-align: left;">
                            <asp:Label ID="lblPaymentPrice" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                    </tr>
                    <tr style="height: 30px">
                        <td align="right">
                            <asp:Label ID="Label35" runat="server" meta:resourcekey="lblTitleResource1" Text="订单备注："></asp:Label></td>
                        <td align="left" colspan="3">
                            <asp:TextBox ID="txtRemark" runat="server" Height="80px" ReadOnly="True" TextMode="MultiLine" Width="260px" /></td>
                    </tr>
                </table>   
                <table style="width: 100%; border: 0px; text-align: center;" cellpadding="0" cellspacing="0">
                    <tr style="height: 40px; background-color: #f1f1f1">
                        <td style="text-align: left;" colspan="4">
                            &nbsp;<b>发货人信息</b></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td width="20%" align="right" style="height: 30px">
                            发货点选择：</td>
                        <td align="left" style="height: 30px;" colspan="3">
                            <asp:DropDownList ID="ddlDlyList" runat="server" AppendDataBoundItems="True" DataTextField="DlyName" DataValueField="ID" AutoPostBack="True" OnSelectedIndexChanged="ddlDlyList_SelectedIndexChanged">
                                <asp:ListItem Value="-1">请选择</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td align="right" style="height: 30px">
                            发货人姓名：</td>
                        <td align="left" style="height: 30px; width: 410px;">
                            <asp:Label ID="lblSendName" runat="server"></asp:Label></td>
                        <td align="right" style="height: 30px; width: 277px;">
                            邮编：</td>
                        <td align="left" style="height: 30px">
                            <asp:Label ID="lblZipCode" runat="server"></asp:Label></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td align="right" style="height: 30px">
                            手机：</td>
                        <td align="left" style="width: 410px; height: 30px;">
                            <asp:Label ID="lblMobile" runat="server"></asp:Label></td>
                        <td align="right" style="width: 277px; height: 30px">
                            联系电话：</td>
                        <td align="left" style="height: 30px">
                            <asp:Label ID="lblPhone" runat="server"></asp:Label></td>
                    </tr>
                    <tr style="height: 30px;">
                        <td width="20%" height="30" align="right">
                            地址：</td>
                        <td align="left" colspan="3">
                            <asp:Label ID="lblAddress" runat="server"></asp:Label>
                            <asp:HiddenField ID="hidID" runat="server" />
                        </td>
                    </tr>
                </table>                              
            <table width="100%" height="40">
                <tr>
                    <td align="center">
                        <asp:Literal ID="PrintButton" runat="server"></asp:Literal></td>
                </tr>

            </table>
        <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>        
        </asp:Panel>

         <asp:Panel ID="PrintPanel" runat="server" Width="100%" Visible="false">
            <div class="listborder">
                <table bgcolor="#dddddd">
                    <tbody>
                        <tr>
                            <td>
                                <DIV id="dly_printer" style="WIDTH: 907px; HEIGHT: 560px">
                                    <OBJECT id="dly_printer_flash" height="100%" width="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
                                      <PARAM value="high" name="quality" />
                                      <PARAM value="always" name="allowScriptAccess" />
                                      <PARAM value="true" name="swLiveConnect" />
                                      <PARAM value="<%=ItemContent %>" name="flashVars" />
                                      <PARAM value="swf/printermode.swf" name="movie" />
                                    </OBJECT>
                                  </DIV>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>         
         </asp:Panel>

    </form>
</body>
</html>
