Class CreateOrEditModificationController
java.lang.Object
org.zkoss.zk.ui.event.GenericEventListener
org.zkoss.zk.ui.util.GenericComposer<T>
org.zkoss.zk.ui.util.GenericAutowireComposer<T>
org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
com.hybris.cockpitng.util.ViewAnnotationAwareComposer
com.hybris.cockpitng.util.DefaultWidgetController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditModificationConditionController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditModificationController
- All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController,com.hybris.cockpitng.dnd.WidgetDragAndDropAware,com.hybris.cockpitng.engine.WidgetInstanceManagerAware,Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
This controller will handle events for creating and editing Modification
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final DateFormatprotected static final Stringprotected static final intprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final Map<String,ModificationConditionData> protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final Map<String,ModificationConditionData> protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final org.zkoss.zul.ListModelList<ComboBoxData>Fields inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditModificationConditionController
ACCOMPANYING_PASSENGER_EXACT_MATCH_NAME, ACCOMPANYING_PASSENGER_GRID_NAME, ACCOMPANYING_PASSENGER_NAME, addImageIconWithPath, ADV_RES_PERIOD_WEEK, ADV_RES_UNIT, ADVANCE_PURCHASE_RESERVATION_INPUT_NAME, advResPeriodWeekComboBoxDataList, advResUnitComboBoxDataList, AGE_GRID_NAME, AGE_MAX_NAME, AGE_MIN_NAME, BLACKOUT_DATES_FROM_NAME, BLACKOUT_DATES_TO_NAME, BOOKING_PERIOD_END_DATE_NAME, BOOKING_PERIOD_END_HOURS_NAME, BOOKING_PERIOD_END_MINUTES_NAME, BOOKING_PERIOD_START_DATE_NAME, BOOKING_PERIOD_START_HOURS_NAME, BOOKING_PERIOD_START_MINUTES_NAME, cabinComboBoxDataList, CARRIER_GDS_NAME, CODE_TYPE, codeTypeComboBoxDataList, commonI18NService, conditionDiv, conditionList, COUNTRY_OF_CITIZENSHIP_NAME, COUNTRY_OF_RESIDENCE_NAME, CUSTOMER_INDEX_SCORE_MAX_NAME, CUSTOMER_INDEX_SCORE_MIN_NAME, deleteImageIconWithPath, DEPARTURE_PERIOD, DEPARTURE_PERIOD_OFFSET_NAME, DEPARTURE_PERIODD_DAYS_AHEAD_NAME, DISPLAY_LOCATION_NAME, DISPLAY_LOCATION_NO, DISPLAY_LOCATION_YES, DISTRIBUTION_SUB_TYPE_NAME, DISTRIBUTION_TYPE, DISTRIBUTION_TYPE_AIRLINE_INDIRECT, distributionTypeComboBoxDataList, droppableConditionDiv, DUTY_OR_FUNCTION_CODE_NAME, editImageIconWithPath, EQUIPMENT_TYPE_NAME, EXACT_MATCH_NO, EXACT_MATHCH_YES, FARE_BASIS_CODE_NAME, FARE_BRANDS_NAME, FARE_BUCKET_NAME, FARE_CATEGORY, FARE_CLASS_CARRIER_NAME, FARE_RULE_NAME, FARE_TARIFF_TYPE, FARE_TYPE_CODE, fareCategoryComboBoxDataList, fareTariffTypeComboBoxDataList, fareTypeComboBoxDataList, FIRST_PASSENGER_OCCURRENCE_NAME, FLIGHT_BOTH_DIRECTION_NAME, FLIGHT_DESTINATION_AIRPORT_NAME, FLIGHT_DESTINATION_CITY_NAME, FLIGHT_DURATION_MAX_NAME, FLIGHT_DURATION_MIN_NAME, FLIGHT_ORIGIN_AIRPORT_NAME, FLIGHT_ORIGIN_CITY_NAME, FLIGHT_TYPE, flightTypeComboBoxDataList, FREQUENT_FLYER_CODE_NAME, FREQUENT_FLYER_GRID_NAME, FREQUENT_FLYER_TIER_NAME, GEO_LOCATION_NAME, LAST_PASSENGER_OCCURRENCE_NAME, LENGTH_OF_STAY_NAME, LENGTH_OF_STAY_SEPARATOR, LOCATION_TYPE_AIRPORT, LOCATION_TYPE_CITY, OCCURRENCE_MAX_NAME, OCCURRENCE_MIN_NAME, OFFER_RESPONSIBLE_AIRLINE_NAME, OPERATING_MARKETING, operatingMarketingComboBoxDataList, PASSENGER_EXACT_MATCH_NAME, PASSENGER_NAME, PASSENGER_RANGE_GRID_NAME, PASSENGER_RANGE_MAX_NAME, PASSENGER_RANGE_MIN_NAME, PASSENGER_RANGE_NAME, PERIOD_TYPE_NAME, POINT_OFSALE_CODE_NAME, RBDCARRIER_NAME, RBDS_NAME, SALES_DATES_FROM_NAME, SALES_DATES_TO_NAME, SEAT_CHARACTERISTICS_NAME, SEAT_COLUMNS_NAME, SEAT_ROW_SEPARATOR, SEAT_ROWS_NAME, STATUS_NAME_NAME, TICKET_DESIGNATOR_NAME, TIME_BEFORE_DEPARTURE_D, TIME_BEFORE_DEPARTURE_H, TIME_BEFORE_DEPARTURE_HOURS_DAYS_NAME, TIME_BEFORE_DEPARTURE_MAX_NAME, TIME_BEFORE_DEPARTURE_MIN_NAME, transportFacilityService, TRAVEL_AGENCY_NAME, TRAVEL_AGENCY_NO, TRAVEL_AGENCY_YES, TRAVEL_PERIOD, TRAVEL_PERIOD_FROM_NAME, TRAVEL_PERIOD_TO_NAME, TRAVEL_PREFERENCE_RULE_BOOKING_PERIOD_NAME, travelLocationService, travelProviderService, unifiedUiAircraftInfoServiceFields inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
COMMA_SEPARATOR, JUST_MESSAGEFields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScopeFields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method will create event listener on add baggage type button to add baggage typeprotected voidaddNewBaggageTypeRow(org.zkoss.zul.Rows baggageTypeRows, org.zkoss.zul.Grid baggageTypeGrid, FreeBaggageType freeBaggageType) This method will add baggage type row to baggage type gridvoidprotected org.zkoss.zul.RowconstructServiceRow(AncillaryProduct ancillaryProduct) This method constructs the rowprotected voidcreateAddBaggageTypeGridColumns(org.zkoss.zul.Grid baggageTypeGrid) This method will create columns for baggageTypeGridprotected voidcreateCondition(String ruleCondition) This method will create modification conditionprotected voidcreateModification(ModificationData modificationData) This method will call modification service to create modification and will handle exceptionvoidcreateOrEditModificationRequest(ModificationData modification) protected voidcreateUpgradeCabinCondition(String name, ModificationConditionData condition) This method will create Upgrade Cabin Conditionprotected voidcreateUpgradeRBDCondition(String name, RBDsMapping rbDsMapping) This method will create Upgrade RBD Conditionprotected voidGets the ancillary product list.protected voidgetAncillaryProducts(Integer page) This method will get ancillary from prosprotected List<ServiceKey>getServiceKeysFromPros(String serviceTypeCode, List<String> carriersList) This method will call get service keys from prosprotected StringgetTemporaryModificationUniqueID(ModificationConditionData modificationConditionData) This method will create temporary unique identification for each modification conditionprotected TravelProviderModelFinds a travel provider by code.protected voidThis method will show and hide different price component based on selection of fixed and dynamic radio boxprotected voidThis method will hide and show service price or baggage component element based on selecting condition typevoidinitialize(org.zkoss.zk.ui.Component comp) protected voidThis method will initialize condition popupprotected voidThis method will construct list view in popupprotected voidThis method will initialize popupprotected voidpopulateBaggageType(ModificationConditionData conditionData) This method will populate baggage type from baggage type grid and will assign it to modification conditionprotected org.zkoss.zul.RowpopulateConditionRow(ModificationConditionData modificationConditionData, String editImageIconWithPath, String deleteImageIconWithPath) This method populate the rowprotected ModificationConditionDatapopulateConditionRule(ModificationConditionData conditionData) This method will used for populating all condition dataprotected voidThis method will populate condition data widgetprotected ModificationConditionDataThis method will populate condition dataprotected voidpopulateModificationConditionToPopup(ModificationConditionData modificationConditionData) This method will populate condition data to poupprotected voidpopulateModificationConditionToWidget(ModificationData modification) This method will populate all modification propertiesprotected ModificationDataThis method will populate modification dataprotected voidpopulateModificationDataToWidget(ModificationData modification) This method will populate modification data to widgetprotected voidpopulateModificationPropertiesToWidget(ModificationData modification) This method will populate all modification condition propertiesprotected voidThis method will initialize as well as update search filterprotected org.zkoss.zul.RowpopulateServiceRow(AncillaryProduct ancillaryProduct, String deleteImageIconWithPath) This method populate the rowprotected org.zkoss.zul.RowpopulateServiceRowInPopup(AncillaryProduct ancillaryProduct) This method populate the rowprotected ModificationConditionDatapopulateUpgradeCabinCondition(org.zkoss.zul.Groupbox groupbox, ModificationConditionData conditionData) This method will populate Upgrade Cabin Conditionprotected ModificationConditionDatapopulateUpgradeRBDCondition(org.zkoss.zul.Groupbox groupbox, ModificationConditionData conditionData) This method will populate Upgrade RBD Conditionvoidrefresh()protected voidremoevModificationConditionInPros(String modificationConditionId) This method will call modification condition service to remove modification conditionprotected voidthis method will remove rows from serviceListGrid popupprotected voidThis method will reset all condition popup element on click of cancel and saved conditionvoidsave()protected booleanThis method will populate modification condition data from widgetprotected voidsaveModificationToPros(ModificationConditionData conditionData) This method will call modification condition service to create conditionvoidsearch()protected voidupdateModification(ModificationData modificationData) This method will call modification service to update modification to prosprotected voidupdateModificationToPros(ModificationConditionData conditionData) This method will call modification condition service to create conditionprotected booleanThis method will validate mandetory attributes on condition popupprotected booleanThis method will validate mandetory attributesMethods inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditModificationConditionController
checkConditionMultipleDropRestriction, createAccompanyingPassengerGridColumns, createaddAccompanyingPassengerRow, createAgeGridColumns, createAgeRow, createCellForAccompanyingPassengers, createCellForAge, createCellForFrequentFlyer, createCellForPassengerRange, createComboBoxList, createConditionLayout, createConditionRemoveButton, createDistributionChannelCondition, createFareBrandsCondition, createFareBucketCondition, createFareCategoryCondition, createFareClassCondition, createFareRuleCondition, createFareTariffCondition, createFlightCabinsCondition, createFlightCondition, createFlightDurationCondition, createFlightEquipmentTypeCondition, createFlightRBDCondition, createFrequentFlyerGridColumns, createFrequentFlyerRow, createPassengerCondition, createPassengerCountryOfCitizenshipCondition, createPassengerCountryOfResidenceCondition, createPassengerCustomerIndexScoreCondition, createPassengerFirstPassengerOccurrenceCondition, createPassengerLastPassengerOccurrenceCondition, createPassengerRangeGridColumns, createPassengerRangeRow, createSeatCharacteristicsCondition, createSeatRowsColumnsCondition, createTicketDesignatorCondition, createtravelPreferenceAdvancePurchaseReservationCondition, createTravelPreferenceBlackoutDatesCondition, createTravelPreferenceBookingPeriodCondition, createTravelPreferenceLengthOfStayCondition, createTravelPreferencePeriodTypeTravelPeriodCondition, createTravelPreferencePointOfSaleCondition, createTravelPreferenceSalesDatesCondition, createTravelPreferenceTimeBeforeDepartureCondition, createWeekComboBox, departurePeriodDesign, designDistributionChannel, getCellChildren, getLengthOfStayListObjects, getRowListObjects, populateDistributionChannelCondition, populateFareBrandsCondition, populateFareBucketCondition, populateFareCategoryCondition, populateFareClassCondition, populateFareRuleCondition, populateFareTariffCondition, populateFlightCabinsCondition, populateFlightCondition, populateFlightDurationCondition, populateFlightEquipmentTypeCondition, populateFlightRBDCondition, populatePassengerCondition, populatePassengerCountryOfCitizenshipCondition, populatePassengerCountryOfResidenceCondition, populatePassengerCustomerIndexScoreCondition, populatePassengerFirstPassengerOccurrenceCondition, populatePassengerLastPassengerOccurrenceCondition, populateSeatCharacteristicsCondition, populateSeatRowsColumnsCondition, populateTicketDesignatorCondition, populatetravelPreferenceAdvancePurchaseReservationCondition, populateTravelPreferenceBlackoutDatesCondition, populateTravelPreferenceBookingPeriodCondition, populateTravelPreferenceLengthOfStayCondition, populateTravelPreferencePeriodTypeTravelPeriodCondition, populateTravelPreferencePointOfSaleCondition, populateTravelPreferenceSalesDatesCondition, populateTravelPreferenceTimeBeforeDepartureCondition, travelPeriodDesignMethods inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
createButton, createButton, createCell, createColumn, createCombobox, createComboBoxData, createDateBox, createDiv, createDoubleBox, createEditor, createGrid, createIntBox, createLabel, createTextBox, getCommaSeparateString, getNameValueMap, mseDistributionRuleCheck, parseDateInStringToDate, populateCombobox, selectComboBoxItem, tmcDistributionRuleCheck, updateHtmlBasedComponentMethods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitleMethods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListenersMethods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivateMethods inherited from class org.zkoss.zk.ui.util.GenericComposer
doCatch, doFinallyMethods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
DATE_FORMAT
- See Also:
-
dateFormat
-
IN_SOCKET_CREATE_OR_EDIT_MODIFICATION
- See Also:
-
OUT_SOCKET_ID_GET_MODIFICATION_LIST_REQUEST
- See Also:
-
OUT_SOCKET_DATA_GET_MODIFICATION_LIST_REQUEST
- See Also:
-
DELETE_IMAGE_ICON
- See Also:
-
EDIT_IMAGE_ICON
- See Also:
-
EDIT_ICON_CLASS
- See Also:
-
ADD_IMAGE_ICON
- See Also:
-
COMMA_SEPARATED_REGEX
- See Also:
-
DEFAULT_CURRENCY_ISOCODE
- See Also:
-
FLIGHT_RBD_CONDITION
- See Also:
-
FLIGHT_CABINS_CONDITION
- See Also:
-
FLIGHT_EQUIPMENT_TYPE_CONDITION
- See Also:
-
FLIGHT_DURATION_CONDITION
- See Also:
-
FLIGHT_CONDITION
- See Also:
-
SEAT_CHARACTERISTICS_CONDITION
- See Also:
-
SEAT_ROWS_COLUMNS_CONDITION
- See Also:
-
DISTRIBUTION_DISTRIBUTION_CHANNEL_CONDITION
- See Also:
-
FARE_BRANDS_CONDITION
- See Also:
-
FARE_FARE_BUCKET_CONDITION
- See Also:
-
FARE_FARE_RULE_CONDITION
- See Also:
-
FARE_FARE_CATEGORY_CONDITION
- See Also:
-
FARE_FARE_TARIFF_CONDITION
- See Also:
-
FARE_TICKET_DESIGNATOR_CONDITION
- See Also:
-
FARE_FARE_CLASS_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_PERIOD_TYPE_TRAVEL_PERIOD_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_TIME_BEFORE_DEPARTURE_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_ADVANCE_PURCHASE_RESERVATION_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_SALES_DATES_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_BLACKOUT_DATES_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_LENGTH_OF_STAY_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_BOOKING_PERIOD_CONDITION
- See Also:
-
TRAVEL_PREFERENCE_POINT_OF_SALE_CONDITION
- See Also:
-
PASSENGER_COUNTRY_OF_CITIZENSHIP_CONDITION
- See Also:
-
PASSENGER_COUNTRY_OF_RESIDENCE_CONDITION
- See Also:
-
PASSENGER_FIRST_PASSENGER_OCCURRENCE_CONDITION
- See Also:
-
PASSENGER_LAST_PASSENGER_OCCURRENCE_CONDITION
- See Also:
-
PASSENGER_CUSTOMER_INDEX_SCORE_CONDITION
- See Also:
-
PASSENGER_PASSENGER_CONDITION
- See Also:
-
UPGRADE_RBD_CONDITION
- See Also:
-
UPGRADE_RBDS_NAME
- See Also:
-
UPGRADE_MKT_OP_NAME
- See Also:
-
UPGRADE_CABIN_CONDITION
- See Also:
-
UPGRADE_TO_CABIN_NAME
- See Also:
-
UPGRADE_RBD_CARRIER_NAME
- See Also:
-
DEFAULT_STARTING_PAGE
protected static final int DEFAULT_STARTING_PAGE- See Also:
-
ANCILLARY_PRODUCT_ID
- See Also:
-
DELETE_ICON_CLASS
- See Also:
-
GRID_ROW_CLASS
- See Also:
-
SERVICE
- See Also:
-
CSS_HIDE_GRID
- See Also:
-
CSS_SHOW_GRID
- See Also:
-
MODIFICATION_CONDITION_ID
- See Also:
-
FIXED
- See Also:
-
CSS_HIDE_CELL
- See Also:
-
CSS_SHOW_CELL
- See Also:
-
CONDITION_EDIT_ID
- See Also:
-
CONDITION_EDIT_ROW
- See Also:
-
SERVICE_PRICE
- See Also:
-
BAGGAGE
- See Also:
-
SEARCH_FILTER_MAP_MODEL
- See Also:
-
GROUP_BOX_OPEN_MODEL_ATTRIBUTE
- See Also:
-
editModificationConditionHashMap
-
modificationConditionHashMap
-
upgradeCabinComboBoxDataList
-
editedOriginalModificationConditionID
-
-
Constructor Details
-
CreateOrEditModificationController
public CreateOrEditModificationController()
-
-
Method Details
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
populateModificationDataToWidget
This method will populate modification data to widget- Parameters:
modification-
-
populateModificationConditionToWidget
This method will populate all modification properties- Parameters:
modification-
-
populateModificationPropertiesToWidget
This method will populate all modification condition properties- Parameters:
modification-
-
createOrEditModificationRequest
-
refresh
public void refresh() -
save
public void save() -
updateModification
This method will call modification service to update modification to pros- Parameters:
modificationData-
-
addBaggageType
protected void addBaggageType()This method will create event listener on add baggage type button to add baggage type -
addNewBaggageTypeRow
protected void addNewBaggageTypeRow(org.zkoss.zul.Rows baggageTypeRows, org.zkoss.zul.Grid baggageTypeGrid, FreeBaggageType freeBaggageType) This method will add baggage type row to baggage type grid- Parameters:
baggageTypeRows-baggageTypeGrid-freeBaggageType-
-
getServiceKeysFromPros
protected List<ServiceKey> getServiceKeysFromPros(String serviceTypeCode, List<String> carriersList) This method will call get service keys from pros- Parameters:
serviceTypeCode- the service type codecarriersList- the carriers list- Returns:
- the service key list
-
createAddBaggageTypeGridColumns
protected void createAddBaggageTypeGridColumns(org.zkoss.zul.Grid baggageTypeGrid) This method will create columns for baggageTypeGrid- Parameters:
baggageTypeGrid- the baggageTypeGrid
-
populateBaggageType
This method will populate baggage type from baggage type grid and will assign it to modification condition- Parameters:
conditionData-
-
hideOrShowServicePriceOrBaggageElement
protected void hideOrShowServicePriceOrBaggageElement()This method will hide and show service price or baggage component element based on selecting condition type -
createCondition
This method will create modification condition- Parameters:
ruleCondition- the condition name
-
createUpgradeCabinCondition
This method will create Upgrade Cabin Condition- Parameters:
name-condition-
-
createUpgradeRBDCondition
This method will create Upgrade RBD Condition- Parameters:
name- condition namerbDsMapping-
-
createModification
This method will call modification service to create modification and will handle exception- Parameters:
modificationData- modification data object
-
populateModificationData
This method will populate modification data- Returns:
- modification data object
-
populateConditionRule
This method will used for populating all condition data- Parameters:
conditionData- condition data- Returns:
- condition data object
-
populateUpgradeCabinCondition
protected ModificationConditionData populateUpgradeCabinCondition(org.zkoss.zul.Groupbox groupbox, ModificationConditionData conditionData) This method will populate Upgrade Cabin Condition- Parameters:
groupbox- the groupboxconditionData- the condition data object- Returns:
-
populateUpgradeRBDCondition
protected ModificationConditionData populateUpgradeRBDCondition(org.zkoss.zul.Groupbox groupbox, ModificationConditionData conditionData) This method will populate Upgrade RBD Condition- Parameters:
groupbox- the groupboxconditionData- the condition data object- Returns:
-
validateModificationData
protected boolean validateModificationData()This method will validate mandetory attributes- Returns:
-
initializeServicePopup
protected void initializeServicePopup()This method will initialize popup -
initializeOrUpdateServiceGridList
protected void initializeOrUpdateServiceGridList()This method will construct list view in popup -
RemoveRows
protected void RemoveRows()this method will remove rows from serviceListGrid popup -
constructServiceRow
This method constructs the row- Parameters:
ancillaryProduct- the ancillaryProduct- Returns:
- the row
-
populateServiceRow
protected org.zkoss.zul.Row populateServiceRow(AncillaryProduct ancillaryProduct, String deleteImageIconWithPath) This method populate the row- Parameters:
ancillaryProduct- the ancillaryProductdeleteImageIconWithPath- the delete image icon with path- Returns:
- the row
-
populateServiceRowInPopup
This method populate the row- Parameters:
ancillaryProduct- the ancillaryProduct- Returns:
- the row
-
getAncillaryProducts
This method will get ancillary from pros- Parameters:
page- the page to use for server pagination
-
getAncillaryProductList
Gets the ancillary product list.- Parameters:
page- the page requested for server pagination
-
initializeConditonPopup
protected void initializeConditonPopup()This method will initialize condition popup -
hideOrShowFixedDynamicPriceElement
protected void hideOrShowFixedDynamicPriceElement()This method will show and hide different price component based on selection of fixed and dynamic radio box -
resetConditionModificationPopup
protected void resetConditionModificationPopup()This method will reset all condition popup element on click of cancel and saved condition -
saveModificationCondition
protected boolean saveModificationCondition()This method will populate modification condition data from widget- Returns:
- true or false
-
getTemporaryModificationUniqueID
protected String getTemporaryModificationUniqueID(ModificationConditionData modificationConditionData) This method will create temporary unique identification for each modification condition- Parameters:
modificationConditionData-- Returns:
-
saveModificationToPros
This method will call modification condition service to create condition- Parameters:
conditionData-
-
updateModificationToPros
This method will call modification condition service to create condition- Parameters:
conditionData-
-
remoevModificationConditionInPros
This method will call modification condition service to remove modification condition- Parameters:
modificationConditionId-
-
validateModificationConditionData
protected boolean validateModificationConditionData()This method will validate mandetory attributes on condition popup- Returns:
-
populateModificationConditionData
This method will populate condition data- Returns:
- condition data object
-
populateConditionRow
protected org.zkoss.zul.Row populateConditionRow(ModificationConditionData modificationConditionData, String editImageIconWithPath, String deleteImageIconWithPath) This method populate the row- Parameters:
modificationConditionData- the modificationConditionDatadeleteImageIconWithPath- the delete image icon with path- Returns:
- the row
-
populateModificationConditionToPopup
protected void populateModificationConditionToPopup(ModificationConditionData modificationConditionData) This method will populate condition data to poup- Parameters:
modificationConditionData-
-
populateConditionToWidget
This method will populate condition data widget- Parameters:
condition-
-
populateSearchFilterValues
protected void populateSearchFilterValues()This method will initialize as well as update search filter -
getTravelProviderByCode
Finds a travel provider by code.- Parameters:
code- the code- Returns:
- the travel provider by code
-
search
public void search() -
clearFilter
public void clearFilter()
-