Package com.ufis_as.ek_if.macs.entities

Examples of com.ufis_as.ek_if.macs.entities.EntDbLoadPaxSummary


   
    return loa;
  }
 
  private EntDbLoadPaxSummary getLoadSummaryBasic(EntDbFlightIdMapping entDbFlightIdMapping, List<?> rawDataList){
    EntDbLoadPaxSummary loa = new EntDbLoadPaxSummary();
   


   
   
    // set main ufis flightId
//    String mainFLightId = dlFlightIdMappingBean.getUfisFlightId(intFlid);
//    mainFLightId = mainFLightId.trim();
   
    // get ADID of main flight

    Character adid =' ';
    if (entDbFlightIdMapping != null){
    adid = entDbFlightIdMapping.getArrDepFlag();
    loa.setInterfaceFltId(new BigDecimal(entDbFlightIdMapping.getIntFltId()));
    }
   
    if ("A".equalsIgnoreCase(String.valueOf(adid))){
      loa.setIdArrFlight(entDbFlightIdMapping.getIdFlight());
    }else if ("D".equalsIgnoreCase(String.valueOf(adid)) || "B".equalsIgnoreCase(String.valueOf(adid))){
      loa.setIdDepFlight(entDbFlightIdMapping.getIdFlight());
    }
   
    if (rawDataList != null && rawDataList.size() > 0 && rawDataList.get(0) instanceof EntDbLoadPaxConn ){
      EntDbLoadPaxConn entDbPaxConn = (EntDbLoadPaxConn)rawDataList.get(0);
     
      loa.setInterfaceFltId(new BigDecimal(entDbPaxConn.getInterfaceConxFltid()));
      // get string flight schedule date time
      String strFlightScheduleDateTime = " ";
      Date flightScheduleDateTime = entDbPaxConn.getConxFltDate();
      DateFormat df = new SimpleDateFormat("yyyymmddhhMMss");
      if (flightScheduleDateTime != null){
        strFlightScheduleDateTime = df.format(flightScheduleDateTime);
      }
     
      // set link flightID
      int linkFlightId = 0;
      linkFlightId = entDbPaxConn.getIdFlight();
      if ("A".equalsIgnoreCase(String.valueOf(adid))){
//        linkFlightId = dlAfttabBean.getUrnoFoDepFlight(entDbPaxConn.getAirlineCode(), entDbPaxConn.getFlightNumber().trim(), entDbPaxConn.getFlightNumberSuffice(), strFlightScheduleDateTime);     
        if (linkFlightId != 0){
          loa.setIdDepFlight(new BigDecimal(linkFlightId));
        }else{
//          loa.setIdDepFlight(" ");
        }
      }else if ("D".equalsIgnoreCase(String.valueOf(adid)) || "B".equalsIgnoreCase(String.valueOf(adid))){
//        linkFlightId = dlAfttabBean.getUrnoFoArrFlight(entDbPaxConn.getAirlineCode(), entDbPaxConn.getFlightNumber().trim(), entDbPaxConn.getFlightNumberSuffice(), strFlightScheduleDateTime);
        if (linkFlightId != 0){
          loa.setIdArrFlight(new BigDecimal(linkFlightId));
        }else{
//          loa.setIdArrFlight(" ");
        }
      }
     
      // set pax connection type
      loa.setConxType(entDbPaxConn.getConnType());
     
     
      }
    else{
//      // set default value and avoid showing null in database
View Full Code Here


        // Get raw passenger information from database
//        List<EntDbLoadPaxConn> rawPaxConnList = dlPaxConBean.getPaxConnListByIntflidAndFlightnumberX(intIdFlight, airlineCode, flightNumber, flightNumberSuffice, scheduledFlightDatetime);
       
        if (rawPaxConnList != null){
          // set basic
          EntDbLoadPaxSummary loa = getLoadSummaryBasic(entDbFlightIdMapping, rawPaxConnList);
          // set transfer
          loaList.add(setLoadSummaryResult((EntDbLoadPaxSummary)SerializationUtils.clone(loa),"TXF",rawPaxConnList));
         
        }else{
          LOG.debug("rawPaxConnList is null");
View Full Code Here

TOP

Related Classes of com.ufis_as.ek_if.macs.entities.EntDbLoadPaxSummary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.