<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin_Course_CosShowDelivery" Codebehind="KS.CosShowDelivery.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="System.Data" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="server">
    <div style="padding: 2px; font-size: 14px; line-height: 25px;">
        <%
            StringBuilder sb = new StringBuilder();
            sb.Append(@"<strong><font color=""#ff6600"">该订单已发货，发货信息如下：</font></strong><br/>");
            using (DataTable ddt = DataFactory.GetDataTable("Select Top 1 a.HandlerName,a.DeliverDate,ExpressNo,b.CorpName From KS_CosLogDeliver A inner Join KS_ProDeliveryCorp b ON A.ExpressCorpId=B.CorpId Where a.DeliverType=1 And A.OrderID='" + KSCMS.S("orderid") + "' and A.id=" + KSCMS.S("logdeliverid")))
            {
                if (ddt.Rows.Count > 0)
                {
                    DataRow dddr = ddt.Rows[0];
                    sb.Append(@"发货日期：" + dddr["DeliverDate"].ToString() + "，物流公司：" + dddr["CorpName"].ToString() + @"，物流单号：<span style=""color:red"">" + dddr["ExpressNo"].ToString() + "</span>，经手人：" + dddr["HandlerName"].ToString());
                }
            }
            KSCMS.W(sb.ToString());
        %>
        <div>
            <strong>快递查询: </strong>
            <br />
            <%
                string detail = Kesion.APPCode.ExpressAPI.GetLogByOrderID(KSCMS.S("orderid"), Utils.StrToInt(KSCMS.S("logdeliverid")), true);
                Response.Write(detail);
            %>
        </div>
    </div>
</asp:Content>
