public void SetEntity(EngineeringSpecialtyEntity Entity) { this.Manager = Entity.Manager; this.StartDate = Entity.StartDate; this.EndDate = Entity.EndDate; this.Note = Entity.Note; this.ProcessModel = Entity.ProcessModel; }
public int Add(EngineeringSpecialtyInfo EngineeringSpecialty) { var entity = new EngineeringSpecialtyEntity(EngineeringSpecialty); this._DB.Add(entity); //foreach (var attachID in EngineeringSpecialty.AttachIDs) //{ // AddAttach(entity.ID, attachID); //} return(entity.ID); }
public EngineeringSpecialtyInfo(EngineeringSpecialtyEntity Entity) : this() { this.ID = Entity.ID; this.EngineeringID = Entity.EngineeringID; this.SpecialtyID = Entity.SpecialtyID; this.Manager = Entity.Manager; this.StartDate = Entity.StartDate; this.EndDate = Entity.EndDate; this.FinishDate = Entity.FinishDate; this.Note = Entity.Note; this.ProcessModel = Entity.ProcessModel; this.IsDone = Entity.IsDone; }