public ArchivesManager() { this.irep = new ArchivesEmployeeIdentityRepository(); this.identityManager = new ArIdentityInfoManager(); this._StudyManager = new ArStudyManager(); this._TelManager = new ArTelManager(); this._DepartmentMananger = new ArDepartmentManager(); this._PostManager = new ArPostManager(); this.WorkerArchivesInfoList = new List <ArchivesEmployeeIdentityModel>(); }
/// <summary> /// 获取身份证信息 /// </summary> /// <param name="IdentityId">身份证Id</param> /// <param name="entity">实体</param> /// <param name="manager">管理信息</param> internal static bool GetIdentityDataFrom(string IdentityId, ArchivesEmployeeIdentityModel entity, ArIdentityInfoManager manager) { ArchivesIdentityModel model = manager.GetOneBy(IdentityId); if (model != null) { entity.IdentityID = model.IdentityID; entity.Address = model.Address; entity.Birthday = model.Birthday; entity.Name = model.Name; entity.Sex = model.Sex; entity.Nation = model.Nation; entity.SignGovernment = model.SignGovernment; entity.LimitedDate = model.LimitedDate; entity.PersonalPicture = model.PersonalPicture; entity.BirthMonth = model.Birthday.ToDate().ToString("yyyyMM"); entity.IdentityExpirationDate = GetIdentityExpirationDate(model.LimitedDate); return(true); } return(false); }