public AddOrUpdateSkuEncode(SKUEncodeDetail detail)
 {
     InitializeComponent();
     this.Title = "创建SKU编码";
     this.ViewModel = new VMAddOrUpdateSkuEncode(detail);
     this.ViewModel.HandleCompleted += ViewModel_HandleCompleted;
 }
 public VMAddOrUpdateSkuEncode(SKUEncodeDetail detail)
 {
     _isAdd = true;
     _model = new SKUEncodeModel()
     {
         Code = detail.Code,
         Name = detail.Name,
         Att3ID = detail.ATT3.ID,
         Att4ID = detail.ATT4.ID,
         Att5ID = detail.ATT5.ID,
         Att6ID = detail.ATT6.ID,
         Att7ID = detail.ATT7.ID,
     };
     this.CmdSave = new DelegateCommand(this.CmdSaveExecute);
     _bll = new BLLSKUEncodeManagement();
 }
Ejemplo n.º 3
0
 private void CmdAddExecute()
 {
     SKUEncodeDetail detail = new SKUEncodeDetail()
     {
         One = this.SelectedSKUCGY.Parent,
         Two = this.SelectedSKUCGY,
         ATT3 = this.SeletedATT3,
         ATT4 = this.SeletedATT4,
         ATT5 = this.SeletedATT5,
         ATT6 = this.SeletedATT6,
         ATT7 = this.SeletedATT7
     };
     AddOrUpdateSkuEncode winAdd = new AddOrUpdateSkuEncode(detail);
     winAdd.Owner = Application.Current.MainWindow;
     winAdd.HandleCompleted += AddOrUpdate_HandleCompleted;
     winAdd.Show();
 }