Example #1
0
        public CraftDetailSaveResponse Execute(CraftDetailSaveRequest request)
        {
            CraftDetailSaveResponse detailSaveResponse = new CraftDetailSaveResponse();

            ServiceHelper.LoadService <IProductionService>().SaveCraftDetail(request.CraftDetail);
            return(detailSaveResponse);
        }
Example #2
0
 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();
     }
 }