Java Code Examples for ims.framework.LayerBridge

The following are top voted examples for showing how to use ims.framework.LayerBridge. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrPrognosticTNMTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab()))
	{
		if (!Boolean.TRUE.equals(form.getLocalContext().getDataWasImported())
				&& !form.getLocalContext().getSelectedRecordIsNotNull()
				&& form.getLocalContext().getSelectedGroupIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getSelectedGroup().getHasTNM())
				&& (!form.getLocalContext().getSelectedSiteIsNotNull() || !Boolean.TRUE.equals(form.getLocalContext().getSelectedSite().getHasSiteSpecificTNM())))
		{
			importTNMValuesFromOverallStaging();
		}
		
		// Mark as data have been imported - even if the import process didn't take place,
		// the import process must take place only when first changing tabs after selecting the group
		form.getLocalContext().setDataWasImported(Boolean.TRUE);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrPatientListsTabChanged(LayerBridge tab)
{
	form.getGlobalContext().Core.setPatientShort(null);
	engine.setPatientInfo("Please enter Patient ID or Surname and/or Forename");

	form.getLocalContext().setpreviousScreens(0);
	form.getLocalContext().setfirstRecordFromGrid(null);
	form.getLocalContext().setlastRecordFromGrid(null);

	if (tab.equals(form.lyrPatientLists().tabInpatientList()))
	{
		form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
		form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
		clearScreen(PatientListType.INPATIENTLIST);
	}
	else if (tab.equals(form.lyrPatientLists().tabOutpatientList()))
	{
		form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
		form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
		clearScreen(PatientListType.OUTPATIENTLIST);
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyrTabs().tabPageFavourites());
	if(isFavouriteTab)
	{
		populateFavorites();
		form.lyrTabs().tabPageFavourites().btnSelectFavourite().setAsDefaultButton();
	}
	
	if(tab.equals(form.lyrTabs().tabPageSearch()))
	{
		form.lyrTabs().tabPageSearch().imbSearch().setAsDefaultButton();
	}
	
	if(tab.equals(form.lyrTabs().tabPageSelect()))
	{
		form.lyrTabs().tabPageSelect().imbSeachSelect().setAsDefaultButton();
	}

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);

}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean completedPatientICP = form.getLocalContext().getCurrentPatientICPIsNotNull() && form.getLocalContext().getCurrentPatientICP().getCompletedDateTimeIsNotNull();

	if (tab instanceof tabPageClinicDetailsContainer)
	{
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), !completedPatientICP);
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrRulesTabChanged(LayerBridge tab)
{

	if (tab.equals(form.lyrRules().tabOverview()))
	{
		IRule rule = getRuleFromScreen();
		StringBuilder sb = new StringBuilder();
		sb.append("<b>IF</b><br>");
		int tabs = 0;
		for (int x = 0; x < rule.getConditions().size(); x++)
		{
			renderCondition(sb, rule.getConditions().get(x), rule, tabs);
		}

		form.lyrRules().tabOverview().htmOverview().setHTML(sb.toString());
	}

}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyr1TabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyr1().tabConsultant()))
	{						
		populateConsultationTab();			
	}
	if (tab.equals(form.lyr1().tabTherapy()))
	{						
		initializeTherapyDynamicGrid();			
	}
	else if (tab.equals(form.lyr1().tabActions()))
	{					
		initializeActionTab();
		form.lyr1().showtabActions();
		populateActionsTab();
	}
	else if (tab.equals(form.lyr1().tabAnaesthetist()))
	{
		populateAnaesthetistTab();
	}
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMaintenanceTabChanged(LayerBridge tab)
{
	if(tab.equals(form.lyrMaintenance().tabBookExc()))
	{
		form.lyrMaintenance().tabBookExc().imbBookSearch().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabCancelExc()))
	{
		form.lyrMaintenance().tabCancelExc().imbCancelSearch().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabPdsRequests()))
	{
		form.lyrMaintenance().tabPdsRequests().imbPdsSearch().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabSdsRequests()))
	{
		form.lyrMaintenance().tabSdsRequests().imbSearchSds().setAsDefaultButton();
	}
	else if(tab.equals(form.lyrMaintenance().tabSlotPoll()))
	{
		form.lyrMaintenance().tabSlotPoll().imbPollSearch().setAsDefaultButton();
	}
	
	updateContextMenuState();
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	if(form.getMode().equals(FormMode.VIEW))
	{
	if (tab.getCaption().compareToIgnoreCase("Noting Details") == 0)
		openNotingDetails();

	if (tab.getCaption().compareToIgnoreCase("Clinical Notes") == 0)
		openClinicalNotes();

	if (tab.getCaption().compareToIgnoreCase("Graphic Annotation") == 0)
		openDrawing();

	if (tab.getCaption().compareToIgnoreCase("Assessments") == 0)
		openAssessment();

	if (tab.getCaption().compareToIgnoreCase("OP Clinical Notes") == 0)
		openOPClinicalNotes();
	}
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrStepsTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		if (tab.equals(form.lyrSteps().tabPageStep1()))
		{
			form.lyrSteps().tabPageStep1().ccStep1Find().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, engine.isDialog());
		}
		else if (tab.equals(form.lyrSteps().tabPageStep2()))
		{
			form.lyrSteps().tabPageStep2().ccAMTS().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, null);
		}
		else if (tab.equals(form.lyrSteps().tabPageFollowUp()))
		{
			form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, (form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() != null ? form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() : new DementiaAssessAndInvestigateVo())); //wdev-16366
		}
		updateControlsState();
	}
}
 
Example 10
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrPrognosticTNMTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab()))
	{
		if (!Boolean.TRUE.equals(form.getLocalContext().getDataWasImported())
				&& !form.getLocalContext().getSelectedRecordIsNotNull()
				&& form.getLocalContext().getSelectedGroupIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getSelectedGroup().getHasTNM())
				&& (!form.getLocalContext().getSelectedSiteIsNotNull() || !Boolean.TRUE.equals(form.getLocalContext().getSelectedSite().getHasSiteSpecificTNM())))
		{
			importTNMValuesFromOverallStaging();
		}
		
		// Mark as data have been imported - even if the import process didn't take place,
		// the import process must take place only when first changing tabs after selecting the group
		form.getLocalContext().setDataWasImported(Boolean.TRUE);
	}
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrPatientListsTabChanged(LayerBridge tab)
{
	form.getGlobalContext().Core.setPatientShort(null);
	engine.setPatientInfo("Please enter Patient ID or Surname and/or Forename");

	form.getLocalContext().setpreviousScreens(0);
	form.getLocalContext().setfirstRecordFromGrid(null);
	form.getLocalContext().setlastRecordFromGrid(null);

	if (tab.equals(form.lyrPatientLists().tabInpatientList()))
	{
		form.getLocalContext().setpatientListType(PatientListType.INPATIENTLIST);
		form.lyrPatientLists().tabInpatientList().imbIPSearch().setAsDefaultButton();
		clearScreen(PatientListType.INPATIENTLIST);
	}
	else if (tab.equals(form.lyrPatientLists().tabOutpatientList()))
	{
		form.getLocalContext().setpatientListType(PatientListType.OUTPATIENTLIST);
		form.lyrPatientLists().tabOutpatientList().imbOPSearch().setAsDefaultButton();
		clearScreen(PatientListType.OUTPATIENTLIST);
	}
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyrTabs().tabPageFavourites());
	if(isFavouriteTab)
	{
		populateFavorites();
		form.lyrTabs().tabPageFavourites().btnSelectFavourite().setAsDefaultButton();
	}
	
	if(tab.equals(form.lyrTabs().tabPageSearch()))
	{
		form.lyrTabs().tabPageSearch().imbSearch().setAsDefaultButton();
	}
	
	if(tab.equals(form.lyrTabs().tabPageSelect()))
	{
		form.lyrTabs().tabPageSelect().imbSeachSelect().setAsDefaultButton();
	}

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);

}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrDetailsTabChanged(LayerBridge tab)
{
	if(form.lyrDetails().tabOtherDetails().isVisible() && form.getMode().equals(FormMode.EDIT))
	{
		displayAgeRelatedControls(null);
	}
		
	displayRelativeSynchronizationDialog();
	form.lyrDetails().tabRelatedPersons().btnEditPerson().setEnabled(form.lyrDetails().tabRelatedPersons().grdRelatedPersons().getValue() != null);
	
	updateContextMenu();
	
	if(form.lyrDetails().tabOtherDetails().isVisible() && form.getMode().equals(FormMode.EDIT) && isSVUH())
	{
		form.lyrDetails().tabOtherDetails().cmbEligibilitySVUH().setFocus();
	}
	
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrEDTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrED().tabPageAttendanceDetConfig()))
	{
		populateAttendanceDetailsTab();
	}
	else if (tab.equals(form.lyrED().tabTriageTabConfig()))
	{
		populateTriageTabConfig();
	} 
	else if (tab.equals(form.lyrED().tabOutcomeMandatoryCoding())) //WDEV-19013
	{
		populateOutcomeMandatoryCodingTab();
	} 
	else if (tab.equals(form.lyrED().tabAmbulanceArrivals()))
	{
		populateAmbulanceArrivalsTab();
	}
	else if( tab.equals(form.lyrED().tabReferToSpecialty()))	//wdev-22313
	{
		populateReferToSpecialtyTab();
	}
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrRulesTabChanged(LayerBridge tab)
{

	if (tab.equals(form.lyrRules().tabOverview()))
	{
		IRule rule = getRuleFromScreen();
		StringBuilder sb = new StringBuilder();
		sb.append("<b>IF</b><br>");
		int tabs = 0;
		for (int x = 0; x < rule.getConditions().size(); x++)
		{
			renderCondition(sb, rule.getConditions().get(x), rule, tabs);
		}

		form.lyrRules().tabOverview().htmOverview().setHTML(sb.toString());
	}

}
 
Example 16
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean completedPatientICP = form.getLocalContext().getCurrentPatientICPIsNotNull() && form.getLocalContext().getCurrentPatientICP().getCompletedDateTimeIsNotNull();

	if (tab instanceof tabPageClinicDetailsContainer)
	{
		// Get linked actions
		PatientICPActionFullVo actionFull = domain.getPatientICPActionFull((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());

		// Populate record browser actions
		PatientICPActionFullVoCollection linkedPatientICPActions = domain.getLinkedPatientICPActions(actionFull);

		// Determine if there are linked actions to be displayed
		if (linkedPatientICPActions == null || linkedPatientICPActions.size() == 0)
		{
			form.lyrMain().tabPageClinicDetails().setHeaderVisible(false);
			return;
		}

		populateLinkedActionsRecordBrowser(linkedPatientICPActions);

		// Select one action
		form.lyrMain().tabPageClinicDetails().ccLinkedActionDetails().setValue(form.lyrMain().tabPageClinicDetails().recbrLinkedActions().getValue(), !completedPatientICP);
	}
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrSelectTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrSelect().tabWaitingList()))
	{
		populateWaitingListGrid();
	}
	//WDEV-18449 
	if (tab.equals(form.lyrSelect().tabAppInvs()))
	{
		form.getLocalContext().setAction(ReferralAppointmentDetailsAction.REFRESH);
		form.getGlobalContext().RefMan.setPatientElectiveListRef(null); //WDEV-19479
		form.fireCustomControlValueChanged();
	}
	
	if (tab.equals(form.lyrSelect().tabFutureAppointments()))
	{
		populateFutureAppointmentsGrid();
	}
	
	if (tab.equals(form.lyrSelect().tabPET()))
	{
		populatePendingEmergencyTheatreGrid();
		updateControlState();
	}
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrSearcFilterTabChanged(LayerBridge tab) 
{
	clearTabsControls();
	//WDEV-19389 
	if(tab.equals(form.lyrSearcFilter().tabRecordingHcp()) && form.getGlobalContext().Clinical.getAuthoringClinicalNotesSearchCriteriaIsNotNull())
	{
		setAuthoringSearchCriteria(form.getGlobalContext().Clinical.getAuthoringClinicalNotesSearchCriteria());
		search(TABHCP);
	}
	
	if(tab.equals(form.lyrSearcFilter().tabRecordingUser()) && form.getGlobalContext().Clinical.getUserClinicalNotesSearchCriteriaIsNotNull())
	{
		setUseSearchCriteria(form.getGlobalContext().Clinical.getUserClinicalNotesSearchCriteria());
		search(TABUSER);
	}
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	if(form.getMode().equals(FormMode.VIEW))
	{
	if (tab.getCaption().compareToIgnoreCase("Noting Details") == 0)
		openNotingDetails();

	if (tab.getCaption().compareToIgnoreCase("Clinical Notes") == 0)
		openClinicalNotes();

	if (tab.getCaption().compareToIgnoreCase("Graphic Annotation") == 0)
		openDrawing();

	if (tab.getCaption().compareToIgnoreCase("Assessments") == 0)
		openAssessment();

	if (tab.getCaption().compareToIgnoreCase("OP Clinical Notes") == 0)
		openOPClinicalNotes();
	}
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	if(form.getMode().equals(FormMode.VIEW))
	{
	if (tab.getCaption().compareToIgnoreCase("Noting Details") == 0)
		openNotingDetails();

	if (tab.getCaption().compareToIgnoreCase("Clinical Notes") == 0)
		openClinicalNotes();

	if (tab.getCaption().compareToIgnoreCase("Graphic Annotation") == 0)
		openDrawing();

	if (tab.getCaption().compareToIgnoreCase("Assessments") == 0)
		openAssessment();

	if (tab.getCaption().compareToIgnoreCase("OP Clinical Notes") == 0)
		openOPClinicalNotes();
	}
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrPrognosticTNMTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab()))
	{
		if (!Boolean.TRUE.equals(form.getLocalContext().getDataWasImported())
				&& !form.getLocalContext().getSelectedRecordIsNotNull()
				&& form.getLocalContext().getSelectedGroupIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getSelectedGroup().getHasTNM())
				&& (!form.getLocalContext().getSelectedSiteIsNotNull() || !Boolean.TRUE.equals(form.getLocalContext().getSelectedSite().getHasSiteSpecificTNM())))
		{
			importTNMValuesFromOverallStaging();
		}
		
		// Mark as data have been imported - even if the import process didn't take place,
		// the import process must take place only when first changing tabs after selecting the group
		form.getLocalContext().setDataWasImported(Boolean.TRUE);
	}
}
 
Example 22
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrStepsTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		if (tab.equals(form.lyrSteps().tabPageStep1()))
		{
			form.lyrSteps().tabPageStep1().ccStep1Find().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, engine.isDialog());
		}
		else if (tab.equals(form.lyrSteps().tabPageStep2()))
		{
			form.lyrSteps().tabPageStep2().ccAMTS().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, null);
		}
		else if (tab.equals(form.lyrSteps().tabPageFollowUp()))
		{
			form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().initialize(form.getLocalContext().getselectedDementia(), FormMode.VIEW, (form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() != null ? form.lyrSteps().tabPageFollowUp().recbrAMTS().getValue() : new DementiaAssessAndInvestigateVo())); //wdev-16366
		}
		updateControlsState();
	}
}
 
Example 23
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onlyrRulesTabChanged(LayerBridge tab)
{

	if (tab.equals(form.lyrRules().tabOverview()))
	{
		IRule rule = getRuleFromScreen();
		StringBuilder sb = new StringBuilder();
		sb.append("<b>IF</b><br>");
		int tabs = 0;
		for (int x = 0; x < rule.getConditions().size(); x++)
		{
			renderCondition(sb, rule.getConditions().get(x), rule, tabs);
		}

		form.lyrRules().tabOverview().htmOverview().setHTML(sb.toString());
	}

}
 
Example 24
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrSurgeryDetailsTabChanged(LayerBridge tab) 
{
	updateContextMenus();
	
	if (form.getMode().equals(FormMode.EDIT))
	{
		if (tab.equals(form.lyrSurgeryDetails().tabGenDet()))
			form.lyrSurgeryDetails().tabGenDet().dteSurgery().setValue(form.lyrSurgeryDetails().tabProc().dteStartSurgery().getValue());
		
		if (tab.equals(form.lyrSurgeryDetails().tabProc()))
			form.lyrSurgeryDetails().tabProc().dteStartSurgery().setValue(form.lyrSurgeryDetails().tabGenDet().dteSurgery().getValue());
	}
	
}
 
Example 25
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * HACK - This is a messy hack so that score for Scoring Assessments will be displayed
 * because the component doesn't calculate space correctly
 */
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	if (form.lyrMain().tabAssessment().equals(tab))
	{
		form.lyrMain().tabAssessment().ccTumourGroupAssessment().setMode(form.getMode());
		form.lyrMain().tabAssessment().ccTumourGroupAssessment().setReadOnly(FormMode.VIEW.equals(form.getMode()));
	}
}
 
Example 26
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDetailsTabChanged(LayerBridge tab) 
{
	if(form.lyrDetails().tabCycleAndDrugCCO().isVisible())
	{
		//if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null)
	//	{
			initializeCCODynamicGrid(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			showHideDayDurationControls(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			if(form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible())		//wdev-13106
				enableDisableCCOControls(FormMode.EDIT);
			else
				enableDisableCCOControls(FormMode.VIEW);
			//wdev-12393
			ChemoCycleDetailsCCOVo voCycle = (ChemoCycleDetailsCCOVo) form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue(); //wdev-12819
			form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getRows().clear();
			
			ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
			if(voCycleCollectionVo !=  null)
				voCycleCollectionVo.sort(SortOrder.ASCENDING);
			for (int j = 0; voCycleCollectionVo != null && j < voCycleCollectionVo.size(); j++)
			{
				addCCOChemotherapyCyleDetailsRow(voCycleCollectionVo.get(j), form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue(), form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().getValue().equals(GroupStatusEnumeration.rdoActiveFilter));
			}
			if(voCycle != null && voCycleCollectionVo.contains(voCycle))	//wdev-12819
				form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().setValue(voCycle);
			
			updateContextMenuState();
			//---------------
	//	}
		if(!form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible() && form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue() == null)		//wdev-12819
			clearCCOControls();
	}
	
}
 
Example 27
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlayerControl1TabChanged(LayerBridge tab) 
{
	if (tab.getCaption().compareToIgnoreCase("Patient Screening") == 0)
	{
		showScreening(false);
	}
	else
	{
		showMovement(true);
	}
}
 
Example 28
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrTransferTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrDetail().tabTransfer().lyrTransfer().tabIn()))
	{
		if (!form.lyrDetail().tabTransfer().lyrTransfer().tabIn().isInitialized())
		{
			populateTransferInListFromData();
			form.lyrDetail().tabTransfer().lyrTransfer().tabIn().ccInConsultant().initialize(MosType.MEDIC);
		}
	}
	else if (tab.equals(form.lyrDetail().tabTransfer().lyrTransfer().tabOut()))
	{
		if (!form.lyrDetail().tabTransfer().lyrTransfer().tabOut().isInitialized())
		{
			populateTransferOutTabFromData();
		}
		form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(form.getLocalContext().getPendingTransferOutIsNotNull());
	}
	else if (tab.equals(form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant()))
	{
		if (!form.lyrDetail().tabTransfer().lyrTransfer().tabConsultant().isInitialized())
		{
			populateConsultantTransferTabFromData();
		}
		form.lyrDetail().tabTransfer().btnCancelTransfer().setVisible(false);
	}
}
 
Example 29
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrPatientImageTabChanged(LayerBridge tab) 
{	
	if (form.lyrPatientImage().tabUpload().isVisible())
	{
		form.getLocalContext().setSelectedTab(UPLOAD);
	}
	else if (form.lyrPatientImage().tabScan().isVisible())
	{
		form.getLocalContext().setSelectedTab(CAPTURE);
	}
}
 
Example 30
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrProServicesTabChanged(LayerBridge tab)
{
	if(form.getMode().equals(FormMode.EDIT))
		return;
	
	if (tab.equals(form.lyrProServices().tabProfessional()))
		form.getLocalContext().setisTabProfessional(Boolean.TRUE);
	else if (tab.equals(form.lyrProServices().tabServices()))
		form.getLocalContext().setisTabProfessional(Boolean.FALSE);
	open();
}
 
Example 31
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrCustomListSearchTabChanged(LayerBridge tab) {
	if(tab.equals(form.lyrCustomListSearch().tabCustomListSearch())){
		searchCustomList();
		form.lyrCustomListSearch().tabCustomListDetails().setHeaderEnabled(false);
		form.lyrCustomListSearch().showtabCustomListSearch();
		form.lyrCustomListSearch().tabCustomListSearch().setHeaderEnabled(true);
		form.lyrCustomListSearch().tabCustomListSearch().imbSearchCustomList().setAsDefaultButton();
	}
}
 
Example 32
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrListsTabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyrLists().tabPageCurrentIP()))
		form.lyrLists().tabPageCurrentIP().ccCurrentIPList().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingElectiveAdmissions()))
		form.lyrLists().tabPagePendingElectiveAdmissions().ccPending().refresh();
	
	if (tab.equals(form.lyrLists().tabPageBedState()))
		form.lyrLists().tabPageBedState().ccBedState().refresh();

	if (tab.equals(form.lyrLists().tabPageRecentDischarges()))
		form.lyrLists().tabPageRecentDischarges().ccRecentDischarges().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingEmergencyAdmissions()))
		form.lyrLists().tabPagePendingEmergencyAdmissions().ccPengingEmergencyAdms().refresh(false);

	if (tab.equals(form.lyrLists().tabPageTransfers()))
		form.lyrLists().tabPageTransfers().ccTransfers().refresh();

	if (tab.equals(form.lyrLists().tabPagePendingDischarges()))
		form.lyrLists().tabPagePendingDischarges().cc1().refresh();
	
	if (tab.equals(form.lyrLists().tabElectiveListPendingElectiveAdms()))
		form.lyrLists().tabElectiveListPendingElectiveAdms().ccPendingEL().refresh();
}
 
Example 33
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrValuesTabChanged(LayerBridge tab)
{
	if (form.lyrValues().tabClassificationValues().grdValues().getSelectedRow() != null)
		populateValuesTaxonomyMap();

}
 
Example 34
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrTabs().tabRoles()))
	{
		createDynamicGridColumns(form.lyrTabs().tabRoles().dyngrdQuestions(), false);
		roleGridSelectionChanged();
	}
	
	if(tab.equals(form.lyrTabs().tabGroups()))
	{
		refreshGroupGrid();
	}
}
 
Example 35
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrTabsTabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyr1().tabFavourites());
	if (isFavouriteTab)
		populateFavorites();

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);

}
 
Example 36
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyr1TabChanged(LayerBridge tab)
{
	boolean isFavouriteTab = tab.equals(form.lyr1().tabFavourites());
	if (isFavouriteTab)
		populateFavorites();

	enableFavouritesContextMenu(isRecordChecked(), isFavouriteTab);
}
 
Example 37
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyr1TabChanged(LayerBridge tab)
{
	if (form.lyr1().tabSendToConfig().isVisible())
	{
		form.lyr1().tabSendToConfig().ccSendToConfig().setValue(form.getLocalContext().getAreaFromSendToConfig());
	}
	else if (form.lyr1().tabAreaWorkspace().isVisible())
	{
		form.lyr1().tabAreaWorkspace().ccAreaWorkspaceConfig().setValue(form.getLocalContext().getAreaFromAreaWorkspace());
	}
	
	updateControlsState();
}
 
Example 38
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}
 
Example 39
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrObs2TabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().initialize();
   		}
   		updateControlsState();
	}
}
 
Example 40
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		open();
	}
}
 
Example 41
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrObs2TabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		open();//WDEV-17337
	}
}
 
Example 42
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}
 
Example 43
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrObs2TabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrinalysis().ccUrinalysis().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabUrineTox().ccUrineTox().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabHCG().ccHCG().initialize();
   		}
   		else if (tab.equals(form.lyrPatientTriage().tabObs2().lyrObs2().tabOther()))
   		{
   			form.lyrPatientTriage().tabObs2().lyrObs2().tabOther().ccPatientAssessment().initialize();
   		}
   		updateControlsState();
	}
}
 
Example 44
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrSupportServicesTabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyrSupportServices().tabPageProf()))
		openProfessional();
	else if (tab.equals(form.lyrSupportServices().tabPageServices()))
		openServices();
	else if (tab.equals(form.lyrSupportServices().tabPageFamily()))
		openFamily();
	
	
}
 
Example 45
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	if (form.lyrMain().tabAdviceTransport().equals(tab))
	{
		form.lyrMain().tabAdviceTransport().ccAdvice().setReadOnly(form.getLocalContext().getReadOnly());
	}
	else if (form.lyrMain().tabOutcome().equals(tab))
	{
		form.lyrMain().tabOutcome().ccOutcome().setReadOnly(form.getLocalContext().getReadOnly());
	}		
}
 
Example 46
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
//WDEV-16673
protected void onlyrEmergencyAttendanceTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
		grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow();
		
		if (selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof AttendanceDetailsVo)
		{
			form.getGlobalContext().Core.setCurrentCareContext(selectedRow.getValue()!=null ? ((AttendanceDetailsVo) selectedRow.getValue()).getCareContext():null);
			form.getGlobalContext().Emergency.setCurrentEmergencyAttendance(domain.getAttendanceDetails((AttendanceDetailsVo) selectedRow.getValue()));
			
			AttendanceDetailsVo selectedAttendance = form.getGlobalContext().Emergency.getCurrentEmergencyAttendance();
			CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
			EpisodeofCareLiteVo episodeOfCare = careContext.getEpisodeOfCare();
			PatientShort patient = form.getGlobalContext().Core.getPatientShort();
			
			if (tab.equals(form.lyrEmergencyAttendance().tabAttDet()))
			{
				form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setValue(selectedRow.getValue());
			}
			else if (tab.equals(form.lyrEmergencyAttendance().tabChart()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
			{
				form.lyrEmergencyAttendance().tabChart().ccChatRequested().initialize(selectedAttendance, patient, careContext, episodeOfCare);
				form.lyrEmergencyAttendance().tabChart().ccChatRequested().setValue(domain.getChartRequestedByEmergencyAttendance(selectedAttendance));
				
			}
			else if (tab.equals(form.lyrEmergencyAttendance().tabInvoices()) && selectedRow.getValue() instanceof AttendanceDetailsVo)
			{
				form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().initialize(selectedAttendance, patient, episodeOfCare, careContext);
				form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setValue(domain.getAttendanceBillingByEmergencyAttendance(selectedAttendance));
				
			}
		}	
	}
	updateControlState();	
}
 
Example 47
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	boolean isICPCompleted = form.getLocalContext().getICP() == null || form.getLocalContext().getICP().getCompletedDateTime() != null;
	
	if (tab instanceof tabActionDetailsContainer)
	{
		form.lyrMain().tabActionDetails().ccActionDetails().setValue(form.getLocalContext().getSelectedAction(), !isICPCompleted);
	}
	if (tab instanceof tabLinkedActionsContainer)
	{
		form.lyrMain().tabLinkedActions().ccLinkedActionsDetails().setValue(form.lyrMain().tabLinkedActions().recbrLinkedActions().getValue(), !isICPCompleted);
	}
}
 
Example 48
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDrawingTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrDrawing().tabRegionConfig()))
	{
		DrawingGraphicImageVo voDrawingGraphicImage = form.getLocalContext().getImageRecord();
		// Set the Image name - as it should be displayed as a root for the
		// DrawingConfing control
		setImageName(voDrawingGraphicImage);
	}
}
 
Example 49
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrSpecColConfigTabChanged(LayerBridge tab)
{
	if (tab.getCaption().compareToIgnoreCase("Exception Days") == 0)
	{
		setupButtonsForHolidays();
	}
	else
	{
		open();
	}
}
 
Example 50
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrDetailTabChanged(LayerBridge tab)
{
	getSelectedTab(tab);
	if (form.getLocalContext().getSelectedTab().equals(ReferralDetailsSelectedTab.NOTES))				
	{
		form.lyrDetail().tabNotes().ccNotes().initialize();
	}
	else if (form.getLocalContext().getSelectedTab().equals(ReferralDetailsSelectedTab.DOCUMENTS))				
	{
		// If people don't update the global contexts - next time I will stab myself with my keyboard.
		form.getGlobalContext().RefMan.setCatsReferral(domain.getCatsReferral(form.getGlobalContext().RefMan.getCatsReferral()));
		CatsReferralWizardVo voRefWizard = domain.getCatsReferral(form.getGlobalContext().RefMan.getCatsReferral());
		form.getGlobalContext().RefMan.setCatsReferralStatus(voRefWizard.getCurrentStatus());
		form.getGlobalContext().RefMan.setReferralContractTypeForPatient(voRefWizard.getContractIsNotNull() ? voRefWizard.getContract().getContractType() : null);//wdev-12682

		if (voRefWizard != null
			&& voRefWizard.getReferralDetailsIsNotNull()
			&& voRefWizard.getReferralDetails().getService() == null)
			form.lyrDetail().tabLetter().ccUpload().setMode(FormMode.VIEW);
	}
	else if(form.getLocalContext().getSelectedTabIsNotNull() && form.getLocalContext().getSelectedTab().equals(ReferralDetailsSelectedTab.OVERVIEW))
	{
		form.lyrDetail().tabOverview().ccReferralOverviewAndKpis().initialize(form.getGlobalContext().RefMan.getCatsReferral());
		form.lyrDetail().tabOverview().ccReferralOverviewAndKpis().setMode(FormMode.VIEW);
	}
	else if(form.getLocalContext().getSelectedTabIsNotNull() && form.getLocalContext().getSelectedTab().equals(ReferralDetailsSelectedTab.REFERRAPPOINTMENTDETAILS))
	{
		CatsReferralDetailsVo voContainer = domain.getReferralDetail(form.getGlobalContext().RefMan.getCatsReferral());			
		form.lyrDetail().tabAppt().ccApptDetail().setValue(voContainer.getAppointmentDetail());
	}
}
 
Example 51
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void getSelectedTab(LayerBridge tab)
{
	if (tab.equals(form.lyrDetail().tabOverview()))
	{
		form.getLocalContext().setSelectedTab(ReferralDetailsSelectedTab.OVERVIEW);
	}
	else if (tab.equals(form.lyrDetail().tabDetails()))
	{
		form.getLocalContext().setSelectedTab(ReferralDetailsSelectedTab.DETAILS);
	}
	else if (tab.equals(form.lyrDetail().tabPresentation()))
	{
		form.getLocalContext().setSelectedTab(ReferralDetailsSelectedTab.PRESENTATION);
	}
	else if (tab.equals(form.lyrDetail().tabLetter()))
	{
		form.getLocalContext().setSelectedTab(ReferralDetailsSelectedTab.DOCUMENTS);			
	}
	else if (tab.equals(form.lyrDetail().tabAppt()))
	{
		form.getLocalContext().setSelectedTab(ReferralDetailsSelectedTab.REFERRAPPOINTMENTDETAILS);			
	}
	else if (tab.equals(form.lyrDetail().tabNotes()))
	{
		form.getLocalContext().setSelectedTab(ReferralDetailsSelectedTab.NOTES);			
	}
}
 
Example 52
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrNursingTabChanged(LayerBridge tab) 
{
	if (tab.equals(form.lyr1().tabNursing().lyrNursing().tabClexane()))
	{
		populateClexaneTab();
	}
}
 
Example 53
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyr1TabChanged(LayerBridge tab)
{

	if (tab.equals(form.lyr1().tabPagePresentationComp()))
	{
		
		if(form.getLocalContext().getPresentationReferralSummaryvoIsNotNull())
		{
			
			populatePresentationTab(form.getLocalContext().getPresentationReferralSummaryvo());
			
		}
		else
		{
		
			PresentationReferralSummaryVo refSummary  = domain.getPresentationReferralSummary(form.getGlobalContext().RefMan.getCatsReferral());
			form.getLocalContext().setPresentationReferralSummaryvo(refSummary);
			populatePresentationTab(refSummary);
		
		}	

	}
	else if (tab.equals(form.lyr1().tabPageLetter()))
	{
		try
		{
		
			form.lyr1().tabPageLetter().ccUploadDoc().initialize(DocumentCategory.GPLETTER, UploadDocumentStoreLevel.REFERRAL,DocumentViewLevel.REFERRAL);//WDEV-12242
		
		}
		catch (RuntimeException e)
		{
			engine.showMessage(e.toString());
		}
	}
}
 
Example 54
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrSelectTabChanged(LayerBridge tab)
{
	if (tab.equals(form.lyrSelect().tabWaitingList()))
	{
		populateWaitingListGrid();
	}
	//WDEV-18449 
	if (tab.equals(form.lyrSelect().tabAppInvs()))
	{
		form.getLocalContext().setAction(ReferralAppointmentDetailsAction.REFRESH);
		form.fireCustomControlValueChanged();
	}
}
 
Example 55
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyr1TabChanged(LayerBridge tab) {
	if (form.lyr1().tabGeneralInstructions().isVisible())
	{
		form.lyr1().tabGeneralInstructions().ccGeneralDetails().refresh();
		return;
	}
	if (form.lyr1().tabDiagram().isVisible())
	{
		form.lyr1().tabDiagram().ccDiagram().refresh();
		return;
	}
	if (form.lyr1().tabOperationDetails().isVisible())
	{
		form.lyr1().tabOperationDetails().ccOperationDetail().refresh();
		return;
	}
	if (form.lyr1().tabPostOp().isVisible())
	{
		form.lyr1().tabPostOp().ccPostOpInstruction().refresh();
		return;
	}
	if (form.lyr1().tabPreview().isVisible())
	{
		form.lyr1().tabPreview().ccPreview().refresh();
		return;
	}
}
 
Example 56
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrSurgeryDetailsTabChanged(LayerBridge tab) 
{
	updateContextMenus();
	
	if (form.getMode().equals(FormMode.EDIT))
	{
		if (tab.equals(form.lyrSurgeryDetails().tabGenDet()))
			form.lyrSurgeryDetails().tabGenDet().dteSurgery().setValue(form.lyrSurgeryDetails().tabProc().dteStartSurgery().getValue());
		
		if (tab.equals(form.lyrSurgeryDetails().tabProc()))
			form.lyrSurgeryDetails().tabProc().dteStartSurgery().setValue(form.lyrSurgeryDetails().tabGenDet().dteSurgery().getValue());
	}
	
}
 
Example 57
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * HACK - This is a messy hack so that score for Scoring Assessments will be displayed
 * because the component doesn't calculate space correctly
 */
@Override
protected void onlyrMainTabChanged(LayerBridge tab)
{
	if (form.lyrMain().tabAssessment().equals(tab))
	{
		form.lyrMain().tabAssessment().ccTumourGroupAssessment().setMode(form.getMode());
		form.lyrMain().tabAssessment().ccTumourGroupAssessment().setReadOnly(FormMode.VIEW.equals(form.getMode()));
	}
}
 
Example 58
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDetailsTabChanged(LayerBridge tab) 
{
	if(form.lyrDetails().tabCycleAndDrugCCO().isVisible())
	{
		//if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null)
	//	{
			initializeCCODynamicGrid(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			showHideDayDurationControls(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			if(form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible())		//wdev-13106
				enableDisableCCOControls(FormMode.EDIT);
			else
				enableDisableCCOControls(FormMode.VIEW);
			//wdev-12393
			ChemoCycleDetailsCCOVo voCycle = (ChemoCycleDetailsCCOVo) form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue(); //wdev-12819
			form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getRows().clear();
			
			ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
			if(voCycleCollectionVo !=  null)
				voCycleCollectionVo.sort(SortOrder.ASCENDING);
			for (int j = 0; voCycleCollectionVo != null && j < voCycleCollectionVo.size(); j++)
			{
				addCCOChemotherapyCyleDetailsRow(voCycleCollectionVo.get(j), form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue(), form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().getValue().equals(GroupStatusEnumeration.rdoActiveFilter));
			}
			if(voCycle != null && voCycleCollectionVo.contains(voCycle))	//wdev-12819
				form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().setValue(voCycle);
			
			updateContextMenuState();
			//---------------
	//	}
		if(!form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible() && form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue() == null)		//wdev-12819
			clearCCOControls();
	}
	
}
 
Example 59
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyr1TabChanged(LayerBridge tab)
{
	if (form.lyr1().tabSendToConfig().isVisible())
	{
		form.lyr1().tabSendToConfig().ccSendToConfig().setValue(form.getLocalContext().getAreaFromSendToConfig());
	}
	else if (form.lyr1().tabAreaWorkspace().isVisible())
	{
		form.lyr1().tabAreaWorkspace().ccAreaWorkspaceConfig().setValue(form.getLocalContext().getAreaFromAreaWorkspace());
	}
	
	updateControlsState();
}
 
Example 60
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onlyrPatientTriageTabChanged(LayerBridge tab)
{
	if (FormMode.VIEW.equals(form.getMode()))
	{
   		if (tab.equals(form.lyrPatientTriage().tabObs2()))
   		{
   			//form.lyrPatientTriage().tabObs2().lyrObs2().tabVitalSigns().ccVitalSignsObs().initialize();
   			initializeObsLayerTabs();
   		}
   		updateControlsState();
	}
}