Class OperationPlanSlotPlanningWizard
java.lang.Object
overit.geocallapp.wfm.project.ux.wizard.OperationPlanSlotPlanningWizard
- All Implemented Interfaces:
overit.geocallapp.wfm.ui.wizard.Wizard
public class OperationPlanSlotPlanningWizard
extends Object
implements overit.geocallapp.wfm.ui.wizard.Wizard
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected static final intprotected static final intprotected static final intprotected static final intList of all steps used in the wizardprotected WindowManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildInitialConfiguration(List<OperationTimeRange> timeRanges, OperationPlanResourceSearchContext context) Build the configuration object used on all the wizard processprotected OperationPlanSlotSchedulingParametersvoidcancel()Abort the wizard process popping all the wizard windowsprotected voidprotected voidprotected voidclose(boolean isCompleted) protected voidprotected overit.geocallapp.wfm.ui.wizard.WizardStepContainerbooleanSays if the wizard is completed or notprotected booleanisWizardStepPage(ArrayList<Component> childrenComponents) voidnextStep()Define the next wizard step and push the relative windowvoidprevStep()Pop the current window to return to the previous wizard step.protected voidPush the Planning Parameters wizard step windowprotected voidPush the Operation Plan wizard step windowprotected voidPush the Resources wizard step windowprotected voidMethod called at the end of the wizard.voidsetForemanId(Long foremanId) voidsetInitialOpPlanning(List<OperationPlanning> initialOperationPlanning) voidsetOpContext(OperationPlanResourceSearchContext opContext) voidsetOPSPlanningParameters(OperationPlanSlotPlanningParameters opsPlanningParameters) voidsetResourcesList(LongSet resourcesList) voidsetSelectedOpPlanning(List<OperationPlanning> selectedOperationPlanning) voidsetTimeRanges(List<OperationTimeRange> timeRanges) voidstart(List<OperationTimeRange> timeRanges, OperationPlanResourceSearchContext context, WindowManager wm) Starting point of the wizardprotected void
-
Field Details
-
wm
-
STEP_START
protected static final int STEP_STARTList of all steps used in the wizard- See Also:
-
STEP_PLANNING_PARAMETERS
protected static final int STEP_PLANNING_PARAMETERS- See Also:
-
STEP_RESOURCES
protected static final int STEP_RESOURCES- See Also:
-
STEP_SLOT_SELECTION_PLAN
protected static final int STEP_SLOT_SELECTION_PLAN- See Also:
-
currentStep
protected int currentStep
-
-
Constructor Details
-
OperationPlanSlotPlanningWizard
public OperationPlanSlotPlanningWizard()
-
-
Method Details
-
getTimeRanges
-
setTimeRanges
-
getOPSPlanningParameters
-
setOPSPlanningParameters
-
getResourcesList
-
setResourcesList
-
getOpContext
-
setOpContext
-
getInitialOpPlanning
-
setInitialOpPlanning
-
getSelectedOpPlanning
-
setSelectedOpPlanning
-
getForemanId
-
setForemanId
-
nextStep
Define the next wizard step and push the relative window- Specified by:
nextStepin interfaceoverit.geocallapp.wfm.ui.wizard.Wizard- Throws:
DAExceptionDAValidateException
-
prevStep
Pop the current window to return to the previous wizard step.- Specified by:
prevStepin interfaceoverit.geocallapp.wfm.ui.wizard.Wizard- Throws:
DAExceptionDAValidateException
-
isCompleted
public boolean isCompleted()Description copied from interface:overit.geocallapp.wfm.ui.wizard.WizardSays if the wizard is completed or not- Specified by:
isCompletedin interfaceoverit.geocallapp.wfm.ui.wizard.Wizard
-
start
public void start(List<OperationTimeRange> timeRanges, OperationPlanResourceSearchContext context, WindowManager wm) throws DAException, DAValidateException Starting point of the wizard- Throws:
DAExceptionDAValidateException
-
buildInitialConfiguration
protected void buildInitialConfiguration(List<OperationTimeRange> timeRanges, OperationPlanResourceSearchContext context) Build the configuration object used on all the wizard process -
pushPlanSlotSelectionStep
protected void pushPlanSlotSelectionStep()Push the Operation Plan wizard step window -
pushPlanningParametersStep
protected void pushPlanningParametersStep()Push the Planning Parameters wizard step window -
pushResourceStep
protected void pushResourceStep()Push the Resources wizard step window -
getWizardStepContainer
-
checkOperationPlanningParameters
- Throws:
DAExceptionDAValidateException
-
evaluateOperationPlanningSlots
- Throws:
DAExceptionDAValidateException
-
buildSchedulingParameters
-
saveOperationPlannings
Method called at the end of the wizard. Launch saving event- Throws:
DAExceptionDAValidateException
-
cancel
Abort the wizard process popping all the wizard windows- Specified by:
cancelin interfaceoverit.geocallapp.wfm.ui.wizard.Wizard- Throws:
DAExceptionDAValidateException
-
close
protected void close(boolean isCompleted) -
isWizardStepPage
-
checkBeforeSaving
- Throws:
DAValidateExceptionDAException
-
workOrderStatusCheck
- Throws:
DAValidateExceptionDAException
-