Ejemplo n.º 1
0
        public void Update(int ID, EngineeringPlanEntity EngineeringPlan)
        {
            var entity = this._DB.Get(ID);

            entity.SetEntity(EngineeringPlan);

            this._DB.Edit(entity);
        }
Ejemplo n.º 2
0
 public void SetEntity(EngineeringPlanEntity Entity)
 {
     this.EngineeringID = Entity.EngineeringID;
     this.AccordingTo   = Entity.AccordingTo;
     this.Range         = Entity.Range;
     this.Product       = Entity.Product;
     this.Note          = Entity.Note;
     this.Input         = Entity.Input;
     this.Principle     = Entity.Principle;
     this.Quality       = Entity.Quality;
     this.Measures      = Entity.Measures;
 }
Ejemplo n.º 3
0
        public int Add(EngineeringPlanInfo EngineeringPlan)
        {
            var entity = new EngineeringPlanEntity(EngineeringPlan);

            this._DB.Add(entity);

            //foreach (var attachID in EngineeringPlan.AttachIDs)
            //{
            //    AddAttach(entity.ID, attachID);
            //}

            return(entity.ID);
        }
Ejemplo n.º 4
0
 public void Update(int ID, EngineeringPlanEntity Entity)
 {
     this._IEngineeringPlanService.Update(ID, Entity);
 }