private void GetInfo() { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } // this.Order.ExpressCompany = "yuantong"; // this.Order.ExpressOrderID = "800458383600959695"; if (!(string.IsNullOrEmpty(this.Order.ExpressCompany4Refund) || string.IsNullOrEmpty(this.Order.ExpressOrderID4Refund))) { String result = KuaiDi100Helper.WebQueryJson(GlobalUtil.GetExpressCode(this, this.Order.ExpressCompany4Refund), this.Order.ExpressOrderID4Refund); JavaScriptObject jObject = (JavaScriptObject)JavaScriptConvert.DeserializeObject(result); String state = jObject["state"].ToString(); //查询失败 String msg = jObject["message"].ToString(); String status = jObject["status"].ToString(); if (status != "200") { richTextBox1.Text = status + " " + msg + "\r\n"; } // skinLabelResult.Text = status + " " + msg + "\r\n"; // richTextBox1.Text = status + " " + msg + "\r\n"; JavaScriptArray data = (JavaScriptArray)jObject["data"]; foreach (JavaScriptObject item in data) { // skinLabelResult.Text += item["ftime"] + " " + item["context"] + "\r\n"; richTextBox1.Text += item["ftime"] + " " + item["context"] + "\r\n"; } } else { // skinLabelResult.Text = "没有物理信息"; richTextBox1.Text = "没有物流信息"; } } catch (Exception ex) { ShowError(ex); } finally { UnLockPage(); } }
private void GetInfo() { try { if (!String.IsNullOrEmpty(para.ExpressCompany)) { bool rightExpress = KuaiDi100Helper.CheckKuaiDi(GlobalUtil.GetExpressCode(this, para.ExpressCompany), para.ExpressOrderID); if (!rightExpress) { ShowMessage("单号不存在或者已过期!"); return; } } InteractResult result = GlobalCache.EMallServerProxy.EmOutbound(para); switch (result.ExeResult) { case ExeResult.Success: ShowMessage("发货成功!"); RefreshPage(); break; case ExeResult.Error: ShowMessage(result.Msg); break; default: break; } } catch (KuaiDiException ex) { ShowErrorMessage(ex.Message); } catch (Exception ex) { ShowError(ex); } finally { UnLockPage(); } }
private void GetInfo() { try { if (!String.IsNullOrEmpty(para.ExpressCompany)) { bool rightExpress = KuaiDi100Helper.CheckKuaiDi(GlobalUtil.GetExpressCode(this, para.ExpressCompany), para.ExpressOrderID); if (!rightExpress) { ShowMessage("单号不存在或者已过期!"); return; } } // string pfCustomerOrderID, string adminUserID, List< PfCustomerDetail > details InteractResult result = GlobalCache.EMallServerProxy.PfCustomerOrderDelivery(para.EmRetailOrderID, para.ShopID, null); switch (result.ExeResult) { case ExeResult.Success: ShowMessage("发货成功!"); RefreshPage(); break; case ExeResult.Error: ShowMessage(result.Msg); break; default: break; } } catch (KuaiDiException ex) { ShowErrorMessage(ex.Message); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { UnLockPage(); } }