Package com.ufis_as.ufisapp.lib.time

Examples of com.ufis_as.ufisapp.lib.time.HpUfisCalendar.DateAdd()


          entDbAfttab.setFlut(scheduleDateTime.getCedaDateString());
          // combine with the time part
          if (HpUfisUtils.isNotEmptyStr(flightData.getOperationTimeGmt())){
                int hour=Integer.parseInt(flightData.getOperationTimeGmt().substring(0, 2));
                int min=Integer.parseInt(flightData.getOperationTimeGmt().substring(2, 4));
                scheduleDateTime.DateAdd(hour, EnumTimeInterval.Hours);
                scheduleDateTime.DateAdd(min, EnumTimeInterval.Minutes);
            }
        }
     
      // flight info
View Full Code Here


          // combine with the time part
          if (HpUfisUtils.isNotEmptyStr(flightData.getOperationTimeGmt())){
                int hour=Integer.parseInt(flightData.getOperationTimeGmt().substring(0, 2));
                int min=Integer.parseInt(flightData.getOperationTimeGmt().substring(2, 4));
                scheduleDateTime.DateAdd(hour, EnumTimeInterval.Hours);
                scheduleDateTime.DateAdd(min, EnumTimeInterval.Minutes);
            }
        }
     
      // flight info
        entDbAfttab.setFltn(HpUfisUtils.formatCedaFltn(flightData.getFlightNumber()));
View Full Code Here

    HpUfisCalendar endDate = new HpUfisCalendar();
    startDate.setTimeZone(HpEKConstants.utcTz);
    endDate.setTimeZone(HpEKConstants.utcTz);

    startDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertFromOffset(), EnumTimeInterval.Hours);
    endDate.DateAdd(HpPaxAlertTimeRangeConfig.getPaxAlertToOffset(), EnumTimeInterval.Hours);
    LOG.debug("Timer FromOffset : <{}>  ToOffset : <{}>", startDate.getCedaString(), endDate.getCedaString());
      try{
        Query query = _em.createNamedQuery("EntDbLoadPaxSummary.findByTimeRange");
        query.setParameter("starDate", startDate.getTime());
        query.setParameter("endDate", endDate.getTime());
View Full Code Here

            min = Integer.parseInt(paxDetails.getCHECKINTIME()
                .substring(2, 4));
          } catch (Exception e) {
            LOG.info("PaxDetails message Checking Time parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setCheckInDateTime(ufisCalendar.getTime());
      }
View Full Code Here

                .substring(2, 4));
          } catch (Exception e) {
            LOG.info("PaxDetails message Checking Time parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setCheckInDateTime(ufisCalendar.getTime());
      }

      // // set scan date time
View Full Code Here

//            LOG.debug("search tdi1 from apttab table, apc3 {} , takes {}",paxDetails.getCHECKINCITY(), System.currentTimeMillis() - startTIme);
           
          } catch (Exception e) {
            LOG.info("PaxDetails message Scanned Time parse erro, {}" ,e);
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setScanDateTime(ufisCalendar.getTime());
      }
View Full Code Here

           
          } catch (Exception e) {
            LOG.info("PaxDetails message Scanned Time parse erro, {}" ,e);
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setScanDateTime(ufisCalendar.getTime());
      }

      // set date of birth
View Full Code Here

//            LOG.debug("search tdi1 from apttab table, apc3 {} , takes {}",paxDetails.getCHECKINCITY(), System.currentTimeMillis() - startTIme);
           
          } catch (Exception e) {
            LOG.info("PaxDetails message Boarding Time parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setBoardingDateTime(ufisCalendar.getTime());
      }
View Full Code Here

           
          } catch (Exception e) {
            LOG.info("PaxDetails message Boarding Time parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);
        }
        edpiod.setBoardingDateTime(ufisCalendar.getTime());
      }

      // added by 2013.10.01 according to the new design document
View Full Code Here

            min = Integer.parseInt(inbDetails.getOperationTime()
                .substring(2, 4));
          } catch (Exception e) {
            LOG.info("Inbound message OperationTime parse erro");
          }
          ufisCalendar.DateAdd(hour, EnumTimeInterval.Hours);
          ufisCalendar.DateAdd(min, EnumTimeInterval.Minutes);

        }
        edpiod.setConxFltDate(ufisCalendar.getTime());
      } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.