Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductVM"/> class from the model.
 /// </summary>
 /// <param name="entity">The model.</param>
 /// <param name="access"></param>
 public SpecialSkillVM(ProductActivitySkill entity, AccessType access, ProductActivitySkillDataService dataService)
     : base(access)
 {
     _model = entity;
     InitializeData(dataService);
     Id = entity.Id;
     /*Reserve1 = entity.Reserve1;
     Reserve2 = entity.Reserve2;
     Reserve3 = entity.Reserve3;???*/
     //OperatorVM = new OperatorVM(entity.Operator);
 }
Ejemplo n.º 2
0
 public override void Save(object param)
 {
     SpecialSkillDataService.AttachModel(_model);
     _model = SpecialSkillDataService.GetSingle(_model.Id); OnPropertyChanged("ModifiedBy");OnPropertyChanged("ModifiedDate");Mode = ModificationStatus.Saved;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProductGroupVM"/> class initialized with default values.
        /// </summary>
        public SpecialSkillVM(AccessType access, ProductActivitySkillDataService dataService):base(access)
        {
			_model = new ProductActivitySkill();
            InitializeData(dataService);
        }