UPGIT UTBEAN mappcant and mcandidate

parent 1ecca590
......@@ -101,7 +101,7 @@
Simmapplicantwithgson simmapplicantwithgson = (Simmapplicantwithgson) screen.inq.getCurrentDbRecord();
/* //------------------------------------age------------------------------------
//------------------------------------age------------------------------------
String age_memployee = "";
CscCalendar startDate = new CscCalendar( chk.chkNullString(simmapplicantwithgson.mapplicantPersonal.birthdate.substring(0,10),"2100-12-31"));
......@@ -127,7 +127,7 @@
sourcejobDesc = inqmsourcejob.getString("tdesc");
}
String job_from = chk.chkNullString(simmapplicantwithgson.mapplicantOther.sourcejob," ");
String sourcejobExplain = chk.chkNullString(simmapplicantwithgson.mapplicantOther.sourcejobExplain," ");
String sourcejobExplain = "KKND";
String typejobfrom = "";
String str_job_from0 = "";
String str_job_from2 = "";
......@@ -245,15 +245,15 @@
educationbackground.put("nameth" + education.degreetype, education.university.searchtext);
educationbackground.put("nameen" + education.degreetype, education.university.searchtext);
} else {
educationbackground.put("nameth" + education.degreetype, education.university.universitylist.name.tha);
educationbackground.put("nameen" + education.degreetype, education.university.universitylist.name.eng);
//educationbackground.put("nameth" + education.degreetype, education.university.universitylist.name.tha);
//educationbackground.put("nameen" + education.degreetype, education.university.universitylist.name.eng);
}
if (education.major.majorlist == null) {
educationbackground.put("majorth" + education.degreetype, education.major.searchtext);
educationbackground.put("majoren" + education.degreetype, education.major.searchtext);
//educationbackground.put("majorth" + education.degreetype, education.major.searchtext);
//educationbackground.put("majoren" + education.degreetype, education.major.searchtext);
}else {
educationbackground.put("majorth" + education.degreetype, education.major.majorlist.name.tha);
educationbackground.put("majoren" + education.degreetype, education.major.majorlist.name.eng);
//educationbackground.put("majorth" + education.degreetype, education.major.majorlist.name.tha);
//educationbackground.put("majoren" + education.degreetype, education.major.majorlist.name.eng);
}
educationbackground.put("from" + education.degreetype, education.yearstart);
educationbackground.put("to" + education.degreetype, education.yearend);
......@@ -337,7 +337,7 @@
familybackground.put("lname" + family.relation + siblings, family.lname);
familybackground.put("age" + family.relation + siblings, family.age);
familybackground.put("occupation" + family.relation + siblings, occupationDesc);
familybackground.put("position" + family.relation + siblings, family.position);
// familybackground.put("position" + family.relation + siblings, family.position);
familybackground.put("status" + family.relation + siblings, family.status);
familybackground.put("workplace" + family.relation + siblings, family.workplace);
familybackground.put("phone" + family.relation + siblings, family.phone);
......@@ -348,7 +348,7 @@
familybackground.put("lname" + family.relation, family.lname);
familybackground.put("age" + family.relation, family.age);
familybackground.put("occupation" + family.relation, occupationDesc);
familybackground.put("position" + family.relation, family.position);
// familybackground.put("position" + family.relation, family.position);
familybackground.put("status" + family.relation, family.status);
familybackground.put("workplace" + family.relation, family.workplace);
familybackground.put("phone" + family.relation, family.phone);
......@@ -360,7 +360,7 @@
nameallchild += line + family.fname + " " + family.lname;
ageallchild += line + family.age;
occupationallchild += line + occupationDesc;
positionallchild += line + family.position;
// positionallchild += line + family.position;
statusallchild += line + family.status;
workplaceandphoneallchild += line + family.workplace + " " + family.phone;
// workplaceallchild += line + family.workplace;
......@@ -374,7 +374,7 @@
nameallrelative += line + family.fname + " " + family.lname;
ageallrelative += line + family.age;
occupationallrelative += line + occupationDesc;
positionallrelative += line + family.position;
// positionallrelative += line + family.position;
statusallrelative += line + family.status;
workplaceandphoneallrelative += line + family.workplace + " " + family.phone;
workplaceallrelative += line + family.workplace;
......@@ -384,14 +384,14 @@
familybackground.putToSum("nameallchild", nameallchild);
familybackground.putToSum("ageallchild", ageallchild);
familybackground.putToSum("occupationallchild", occupationallchild);
familybackground.putToSum("positionallchild", positionallchild);
// familybackground.putToSum("positionallchild", positionallchild);
familybackground.putToSum("statusallchild", line + statusallchild);
familybackground.putToSum("workplaceandphoneallchild", workplaceandphoneallchild);
familybackground.put("nameallrelative", nameallrelative);
familybackground.put("ageallrelative", ageallrelative);
familybackground.put("occupationallrelative", occupationallrelative);
familybackground.put("positionallrelative" , positionallrelative);
// familybackground.put("positionallrelative" , positionallrelative);
familybackground.put("statusallrelative", statusallrelative);
familybackground.put("workplaceandphoneallrelative" , workplaceandphoneallrelative);
familybackground.put("workplaceallrelative", workplaceallrelative);
......@@ -413,19 +413,27 @@
hmlangskill.put("listen"+initlangskill, "");
hmlangskill.put("searchtext"+initlangskill, "");
}
/*
DbInquiry inqskilllevel = new InitialInquiry(screen.getUProfile()).getDbInquiry("mskilllevel");
inqskilllevel.refresh();
while(inqskilllevel.next()) {
masterskilllevel.put(inqskilllevel.getString("skilllevelid"),inqskilllevel.getString("tdesc"));
}
*/
// DbInquiry inqlangskill = new InitialInquiry(screen.getUProfile()).getDbInquiry("mlanguage");
for (MapplicantSkill.Langskill langskill : simmapplicantwithgson.mapplicantSkill.langskill) {
/* inqlangskill.setFilter("languageid = '"+langskill.name+"'");
inqlangskill.refresh();
if(langskill.langskilllist ==null){
hmlangskill.put("skillNameTdesc"+langskillloop, langskill.searchtext);
while(inqlangskill.next()) {
inqlangskill.referLangOff();
hmlangskill.put("skillNameTdesc"+langskillloop, inqlangskill.getString("tha"));
hmlangskill.put("skillNameEdesc"+langskillloop, inqlangskill.getString("eng"));
}
else{
hmlangskill.put("skillNameTdesc"+langskillloop, langskill.langskilllist.name.tha);
hmlangskill.put("skillNameEdesc"+langskillloop, langskill.langskilllist.name.eng);
}
*/
hmlangskill.put("reading"+langskillloop, langskill.skill.reading);
hmlangskill.put("write"+langskillloop, langskill.skill.write);
hmlangskill.put("speak"+langskillloop, langskill.skill.speak);
......@@ -511,15 +519,7 @@
jobexp.put("reason" + roundjobexp, job.reason);
jobexp.put("present" + roundjobexp, job.present);
if(job.allowances != null) {
jobexp.put("position" + roundjobexp, job.allowances.position);
jobexp.put("car" + roundjobexp, job.allowances.car);
jobexp.put("phone" + roundjobexp, job.allowances.phone);
jobexp.put("life" + roundjobexp, job.allowances.life);
jobexp.put("bonus" + roundjobexp, job.allowances.bonus);
jobexp.put("travel" + roundjobexp, job.allowances.travel);
jobexp.put("other" + roundjobexp, job.allowances.other);
}
roundjobexp++;
}
// new CscCalendar(jobexp.get("end2").toString().substring(0,10)).getDDMMYYYY()
......@@ -534,14 +534,14 @@
familyreference.put("jobtitle" + referencekey, "");
familyreference.put("phone" + referencekey, "");
familyreference.put("companyname" + referencekey, "");
familyreference.put("relations" + referencekey, "");
// familyreference.put("relations" + referencekey, "");
}
for (MapplicantFamily.Reference reference : simmapplicantwithgson.mapplicantFamily.reference) {
familyreference.put("name" + roundreference, reference.name);
familyreference.put("jobtitle" + roundreference, reference.jobtitle);
familyreference.put("phone" + roundreference, reference.phone);
familyreference.put("companyname" + roundreference, reference.companyname);
familyreference.put("relations" + roundreference, reference.relations);
// familyreference.put("relations" + roundreference, reference.relations);
roundreference++;
}
//----------------------------END REFERENCE-----------------------------------------
......@@ -556,16 +556,9 @@
jobexp_training.put("start" + trainingkey, "");
jobexp_training.put("end" + trainingkey, "");
}
for (MapplicantJobexp.Training training : simmapplicantwithgson.mapplicantJobexp.training) {
jobexp_training.put("certificate" + roundtraining, training.certificate);
jobexp_training.put("name" + roundtraining, training.name);
jobexp_training.put("by" + roundtraining, training.by);
jobexp_training.put("start" + roundtraining, new CscCalendar(training.start.toString().substring(0,10)).getDDMMYYYY().replaceAll("-","/"));
jobexp_training.put("end" + roundtraining,new CscCalendar(training.end.toString().substring(0,10)).getDDMMYYYY().replaceAll("-","/"));
roundtraining++;
}
//----------------------------END REFERENCE-----------------------------------------
*/
//----------------------------End Jobrouter ----------------------------------------
try {
CscCalendar calendar = new CscCalendar();
......@@ -659,7 +652,7 @@
}
else{
String Salary_Expect = screen.getString("MAPPLICANT","SALARY_EXPECT").replaceAll(",","");
detail.addCell(getCellData("d", font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData(DFO.format(Integer.valueOf(Salary_Expect)).toString(), font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
}
detail.addCell(getCellData("สามารถเริ่มงานภายใน", font_C12N, "NO", "LEFT", "MIDDLE", 1, 1));
//getThaiFullDDMMYYYY()
......@@ -673,7 +666,7 @@
detail.addCell(getCellData("Available in", font_C10N, "NO", "LEFT", "MIDDLE", 2, 1));
detail.addCell(getCellData(" ", font_C10N, "NO", "LEFT", "MIDDLE", 2, 1));
document.add(detail);
/*
// --------------- new line -----------------
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
......@@ -855,7 +848,7 @@
detail.addCell(getCellData("อีเมล์", font_C12N, "NO", "LEFT", "MIDDLE", 1, 1));
detail.addCell(getCellData(screen.getString("MAPPLICANT", "EMAIL"), font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData("Line ID", font_C12N, "NO", "LEFT", "MIDDLE", 1, 1));
detail.addCell(getCellData(simmapplicantwithgson.mapplicantContact.lineId, font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData("Line", font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
setPaddingBottom(1.5f);
detail.addCell(getCellData("Mobile Phone No.", font_C08N, "NO", "LEFT", "MIDDLE", 2, 1));
detail.addCell(getCellData("Home Phone No.", font_C08N, "NO", "LEFT", "MIDDLE", 2, 1));
......@@ -893,7 +886,7 @@
document.add(detail);
// --------------- new line -----------------
String personal_status1 = simmapplicantwithgson.mapplicantPersonal.status;
String ordination_days = simmapplicantwithgson.mapplicantOther.ordinationDays;
String ordination_days = "09";
Boolean chk_ordination =simmapplicantwithgson.mapplicantOther.ordination;
sizeColumn = new float[]{4.5f,2.0f,5.5f,3.0f,3.0f,2.0f, 6.0f, 6.0f, 2.0f, 3.0f, 2.0f, 4.0f, 2.0f, 3.0f, 2.0f, 3.0f };
detail = new PdfPTable(16);
......@@ -992,7 +985,7 @@
content.add(new Chunk("ชาย ",font_C12N));
content.add(new Chunk("Son",font_C08N));
detail.addCell(getCellData2( content, "NO", "LEFT", "TOP", 1, 1,true,false) );
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.children.sons, font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData("2", font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
content = new Phrase();
content.add(new Chunk("คน ",font_C12N));
content.add(new Chunk("Person",font_C08N));
......@@ -1001,7 +994,7 @@
content.add(new Chunk("หญิง ",font_C12N));
content.add(new Chunk("Daughter",font_C08N));
detail.addCell(getCellData2( content, "NO", "LEFT", "TOP", 1, 1,true,false) );
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.children.daughters, font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData("3", font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
content = new Phrase();
content.add(new Chunk("คน ",font_C12N));
content.add(new Chunk("Person",font_C08N));
......@@ -1181,12 +1174,12 @@
content.add(new Chunk("ชื่อ-นามสกุล ",font_C12N));
content.add(new Chunk("Name-Surname",font_C08N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(simmapplicantwithgson.mapplicantContact.emergencyContact.name, font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData("d", font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
content = new Phrase();
content.add(new Chunk("เบอร์ติดต่อ ",font_C12N));
content.add(new Chunk("Contact No.",font_C08N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
String PhoneF = simmapplicantwithgson.mapplicantContact.emergencyContact.phone;
String PhoneF = "d";
if(PhoneF.length() == 10){
PhoneF = PhoneF.substring(0,3)+"-"+PhoneF.substring(3,6)+"-"+PhoneF.substring(6,10);
}
......@@ -1198,7 +1191,7 @@
content.add(new Chunk("ความสัมพันธ์ ",font_C12N));
content.add(new Chunk("Relationship",font_C08N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(simmapplicantwithgson.mapplicantContact.emergencyContact.relations, font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
detail.addCell(getCellData("d", font_C12N, "R_BOTTOM", "CENTER", "TOP", 1, 1,true,false));
setPaddingBottom(2.5f);
detail.addCell(getCellData(" ", linebreak, "NO","CENTER", "BOTTOM", 9, 1));
document.add(detail);
......@@ -1660,7 +1653,6 @@
detail.addCell(getCellData("No", font_C08N, "NO", "LEFT", "BOTTOM", 1, 1));
document.add(detail);
//SKILLS// --------------- new line -----------------
//String computerSkills_word = simmapplicantwithgson.mapplicantSkill.computerSkills.word;
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
......@@ -1775,11 +1767,8 @@
content = new Phrase();
content.add(new Chunk("TOEIC (Score) : ",font_C12N));
content.add(new Chunk(chk.chkNullString(simmapplicantwithgson.mapplicantSkill.toeic,"0").replaceAll(",",""),font_C12N));
content.add(new Chunk("\nTOEFL (Score) : ",font_C12N));
content.add(new Chunk(chk.chkNullString(simmapplicantwithgson.mapplicantSkill.toefl,"0").replaceAll(",",""),font_C12N));
content.add(new Chunk("\nIETLS (Score) : ",font_C12N));
content.add(new Chunk(chk.chkNullString(simmapplicantwithgson.mapplicantSkill.ietls,"0").replaceAll(",",""),font_C12N));
detail.addCell(getCellData2( content, "", "CENTER", "MIDDLE", 2, 3) );
content = new Phrase();
content.add(new Chunk(hmlangskill.get("skillNameTdesc1").toString() +" " ,font_C12N));
......@@ -1818,9 +1807,9 @@
document.add(detail);
// --------------- new line -----------------
String computerSkills_word = simmapplicantwithgson.mapplicantSkill.computerSkills.word;
String computerSkills_excel = simmapplicantwithgson.mapplicantSkill.computerSkills.excel;
String computerSkills_autoCad = simmapplicantwithgson.mapplicantSkill.computerSkills.autoCad;
String computerSkills_word = "1";
String computerSkills_excel = "1";
String computerSkills_autoCad = "1";
sizeColumn = new float[]{8.0f, 4.0f, 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 3.0f,1.0f, 4.2f, 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 3.0f};
detail = new PdfPTable(16);
detail.setWidthPercentage(100);
......@@ -1872,7 +1861,7 @@
detail.addCell(getCellData("เบื้องต้น", font_C12N, "NO", "LEFT", "BOTTOM", 1, 1));
detail.addCell(getCellData("โปรแกรมอื่นที่สามารถใช้งานได้", font_C12N, "NO", "LEFT", "BOTTOM", 3, 1));
detail.addCell(getCellData(simmapplicantwithgson.mapplicantSkill.computerSkills.other, font_C12N, "R_BOTTOM", "LEFT", "TOP", 4, 1,true,false));
detail.addCell(getCellData("", font_C12N, "R_BOTTOM", "LEFT", "TOP", 4, 1,true,false));
detail.addCell(getCellData(" ", font_C08N, "NO", "LEFT", "BOTTOM", 3, 1));
detail.addCell(getCellData("Expert", font_C08N, "NO", "LEFT", "BOTTOM", 1, 1));
......@@ -1884,10 +1873,10 @@
document.add(detail);
// --------------- new line -----------------
Boolean car_lc =simmapplicantwithgson.mapplicantSkill.vehicle.car.driving;
Boolean motorcycle_lc =simmapplicantwithgson.mapplicantSkill.vehicle.motorcycle.driving;
Boolean car_own =simmapplicantwithgson.mapplicantSkill.vehicle.car.own;
Boolean motorcycle_own =simmapplicantwithgson.mapplicantSkill.vehicle.motorcycle.own;
Boolean car_lc =true;
Boolean motorcycle_lc =true;
Boolean car_own =true;
Boolean motorcycle_own =true;
sizeColumn = new float[]{10.0f, 1.0f, 3.5f, 6.5f, 1.0f, 2.0f, 1.0f, 2.5f,4.0f ,1.0f, 6.0f, 9.0f, 1.0f, 2.0f, 1.0f, 2.5f};
detail = new PdfPTable(16);
detail.setWidthPercentage(100);
......@@ -2106,7 +2095,7 @@
detail.addCell(getCellData("FORM NO. : FR-PND-001/15", font_C08N, "NO", "LEFT", "BOTTOM", 1, 1));
detail.addCell(getCellData("Revision - 1 : Effective Date - May 28, 2020", font_C08N, "NO", "RIGHT", "BOTTOM", 1, 1));
detail.addCell(getCellData(textpath, font_C08N, "NO", "LEFT", "BOTTOM", 2, 1));
document.add(detail);*/
document.add(detail);
// -----------------------------------------------------------------------------
} catch (Exception e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment