private void GetResponse(string requestXml, string responseName, Order order) { string checkWorld = "j8DzkIFgmlomPt0aLuwU"; string verifyCode = Encrypt.Instance.MD5Encrypt($"{requestXml}{checkWorld}"); SFService.ExpressServiceClient client = new SFService.ExpressServiceClient(); string result = client.sfexpressService(requestXml, verifyCode); XtraMessageBox.Show(order.GetResponseResult(result, responseName), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void 获取顺丰运单号_Execute(object sender, SimpleActionExecuteEventArgs e) { foreach (Order order in e.SelectedObjects) { string xml = order.ExportToXml(); string checkWorld = "j8DzkIFgmlomPt0aLuwU"; string verifyCode = Encrypt.Instance.MD5Encrypt($"{xml}{checkWorld}"); SFService.ExpressServiceClient client = new SFService.ExpressServiceClient(); string result = client.sfexpressService(xml, verifyCode); XtraMessageBox.Show(result, "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); } //View.ObjectSpace.CommitChanges(); //View.ObjectSpace.Refresh(); }