protected override void Render(HtmlTextWriter writer)
        {
            string    text      = string.Empty;
            OrderInfo orderInfo = ShoppingProcessor.GetOrderInfo(this.orderId);

            if (orderInfo != null)
            {
                bool arg_3A_0;
                if (orderInfo.OrderStatus != OrderStatus.SellerAlreadySent)
                {
                    if (orderInfo.OrderStatus != OrderStatus.Finished)
                    {
                        arg_3A_0 = true;
                        goto IL_3A;
                    }
                }
                arg_3A_0 = string.IsNullOrEmpty(orderInfo.ExpressCompanyAbb);
IL_3A:
                if (!arg_3A_0)
                {
                    string expressData = Express.GetExpressData(orderInfo.ExpressCompanyAbb, orderInfo.ShipOrderNumber);
                    text += expressData;
                }
            }
            writer.Write(text);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     btnRemark.Click += new EventHandler(btnRemark_Click);
     LoadUserControl();
     if (!string.IsNullOrEmpty(base.Request["isCallback"]) && (base.Request["isCallback"] == "true"))
     {
         string s = "{";
         if (!string.IsNullOrEmpty(Page.Request["OrderId"]))
         {
             string    orderId   = Page.Request["OrderId"];
             OrderInfo orderInfo = SubsiteSalesHelper.GetOrderInfo(orderId);
             if (!(((orderInfo == null) || ((orderInfo.OrderStatus != OrderStatus.SellerAlreadySent) && (orderInfo.OrderStatus != OrderStatus.Finished))) || string.IsNullOrEmpty(orderInfo.ExpressCompanyAbb)))
             {
                 string expressData = Express.GetExpressData(orderInfo.ExpressCompanyAbb, orderInfo.ShipOrderNumber);
                 s = s + "\"Express\":\"" + expressData + "\"";
             }
         }
         s = s + "}";
         base.Response.Clear();
         base.Response.ContentType = "application/json";
         base.Response.Write(s);
         base.Response.End();
     }
     if (!Page.IsPostBack)
     {
         BindRemark();
         LoadControl();
     }
 }
Exemplo n.º 3
0
        private void SearchExpressData(System.Web.HttpContext context)
        {
            string text = "{";

            if (!string.IsNullOrEmpty(context.Request["OrderId"]))
            {
                string    orderId   = context.Request["OrderId"];
                OrderInfo orderInfo = ShoppingProcessor.GetOrderInfo(orderId);
                if (orderInfo != null)
                {
                    bool arg_60_0;
                    if (orderInfo.OrderStatus != OrderStatus.SellerAlreadySent)
                    {
                        if (orderInfo.OrderStatus != OrderStatus.Finished)
                        {
                            arg_60_0 = true;
                            goto IL_60;
                        }
                    }
                    arg_60_0 = string.IsNullOrEmpty(orderInfo.ExpressCompanyAbb);
IL_60:
                    if (!arg_60_0)
                    {
                        string expressData = Express.GetExpressData(orderInfo.ExpressCompanyAbb, orderInfo.ShipOrderNumber);
                        text = text + "\"Express\":\"" + expressData + "\"";
                    }
                }
            }
            else
            {
                if (!string.IsNullOrEmpty(context.Request["PurchaseOrderId"]))
                {
                    string            purchaseOrderId = context.Request["PurchaseOrderId"];
                    PurchaseOrderInfo purchaseOrder   = ShoppingProcessor.GetPurchaseOrder(purchaseOrderId);
                    if (purchaseOrder != null)
                    {
                        bool arg_E9_0;
                        if (purchaseOrder.PurchaseStatus != OrderStatus.SellerAlreadySent)
                        {
                            if (purchaseOrder.PurchaseStatus != OrderStatus.Finished)
                            {
                                arg_E9_0 = true;
                                goto IL_E9;
                            }
                        }
                        arg_E9_0 = string.IsNullOrEmpty(purchaseOrder.ExpressCompanyAbb);
IL_E9:
                        if (!arg_E9_0)
                        {
                            string expressData = Express.GetExpressData(purchaseOrder.ExpressCompanyAbb, purchaseOrder.ShipOrderNumber);
                            text = text + "\"Express\":\"" + expressData + "\"";
                        }
                    }
                }
            }
            text += "}";
            context.Response.ContentType = "text/plain";
            context.Response.Write(text);
            context.Response.End();
        }
        private void SearchExpressData(HttpContext context)
        {
            string s = "{";

            if (!string.IsNullOrEmpty(context.Request["OrderId"]))
            {
                string    orderId   = context.Request["OrderId"];
                OrderInfo orderInfo = ShoppingProcessor.GetOrderInfo(orderId);
                if (((orderInfo != null) && ((orderInfo.OrderStatus == OrderStatus.SellerAlreadySent) || (orderInfo.OrderStatus == OrderStatus.Finished))) && !string.IsNullOrEmpty(orderInfo.ExpressCompanyAbb))
                {
                    string expressData = Express.GetExpressData(orderInfo.ExpressCompanyAbb, orderInfo.ShipOrderNumber);
                    s = s + "\"Express\":\"" + expressData + "\"";
                }
            }
            else if (!string.IsNullOrEmpty(context.Request["PurchaseOrderId"]))
            {
                string            purchaseOrderId = context.Request["PurchaseOrderId"];
                PurchaseOrderInfo purchaseOrder   = ShoppingProcessor.GetPurchaseOrder(purchaseOrderId);
                if (((purchaseOrder != null) && ((purchaseOrder.PurchaseStatus == OrderStatus.SellerAlreadySent) || (purchaseOrder.PurchaseStatus == OrderStatus.Finished))) && !string.IsNullOrEmpty(purchaseOrder.ExpressCompanyAbb))
                {
                    string str5 = Express.GetExpressData(purchaseOrder.ExpressCompanyAbb, purchaseOrder.ShipOrderNumber);
                    s = s + "\"Express\":\"" + str5 + "\"";
                }
            }
            s = s + "}";
            context.Response.ContentType = "text/plain";
            context.Response.Write(s);
            context.Response.End();
        }
Exemplo n.º 5
0
        private void SearchExpressData(System.Web.HttpContext context)
        {
            string text = "{";

            if (!string.IsNullOrEmpty(context.Request["OrderId"]))
            {
                string    orderId   = context.Request["OrderId"];
                OrderInfo orderInfo = ShoppingProcessor.GetOrderInfo(orderId);
                if (orderInfo != null && (orderInfo.OrderStatus == OrderStatus.SellerAlreadySent || orderInfo.OrderStatus == OrderStatus.Finished) && !string.IsNullOrEmpty(orderInfo.ExpressCompanyAbb))
                {
                    string expressData = Express.GetExpressData(orderInfo.ExpressCompanyAbb, orderInfo.ShipOrderNumber);
                    text = text + "\"Express\":\"" + expressData + "\"";
                }
            }
            text += "}";
            context.Response.ContentType = "text/plain";
            context.Response.Write(text);
            context.Response.End();
        }
Exemplo n.º 6
0
        private void SearchExpressData(HttpContext context)
        {
            string s = "{";

            if (!string.IsNullOrEmpty(context.Request["OrderId"]))
            {
                string    orderId   = context.Request["OrderId"];
                OrderInfo orderInfo = ShoppingProcessor.GetOrderInfo(orderId);
                if ((orderInfo != null) && !(((orderInfo.OrderStatus != OrderStatus.SellerAlreadySent) && (orderInfo.OrderStatus != OrderStatus.Finished)) || string.IsNullOrEmpty(orderInfo.ExpressCompanyAbb)))
                {
                    string str3 = Express.GetExpressData(orderInfo.ExpressCompanyAbb, orderInfo.ShipOrderNumber, 2);
                    s = s + "\"Express\":\"" + str3 + "\"";
                }
            }
            s = s + "}";
            context.Response.ContentType = "text/plain";
            context.Response.Write(s);
            context.Response.End();
        }