//For all SubTypes including LOA insert/update to table
private void processUldSummary(BigDecimal idFlightDecimal, BigDecimal conxIdFlight, String infoType)
throws ParseException {
//BigDecimal idConxFlight = (new BigDecimal(0).compareTo(conxIdFlight) == 0)? null : conxIdFlight;
EntDbLoadUldSummary loadUldSum = clsDlLoadUldSummaryBean.getUldMoveByIdFlightUldNum(idFlightDecimal, conxIdFlight, infoType);
//EntDbLoadUldSummary loadUldSum = null;
if(loadUldSum == null){//not Existing?
loadUldSum = new EntDbLoadUldSummary();
loadUldSum.setCreatedDate(HpUfisCalendar.getCurrentUTCTime());
loadUldSum.setCreatedUser(HpEKConstants.LOAD_SUMMARY);
}else{
loadUldSum.setUpdatedDate(HpUfisCalendar.getCurrentUTCTime());
loadUldSum.setUpdatedUser(HpEKConstants.LOAD_SUMMARY);
}
UfisUldSummaryConfig uldSumObj = INFO_TYPE.LOA.name().equalsIgnoreCase(infoType) ? entuldLOA : entUld;
loadUldSum.setIdFlight(idFlightDecimal);
loadUldSum.setIdConxFlight(conxIdFlight);
loadUldSum.setUldWeight(uldSumObj.getUld_weight());
loadUldSum.setUldPcs(uldSumObj.getUld_pcs());
loadUldSum.setCargoUldPcs(uldSumObj.getCargo_pcs());
loadUldSum.setCargoUldWt(uldSumObj.getCargo_weight());
loadUldSum.setBagUldPcs(uldSumObj.getBag_pcs());
loadUldSum.setBagUldWt(uldSumObj.getBag_weight());
loadUldSum.setBulkWeight(uldSumObj.getBulk_weight());
loadUldSum.setBulkPcs(uldSumObj.getBulk_pcs());
loadUldSum.setBulkBagUldPcs(uldSumObj.getBulkBag_pcs());
loadUldSum.setBulkBagUldWt(uldSumObj.getBulkBag_weight());
loadUldSum.setBulkCargoUldWt(uldSumObj.getBulkCargo_weight());
loadUldSum.setBulkCargoUldPcs(uldSumObj.getBulkCargo_pcs());
loadUldSum.setPalletUldWt(uldSumObj.getPallet_weight());
loadUldSum.setPalletUldPcs(uldSumObj.getPallet_pcs());
loadUldSum.setRecStatus(" ");
loadUldSum.setInfoType(infoType);
loadUldSum.setDataSource(HpEKConstants.SYS_SOURCE);
clsDlLoadUldSummaryBean.merge(loadUldSum);
}