예제 #1
0
 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;
 }
예제 #2
0
        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);
        }
예제 #3
0
 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;
 }