示例#1
0
 public void DeleteMainDetailsOrder()
 {
     if (DyeingOrderHeader.DyeingProductionOrder != 0)
     {
         _webService.DeleteDyeingMainDetailsAsync(DyeingMapper.DbMapToDyeingorderMainDetail(SelectedMainDetails));
         DyeingOrderMainDetailList.Remove(SelectedMainDetails);
     }
 }
示例#2
0
        public void SaveOrder()
        {
            var header      = (TblDyeingOrdersHeader) new TblDyeingOrdersHeader().InjectFrom(DyeingOrderHeader);
            var mainDetails = new ObservableCollection <TblDyeingOrdersMainDetail>();

            if (DyeingOrderMainDetailList != null)
            {
                foreach (var item in DyeingOrderMainDetailList)
                {
                    mainDetails.Add(DyeingMapper.DbMapToDyeingorderMainDetail(item));
                }
            }

            _webService.SaveDyeingOrderAsync(header, mainDetails);
        }