| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- package com.goafanti.personnel.bo;
- import java.util.Calendar;
- import java.util.Date;
- public class OutPersonnelListBo {
- private Integer id;
- private Integer doorId;
- private String name;
- private Integer status;
- private Integer system;
- private String company;
- private String depName;
- private String jobsName;
- private Integer lvl;
- private String starName;
- private String jobNature;
- private String jobNatureRemarks;
- private String entryTimes;
- private String promotionTimes;
- private Date birthday;
- private String birthdays;
- private Date entryTime;
- private Integer marriage;
- private Integer sex;
- private Integer son;
- private Integer girl;
- private Integer politicalOutlook;
- private Integer education;
- private String school;
- private String major;
- private String title;
- private String promotionRemarks;
- private String promotionTime;
- private String contractStart;
- private String contractEnd;
- private String mobile;
- private String fixedTel;
- private String idCard;
- private String certificationAuthority;
- private Integer residenceProvince;
- private Integer residenceCity;
- private Integer residenceArea;
- private String residenceAddress;
- private Integer nativePlaceProvince;
- private Integer nativePlaceCity;
- private Integer nowProvince;
- private Integer nowCity;
- private Integer nowArea;
- private String nowAddress;
- private String emergencyContact;
- private String emergencyMobile;
- private String quitTime;
- private Integer workingYear;
- private Integer age;
- private Integer month;
- private String insuranceStartTimes;
- private String insuranceEndTimes;
- private String fundStartTimes;
- private String fundEndTimes;
- private Integer employeeId;
- private String rpName;
- private String rcName;
- private String raName;
- private String nppName;
- private String npcName;
- private String npName;
- private String ncName;
- private String naName;
-
-
- public String getRpName() {
- return rpName;
- }
- public void setRpName(String rpName) {
- this.rpName = rpName;
- }
- public String getRcName() {
- return rcName;
- }
- public void setRcName(String rcName) {
- this.rcName = rcName;
- }
- public String getRaName() {
- return raName;
- }
- public void setRaName(String raName) {
- this.raName = raName;
- }
- public String getNppName() {
- return nppName;
- }
- public void setNppName(String nppName) {
- this.nppName = nppName;
- }
- public String getNpcName() {
- return npcName;
- }
- public void setNpcName(String npcName) {
- this.npcName = npcName;
- }
- public String getNpName() {
- return npName;
- }
- public void setNpName(String npName) {
- this.npName = npName;
- }
- public String getNcName() {
- return ncName;
- }
- public void setNcName(String ncName) {
- this.ncName = ncName;
- }
- public String getNaName() {
- return naName;
- }
- public void setNaName(String naName) {
- this.naName = naName;
- }
- public String getInsuranceStartTimes() {
- return insuranceStartTimes;
- }
- public void setInsuranceStartTimes(String insuranceStartTimes) {
- this.insuranceStartTimes = insuranceStartTimes;
- }
- public String getInsuranceEndTimes() {
- return insuranceEndTimes;
- }
- public void setInsuranceEndTimes(String insuranceEndTimes) {
- this.insuranceEndTimes = insuranceEndTimes;
- }
- public String getFundStartTimes() {
- return fundStartTimes;
- }
- public void setFundStartTimes(String fundStartTimes) {
- this.fundStartTimes = fundStartTimes;
- }
- public String getFundEndTimes() {
- return fundEndTimes;
- }
- public void setFundEndTimes(String fundEndTimes) {
- this.fundEndTimes = fundEndTimes;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public Integer getDoorId() {
- return doorId;
- }
- public void setDoorId(Integer doorId) {
- this.doorId = doorId;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Integer getStatus() {
- return status;
- }
- public void setStatus(Integer status) {
- this.status = status;
- }
- public Integer getSystem() {
- return system;
- }
- public void setSystem(Integer system) {
- this.system = system;
- }
- public String getCompany() {
- return company;
- }
- public void setCompany(String company) {
- this.company = company;
- }
- public String getJobsName() {
- return jobsName;
- }
- public void setJobsName(String jobsName) {
- this.jobsName = jobsName;
- }
- public Integer getLvl() {
- return lvl;
- }
- public void setLvl(Integer lvl) {
- this.lvl = lvl;
- }
- public String getStarName() {
- return starName;
- }
- public void setStarName(String starName) {
- this.starName = starName;
- }
- public String getEntryTimes() {
- return entryTimes;
- }
- public void setEntryTimes(String entryTimes) {
- this.entryTimes = entryTimes;
- }
- public String getPromotionTimes() {
- return promotionTimes;
- }
- public void setPromotionTimes(String promotionTimes) {
- this.promotionTimes = promotionTimes;
- }
- public Date getBirthday() {
- return birthday;
- }
- public void setBirthday(Date birthday) {
- this.birthday = birthday;
- }
-
- public String getBirthdays() {
- return birthdays;
- }
- public void setBirthdays(String birthdays) {
- this.birthdays = birthdays;
- }
- public Date getEntryTime() {
- return entryTime;
- }
- public void setEntryTime(Date entryTime) {
- this.entryTime = entryTime;
- }
- public Integer getSex() {
- return sex;
- }
- public void setSex(Integer sex) {
- this.sex = sex;
- }
- public Integer getSon() {
- return son;
- }
- public void setSon(Integer son) {
- this.son = son;
- }
- public Integer getGirl() {
- return girl;
- }
- public void setGirl(Integer girl) {
- this.girl = girl;
- }
- public Integer getPoliticalOutlook() {
- return politicalOutlook;
- }
- public String getPoliticalOutlookName() {
- if (politicalOutlook!=null) {
- if (politicalOutlook==0) {
- return "群众";
- }else if (politicalOutlook==1) {
- return "中共预备党员";
- }else if (politicalOutlook==2) {
- return "中共党员";
- }else if (politicalOutlook==3) {
- return "致公党党员";
- }
- }
- return "";
- }
- public void setPoliticalOutlook(Integer politicalOutlook) {
- this.politicalOutlook = politicalOutlook;
- }
- public Integer getEducation() {
- return education;
- }
-
- public String getEducationName() {
- if(education!=null) {
- if(education==0)return "高中/中专";
- else if(education==1)return "专科/高职";
- else if(education==2)return "本科";
- else if(education==3)return "研究生";
- else if(education==4)return "硕士";
- else if(education==5)return "博士";
-
- }
-
- return "";
- }
- public void setEducation(Integer education) {
- this.education = education;
- }
- public String getSchool() {
- return school;
- }
- public void setSchool(String school) {
- this.school = school;
- }
- public String getMajor() {
- return major;
- }
- public void setMajor(String major) {
- this.major = major;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getPromotionRemarks() {
- return promotionRemarks;
- }
- public void setPromotionRemarks(String promotionRemarks) {
- this.promotionRemarks = promotionRemarks;
- }
- public String getPromotionTime() {
- return promotionTime;
- }
- public void setPromotionTime(String promotionTime) {
- this.promotionTime = promotionTime;
- }
- public String getContractStart() {
- return contractStart;
- }
- public void setContractStart(String contractStart) {
- this.contractStart = contractStart;
- }
- public String getContractEnd() {
- return contractEnd;
- }
- public void setContractEnd(String contractEnd) {
- this.contractEnd = contractEnd;
- }
- public String getMobile() {
- return mobile;
- }
- public void setMobile(String mobile) {
- this.mobile = mobile;
- }
- public String getFixedTel() {
- return fixedTel;
- }
- public void setFixedTel(String fixedTel) {
- this.fixedTel = fixedTel;
- }
- public String getIdCard() {
- return idCard;
- }
- public void setIdCard(String idCard) {
- this.idCard = idCard;
- }
- public String getCertificationAuthority() {
- return certificationAuthority;
- }
- public void setCertificationAuthority(String certificationAuthority) {
- this.certificationAuthority = certificationAuthority;
- }
- public Integer getResidenceProvince() {
- return residenceProvince;
- }
- public void setResidenceProvince(Integer residenceProvince) {
- this.residenceProvince = residenceProvince;
- }
- public Integer getResidenceCity() {
- return residenceCity;
- }
- public void setResidenceCity(Integer residenceCity) {
- this.residenceCity = residenceCity;
- }
- public Integer getResidenceArea() {
- return residenceArea;
- }
- public void setResidenceArea(Integer residenceArea) {
- this.residenceArea = residenceArea;
- }
- public String getResidenceAddress() {
- return residenceAddress;
- }
- public void setResidenceAddress(String residenceAddress) {
- this.residenceAddress = residenceAddress;
- }
- public Integer getNativePlaceProvince() {
- return nativePlaceProvince;
- }
- public void setNativePlaceProvince(Integer nativePlaceProvince) {
- this.nativePlaceProvince = nativePlaceProvince;
- }
- public Integer getNativePlaceCity() {
- return nativePlaceCity;
- }
- public void setNativePlaceCity(Integer nativePlaceCity) {
- this.nativePlaceCity = nativePlaceCity;
- }
- public Integer getNowProvince() {
- return nowProvince;
- }
- public void setNowProvince(Integer nowProvince) {
- this.nowProvince = nowProvince;
- }
- public Integer getNowCity() {
- return nowCity;
- }
- public void setNowCity(Integer nowCity) {
- this.nowCity = nowCity;
- }
- public Integer getNowArea() {
- return nowArea;
- }
- public void setNowArea(Integer nowArea) {
- this.nowArea = nowArea;
- }
- public String getNowAddress() {
- return nowAddress;
- }
- public void setNowAddress(String nowAddress) {
- this.nowAddress = nowAddress;
- }
- public String getQuitTime() {
- return quitTime;
- }
- public void setQuitTime(String quitTime) {
- this.quitTime = quitTime;
- }
- public Integer getWorkingYear() {
- if (this.workingYear==null&& this.entryTime!=null) {
- int wy=getAgeByBirth(this.entryTime);
- return 0<wy?0:wy;
- }
- return workingYear;
- }
- public void setWorkingYear(Integer workingYear) {
- this.workingYear = workingYear;
- }
-
- public Integer getAge() {
- if (this.age==null&& this.birthday!=null) {
- return getAgeByBirth(this.birthday);
- }
- return age;
- }
- public void setAge(Integer age) {
- this.age = age;
- }
- public static int getAgeByBirth(Date birthDay) {
- int age = 0;
- Calendar cal = Calendar.getInstance();
- int yearNow = cal.get(Calendar.YEAR); //当前年份
- int monthNow = cal.get(Calendar.MONTH); //当前月份
- int dayOfMonthNow = cal.get(Calendar.DAY_OF_MONTH); //当前日期
- cal.setTime(birthDay);
- int yearBirth = cal.get(Calendar.YEAR);
- int monthBirth = cal.get(Calendar.MONTH);
- int dayOfMonthBirth = cal.get(Calendar.DAY_OF_MONTH);
- age = yearNow - yearBirth; //计算整岁数
- if (monthNow <= monthBirth) {
- if (monthNow == monthBirth) {
- if (dayOfMonthNow < dayOfMonthBirth) age--;//当前日期在生日之前,年龄减一
- } else {
- age--;//当前月份在生日之前,年龄减一
- }
- }
- return age;
- }
- public Integer getMonth() {
- if (this.month==null&&this.birthday!=null) {
- Calendar cal =Calendar.getInstance();
- cal.setTime(birthday);
- return cal.get(Calendar.MONTH)+1;
- }
- return month;
- }
- public void setMonth(Integer month) {
- this.month = month;
- }
- public String getDepName() {
- return depName;
- }
- public void setDepName(String depName) {
- this.depName = depName;
- }
- public String getStatusName() {
- if (this.status!=null) {
- if (status==0) {
- return "实习生";
- }else if (status==1) {
- return "在职(试用期)";
- }else if (status==2) {
- return "在职(合同期)";
- }else if (status==3) {
- return "兼职";
- }else if (status==4) {
- return "已离职";
- }
- }
- return "";
- }
-
- public String getSystemName() {
- if (this.system!=null) {
- if (system==0) {
- return "管理系统";
- }else if (system==1) {
- return "营销系统";
- }else if (system==2) {
- return "技术系统";
- }
- }
- return "";
- }
-
- public String getLvlName() {
- //级别 0员工1主管2经理3总经理4总监5副总6总裁7董事长
- if (this.lvl!=null) {
- if (lvl==0) {
- return "员工";
- }else if (lvl==1) {
- return "主管";
- }else if (lvl==2) {
- return "经理";
- }else if (lvl==3) {
- return "总经理";
- }else if (lvl==4) {
- return "总监";
- }else if (lvl==5) {
- return "副总";
- }else if (lvl==6) {
- return "总裁";
- }else if (lvl==7) {
- return "董事长";
- }
- }
- return "";
- }
-
- public Integer getMarriage() {
- return marriage;
- }
- public String getMarriageName() {
- if (marriage!=null) {
- if (marriage==0) {
- return "未婚";
- }else if (marriage==1) {
- return "已婚";
- }else if (marriage==2) {
- return "离异";
- }
- }
- return "";
- }
- public void setMarriage(Integer marriage) {
- this.marriage = marriage;
- }
- public String getEmergencyContact() {
- return emergencyContact;
- }
- public void setEmergencyContact(String emergencyContact) {
- this.emergencyContact = emergencyContact;
- }
- public String getEmergencyMobile() {
- return emergencyMobile;
- }
- public void setEmergencyMobile(String emergencyMobile) {
- this.emergencyMobile = emergencyMobile;
- }
- public String getResidenceName() {
- String str="";
- if(rpName!=null)str=str+rpName.trim()+"省";
- if(rcName!=null)str=str+rcName.trim();
- if(raName!=null)str=str+raName.trim();
- if (residenceAddress!=null)str=str+residenceAddress;
- return str;
- }
-
- public String getNativePlaceName() {
- String str="";
- if(nppName!=null)str=str+nppName.trim()+"省";
- if(npcName!=null)str=str+npcName.trim();
- return str;
- }
-
- public String getNowName() {
- String str="";
- if(npName!=null)str=str+npName.trim()+"省";
- if(ncName!=null)str=str+ncName.trim();
- if(naName!=null)str=str+naName.trim();
- if (nowAddress!=null)str=str+nowAddress;
- return str;
- }
-
- public String getJobNature() {
- return jobNature;
- }
- public void setJobNature(String jobNature) {
- this.jobNature = jobNature;
- }
- public String getJobNatureRemarks() {
- return jobNatureRemarks;
- }
- public void setJobNatureRemarks(String jobNatureRemarks) {
- this.jobNatureRemarks = jobNatureRemarks;
- }
- public Integer getEmployeeId() {
- return employeeId;
- }
- public void setEmployeeId(Integer employeeId) {
- this.employeeId = employeeId;
- }
-
-
- }
|