Class CreateOrEditYQYRDynamicPricingController
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.CreateOrEditDynamicPricingConditionController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditYQYRDynamicPricingController
- 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>
public class CreateOrEditYQYRDynamicPricingController
extends CreateOrEditDynamicPricingConditionController
This controller will handle events for creating and editing YQYR DynamicPricing condition
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final org.zkoss.zul.ListModelList<ComboBoxData>Fields inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditDynamicPricingConditionController
ACCOMPANYING_CONDITIONS_CONDITION, ACCOUNT_CODE_CONDITION, ACCOUNT_CODE_NAME, active, addImageIconWithPath, AIRLINE_CONDITION, AIRLINE_NAME, apiUser, BLACKOUT_DATES_CONDITION, BLACKOUT_DATES_END_DATE_NAME, BLACKOUT_DATES_START_DATE_NAME, CABIN_CONDITION, CABIN_NAME, cabinComboBoxDataList, COMMA_SEPARATED_REGEX, commonI18NService, conditionDiv, conditionList, CSS_HIDE_CELL, CSS_SHOW_CELL, DATE_FORMAT, DELETE_IMAGE_ICON, deleteImageIconWithPath, DEPARTURE_TIME_PERIODS_CONDITION, DEPARTURE_TIME_PERIODS_END_TIME_NAME, DEPARTURE_TIME_PERIODS_START_TIME_NAME, DEPARTURE_TIME_PERIODS_TARGET_NAME, DESTINATION_CONDITION, DESTINATION_NAME, droppableConditionDiv, dynamicPricingService, FARE_BUCKET_AND_BRAND_FARES_CONDITION, FARE_BUCKET_AND_BRAND_FARES_NAME, FARE_CLASS_CONDITION, FARE_CLASS_NAME, FARE_DESTINATION_NAME, FARE_ORIGIN_NAME, FARE_PROVISIONS_AIRLINE_CODES_NAME, FARE_PROVISIONS_CONDITION, FARE_PROVISIONS_FARE_TYPES_NAME, FARE_PROVISIONS_FBC_CODES_NAME, FARE_TYPE_CONDITION, FARE_TYPE_NAME, fareTypeComboBoxDataList, FIRST_NUMBER_NAME, FLIGHT_RANGE_SEPARATOR, FLIGHT_RANGES_CONDITION, FOOT_NOTE_CONDITION, FOOT_NOTE_NAME, formOfPaymentFareTypeComboBoxDataList, FREQUENT_FLYER_PROGRAMS_CARRIER_NAME, FREQUENT_FLYER_PROGRAMS_CONDITION, FREQUENT_FLYER_PROGRAMS_CUSTOMER_SCORE_NAME, FREQUENT_FLYER_PROGRAMS_CUSTOMER_VALUE_NAME, FREQUENT_FLYER_PROGRAMS_PROGRAM_CODE_NAME, FREQUENT_FLYER_PROGRAMS_STATUS_NAME, FREQUENT_FLYER_PROGRAMS_STATUS_NAME_NAME, LAST_NUMBER_NAME, LOCATION_TYPE_AIRPORT, MARKETING_CARRIER_NAME, MATCHED_PTC_OCCURRENCE_CONDITION, MATCHED_PTC_OCCURRENCE_MAXIMUM_NAME, MATCHED_PTC_OCCURRENCE_MINIMUM_NAME, MAX_ACCOMPANIED_PASSENGERS_NAME, MIN_OCCURRENCE_NAME, notificationService, OPERATING_CARRIERS_CONDITION, OPERATING_CARRIERS_MANDATORY_HLAYOUT_NAME, OPERATING_CARRIERS_MANDATORY_NAME, OPERATING_CARRIERS_NAME, ORIGIN_CONDITION, ORIGIN_NAME, OUT_SOCKET_DATA_GET_DYNAMIC_PRICING_LIST_REQUEST, OUT_SOCKET_ID_GET_DYNAMIC_PRICING_LIST_REQUEST, OVERRIDE_YQYR_AIRINES_NAME, OVERRIDE_YQYR_CONDITION, OVERRIDE_YQYR_SERVICE_CODE_NAME, OVERRIDE_YQYR_SERVICE_SUB_CODE_NAME, PASSENGER_CODE_NAME, PAX_RANGE_MAX_NAME, PAX_RANGE_MIN_NAME, PAYMENT_FEES_BIN_NUMBERS_NAME, PAYMENT_FEES_CONDITION, PAYMENT_FEES_FIXED_AMOUNT_CURRENCY_NAME, PAYMENT_FEES_FIXED_AMOUNT_NAME, PAYMENT_FEES_MAX_CHARGE_AMOUNT_CURRENCY_NAME, PAYMENT_FEES_MAX_CHARGE_AMOUNT_NAME, PAYMENT_FEES_METHOD_NAME, PAYMENT_FEES_PERCENT_NAME, paymentFeesMethodComboBoxDataList, PERCENT_OR_FLAT_HLAYOUT_NAME, PERCENT_OR_FLAT_NAME, POS_CONDITION, POS_NAME, PRICE_RANGE_FLAT, PRICE_RANGE_PERCENT, PRICE_RANGES_CONDITION, PRICE_RANGES_CURRENCY_NAME, PRICE_RANGES_END_NAME, PRICE_RANGES_PERCENT_OR_FLAT_NAME, PRICE_RANGES_START_NAME, PTCS_CONDITION, PTCS_NAME, RADIO_NO, RADIO_PERCENT, RADIO_YES, RBD_CONDITION, RBD_NAME, ruleName, SALE_LOCALES_AGENCY_IDS_NAME, SALE_LOCALES_CONDITION, SALE_LOCALES_CRT_ADDRESSES_NAME, SALE_LOCALES_DEPARTMENT_CODES_NAME, SALE_LOCALES_DUTY_CODES_NAME, SALE_LOCALES_ERSP_NUMBERS_NAME, SALE_LOCALES_IATA_NUMBERS_NAME, SALE_LOCALES_PCCS_NAME, SALE_LOCALES_PROVIDERS_NAME, SALE_LOCALES_SALE_CITIES_NAME, SALE_LOCALES_SELLER_TYPES_NAME, SALE_PERIODS_CONDITION, SALE_PERIODS_DATE_DIV_NAME, SALE_PERIODS_END_DATE_NAME, SALE_PERIODS_END_TIME_NAME, SALE_PERIODS_START_DATE_NAME, SALE_PERIODS_START_TIME_NAME, SEARCH_TIME_CONDITION, SEARCH_TIME_DOW_NAME, SEARCH_TIME_END_TIME_NAME, SEARCH_TIME_START_TIME_NAME, SEARCH_TIME_TIME_ZONE_NAME, SELLER_CONDITION, SELLER_NAME, serviceCodeComboBoxDataList, serviceSubCodeComboBoxDataList, targetComboBoxDataList, TIME_TO_DEPARTURE_CONDITION, TIME_TO_DEPARTURE_MAX_DAYS_NAME, TIME_TO_DEPARTURE_MIN_DAYS_NAME, timeZoneComboBoxDataList, transportFacilityService, TRAVEL_PERIODS_CONDITION, TRAVEL_PERIODS_END_DATE_NAME, TRAVEL_PERIODS_START_DATE_NAME, TRAVEL_PERIODS_TARGET_NAME, travelProviderService, TYPE_OF_FARE_CONDITION, TYPE_OF_FARE_NAME, unifiedUiPassengerTypeService, VALIDATING_CARRIERS_CONDITION, VALIDATING_CARRIERS_NAME, VIAS_CONDITION, VIAS_EXCLUDE_NAME, VIAS_INCLUDE_NAME, VOUCHER_CODES_CONDITION, VOUCHER_CODES_NAME, weekComboBoxDataListFields 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 all combo box that we needed for zk componentprotected voidcreateCondition(String ruleCondition) This method will create conditionprotected voidcreateDynamicPricing(DynamicPricingData dynamicPricingData) This method will call dynamic pricing service to create dynamic price and will handle exceptionvoidcreateOrEditYQYRDynamicPricingRequest(DynamicPricingRuleData dynamicPricingRuleData) protected voidThis method will hide or show elements based on updatePrice radio group selectionvoidinitialize(org.zkoss.zk.ui.Component comp) protected DynamicPricingRuleDatapopulateConditionRule(DynamicPricingRuleData dynamicPricingRuleData) This method will used for populating all condition dataprotected DynamicPricingDataThis method will populate dynamic pricing dataprotected voidpopulateDynamicPricingRuleConditionToWidget(DynamicPricingRuleData dynamicPricingRuleData) Populates the widget conditions of the dynamic pricing rule if they are present in the response data.protected DynamicPricingRuleDataThis method will populate dynamic pricing rule dataprotected voidpopulateDynamicPricingRulePropertiesToWidget(DynamicPricingRuleData dynamicPricingRuleData) Populates the widget of the dynamic pricing rule with the field already existing in the dynamicPricingData.voidrefresh()voidsave()protected booleanThis method will validate mandetory attributesMethods inherited from class de.hybris.platform.unifieduibackoffice.widgets.merchandising.CreateOrEditDynamicPricingConditionController
checkConditionMultipleDropRestriction, createAccompanyingCondition, createAccountCodeCondition, createAirlineCodesForOverrideYqyrCondition, createAirlineCondition, createBlackoutDatesCondition, createCabinCondition, createConditionLayout, createConditionRemoveButton, createDepartureTimePeriodCondition, createDestinationCondition, createFareBucketAndBrandFaresCondition, createFareClassCondition, createFareProvisionsCondition, createFareTypeCondition, createFlightRangesCondition, createFootNoteCondition, createFrequentFlyerProgramsCondition, createMatchedPTCOccurrenceCondition, createOperatingCarriersCondition, createOriginCondition, createOverrideYQYRCondition, createPaymentFeesCondition, createPOSCondition, createPriceRangesCondition, createPTCCondition, createRBDCondition, createSaleLocalesCondition, createSalePeriodsCondition, createSearchTimeCondition, createSellerCondition, createTimeToDepartureCondition, createTravelPeriodCondition, createTypeOfFareCondition, createValidatingCarriersCondition, createViasCondition, createViasExcludeAirportFromExistingViasLocations, createViasIncludeAirportFromExistingViasLocations, createVoucherCodesCondition, getCellChildren, populateAccompanyingConditionsCondition, populateAccountCodeCondition, populateAirlineCondition, populateBlackoutDatesCondition, populateCabinCondition, populateDepartureTimePeriodCondition, populateDestinationCondition, populateDynamicPricingRuleDataToWidget, populateFareBucketAndBrandFaresCondition, populateFareClassCondition, populateFareProvisionsCondition, populateFareTypeCondition, populateFlightRangesCondition, populateFootNoteCondition, populateFrequentFlyerProgramsCondition, populateMachedPTCOccurrenceCondition, populateOperatingCarriersCondition, populateOriginCondition, populateOverrideYQYRCondition, populatePaymentFeesCondition, populatePOSCondition, populatePriceRangesCondition, populatePTCCondition, populateRBDCondition, populateSaleLocalesCondition, populateSalePeriodsCondition, populateSearchTimeCondition, populateSellerCondition, populateTimeToDepartureCondition, populateTravelPeriodsCondition, populateTypeOfFareCondition, populateValidatingCarriersCondition, populateViasCondition, populateVoucherCodesCondition, updateDynamicPricingRuleMethods 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
-
IN_SOCKET_CREATE_OR_EDIT_YQYR_DYNAMIC_PRICING_CONDITION
- See Also:
-
yqyrPriceApplicationComboBoxDataList
-
-
Constructor Details
-
CreateOrEditYQYRDynamicPricingController
public CreateOrEditYQYRDynamicPricingController()
-
-
Method Details
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
populateDynamicPricingRuleConditionToWidget
protected void populateDynamicPricingRuleConditionToWidget(DynamicPricingRuleData dynamicPricingRuleData) Populates the widget conditions of the dynamic pricing rule if they are present in the response data.- Overrides:
populateDynamicPricingRuleConditionToWidgetin classCreateOrEditDynamicPricingConditionController- Parameters:
dynamicPricingRuleData- the dynamic pricing rule data
-
populateDynamicPricingRulePropertiesToWidget
protected void populateDynamicPricingRulePropertiesToWidget(DynamicPricingRuleData dynamicPricingRuleData) Populates the widget of the dynamic pricing rule with the field already existing in the dynamicPricingData. The apiUser is set to disable since it is not possible to edit the field after the creation of the rule.- Overrides:
populateDynamicPricingRulePropertiesToWidgetin classCreateOrEditDynamicPricingConditionController- Parameters:
dynamicPricingRuleData- the dynamic pricing rule data
-
createOrEditYQYRDynamicPricingRequest
-
refresh
public void refresh() -
save
public void save() -
createComboBoxList
protected void createComboBoxList()This method will create all combo box that we needed for zk component- Overrides:
createComboBoxListin classCreateOrEditDynamicPricingConditionController
-
hideOrShowElementsForUpdatePrice
protected void hideOrShowElementsForUpdatePrice()This method will hide or show elements based on updatePrice radio group selection -
createCondition
This method will create condition- Parameters:
ruleCondition- the condition name
-
populateDynamicPricingData
This method will populate dynamic pricing data- Returns:
- dynamic pricing data object
-
populateDynamicPricingRuleData
This method will populate dynamic pricing rule data- Returns:
-
populateConditionRule
protected DynamicPricingRuleData populateConditionRule(DynamicPricingRuleData dynamicPricingRuleData) This method will used for populating all condition data- Parameters:
dynamicPricingRuleData- dynamic Pricing Rule Data- Returns:
- condition data object
-
createDynamicPricing
This method will call dynamic pricing service to create dynamic price and will handle exception- Parameters:
dynamicPricingData- condition data object
-
validateDynamicPricingData
protected boolean validateDynamicPricingData()This method will validate mandetory attributes- Returns:
-