public void TestCommodityRecovery() { var recovery = CommodityRecoveryBll.GetInstance().GetCommodityRecovery("RT20190731000029"); if (null != recovery && null != recovery.body && null != recovery.body.objects) { var temp = CommodityRecoveryBll.GetInstance().SubmitCommodityRecoveryChange(GetBaseData(), recovery.body.objects[0]); } }
/// <summary> /// 查看详情 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void EnterDetail_Click(object sender, RoutedEventArgs e) { var inputStr = tbInputCode.Text; if (string.IsNullOrWhiteSpace(inputStr)) { MessageBox.Show("单号不可以为空!", "温馨提示", MessageBoxButton.OK); return; } TaskOrder taskOrder; string name; try { taskOrder = JsonConvert.DeserializeObject <TaskOrder>(inputStr); name = taskOrder.name; } catch { name = inputStr; } LoadingDataEvent(this, true); BaseData <CommodityRecovery> bdCommodityRecovery = CommodityRecoveryBll.GetInstance().GetCommodityRecovery(name.ToUpper()); LoadingDataEvent(this, false); HttpHelper.GetInstance().ResultCheck(bdCommodityRecovery, out bool isSuccess); if (!isSuccess) { MessageBox.Show("无法获取回收下架单详情!" + bdCommodityRecovery.message, "温馨提示", MessageBoxButton.OK); return; } EnterReturnOpenEvent(this, bdCommodityRecovery.body.objects[0]); }