public CraftDetailSaveResponse Execute(CraftDetailSaveRequest request) { CraftDetailSaveResponse detailSaveResponse = new CraftDetailSaveResponse(); ServiceHelper.LoadService <IProductionService>().SaveCraftDetail(request.CraftDetail); return(detailSaveResponse); }
private void btnOK_Click(object sender, RoutedEventArgs e) { if (this.model == null) { return; } if (string.IsNullOrEmpty(this.model.CraftName)) { MessageBox.Show("请输入工艺名称", "提示"); } else if (string.IsNullOrEmpty(this.model.TargetYield)) { MessageBox.Show("请输入目标产量", "提示"); } else { CraftDetailSaveResponse detailSaveResponse = LocalApi.Execute(new CraftDetailSaveRequest() { CraftDetail = this.model }); this.DialogResult = new bool?(true); this.Close(); } }