|
|
|
@@ -6,10 +6,6 @@ import java.io.FileOutputStream; |
|
|
|
import java.io.IOException; |
|
|
|
import java.text.DecimalFormat; |
|
|
|
import java.text.NumberFormat; |
|
|
|
import java.time.LocalDate; |
|
|
|
import java.time.Period; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.time.format.DateTimeParseException; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Locale; |
|
|
|
@@ -53,8 +49,6 @@ import com.itextpdf.kernel.pdf.PdfName; |
|
|
|
import com.itextpdf.kernel.pdf.PdfReader; |
|
|
|
import com.itextpdf.kernel.pdf.PdfWriter; |
|
|
|
|
|
|
|
import liquibase.util.StringUtil; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfRepository> { |
|
|
|
|
|
|
|
@@ -847,30 +841,18 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "fna_d_b1_6", commonField.getOthers().get("recObj6")); |
|
|
|
|
|
|
|
setValueIfPresent(form, "fna_d_name_1", commonField.getOthers().get("recProd1_1")); |
|
|
|
setValueIfPresent(form, "fna_d_name_1_2", commonField.getOthers().get("recProd1_2")); |
|
|
|
setValueIfPresent(form, "fna_d_name_2", commonField.getOthers().get("recProd2_1")); |
|
|
|
setValueIfPresent(form, "fna_d_name_2_2", commonField.getOthers().get("recProd2_2")); |
|
|
|
setValueIfPresent(form, "fna_d_name_3", commonField.getOthers().get("recProd3_1")); |
|
|
|
setValueIfPresent(form, "fna_d_name_3_2", commonField.getOthers().get("recProd3_2")); |
|
|
|
setValueIfPresent(form, "fna_d_name_4", commonField.getOthers().get("recProd4_1")); |
|
|
|
setValueIfPresent(form, "fna_d_name_4_2", commonField.getOthers().get("recProd4_2")); |
|
|
|
setValueIfPresent(form, "fna_d_name_5", commonField.getOthers().get("recProd5_1")); |
|
|
|
setValueIfPresent(form, "fna_d_name_5_2", commonField.getOthers().get("recProd5_2")); |
|
|
|
setValueIfPresent(form, "fna_d_name_6", commonField.getOthers().get("recProd6_1")); |
|
|
|
setValueIfPresent(form, "fna_d_name_6_2", commonField.getOthers().get("recProd6_2")); |
|
|
|
|
|
|
|
|
|
|
|
setValueIfPresent(form, "fna_d_product_1", commonField.getOthers().get("recSelect1_1")); |
|
|
|
setValueIfPresent(form, "fna_d_product_1_2", commonField.getOthers().get("recSelect1_2")); |
|
|
|
setValueIfPresent(form, "fna_d_product_2", commonField.getOthers().get("recSelect2_1")); |
|
|
|
setValueIfPresent(form, "fna_d_product_2_2", commonField.getOthers().get("recSelect2_2")); |
|
|
|
setValueIfPresent(form, "fna_d_product_3", commonField.getOthers().get("recSelect3_1")); |
|
|
|
setValueIfPresent(form, "fna_d_product_3_2", commonField.getOthers().get("recSelect3_2")); |
|
|
|
setValueIfPresent(form, "fna_d_product_4", commonField.getOthers().get("recSelect4_1")); |
|
|
|
setValueIfPresent(form, "fna_d_product_4_2", commonField.getOthers().get("recSelect4_2")); |
|
|
|
setValueIfPresent(form, "fna_d_product_5", commonField.getOthers().get("recSelect5_1")); |
|
|
|
setValueIfPresent(form, "fna_d_product_5_2", commonField.getOthers().get("recSelect5_2")); |
|
|
|
setValueIfPresent(form, "fna_d_product_6", commonField.getOthers().get("recSelect6_1")); |
|
|
|
setValueIfPresent(form, "fna_d_product_6_2", commonField.getOthers().get("recSelect6_2")); |
|
|
|
/* Page6 End */ |
|
|
|
|
|
|
|
|
|
|
|
@@ -1202,6 +1184,15 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "email", commonField.getEmail()); |
|
|
|
setValueIfPresent(form, "occupation", commonField.getOccupationTitle()); |
|
|
|
*/ |
|
|
|
|
|
|
|
setValueIfPresent(form, "name", StringUtils.trimToEmpty(StringUtils.trimToEmpty(client.getLastname()) + " " + StringUtils.trimToEmpty(client.getFirstname()))); |
|
|
|
setValueIfPresent(form, "date_of_birth", commonField.getDateOfBirth()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "contact", client.getPhone1Code() + " " + client.getPhone1()); |
|
|
|
setValueIfPresent(form, "email", client.getEmail()); |
|
|
|
setValueIfPresent(form, "occupation", commonField.getOthers().get("empPosition")); |
|
|
|
setValueIfPresent(form, "address1", getCrAddress1(client)); |
|
|
|
setValueIfPresent(form, "address2", getCrAddress2(client)); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1amount", commonField.getFna_b1_d_amount()); |
|
|
|
setValueIfPresent(form, "cb1f", commonField.getFna_b1_f_other()); |
|
|
|
@@ -1230,31 +1221,19 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "5obj6", commonField.getOthers().get("recObj6")); |
|
|
|
|
|
|
|
setValueIfPresent(form, "5name1_1", commonField.getOthers().get("recProd1_1")); |
|
|
|
setValueIfPresent(form, "5name1_2", commonField.getOthers().get("recProd1_2")); |
|
|
|
setValueIfPresent(form, "5name2_1", commonField.getOthers().get("recProd2_1")); |
|
|
|
setValueIfPresent(form, "5name2_2", commonField.getOthers().get("recProd2_2")); |
|
|
|
setValueIfPresent(form, "5name3_1", commonField.getOthers().get("recProd3_1")); |
|
|
|
setValueIfPresent(form, "5name3_2", commonField.getOthers().get("recProd3_2")); |
|
|
|
setValueIfPresent(form, "5name4_1", commonField.getOthers().get("recProd4_1")); |
|
|
|
setValueIfPresent(form, "5name4_2", commonField.getOthers().get("recProd4_2")); |
|
|
|
setValueIfPresent(form, "5name5_1", commonField.getOthers().get("recProd5_1")); |
|
|
|
setValueIfPresent(form, "5name5_2", commonField.getOthers().get("recProd5_2")); |
|
|
|
setValueIfPresent(form, "5name6_1", commonField.getOthers().get("recProd6_1")); |
|
|
|
setValueIfPresent(form, "5name6_2", commonField.getOthers().get("recProd6_2")); |
|
|
|
|
|
|
|
|
|
|
|
setValueIfPresent(form, "5slected1_1", commonField.getOthers().get("recSelect1_1")); |
|
|
|
setValueIfPresent(form, "5slected1_2", commonField.getOthers().get("recSelect1_2")); |
|
|
|
setValueIfPresent(form, "5slected2_1", commonField.getOthers().get("recSelect2_1")); |
|
|
|
setValueIfPresent(form, "5slected2_2", commonField.getOthers().get("recSelect2_2")); |
|
|
|
setValueIfPresent(form, "5slected3_1", commonField.getOthers().get("recSelect3_1")); |
|
|
|
setValueIfPresent(form, "5slected3_2", commonField.getOthers().get("recSelect3_2")); |
|
|
|
setValueIfPresent(form, "5slected4_1", commonField.getOthers().get("recSelect4_1")); |
|
|
|
setValueIfPresent(form, "5slected4_2", commonField.getOthers().get("recSelect4_2")); |
|
|
|
setValueIfPresent(form, "5slected5_1", commonField.getOthers().get("recSelect5_1")); |
|
|
|
setValueIfPresent(form, "5slected5_2", commonField.getOthers().get("recSelect5_2")); |
|
|
|
setValueIfPresent(form, "5slected6_1", commonField.getOthers().get("recSelect6_1")); |
|
|
|
setValueIfPresent(form, "5slected6_2", commonField.getOthers().get("recSelect6_2")); |
|
|
|
|
|
|
|
|
|
|
|
/* Page4 End */ |
|
|
|
|
|
|
|
if(client != null && client.getConsultantId() != null){ |
|
|
|
@@ -1353,6 +1332,10 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
|
|
|
|
private void SLAPP_textBox(PdfAcroForm form, CommonField commonField, Client client){ |
|
|
|
/* Page1 Start */ |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_1_surname", client.getLastname()); |
|
|
|
setValueIfPresent(form, "1_1_given_name", client.getFirstname()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_2_name_ch", commonField.getNameChi()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_6_dd", commonField.getDdDateOfBirth()); |
|
|
|
@@ -1379,8 +1362,8 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_8", commonField.getCountryOfCitizenship()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_1", commonField.getOccupation()); |
|
|
|
setValueIfPresent(form, "1_12_2", commonField.getOccupationTitle()); |
|
|
|
setValueIfPresent(form, "1_12_1", commonField.getOthers().get("empPosition")); |
|
|
|
setValueIfPresent(form, "1_12_2", commonField.getOthers().get("empDuties")); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_5", commonField.getTotalAnnualIncome()); |
|
|
|
if(commonField.getTotalAnnualIncome() != null && !commonField.getTotalAnnualIncome().isBlank()){ |
|
|
|
@@ -1493,13 +1476,17 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form2, "1_11_m", commonField.getOthers().get("maritalStatusMarried")); |
|
|
|
setValueIfPresent(form2, "1_11_o", commonField.getOthers().get("maritalStatusOther")); |
|
|
|
|
|
|
|
setValueIfPresent(form2, "1_10_1", commonField.getOthers().get("hkidPerm")); |
|
|
|
setValueIfPresent(form2, "1_10_2", commonField.getOthers().get("hkidNon")); |
|
|
|
setValueIfPresent(form2, "1_10_3", commonField.getOthers().get("prcId")); |
|
|
|
if("yes".equals(commonField.getOthers().get("passportYes")) || "yes".equals(commonField.getOthers().get("travelDocYes"))){ |
|
|
|
setValueIfPresent(form2, "1_10_6", "Yes"); |
|
|
|
if("Yes".contentEquals(commonField.getOthers().get("hkidPerm")) || "Yes".contentEquals(commonField.getOthers().get("hkidNon"))){ |
|
|
|
setValueIfPresent(form2, "1_10_1", commonField.getOthers().get("hkidPerm")); |
|
|
|
setValueIfPresent(form2, "1_10_2", commonField.getOthers().get("hkidNon")); |
|
|
|
}else if("Yes".equals(commonField.getOthers().get("prcId"))){ |
|
|
|
setValueIfPresent(form2, "1_10_3", commonField.getOthers().get("prcId")); |
|
|
|
}else if("Yes".equals(commonField.getOthers().get("passportYes")) || "Yes".equals(commonField.getOthers().get("travelDocYes")) ){ |
|
|
|
if("yes".equals(commonField.getOthers().get("passportYes")) || "yes".equals(commonField.getOthers().get("travelDocYes"))){ |
|
|
|
setValueIfPresent(form2, "1_10_6", "Yes"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//page 2 |
|
|
|
setValueIfPresent(form2, "ch1_12_yes", commonField.getOthers().get("workHighYes")); |
|
|
|
setValueIfPresent(form2, "ch1_12_no", commonField.getOthers().get("workHighNo")); |
|
|
|
@@ -2076,7 +2063,9 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "ch1_12_student", commonField.getStudent()); |
|
|
|
setValueIfPresent(form, "ch1_12_housewife", commonField.getPartTime()); |
|
|
|
setValueIfPresent(form, "ch1_12_part", commonField.getHomemaker()); |
|
|
|
setValueIfPresent(form, "ch1_12_retired", commonField.getBankruptNo()); |
|
|
|
setValueIfPresent(form, "ch1_12_retired", commonField.getRetired()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_detail1", commonField.getOthers().get("workHighDesc")); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_occupation", commonField.getOthers().get("empPosition")); |
|
|
|
setValueIfPresent(form, "1_12_exact_duty", commonField.getOthers().get("empDuties")); |
|
|
|
@@ -2084,12 +2073,14 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "1_12_employer_address_1", commonField.getOthers().get("empCompanyAddress")); |
|
|
|
//setValueIfPresent(form, "1_12_employer_address_2", commonField.getOthers().get("companyAddress2")); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_nature_1", commonField.getCompanyNature1()); |
|
|
|
setValueIfPresent(form, "1_12_nature_2", commonField.getCompanyNature2()); |
|
|
|
setValueIfPresent(form, "1_12_nature_1", commonField.getOthers().get("empNatureA")); |
|
|
|
setValueIfPresent(form, "1_12_nature_2", commonField.getOthers().get("empNatureB")); |
|
|
|
|
|
|
|
setValueIfPresent(form, "1_13a_rm", client.getCrAddressRoom()); |
|
|
|
setValueIfPresent(form, "1_13a_floor", client.getCrAddressFloor()); |
|
|
|
setValueIfPresent(form, "1_13a_block", client.getCrAddressBlock()); |
|
|
|
setValueIfPresent(form, "1_13a_building", client.getCrAddressBuilding()); |
|
|
|
setValueIfPresent(form, "1_13a_street", client.getCrAddressStreet()); |
|
|
|
setValueIfPresent(form, "1_13a_district", client.getCrAddressArea()); |
|
|
|
setValueIfPresent(form, "1_13a_zip", client.getCrAddressPostalCode()); |
|
|
|
if("HK".equals(client.getCrAddressArea())) |
|
|
|
@@ -2102,7 +2093,7 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "1_13bc_rm", client.getCorAddressRoom()); |
|
|
|
setValueIfPresent(form, "1_13bc_floor", client.getCorAddressFloor()); |
|
|
|
setValueIfPresent(form, "1_13bc_block", client.getCorAddressBlock()); |
|
|
|
setValueIfPresent(form, "1_13bc_building", client.getCrAddressBuilding()); |
|
|
|
setValueIfPresent(form, "1_13bc_building", client.getCorAddressBuilding()); |
|
|
|
setValueIfPresent(form, "1_13bc_street", client.getCorAddressStreet()); |
|
|
|
setValueIfPresent(form, "1_13bc_district", client.getCorAddressArea()); |
|
|
|
|
|
|
|
@@ -2171,29 +2162,19 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
setValueIfPresent(form, "1_14d_explain3", commonField.getTaxReasonB3()); |
|
|
|
|
|
|
|
/* Page3 End */ |
|
|
|
/* Page6 Start */ |
|
|
|
/* Page6 Start */ |
|
|
|
|
|
|
|
setValueIfPresent(form, "4_1_name1_1", commonField.getInsuranceCompany1_1()); |
|
|
|
setValueIfPresent(form, "4_1_name1_2", commonField.getInsuranceCompany1_2()); |
|
|
|
//setValueIfPresent(form, "4_1_name1_3", commonField.getInsuranceCompany1_3()); |
|
|
|
setValueIfPresent(form, "4_1_name2_1", commonField.getInsuranceCompany2_1()); |
|
|
|
setValueIfPresent(form, "4_1_name2_2", commonField.getInsuranceCompany2_2()); |
|
|
|
//setValueIfPresent(form, "4_1_name2_3", commonField.getInsuranceCompany2_3()); |
|
|
|
setValueIfPresent(form, "4_1_name3_1", commonField.getInsuranceCompany3_1()); |
|
|
|
setValueIfPresent(form, "4_1_name3_2", commonField.getInsuranceCompany3_2()); |
|
|
|
//setValueIfPresent(form, "4_1_name3_3", commonField.getInsuranceCompany3_3()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "4_1_year1", commonField.getInsuranceYear1()); |
|
|
|
setValueIfPresent(form, "4_1_year2", commonField.getInsuranceYear2()); |
|
|
|
setValueIfPresent(form, "4_1_year3", commonField.getInsuranceYear3()); |
|
|
|
|
|
|
|
setValueIfPresent(form, "4_1_sum1_1", commonField.getOthers().get("insuranceSumInsured1_1")); |
|
|
|
setValueIfPresent(form, "4_1_sum1_2", commonField.getOthers().get("insuranceSumInsured1_2")); |
|
|
|
setValueIfPresent(form, "4_1_sum1_3", commonField.getOthers().get("insuranceSumInsured1_3")); |
|
|
|
setValueIfPresent(form, "4_1_sum2_1", commonField.getOthers().get("insuranceSumInsured2_1")); |
|
|
|
setValueIfPresent(form, "4_1_sum2_2", commonField.getOthers().get("insuranceSumInsured2_2")); |
|
|
|
setValueIfPresent(form, "4_1_sum2_3", commonField.getOthers().get("insuranceSumInsured2_3")); |
|
|
|
setValueIfPresent(form, "4_1_sum3_1", commonField.getOthers().get("insuranceSumInsured3_1")); |
|
|
|
setValueIfPresent(form, "4_1_sum3_2", commonField.getOthers().get("insuranceSumInsured3_2")); |
|
|
|
setValueIfPresent(form, "4_1_sum3_3", commonField.getOthers().get("insuranceSumInsured3_3")); |
|
|
|
|
|
|
|
//if(commonField.getInsuranceSumInsured1() != null && !commonField.getInsuranceSumInsured1().isBlank()){ |
|
|
|
setValueIfPresent(form, "ch4_1_life", "On"); |
|
|
|
@@ -2384,6 +2365,9 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
|
|
|
|
/* Page1 End */ |
|
|
|
/* Page2 Start */ |
|
|
|
setValueIfPresent(form2, "ch1_12_yes", commonField.getOthers().get("workHighYes")); |
|
|
|
setValueIfPresent(form2, "ch1_12_no", commonField.getOthers().get("workHighNo")); |
|
|
|
|
|
|
|
setValueIfPresent(form2, "ch1_11_s", commonField.getOthers().get("maritalStatusSingle")); |
|
|
|
setValueIfPresent(form2, "ch1_11_m", commonField.getOthers().get("maritalStatusMarried")); |
|
|
|
setValueIfPresent(form2, "ch1_11_o", commonField.getOthers().get("maritalStatusOther")); |
|
|
|
@@ -3122,30 +3106,18 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
case "fna_d_b1_6" -> commonField.getOthers().put("recObj6", fieldValue); |
|
|
|
|
|
|
|
case "fna_d_name_1" -> commonField.getOthers().put("recProd1_1", fieldValue); |
|
|
|
case "fna_d_name_1_2" -> commonField.getOthers().put("recProd1_2", fieldValue); |
|
|
|
case "fna_d_name_2" -> commonField.getOthers().put("recProd2_1", fieldValue); |
|
|
|
case "fna_d_name_2_2" -> commonField.getOthers().put("recProd2_2", fieldValue); |
|
|
|
case "fna_d_name_3" -> commonField.getOthers().put("recProd3_1", fieldValue); |
|
|
|
case "fna_d_name_3_2" -> commonField.getOthers().put("recProd3_2", fieldValue); |
|
|
|
case "fna_d_name_4" -> commonField.getOthers().put("recProd4_1", fieldValue); |
|
|
|
case "fna_d_name_4_2" -> commonField.getOthers().put("recProd4_2", fieldValue); |
|
|
|
case "fna_d_name_5" -> commonField.getOthers().put("recProd5_1", fieldValue); |
|
|
|
case "fna_d_name_5_2" -> commonField.getOthers().put("recProd5_2", fieldValue); |
|
|
|
case "fna_d_name_6" -> commonField.getOthers().put("recProd6_1", fieldValue); |
|
|
|
case "fna_d_name_6_2" -> commonField.getOthers().put("recProd6_2", fieldValue); |
|
|
|
|
|
|
|
|
|
|
|
case "fna_d_product_1" -> commonField.getOthers().put("recSelect1_1", fieldValue); |
|
|
|
case "fna_d_product_1_2" -> commonField.getOthers().put("recSelect1_2", fieldValue); |
|
|
|
case "fna_d_product_2" -> commonField.getOthers().put("recSelect2_1", fieldValue); |
|
|
|
case "fna_d_product_2_2" -> commonField.getOthers().put("recSelect2_2", fieldValue); |
|
|
|
case "fna_d_product_3" -> commonField.getOthers().put("recSelect3_1", fieldValue); |
|
|
|
case "fna_d_product_3_2" -> commonField.getOthers().put("recSelect3_2", fieldValue); |
|
|
|
case "fna_d_product_4" -> commonField.getOthers().put("recSelect4_1", fieldValue); |
|
|
|
case "fna_d_product_4_2" -> commonField.getOthers().put("recSelect4_2", fieldValue); |
|
|
|
case "fna_d_product_5" -> commonField.getOthers().put("recSelect5_1", fieldValue); |
|
|
|
case "fna_d_product_5_2" -> commonField.getOthers().put("recSelect5_2", fieldValue); |
|
|
|
case "fna_d_product_6" -> commonField.getOthers().put("recSelect6_1", fieldValue); |
|
|
|
case "fna_d_product_6_2" -> commonField.getOthers().put("recSelect6_2", fieldValue); |
|
|
|
/* Page6 End */ |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -3416,6 +3388,7 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
|
|
|
|
/* Page2 End */ |
|
|
|
/* Page3 Start */ |
|
|
|
/* |
|
|
|
case "part3_4_4_1a" -> commonField.setFna_c3a_2_5(fieldValue); |
|
|
|
case "part3_4_4_1b" -> commonField.setFna_c3a_6_10(fieldValue); |
|
|
|
case "part3_4_4_1c" -> commonField.setFna_c3a_11_15(fieldValue); |
|
|
|
@@ -3424,7 +3397,7 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
case "part3_4_4_1f" -> commonField.setFna_c3a_life(fieldValue); |
|
|
|
|
|
|
|
case "part3_4_single_pay" -> commonField.setFna_c3a_single_pay(fieldValue); |
|
|
|
|
|
|
|
*/ |
|
|
|
/* Page3 End */ |
|
|
|
|
|
|
|
} |
|
|
|
@@ -3529,30 +3502,18 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
case "5obj6" -> commonField.getOthers().put("recObj6", fieldValue); |
|
|
|
|
|
|
|
case "5name1_1" -> commonField.getOthers().put("recProd1_1", fieldValue); |
|
|
|
case "5name1_2" -> commonField.getOthers().put("recProd1_2", fieldValue); |
|
|
|
case "5name2_1" -> commonField.getOthers().put("recProd2_1", fieldValue); |
|
|
|
case "5name2_2" -> commonField.getOthers().put("recProd2_2", fieldValue); |
|
|
|
case "5name3_1" -> commonField.getOthers().put("recProd3_2", fieldValue); |
|
|
|
case "5name3_2" -> commonField.getOthers().put("recProd3_2", fieldValue); |
|
|
|
case "5name4_1" -> commonField.getOthers().put("recProd4_1", fieldValue); |
|
|
|
case "5name4_2" -> commonField.getOthers().put("recProd4_2", fieldValue); |
|
|
|
case "5name5_1" -> commonField.getOthers().put("recProd5_1", fieldValue); |
|
|
|
case "5name5_2" -> commonField.getOthers().put("recProd5_2", fieldValue); |
|
|
|
case "5name6_1" -> commonField.getOthers().put("recProd6_1", fieldValue); |
|
|
|
case "5name6_2" -> commonField.getOthers().put("recProd6_2", fieldValue); |
|
|
|
|
|
|
|
case "5slected1_1" -> commonField.getOthers().put("recSelect1_1", fieldValue); |
|
|
|
case "5slected1_2" -> commonField.getOthers().put("recSelect1_2", fieldValue); |
|
|
|
case "5slected2_1" -> commonField.getOthers().put("recSelect2_1", fieldValue); |
|
|
|
case "5slected2_2" -> commonField.getOthers().put("recSelect2_2", fieldValue); |
|
|
|
case "5slected3_1" -> commonField.getOthers().put("recSelect3_1", fieldValue); |
|
|
|
case "5slected3_2" -> commonField.getOthers().put("recSelect3_2", fieldValue); |
|
|
|
case "5slected4_1" -> commonField.getOthers().put("recSelect4_1", fieldValue); |
|
|
|
case "5slected4_2" -> commonField.getOthers().put("recSelect4_2", fieldValue); |
|
|
|
case "5slected5_1" -> commonField.getOthers().put("recSelect5_1", fieldValue); |
|
|
|
case "5slected5_2" -> commonField.getOthers().put("recSelect5_2", fieldValue); |
|
|
|
case "5slected6_1" -> commonField.getOthers().put("recSelect6_1", fieldValue); |
|
|
|
case "5slected6_2" -> commonField.getOthers().put("recSelect6_2", fieldValue); |
|
|
|
/* Page4 End */ |
|
|
|
|
|
|
|
} |
|
|
|
@@ -4057,27 +4018,15 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
/* Page3 End */ |
|
|
|
/* Page6 Start */ |
|
|
|
case "4_1_name1_1" -> commonField.setInsuranceCompany1_1(fieldValue); |
|
|
|
case "4_1_name1_2" -> commonField.setInsuranceCompany1_2(fieldValue); |
|
|
|
//case "4_1_name1_3" -> commonField.setInsuranceCompany1_3(fieldValue); |
|
|
|
case "4_1_name2_1" -> commonField.setInsuranceCompany2_1(fieldValue); |
|
|
|
case "4_1_name2_2" -> commonField.setInsuranceCompany2_2(fieldValue); |
|
|
|
//case "4_1_name2_3" -> commonField.setInsuranceCompany2_3(fieldValue); |
|
|
|
case "4_1_name3_1" -> commonField.setInsuranceCompany3_1(fieldValue); |
|
|
|
case "4_1_name3_2" -> commonField.setInsuranceCompany3_2(fieldValue); |
|
|
|
//case "4_1_name3_3" -> commonField.setInsuranceCompany3_3(fieldValue); |
|
|
|
case "4_1_year1" -> commonField.setInsuranceYear1(fieldValue); |
|
|
|
case "4_1_year2" -> commonField.setInsuranceYear2(fieldValue); |
|
|
|
case "4_1_year3" -> commonField.setInsuranceYear3(fieldValue); |
|
|
|
|
|
|
|
case "4_1_sum1_1" -> commonField.getOthers().put("insuranceSumInsured1_1", fieldValue); |
|
|
|
case "4_1_sum1_2" -> commonField.getOthers().put("insuranceSumInsured1_2", fieldValue); |
|
|
|
case "4_1_sum1_3" -> commonField.getOthers().put("insuranceSumInsured1_3", fieldValue); |
|
|
|
case "4_1_sum2_1" -> commonField.getOthers().put("insuranceSumInsured2_1", fieldValue); |
|
|
|
case "4_1_sum2_2" -> commonField.getOthers().put("insuranceSumInsured2_2", fieldValue); |
|
|
|
case "4_1_sum2_3" -> commonField.getOthers().put("insuranceSumInsured2_3", fieldValue); |
|
|
|
case "4_1_sum3_1" -> commonField.getOthers().put("insuranceSumInsured3_1", fieldValue); |
|
|
|
case "4_1_sum3_2" -> commonField.getOthers().put("insuranceSumInsured3_2", fieldValue); |
|
|
|
case "4_1_sum3_3" -> commonField.getOthers().put("insuranceSumInsured3_3", fieldValue); |
|
|
|
case "ch4_1_life" -> { |
|
|
|
if(acroForm.getField("4_1_sum1") != null && acroForm.getField("4_1_sum1").getValueAsString() != null ){ |
|
|
|
if("Off".equals(fieldValue) && !acroForm.getField("4_1_sum1").getValueAsString().isBlank()) |
|
|
|
|