Class OperationPlanSlotSchedulingWizard
java.lang.Object
overit.geocallapp.wfm.project.ux.wizard.OperationPlanSlotSchedulingWizard
- All Implemented Interfaces:
overit.geocallapp.wfm.ui.wizard.Wizard
public class OperationPlanSlotSchedulingWizard
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 intprotected static final intList of all steps used in the wizardprotected WindowManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildInitialConfiguration(List<OperationPlanning> operationPlanning, OperationPlanResourceSearchContext context) Build the configuration object used on all the wizard processprotected OperationPlanSlotSchedulingParametersvoidcancel()Abort the wizard process popping all the wizard windowsprotected voidprotected List<OperationPlanning> protected voidclose(boolean isCompleted) protected voidprotected overit.geocallapp.wfm.ui.wizard.WizardStepContainerbooleanbooleanbooleanSays if the wizard is completed or notbooleanprotected 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 parameters selection wizard step windowprotected voidPush the Operation Plan wizard step window with sheduled slotsprotected voidPush the Operation Plan wizard step windowprotected voidPush the Resources wizard step windowprotected voidMethod called at the end of the wizard.protected voidvoidsetBindToForemanFlag(boolean bindToForeman) voidsetBindToResourceCalendarFlag(boolean bindToResourceCalendar) voidsetForemanId(Long foremanId) voidsetInitialOpPlanning(List<OperationPlanning> initialOperationPlanning) voidsetOpContext(OperationPlanResourceSearchContext opContext) voidsetResourcesList(LongSet resourcesList) voidsetScheduledOperationPlanning(List<OperationPlanning> scheduledOperationPlanning) voidsetSelectedOpPlanning(List<OperationPlanning> selectedOperationPlanning) voidsetUseWholeSlotFlag(boolean useWholeSlot) voidstart(List<OperationPlanning> operationPlanning, 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_SLOT_SELECTION
protected static final int STEP_SLOT_SELECTION- See Also:
-
STEP_RESOURCES_SELECTION
protected static final int STEP_RESOURCES_SELECTION- See Also:
-
STEP_PARAMETERS_SELECTION
protected static final int STEP_PARAMETERS_SELECTION- See Also:
-
STEP_SLOT_CONFIRM
protected static final int STEP_SLOT_CONFIRM- See Also:
-
currentStep
protected int currentStep
-
-
Constructor Details
-
OperationPlanSlotSchedulingWizard
public OperationPlanSlotSchedulingWizard()
-
-
Method Details
-
getResourcesList
-
setResourcesList
-
getOpContext
-
setOpContext
-
getInitialOpPlanning
-
setInitialOpPlanning
-
getSelectedOpPlanning
-
setSelectedOpPlanning
-
getForemanId
-
setForemanId
-
isUseWholeSlot
public boolean isUseWholeSlot() -
setUseWholeSlotFlag
public void setUseWholeSlotFlag(boolean useWholeSlot) -
isBindToResourceCalendar
public boolean isBindToResourceCalendar() -
setBindToResourceCalendarFlag
public void setBindToResourceCalendarFlag(boolean bindToResourceCalendar) -
isBindToForeman
public boolean isBindToForeman() -
setBindToForemanFlag
public void setBindToForemanFlag(boolean bindToForeman) -
getScheduledOperationPlanning
-
setScheduledOperationPlanning
-
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<OperationPlanning> operationPlanning, OperationPlanResourceSearchContext context, WindowManager wm) throws DAException, DAValidateException Starting point of the wizard- Throws:
DAExceptionDAValidateException
-
buildInitialConfiguration
protected void buildInitialConfiguration(List<OperationPlanning> operationPlanning, OperationPlanResourceSearchContext context) Build the configuration object used on all the wizard process -
pushPlanSlotSelectionStep
protected void pushPlanSlotSelectionStep()Push the Operation Plan wizard step window -
pushPlanSlotConfirmStep
protected void pushPlanSlotConfirmStep()Push the Operation Plan wizard step window with sheduled slots -
pushResourceStep
protected void pushResourceStep()Push the Resources wizard step window -
pushParametersSelectionStep
protected void pushParametersSelectionStep()Push parameters selection wizard step window -
getWizardStepContainer
-
saveOperationPlanningSchedulingSlots
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
-
evaluateOperationPlanSchedulingSlots
- Throws:
DAExceptionDAValidateException
-
buildSchedulingParameters
-
cloneSelectedOPList
-
checkBeforeSaving
- Throws:
DAValidateExceptionDAException
-
schedulingCheck
- Throws:
DAValidateExceptionDAException
-
workOrderStatusCheck
- Throws:
DAValidateExceptionDAException
-