public ScText newApplicableItemCountText(String label) { ScText e; e = new ScText(); e.setValue(getApplicableItemCountAdaptor()); e.setLabel(label); return e; }
public ScText newGpsReportDataIdText(String label) { ScText e; e = new ScText(); e.setValue(getGpsReportDataIdAdaptor()); e.setLabel(label); return e; }
public ScText newDepartureLocalTmText(String label) { ScText e; e = new ScText(); e.setValue(getDepartureLocalTmAdaptor()); e.setLabel(label); return e; }
public ScText newArrivalLocalTmText(String label) { ScText e; e = new ScText(); e.setValue(getArrivalLocalTmAdaptor()); e.setLabel(label); return e; }
public ScText newDestinationAirportCodeText(String label) { ScText e; e = new ScText(); e.setValue(getDestinationAirportCodeAdaptor()); e.setLabel(label); return e; }
public ScText newPostNameText(String label) { ScText e; e = new ScText(); e.setValue(getPostNameAdaptor()); e.setLabel(label); return e; }
public ScText newExpectedDeliverLocalTsText(String label) { ScText e; e = new ScText(); e.setValue(getExpectedDeliverLocalTsAdaptor()); e.setLabel(label); return e; }
public ScText newCarrierCodeNumberDisplayLabelText(String label) { ScText e; e = new ScText(); e.setValue(getCarrierCodeNumberDisplayLabelAdaptor()); e.setLabel(label); return e; }
public ScText newNumberText(String label) { ScText e; e = new ScText(); e.setValue(getNumberAdaptor()); e.setLabel(label); return e; }
public ScText newOperatorText(String label) { ScText e; e = new ScText(); e.setValue(getOperatorAdaptor()); e.setLabel(label); return e; }
public ScText newResultEffectiveLocalTsText(String label) { ScText e; e = new ScText(); e.setValue(getResultEffectiveLocalTsAdaptor()); e.setLabel(label); return e; }
public ScText newCarrierCodeText(String label) { ScText e; e = new ScText(); e.setValue(getCarrierCodeAdaptor()); e.setLabel(label); return e; }
public ScText newIdText(String label) { ScText e; e = new ScText(); e.setValue(getIdAdaptor()); e.setLabel(label); return e; }
public ScText newEffectiveUtcTsText(String label) { ScText e; e = new ScText(); e.setValue(getEffectiveUtcTsAdaptor()); e.setLabel(label); return e; }
public ScText newCreatedUtcTsText(String label) { ScText e; e = new ScText(); e.setValue(getCreatedUtcTsAdaptor()); e.setLabel(label); return e; }
public ScText newResultAirportCodeText(String label) { ScText e; e = new ScText(); e.setValue(getResultAirportCodeAdaptor()); e.setLabel(label); return e; }
public ScControl createRoot() { _missing = new ScText(); _missing.setValue("Skeleton Route no longer exists."); _missing.setHtmlClass(BLUE_TITLE_CLASS); _missing.setBoldAndNoWrap(); _blockText = new ScText(); _blockText.setLabel("Block"); _blockText.setHtmlClass(BLUE_TITLE_CLASS); _details = new ScContainer(); _details.useVerticalLayout(); _details.add(_blockText); _details.addTextBold("Route"); _details.add(createRouteGroup()); _details.addTextBold("Flights"); _details.add(createFlightGrid()); _details.addButton(newAddLegCommand(), "Add Leg"); _details.addSpace(); _details.addTextBold("Offers"); _details.add(createOffersGrid()); _details.addButton(newAddOfferCommand(), "Add Offer"); _form = new ScForm(); _form.useCollapsibleRowLayout(); _form.add(_missing); _form.add(_details); return _form; }
public ScText newCompleteItemCountText(String label) { ScText e; e = new ScText(); e.setValue(getCompleteItemCountAdaptor()); e.setLabel(label); return e; }
private ScContainer createFields() { _originAirport = new ScText(); _originAirport.setLabel("Origin"); _originAirport.setBoldAndNoWrap(); _destinationAirport = new ScText(); _destinationAirport.setLabel("Destination"); _destinationAirport.setBoldAndNoWrap(); _departureLocalTm = new ScTimestampText(); _departureLocalTm.setTimeZoneUtility(AcTimeZoneUtility.instance); _departureLocalTm.setLabel("Departure"); _departureLocalTm.beShowOnlyTimeHideSuffix(); _departureLocalTm.setBoldAndNoWrap(); _arrivalLocalTm = new ScTimestampText(); _arrivalLocalTm.setTimeZoneUtility(AcTimeZoneUtility.instance); _arrivalLocalTm.setLabel("Arrival"); _arrivalLocalTm.beShowOnlyTimeHideSuffix(); _arrivalLocalTm.setBoldAndNoWrap(); ScContainer c = new ScContainer(); c.useFieldLayout(); c.add(_originAirport); c.add(_destinationAirport); c.add(_departureLocalTm); c.add(_arrivalLocalTm); return c; }
public ScText newSequenceText(String label) { ScText e; e = new ScText(); e.setValue(getSequenceAdaptor()); e.setLabel(label); return e; }
public void preRender() { AcUspsInternationalSkeletonRouteVo vo = getDetails(); boolean exists = vo.hasRoute(); _missing.setVisible(!exists); _details.setVisible(exists); _blockText.setValue(getBlockDisplayLabel()); if (exists) { _route.applyModel(vo.getRoute()); _flightGrid.setList(vo.getLegs()); _offerGrid.setList(vo.getOffers()); } }
private ScControl createFields() { AcUspsInternationalSkeletonRouteLegTools x = AcUspsInternationalSkeletonRouteLegTools.instance; _blockText = new ScText(); _blockText.setLabel("Block"); _blockText.setLabelBold(true); _blockText.setBold(); _contractNumber = new ScDropdownField(); _contractNumber.setLabel("Contract Number"); _contractNumber.setDefaultFocus(); _legNumber = x.newLegNumberField("Leg"); _departDayOffset = x.newRouteDepartureDayOffsetField("Route Depart Day Offset"); _listingCarrier = new ScDropdownField(); _listingCarrier.setLabel("Listing Carrier"); _listingFlightNumber = x.newFlightNumberField("Listing Flight Number"); _operatorCarrier = new ScDropdownField(); _operatorCarrier.setLabel("Operator Carrier"); _operatorFlightNumber = x.newFlightNumberField("Operator Flight Number"); _origin = x.newAirportDropdownField("Origin"); _destination = x.newAirportDropdownField("Destination"); _depart = x.newDepartureLocalTmField("Depart"); _arrive = x.newArrivalLocalTmField("Arrive"); _arriveDayOffset = x.newFlightArrivalDayOffsetField("Arrive Day Offset"); _stopCount = x.newStopCountField("Stops"); _daysCheckboxGroup = new ScDayFrequencyCheckboxGroup(); _daysCheckboxGroup.setLabel("Frequency"); _equipment = x.newEquipmentDropdownField("Equipment"); ScContainer c = new ScContainer(); c.useFieldLayout(); c.add(_blockText); c.add(_contractNumber); c.add(_legNumber); c.add(_departDayOffset); c.add(_listingCarrier); c.add(_listingFlightNumber); c.add(_operatorCarrier); c.add(_operatorFlightNumber); c.add(_origin); c.add(_destination); c.add(_depart); c.add(_arrive); c.add(_arriveDayOffset); c.add(_stopCount); c.add(_daysCheckboxGroup); c.add(_equipment); return c; }
private ScContainer createTitleContainer() { AcGlobalUspsInternationalSubmissionBlockTools x = AcGlobalUspsInternationalSubmissionBlockTools.instance; _blockTitle = x.newDisplayLabelText(); _blockTitle.setHtmlClass(BLUE_TITLE_CLASS); _dateStart = new ScTimestampText(); _dateStart.setTimeZoneUtility(AcTimeZoneUtility.instance); _dateStart.beShowOnlyDateHideSuffix(); _dateStart.setHtmlClass(BLUE_TITLE_CLASS); _dateEnd = new ScTimestampText(); _dateEnd.setTimeZoneUtility(AcTimeZoneUtility.instance); _dateEnd.beShowOnlyDateHideSuffix(); _dateEnd.setHtmlClass(BLUE_TITLE_CLASS); _dateTitle = new ScContainer(); _dateTitle.add(_dateStart); _dateTitle.addText(" - ").setHtmlClass(BLUE_TITLE_CLASS); _dateTitle.add(_dateEnd); ScContainer c = new ScContainer(); c.add(_blockTitle); c.add(_dateTitle); return c; }
public void preRender() { JwList<AcAirport> airports = getInternationalAirports(); JwList<AcCarrier> carriers = getCarriers(); JwList<AcEquipment> equipment = getInternationalEquipment(); JwList<AcUspsInternationalContract> contracts = getInternationalUspsInternationalContracts(); _origin.clearOptions(); _origin.addSelectOption(); _origin.addOptions(airports); _destination.clearOptions(); _destination.addSelectOption(); _destination.addOptions(airports); _equipment.clearOptions(); _equipment.addSelectOption(); _equipment.addOptions(equipment); AcUspsInternationalContractTools c = AcUspsInternationalContractTools.instance; _contractNumber.clearOptions(); _contractNumber.addSelectOption(); _contractNumber.addOptions(contracts, c.getNumberAdaptor(), c.getNumberAdaptor()); AcCarrierTools x = AcCarrierTools.instance; _listingCarrier.clearOptions(); _listingCarrier.addSelectOption(); _listingCarrier.addOptions(carriers, x.getCodeAdaptor(), x.getDisplayLabelAdaptor()); _operatorCarrier.clearOptions(); _operatorCarrier.addSelectOption(); _operatorCarrier.addOptions(carriers, x.getCodeAdaptor(), x.getDisplayLabelAdaptor()); _blockText.setValue(getBlockDisplayLabel()); }
public void preRender() { super.preRender(); AcPageSession ps = getPageSession(); Integer i = ps.getInternationalNominatedRouteSummaryDuration(); _duration.setValue("For the Past " + i + " Hour(s)"); }
protected ScContainer createTitleContainer() { _duration = new ScText(); _duration.setHtmlClass(BLUE_TITLE_CLASS); ScContainer c = super.createTitleContainer(); c.addBreak(); c.add(_duration); return c; }
@Override protected void createEquipmentCodeField() { AcUspsDomesticAcceptanceReportWorkshareContainerTools x = AcUspsDomesticAcceptanceReportWorkshareContainerTools.instance; String label = "Aircraft"; if (isAircraftEditable()) { _equipmentDropdown = new ScDropdownField(); _equipmentDropdown.setLabel(label); _details.add(_equipmentDropdown); } else { _equipment = new ScText(); _equipment.setLabel(label); _equipment.setValue(x.getEquipmentCodeAdaptor()); _equipment.setBold(); _details.add(_equipment); } }
public void preRender() { AcUspsDomesticSkeletonRouteVo vo = getDetails(); boolean exists = vo.hasRoute(); _missing.setVisible(!exists); _container.setVisible(exists); if (exists) { _flightGrid.setList(vo.getLegs()); _offerGrid.setList(vo.getOffers()); } }
public void preRender() { AcPageSession ps = getPageSession(); JwDate startUtcDt = ps.getInternationalRouteBlockStartUtcDt(); JwDate endUtcDt = ps.getInternationalRouteBlockEndUtcDt(); AcGlobalUspsInternationalSubmissionBlock block = getBlock(startUtcDt, endUtcDt); Integer sourceId = ps.getInternationalRequestedRouteSourceId(); String originAirport = ps.getInternationalRequestedRouteDetailsOriginAirportCode(); String destinationAirport = ps.getInternationalRequestedRouteDetailsDestinationAirportCode(); JwTime departureLocalTm = ps.getInternationalRequestedRouteDetailsDepartureLocalTm(); JwTimestamp departureLocalTs = new JwTimestamp(); departureLocalTs.setTime(departureLocalTm); JwTime arrivalLocalTm = ps.getInternationalRequestedRouteDetailsArrivalLocalTm(); JwTimestamp arrivalLocalTs = new JwTimestamp(); arrivalLocalTs.setTime(arrivalLocalTm); JwList<AcUspsInternationalRequestedRoute> v = getInternationalRequestedRoutes( sourceId, startUtcDt, endUtcDt, originAirport, destinationAirport, departureLocalTm, arrivalLocalTm); boolean hasBlock = block != null; _blockTitle.setVisible(hasBlock); _blockTitle.applyModel(block); _dateTitle.setVisible(!hasBlock); _dateStart.setValue(startUtcDt); _dateEnd.setValue(endUtcDt); _originAirport.setValue(originAirport); _destinationAirport.setValue(destinationAirport); _departureLocalTm.setValue(departureLocalTs); _arrivalLocalTm.setValue(arrivalLocalTs); _grid.setList(v); }
public void preRender() { AcModuleConfig e = getModuleConfig(); _name.applyModel(e); _module.applyModel(e); _createdBy.applyModel(e); }