Java Code Examples for ims.framework.exceptions.PresentationLogicException

The following are top voted examples for showing how to use ims.framework.exceptions.PresentationLogicException. 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 onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
	initialise();

	//If we have make a search before this one, our search criteria will be loaded into the criteria search elements.
	if (form.getGlobalContext().STHK.getPendingDischargesListFilterIsNotNull())
	{
		refreshSearchCriteria();
	}
	else
	{
		form.int1().setValue(24);
		form.cmbTime().setValue(TimeUnitsSecondsToMonths.HOURS);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
	if (form.getLocalContext().getPatternTypesCollectionIsNotNull() && form.getLocalContext().getPatternTypesCollection().size() > 0)
	{
		form.setMode(FormMode.EDIT);
		clearScreen();
		form.cmbType().clear();
		form.getLocalContext().setSelectedDailyPatternConfigVo(null);
		for( int i = 0 ; i < form.getLocalContext().getPatternTypesCollection().size() ; i++)
		{
			//For any records in the PatternTypesCollection, check to see if there is a Pattern already saved. 
			//If so do not add it to the Daily Pattern Type Combo
			boolean bFound = false;
			
			for (int j = 0 ; j < form.grdType().getRows().size() ; j++)
			{
				if (form.grdType().getRows().get(j).getValue().getDailyPatternType().equals(form.getLocalContext().getPatternTypesCollection().get(i)))
					bFound = true;
			}
			if (!bFound)
				form.cmbType().newRow(form.getLocalContext().getPatternTypesCollection().get(i), form.getLocalContext().getPatternTypesCollection().get(i).getText());
		}
	}
	else
		engine.showMessage("There are no Pattern Types available to configure.");
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch (menuItemID)
	{
		case GenForm.ContextMenus.GenericGrid.Add :
			newInstance();
		break;
		case GenForm.ContextMenus.GenericGrid.Update :
			updateInstance();
		break;
		case GenForm.ContextMenus.GenericGrid.Remove :
			form.gridRooms().removeSelectedRow();
			//wdev-13805
			updateControlsState();
		break;
	}
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
	switch (menuItemID)
	{
		case GenForm.ContextMenus.ClinicalNoting.ADD :
			newClinicalNote();
		break;
		case GenForm.ContextMenus.ClinicalNoting.EDIT :
			editClinicalNote();
		break;
		case GenForm.ContextMenus.ClinicalNoting.VIEW :
			viewClinicalNote();
		break;
		case GenForm.ContextMenus.ClinicalNoting.REVIEW :
			reviewClinicalNote();
		break;
		case GenForm.ContextMenus.ClinicalNoting.VALIDATE :
			validateClinicalNote();
		break;
		case GenForm.ContextMenus.ClinicalNoting.STATUS_HIST :
			viewStatusHistory();
		break;

		default :
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{		
	//return to worklist?
	form.lnkReturn().setVisible(form.getGlobalContext().Pathways.getSelectedPatientPathwayJourneyIsNotNull());
	
	//launched from worklist
	if(form.getGlobalContext().Pathways.getSelectedPatientPathwayJourneyIsNotNull())
	{	
		displayJourney();	
	}
	else
		open();
	
	form.imbComments().setEnabled(false);
	form.imbComments().setTooltip(null);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
	switch (menuItemID)
	{
		case GenForm.ContextMenus.CoreNamespace.MDTCustomLists.VIEW_MDT_DETAILS:
			engine.open(form.getForms().Oncology.MDTDetailsDialog);
		break;
		case GenForm.ContextMenus.CoreNamespace.MDTCustomLists.VIEW_CARE_PLAN_DETAILS:
			engine.open(form.getForms().Oncology.CarePlanDetailsDialog);
		break;
			
		default :
			break;
	}
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onTreNavTreeViewSelectionChanged(ims.framework.controls.TreeNode node) throws ims.framework.exceptions.PresentationLogicException
{
	setFormMode(form.getMode());
	Object val = node.getValue();
	if (val instanceof AppNavFormVo)
	{
		form.grdForms().setEnabled(false);
		AppNavFormVo navForm = (AppNavFormVo)val;
		AppFormVo formVo = navForm.getForm();
		if (formVo.equals(this.getAssessmentForm()) && form.getMode().equals(FormMode.EDIT))
		{
			form.grdAssessments().setEnabled(true);
		}
	}
	else
	{
		if (form.getMode().equals(FormMode.EDIT))
		{
			form.grdForms().setEnabled(true);			
		}
	}
	form.getLocalContext().setSelectedTreeValue(node.getValue());
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onQmbConsultantTextSubmited(String value) throws PresentationLogicException
{
	form.qmbConsultant().clear();
	
	HcpLiteVoCollection voCollHcp = domain.listConsultants(value);
	if (voCollHcp==null || voCollHcp.size() == 0)
	{
		return;
	}

	for (int i = 0; i < voCollHcp.size(); i++)
	{
		form.qmbConsultant().newRow(voCollHcp.get(i), voCollHcp.get(i).getName().toString());
	}

	if (voCollHcp.size() == 1)
		form.qmbConsultant().setValue(voCollHcp.get(0));
	else
		form.qmbConsultant().showOpened();
	
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onCmbTumourGroupValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
	// Get Tumour Group detailed record value
	form.getLocalContext().setSelectedGroup(domain.getTumourGroupList(form.lyrMain().tabTumourDetails().cmbTumourGroup().getValue()));
	// Clear Tumour Site detailed record value
	form.getLocalContext().setSelectedSite(null);
	// Allow data from 'Overall Staging' tab to be imported to 'Overall Prognostic' tab (only at creation)
	if (!form.getLocalContext().getSelectedRecordIsNotNull())
		form.getLocalContext().setDataWasImported(Boolean.FALSE);
	
	// Populate instance controls depending on Tumour Group selected record
	populateTumourGroupDependencies(form.getLocalContext().getSelectedGroup());
	
	// Refresh controls state
	updateControlsState();
}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
public void open() throws PresentationLogicException 
{
	form.setMode(FormMode.VIEW);				
	clear();
	ActualPlanDetailsVo voList = domain.getRecord(form.getGlobalContext().Core.getCurrentCareContext());
		
	if (voList != null)				
	{
		populateScreenFromData(voList);
		form.getLocalContext().seteditedRecord(voList);
		statusButtons(EDIT);
	}
	else
	{
		statusButtons(NEW);
	}		
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	//WDEV-14616 
	if (formName.equals(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog)&& result.equals(DialogResult.OK)&& form.dtimTo().getValue() != null && ims.clinical.vo.enums.ExtendedPatientClinicalNotes_ContextMenuSelected.ADD.equals(form.getLocalContext().getcontextMenuSelected()))
	{
		DateTime dt = form.dtimTo().getValue();
		dt.addMinutes(15);
		
		form.dtimTo().setValue(null);//WDEV-14616 
		form.dtimTo().setValue(dt);
		
		form.getLocalContext().setcontextMenuSelected(null);//WDEV-14616 
	}
	
	search();
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
@Override
protected void onQmbReportsTextSubmited(String value) throws PresentationLogicException
{
	form.qmbReports().clear();
	
	ReportTemplateLiteVoCollection coll = domain.listTemplates('%' + value + '%', form.chkDFT().getValue());

	for(ReportTemplateLiteVo item : coll)
	{
		form.qmbReports().newRow(item, item.getName());
	}
	
	if(coll.size() == 1)
	{
		form.qmbReports().setValue(coll.get(0));
	}
	else if(coll.size() > 1)
	{
		form.qmbReports().showOpened();
	}
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onChkCopyValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
	if(form.getLocalContext().getPreviousAssBladderIsNotNull())
	{
		NurAssessmentBladderVo previousBladderVo = new NurAssessmentBladderVo();
		previousBladderVo = form.getLocalContext().getPreviousAssBladder();
		if(previousBladderVo != null)
		{
			previousBladderVo.setIsComplete(Boolean.FALSE);
			previousBladderVo.setCopy(Boolean.TRUE);
			
			form.chkCopy().setValue(true);
			form.chkCopy().setEnabled(false);	

			previousBladderVo.setCarePlanTemplate(null);
			this.populateScreenFromData(previousBladderVo);	
		}
		
	}
	else
	{
		form.chkCopy().setValue(false);
		return;
	}
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	//initializeFixedQuestionsGrid();
	
	engine.open(form.getForms().Emergency.ImportWhiteboardConfig);
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
	clearScreen();
	loadLookupsIntoGrid();
	form.setMode(FormMode.EDIT);
	form.setcustomControlAuthoringInfoEnabled(true);
	//wdev-13067
	form.customControlAuthoringInfo().setIsRequiredPropertyToControls(true);
	//---------
	setDefaultValues();
	form.dteClinic().setValue(form.getGlobalContext().Core.getCurrentCareContext().getStartDateTime().getDate());

	SocialHistoryVo socialVo = domain.getSocialHistoryByPatient(form.getGlobalContext().Core.getPatientShort());
	if (socialVo != null)
	{
		socialVo.setID_SocialHistory(null);
		socialVo.setCareContext(null);
		socialVo.setAuthoringInformation(null);
		socialVo.setClinicalContact(null);

		form.getLocalContext().setMedSocialHistory(socialVo);
	}
	else
		form.getLocalContext().setMedSocialHistory(null);

	populateSocialHistoryScreenFromData();

}
 
Example 16
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onChkIsQuestionValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
	form.grdAnswerType().getRows().clear();
	if(form.chkIsQuestion().getValue() == false)
	{
		if(form.grdAnswerType().getRows().size() > 0)
		{
			form.grdAnswerType().getRows().clear(); 
		}
	}
	setControlsStatus();
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (form.getForms().Admin.NavigationImageSelectDialog.equals(formName) && DialogResult.OK.equals(result))
	{

		INavigationNode node = form.getGlobalContext().Admin.getNavigationEditedGroup();

		node.setTextNode(form.getGlobalContext().Admin.getNavigationEditedGroup().getTextNode());
		node.setImageNode(form.getGlobalContext().Admin.getNavigationEditedGroup().getImageNode());
		TreeNode editedNode = form.treNav().getSelectedNode();
		if (editedNode == null || !node.equals(editedNode.getValue()))
		{
			createNewTreeNode(node, editedNode);

		}
		else
		{
			editedNode.setCollapsedImage(node.getImageNode());
			editedNode.setText(node.getTextNode());
		}
		// if (editedNode == null)
		// return;

		Object savedValue = editedNode == null ? null : editedNode.getValue();
		populateTree(form.getLocalContext().getSelectedNav());
		form.treNav().setValue(savedValue);
		verifyQmbSearch();
		verifyQmbStart();
		updateControlsState();

	}

}
 
Example 18
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
	clearContexts();
	clearScreen(false);
	open();
	form.setMode(FormMode.VIEW);		
}
 
Example 19
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onBtnReOpenClick() throws PresentationLogicException
{
	updateSessionStatus(form.getLocalContext().getSelectedSession(), Session_Status_and_Reason.OPEN);
	updateScreenForRecord(null);
	
}
 
Example 20
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void open() throws PresentationLogicException 
{
	form.setMode(FormMode.VIEW);
	clearScreen();
	clearGrids();
	loadPlannedModalityGrid();
	fillRecordBrowser();		
	
	if (isDialog())
		form.btnClose().setVisible(true);
	else
		form.btnClose().setVisible(false);
}
 
Example 21
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if(formName.equals(form.getForms().Core.BayBedSpaceLayoutDesigner) && result.equals(DialogResult.OK))
	{
		open();
	}
}
 
Example 22
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch (menuItemID)
	{
		case GenForm.ContextMenus.EmergencyNamespace.DischargeAdviceTransport.PRINT_ADVICE:

			form.getLocalContext().setCustomEvent(null);
			// Select printer
			selectPrinter();
			break;
	}
}
 
Example 23
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch(menuItemID)
	{
		case GenForm.ContextMenus.GenericGrid.Add:
			newInstance();
			break;
		case GenForm.ContextMenus.GenericGrid.Update:
			updateInstance();
			break;
		case GenForm.ContextMenus.GenericGrid.Remove:
			removeChild();
	}
}
 
Example 24
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onImbResetClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.cmbSpecialty().setValue(null);
	form.dteDate().setValue(null);
	form.cmbCustomLists().setValue(null);
	form.cmbCustomLists().clear();
	form.grdPatients().getRows().clear();
	form.getContextMenus().Core.hideAllMDTCustomListsMenuItems();
}
 
Example 25
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onQmbComorbidityTextSubmited(String value) throws PresentationLogicException
{
	try
	{
		populateComorbidityQcmb(value);
	}
	catch (DomainInterfaceException e)
	{
		engine.showMessage(e.getMessage());
	}

	updateControlState();
}
 
Example 26
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Admin.ImageSelectDialog) && result.equals(DialogResult.OK))
	{
		if (form.getGlobalContext().Admin.getSelectedImageIsNotNull())
			form.lyrActivity().tabSchedulling().txtActImage().setValue(form.getGlobalContext().Admin.getSelectedImage().getImagePath());

	}
}
 
Example 27
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException 
{
	switch(menuItemID)
	{
		case GenForm.ContextMenus.GenericGrid.Add:
			newInstance();
			break;
		case GenForm.ContextMenus.GenericGrid.Update:
			updateInstance();
			break;
	}
}
 
Example 28
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onImbClearClick() throws PresentationLogicException
{
	clearSearchCriteriaFields();
	form.grdExternalResource().getRows().clear();
	
	form.getLocalContext().setEventSelected(null);
	form.fireCustomControlValueChanged();
}
 
Example 29
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onMessageBoxClosed(int messageBoxId, DialogResult result)
		throws PresentationLogicException {
	// TODO Auto-generated method stub
	if(form.getLocalContext().getErrorMessageIsNotNull() && form.getLocalContext().getErrorMessage() == messageBoxId)
	{
		if(DialogResult.OK.equals(result))
			engine.close(DialogResult.ABORT);
	}
}
 
Example 30
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onImbIPSearchClick() throws PresentationLogicException
{

	form.getContextMenus().Correspondence.hideAllCorrespondenceDetailsMenuItems();
	form.getGlobalContext().Correspondence.setPatientListSearchCriteria(null);
	form.getLocalContext().setpreviousScreens(0);
	int maxContacts = maxContactSearch();

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

	PatientListsFilterVo voFilter = populateIPSearchCriteria();
	if (voFilter != null)
	{
		PasContactVoCollection voColl = listIPPasContactColl(voFilter);
		populateInpatientGrid(voFilter, voColl);
		if ((voColl != null) && (voColl.size() != 0))
			saveFirstAndLastRecords(TABIP);
		if ((voColl != null) && (voColl.size() == maxContacts))
		{
			showHideNext(voFilter);
		}
		else
		{
			showHideButtons(false, false, true, form.lyrPatientLists().tabInpatientList().btn1(), form.lyrPatientLists().tabInpatientList().btn2());
		}
	}
}
 
Example 31
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onDteDateValueChanged() throws PresentationLogicException
{
	if(form.cmbHospital().getValue() != null && form.dteDate().getValue() != null)
		loadClinics(false);
	else if (form.dteDate().getValue() == null){
		form.cmbClinic().clear();
		//WDEV-11624 clear grid to avoid refresh problem
		form.grdResults().getRows().clear();
		form.getContextMenus().Clinical.hideAllOPClinicViewListMenuItems();
	}
		
}
 
Example 32
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onRecbrAssessmentValueChanged() throws PresentationLogicException
{
	PatientAssessmentRefVo voPatAssRefVo = form.recbrAssessment().getValue();
	//Context User for RIE only
	form.getLocalContext().setSelectedRecord(voPatAssRefVo);
	
	clearDPPQuestionGroupContext();
	if(voPatAssRefVo != null)
	{
		PatientAssessmentVo voPatAssessment = domain.getPatientAssessment(voPatAssRefVo);
		setIsDppAdmissionAssessment(voPatAssessment);
		PlanOfCareVoCollection planOfCareColl = listPOCRecords(voPatAssessment);
		setPOCData(planOfCareColl, voPatAssessment);
		form.getGlobalContext().Nursing.setPatientAssessmentVo(voPatAssessment);
		form.getGlobalContext().Nursing.setPlanOfCareCollection(planOfCareColl);
		form.getGlobalContext().Nursing.setIsDppCompleted(voPatAssessment != null && voPatAssessment.getStatusIsNotNull() && voPatAssessment.getStatus().equals(PatientAssessmentStatusReason.COMPLETED)?Boolean.TRUE:Boolean.FALSE);
		
		populateDetailsGrid(voPatAssessment);
		displayScoreTotalInTree(voPatAssessment);
	}
	//start WDEV-13887
	else
	{
		clearControlsAndContext();
	}
	
	updateControlState();  
	//end
}
 
Example 33
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.EDIT);
	form.fireCustomControlValueChanged();
	newInstance();
}
 
Example 34
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onBtnCancelClick() throws PresentationLogicException
{
	clearInterpreterPanel();
	form.setMode(FormMode.VIEW);
	populateGrid(form.getLocalContext().getinterpretersList());
	updateContextMenu();
}
 
Example 35
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onLnkCBGMClick() throws PresentationLogicException
{
	//Core.VitalSignsBaselineAndAll, ID: 102341
	form.getGlobalContext().Core.setIdForm(102341);
	engine.open(form.getForms().Core.VitalSignsBloodSugar);

}
 
Example 36
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onBNewClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.getLocalContext().setRoomDetail(null);
	form.setMode(FormMode.EDIT);
	form.ctnDetails().setCollapsed(false);
	form.gridRooms().setValue(null);
	clearInstanceControls();
}
 
Example 37
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if ( (formName.equals(form.getForms().Core.TaxonomySearch)) && (result.equals(DialogResult.OK)) )
	{
		if(form.getGlobalContext().Core.getTaxonomyMapIsNotNull())
		{
			TaxonomyMap voTaxonomyMap = form.getGlobalContext().Core.getTaxonomyMap();
			grdExternalRow row = form.grdExternal().getRowByValue(voTaxonomyMap);
			if ((row == null) && (form.grdExternal().getSelectedRowIndex() >= 0))
				row = form.grdExternal().getRows().get(form.grdExternal().getSelectedRowIndex());
			else
			{
				engine.showMessage("Please select an External Code row and try again.");
				return;
			}				
			populateTaxonomy(row, voTaxonomyMap);
				
			//Check if the user wants to change the name of the Procedure
			if(!voTaxonomyMap.getDescription().equals(form.txtDiagnosisName().getValue()))
			{
				form.getGlobalContext().Core.setYesNoDialogMessage("Do you want to call the diagnosis - " + voTaxonomyMap.getDescription() + " ?");
				engine.open(form.getForms().Core.YesNoDialog);
			}
			updateContextMenu();
		}
	}
	
	else if ( (formName.equals(form.getForms().Core.YesNoDialog)) && (result.equals(DialogResult.YES)) )
	{
		//Change the name of the Procedure as the one from the Taxonomy Search
		form.txtDiagnosisName().setValue(form.getGlobalContext().Core.getTaxonomyMap().getDescription());
		updateContextMenu();
	}		
}
 
Example 38
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onInfoLinkClick() throws ims.framework.exceptions.PresentationLogicException
{
	if (form.getLocalContext().getAssessSpirituality() != null && form.getLocalContext().getAssessSpirituality().getAssessmentInfo() != null)
	{
		form.getGlobalContext().Nursing.setAssessmentInfo(form.getLocalContext().getAssessSpirituality().getAssessmentInfo());
		engine.open(form.getForms().Nursing.AssessmentInfo);
	}
}
 
Example 39
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
	populateDataFromGrid();

	engine.close(DialogResult.OK);
}
 
Example 40
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onGrdBalanceSelectionChanged() throws ims.framework.exceptions.PresentationLogicException
{
	updateControlsState();
	
	ValueObject value = form.grdDetails().getValue();
	
	form.getLocalContext().setRIERecord(value instanceof DailyFluidBalanceVo ? (DailyFluidBalanceVo)value : null);
}