OutPersonnelListBo.java 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. package com.goafanti.personnel.bo;
  2. import java.util.Calendar;
  3. import java.util.Date;
  4. public class OutPersonnelListBo {
  5. private Integer id;
  6. private Integer doorId;
  7. private String name;
  8. private Integer status;
  9. private Integer system;
  10. private String company;
  11. private String depName;
  12. private String jobsName;
  13. private Integer lvl;
  14. private String starName;
  15. private String jobNature;
  16. private String jobNatureRemarks;
  17. private String entryTimes;
  18. private String promotionTimes;
  19. private Date birthday;
  20. private String birthdays;
  21. private Date entryTime;
  22. private Integer marriage;
  23. private Integer sex;
  24. private Integer son;
  25. private Integer girl;
  26. private Integer politicalOutlook;
  27. private Integer education;
  28. private String school;
  29. private String major;
  30. private String title;
  31. private String promotionRemarks;
  32. private String promotionTime;
  33. private String contractStart;
  34. private String contractEnd;
  35. private String mobile;
  36. private String fixedTel;
  37. private String idCard;
  38. private String certificationAuthority;
  39. private Integer residenceProvince;
  40. private Integer residenceCity;
  41. private Integer residenceArea;
  42. private String residenceAddress;
  43. private Integer nativePlaceProvince;
  44. private Integer nativePlaceCity;
  45. private Integer nowProvince;
  46. private Integer nowCity;
  47. private Integer nowArea;
  48. private String nowAddress;
  49. private String emergencyContact;
  50. private String emergencyMobile;
  51. private String quitTime;
  52. private Integer workingYear;
  53. private Integer age;
  54. private Integer month;
  55. private String insuranceStartTimes;
  56. private String insuranceEndTimes;
  57. private String fundStartTimes;
  58. private String fundEndTimes;
  59. private Integer employeeId;
  60. private String rpName;
  61. private String rcName;
  62. private String raName;
  63. private String nppName;
  64. private String npcName;
  65. private String npName;
  66. private String ncName;
  67. private String naName;
  68. public String getRpName() {
  69. return rpName;
  70. }
  71. public void setRpName(String rpName) {
  72. this.rpName = rpName;
  73. }
  74. public String getRcName() {
  75. return rcName;
  76. }
  77. public void setRcName(String rcName) {
  78. this.rcName = rcName;
  79. }
  80. public String getRaName() {
  81. return raName;
  82. }
  83. public void setRaName(String raName) {
  84. this.raName = raName;
  85. }
  86. public String getNppName() {
  87. return nppName;
  88. }
  89. public void setNppName(String nppName) {
  90. this.nppName = nppName;
  91. }
  92. public String getNpcName() {
  93. return npcName;
  94. }
  95. public void setNpcName(String npcName) {
  96. this.npcName = npcName;
  97. }
  98. public String getNpName() {
  99. return npName;
  100. }
  101. public void setNpName(String npName) {
  102. this.npName = npName;
  103. }
  104. public String getNcName() {
  105. return ncName;
  106. }
  107. public void setNcName(String ncName) {
  108. this.ncName = ncName;
  109. }
  110. public String getNaName() {
  111. return naName;
  112. }
  113. public void setNaName(String naName) {
  114. this.naName = naName;
  115. }
  116. public String getInsuranceStartTimes() {
  117. return insuranceStartTimes;
  118. }
  119. public void setInsuranceStartTimes(String insuranceStartTimes) {
  120. this.insuranceStartTimes = insuranceStartTimes;
  121. }
  122. public String getInsuranceEndTimes() {
  123. return insuranceEndTimes;
  124. }
  125. public void setInsuranceEndTimes(String insuranceEndTimes) {
  126. this.insuranceEndTimes = insuranceEndTimes;
  127. }
  128. public String getFundStartTimes() {
  129. return fundStartTimes;
  130. }
  131. public void setFundStartTimes(String fundStartTimes) {
  132. this.fundStartTimes = fundStartTimes;
  133. }
  134. public String getFundEndTimes() {
  135. return fundEndTimes;
  136. }
  137. public void setFundEndTimes(String fundEndTimes) {
  138. this.fundEndTimes = fundEndTimes;
  139. }
  140. public Integer getId() {
  141. return id;
  142. }
  143. public void setId(Integer id) {
  144. this.id = id;
  145. }
  146. public Integer getDoorId() {
  147. return doorId;
  148. }
  149. public void setDoorId(Integer doorId) {
  150. this.doorId = doorId;
  151. }
  152. public String getName() {
  153. return name;
  154. }
  155. public void setName(String name) {
  156. this.name = name;
  157. }
  158. public Integer getStatus() {
  159. return status;
  160. }
  161. public void setStatus(Integer status) {
  162. this.status = status;
  163. }
  164. public Integer getSystem() {
  165. return system;
  166. }
  167. public void setSystem(Integer system) {
  168. this.system = system;
  169. }
  170. public String getCompany() {
  171. return company;
  172. }
  173. public void setCompany(String company) {
  174. this.company = company;
  175. }
  176. public String getJobsName() {
  177. return jobsName;
  178. }
  179. public void setJobsName(String jobsName) {
  180. this.jobsName = jobsName;
  181. }
  182. public Integer getLvl() {
  183. return lvl;
  184. }
  185. public void setLvl(Integer lvl) {
  186. this.lvl = lvl;
  187. }
  188. public String getStarName() {
  189. return starName;
  190. }
  191. public void setStarName(String starName) {
  192. this.starName = starName;
  193. }
  194. public String getEntryTimes() {
  195. return entryTimes;
  196. }
  197. public void setEntryTimes(String entryTimes) {
  198. this.entryTimes = entryTimes;
  199. }
  200. public String getPromotionTimes() {
  201. return promotionTimes;
  202. }
  203. public void setPromotionTimes(String promotionTimes) {
  204. this.promotionTimes = promotionTimes;
  205. }
  206. public Date getBirthday() {
  207. return birthday;
  208. }
  209. public void setBirthday(Date birthday) {
  210. this.birthday = birthday;
  211. }
  212. public String getBirthdays() {
  213. return birthdays;
  214. }
  215. public void setBirthdays(String birthdays) {
  216. this.birthdays = birthdays;
  217. }
  218. public Date getEntryTime() {
  219. return entryTime;
  220. }
  221. public void setEntryTime(Date entryTime) {
  222. this.entryTime = entryTime;
  223. }
  224. public Integer getSex() {
  225. return sex;
  226. }
  227. public void setSex(Integer sex) {
  228. this.sex = sex;
  229. }
  230. public Integer getSon() {
  231. return son;
  232. }
  233. public void setSon(Integer son) {
  234. this.son = son;
  235. }
  236. public Integer getGirl() {
  237. return girl;
  238. }
  239. public void setGirl(Integer girl) {
  240. this.girl = girl;
  241. }
  242. public Integer getPoliticalOutlook() {
  243. return politicalOutlook;
  244. }
  245. public String getPoliticalOutlookName() {
  246. if (politicalOutlook!=null) {
  247. if (politicalOutlook==0) {
  248. return "群众";
  249. }else if (politicalOutlook==1) {
  250. return "中共预备党员";
  251. }else if (politicalOutlook==2) {
  252. return "中共党员";
  253. }else if (politicalOutlook==3) {
  254. return "致公党党员";
  255. }
  256. }
  257. return "";
  258. }
  259. public void setPoliticalOutlook(Integer politicalOutlook) {
  260. this.politicalOutlook = politicalOutlook;
  261. }
  262. public Integer getEducation() {
  263. return education;
  264. }
  265. public String getEducationName() {
  266. if(education!=null) {
  267. if(education==0)return "高中/中专";
  268. else if(education==1)return "专科/高职";
  269. else if(education==2)return "本科";
  270. else if(education==3)return "研究生";
  271. else if(education==4)return "硕士";
  272. else if(education==5)return "博士";
  273. }
  274. return "";
  275. }
  276. public void setEducation(Integer education) {
  277. this.education = education;
  278. }
  279. public String getSchool() {
  280. return school;
  281. }
  282. public void setSchool(String school) {
  283. this.school = school;
  284. }
  285. public String getMajor() {
  286. return major;
  287. }
  288. public void setMajor(String major) {
  289. this.major = major;
  290. }
  291. public String getTitle() {
  292. return title;
  293. }
  294. public void setTitle(String title) {
  295. this.title = title;
  296. }
  297. public String getPromotionRemarks() {
  298. return promotionRemarks;
  299. }
  300. public void setPromotionRemarks(String promotionRemarks) {
  301. this.promotionRemarks = promotionRemarks;
  302. }
  303. public String getPromotionTime() {
  304. return promotionTime;
  305. }
  306. public void setPromotionTime(String promotionTime) {
  307. this.promotionTime = promotionTime;
  308. }
  309. public String getContractStart() {
  310. return contractStart;
  311. }
  312. public void setContractStart(String contractStart) {
  313. this.contractStart = contractStart;
  314. }
  315. public String getContractEnd() {
  316. return contractEnd;
  317. }
  318. public void setContractEnd(String contractEnd) {
  319. this.contractEnd = contractEnd;
  320. }
  321. public String getMobile() {
  322. return mobile;
  323. }
  324. public void setMobile(String mobile) {
  325. this.mobile = mobile;
  326. }
  327. public String getFixedTel() {
  328. return fixedTel;
  329. }
  330. public void setFixedTel(String fixedTel) {
  331. this.fixedTel = fixedTel;
  332. }
  333. public String getIdCard() {
  334. return idCard;
  335. }
  336. public void setIdCard(String idCard) {
  337. this.idCard = idCard;
  338. }
  339. public String getCertificationAuthority() {
  340. return certificationAuthority;
  341. }
  342. public void setCertificationAuthority(String certificationAuthority) {
  343. this.certificationAuthority = certificationAuthority;
  344. }
  345. public Integer getResidenceProvince() {
  346. return residenceProvince;
  347. }
  348. public void setResidenceProvince(Integer residenceProvince) {
  349. this.residenceProvince = residenceProvince;
  350. }
  351. public Integer getResidenceCity() {
  352. return residenceCity;
  353. }
  354. public void setResidenceCity(Integer residenceCity) {
  355. this.residenceCity = residenceCity;
  356. }
  357. public Integer getResidenceArea() {
  358. return residenceArea;
  359. }
  360. public void setResidenceArea(Integer residenceArea) {
  361. this.residenceArea = residenceArea;
  362. }
  363. public String getResidenceAddress() {
  364. return residenceAddress;
  365. }
  366. public void setResidenceAddress(String residenceAddress) {
  367. this.residenceAddress = residenceAddress;
  368. }
  369. public Integer getNativePlaceProvince() {
  370. return nativePlaceProvince;
  371. }
  372. public void setNativePlaceProvince(Integer nativePlaceProvince) {
  373. this.nativePlaceProvince = nativePlaceProvince;
  374. }
  375. public Integer getNativePlaceCity() {
  376. return nativePlaceCity;
  377. }
  378. public void setNativePlaceCity(Integer nativePlaceCity) {
  379. this.nativePlaceCity = nativePlaceCity;
  380. }
  381. public Integer getNowProvince() {
  382. return nowProvince;
  383. }
  384. public void setNowProvince(Integer nowProvince) {
  385. this.nowProvince = nowProvince;
  386. }
  387. public Integer getNowCity() {
  388. return nowCity;
  389. }
  390. public void setNowCity(Integer nowCity) {
  391. this.nowCity = nowCity;
  392. }
  393. public Integer getNowArea() {
  394. return nowArea;
  395. }
  396. public void setNowArea(Integer nowArea) {
  397. this.nowArea = nowArea;
  398. }
  399. public String getNowAddress() {
  400. return nowAddress;
  401. }
  402. public void setNowAddress(String nowAddress) {
  403. this.nowAddress = nowAddress;
  404. }
  405. public String getQuitTime() {
  406. return quitTime;
  407. }
  408. public void setQuitTime(String quitTime) {
  409. this.quitTime = quitTime;
  410. }
  411. public Integer getWorkingYear() {
  412. if (this.workingYear==null&& this.entryTime!=null) {
  413. int wy=getAgeByBirth(this.entryTime);
  414. return 0<wy?0:wy;
  415. }
  416. return workingYear;
  417. }
  418. public void setWorkingYear(Integer workingYear) {
  419. this.workingYear = workingYear;
  420. }
  421. public Integer getAge() {
  422. if (this.age==null&& this.birthday!=null) {
  423. return getAgeByBirth(this.birthday);
  424. }
  425. return age;
  426. }
  427. public void setAge(Integer age) {
  428. this.age = age;
  429. }
  430. public static int getAgeByBirth(Date birthDay) {
  431. int age = 0;
  432. Calendar cal = Calendar.getInstance();
  433. int yearNow = cal.get(Calendar.YEAR); //当前年份
  434. int monthNow = cal.get(Calendar.MONTH); //当前月份
  435. int dayOfMonthNow = cal.get(Calendar.DAY_OF_MONTH); //当前日期
  436. cal.setTime(birthDay);
  437. int yearBirth = cal.get(Calendar.YEAR);
  438. int monthBirth = cal.get(Calendar.MONTH);
  439. int dayOfMonthBirth = cal.get(Calendar.DAY_OF_MONTH);
  440. age = yearNow - yearBirth; //计算整岁数
  441. if (monthNow <= monthBirth) {
  442. if (monthNow == monthBirth) {
  443. if (dayOfMonthNow < dayOfMonthBirth) age--;//当前日期在生日之前,年龄减一
  444. } else {
  445. age--;//当前月份在生日之前,年龄减一
  446. }
  447. }
  448. return age;
  449. }
  450. public Integer getMonth() {
  451. if (this.month==null&&this.birthday!=null) {
  452. Calendar cal =Calendar.getInstance();
  453. cal.setTime(birthday);
  454. return cal.get(Calendar.MONTH)+1;
  455. }
  456. return month;
  457. }
  458. public void setMonth(Integer month) {
  459. this.month = month;
  460. }
  461. public String getDepName() {
  462. return depName;
  463. }
  464. public void setDepName(String depName) {
  465. this.depName = depName;
  466. }
  467. public String getStatusName() {
  468. if (this.status!=null) {
  469. if (status==0) {
  470. return "实习生";
  471. }else if (status==1) {
  472. return "在职(试用期)";
  473. }else if (status==2) {
  474. return "在职(合同期)";
  475. }else if (status==3) {
  476. return "兼职";
  477. }else if (status==4) {
  478. return "已离职";
  479. }
  480. }
  481. return "";
  482. }
  483. public String getSystemName() {
  484. if (this.system!=null) {
  485. if (system==0) {
  486. return "管理系统";
  487. }else if (system==1) {
  488. return "营销系统";
  489. }else if (system==2) {
  490. return "技术系统";
  491. }
  492. }
  493. return "";
  494. }
  495. public String getLvlName() {
  496. //级别 0员工1主管2经理3总经理4总监5副总6总裁7董事长
  497. if (this.lvl!=null) {
  498. if (lvl==0) {
  499. return "员工";
  500. }else if (lvl==1) {
  501. return "主管";
  502. }else if (lvl==2) {
  503. return "经理";
  504. }else if (lvl==3) {
  505. return "总经理";
  506. }else if (lvl==4) {
  507. return "总监";
  508. }else if (lvl==5) {
  509. return "副总";
  510. }else if (lvl==6) {
  511. return "总裁";
  512. }else if (lvl==7) {
  513. return "董事长";
  514. }
  515. }
  516. return "";
  517. }
  518. public Integer getMarriage() {
  519. return marriage;
  520. }
  521. public String getMarriageName() {
  522. if (marriage!=null) {
  523. if (marriage==0) {
  524. return "未婚";
  525. }else if (marriage==1) {
  526. return "已婚";
  527. }else if (marriage==2) {
  528. return "离异";
  529. }
  530. }
  531. return "";
  532. }
  533. public void setMarriage(Integer marriage) {
  534. this.marriage = marriage;
  535. }
  536. public String getEmergencyContact() {
  537. return emergencyContact;
  538. }
  539. public void setEmergencyContact(String emergencyContact) {
  540. this.emergencyContact = emergencyContact;
  541. }
  542. public String getEmergencyMobile() {
  543. return emergencyMobile;
  544. }
  545. public void setEmergencyMobile(String emergencyMobile) {
  546. this.emergencyMobile = emergencyMobile;
  547. }
  548. public String getResidenceName() {
  549. String str="";
  550. if(rpName!=null)str=str+rpName.trim()+"省";
  551. if(rcName!=null)str=str+rcName.trim();
  552. if(raName!=null)str=str+raName.trim();
  553. if (residenceAddress!=null)str=str+residenceAddress;
  554. return str;
  555. }
  556. public String getNativePlaceName() {
  557. String str="";
  558. if(nppName!=null)str=str+nppName.trim()+"省";
  559. if(npcName!=null)str=str+npcName.trim();
  560. return str;
  561. }
  562. public String getNowName() {
  563. String str="";
  564. if(npName!=null)str=str+npName.trim()+"省";
  565. if(ncName!=null)str=str+ncName.trim();
  566. if(naName!=null)str=str+naName.trim();
  567. if (nowAddress!=null)str=str+nowAddress;
  568. return str;
  569. }
  570. public String getJobNature() {
  571. return jobNature;
  572. }
  573. public void setJobNature(String jobNature) {
  574. this.jobNature = jobNature;
  575. }
  576. public String getJobNatureRemarks() {
  577. return jobNatureRemarks;
  578. }
  579. public void setJobNatureRemarks(String jobNatureRemarks) {
  580. this.jobNatureRemarks = jobNatureRemarks;
  581. }
  582. public Integer getEmployeeId() {
  583. return employeeId;
  584. }
  585. public void setEmployeeId(Integer employeeId) {
  586. this.employeeId = employeeId;
  587. }
  588. }