示例#1
0
 public WorkHistoryModel(hr_WorkHistory workHistory)
 {
     _workHistory   = workHistory ?? new hr_WorkHistory();
     RecordId       = _workHistory.RecordId;
     WorkPlace      = _workHistory.WorkPlace;
     WorkPosition   = _workHistory.WorkPosition;
     ReasonLeave    = _workHistory.ReasonLeave;
     ExperienceWork = _workHistory.ExperienceWork;
     IsApproved     = _workHistory.IsApproved;
     Note           = _workHistory.Note;
     SalaryLevel    = _workHistory.SalaryLevel;
     AddressCompany = _workHistory.AddressCompany;
     FromDate       = _workHistory.FromDate;
     ToDate         = _workHistory.ToDate;
     Id             = _workHistory.Id;
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        public void UpdateWorkHistory(hr_WorkHistory obj)
        {
            var record = hr_WorkHistoryServices.GetById(obj.Id);

            if (record == null)
            {
                return;
            }
            //set new properties
            record.FromDate       = obj.FromDate;
            record.ToDate         = obj.ToDate;
            record.Note           = obj.Note;
            record.CreatedBy      = obj.CreatedBy;
            record.CreatedDate    = obj.CreatedDate;
            record.EditedDate     = obj.EditedDate;
            record.WorkPlace      = obj.WorkPlace;
            record.WorkPosition   = obj.WorkPosition;
            record.SalaryLevel    = obj.SalaryLevel;
            record.ReasonLeave    = obj.ReasonLeave;
            record.RecordId       = obj.RecordId;
            record.ExperienceWork = obj.ExperienceWork;

            hr_WorkHistoryServices.Update(record);
        }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 public void InsertWorkHistory(hr_WorkHistory obj)
 {
     hr_WorkHistoryServices.Create(obj);
 }