Java Code Examples for ims.ocrr.forms.newresultsinpatienttabcomponent.GenForm.ListResultsByEnumeration

The following are top voted examples for showing how to use ims.ocrr.forms.newresultsinpatienttabcomponent.GenForm.ListResultsByEnumeration. 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
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkCurrentInpatientsOnly().setValue(null);
	form.chkInpatientOrdersPatientDischarged().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkCurrentInpatientsOnly().setValue(null);
	form.chkInpatientOrdersPatientDischarged().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkCurrentInpatientsOnly().setValue(null);
	form.chkInpatientOrdersPatientDischarged().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
public void clear() 
{
	form.cmbHospital().setValue(null);
	form.qmbOrderingLocation().setEnabled(false);
	form.qmbOrderingLocation().setValue(null);
	form.chkCurrentInpatientsOnly().setValue(null);
	form.chkInpatientOrdersPatientDischarged().setValue(null);
	form.chkOrder().setValue(null);
	form.chkCurrentIP().setValue(null);
	form.ccResponsibleHCP().clear();
	form.qmbReviewingHCP().clear();				

	form.chkNew().setValue(false);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(false);	
	form.chkCompleted().setValue(false); 
	
	form.grdDisciplines().getRows().clear();
	form.dteFrom().setValue(null);
	form.dteTo().setValue(null);
	form.cmbDays().setValue(null);
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	form.chkAbnormalPathologyResultsOnly().setValue(null);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	populateWard();
	
	form.chkCurrentInpatientsOnly().setValue(true);
	form.chkInpatientOrdersPatientDischarged().setValue(true);
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	
	form.chkOrder().setValue(true);
	form.chkCurrentIP().setValue(true);
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	//newResultsSearchCriteria.setInpatientOrders(true);
	
	newResultsSearchCriteria.setSelectedTab(INPATIENT);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());
	
	newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());
	
	newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
	newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	populateWard();
	
	form.chkCurrentInpatientsOnly().setValue(true);
	form.chkInpatientOrdersPatientDischarged().setValue(true);
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	
	form.chkOrder().setValue(true);
	form.chkCurrentIP().setValue(true);
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	//newResultsSearchCriteria.setInpatientOrders(true);
	
	newResultsSearchCriteria.setSelectedTab(INPATIENT);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());
	
	newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());
	
	newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
	newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	populateWard();
	
	form.chkCurrentInpatientsOnly().setValue(true);
	form.chkInpatientOrdersPatientDischarged().setValue(true);
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	
	form.chkOrder().setValue(true);
	form.chkCurrentIP().setValue(true);
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	//newResultsSearchCriteria.setInpatientOrders(true);
	
	newResultsSearchCriteria.setSelectedTab(INPATIENT);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());
	
	newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());
	
	newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
	newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 14
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
public void initialize()
{
	clear();
	
	Object hcp = domain.getHcpLiteUser();
	if(hcp instanceof HcpLiteVo)
	{
		form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
	}
	
	populateHospital();
	populateWard();
	
	form.chkCurrentInpatientsOnly().setValue(true);
	form.chkInpatientOrdersPatientDischarged().setValue(true);
	
	form.ccResponsibleHCP().initializeResponsibleHcp(MosType.HCP, true);
	
	form.chkOrder().setValue(true);
	form.chkCurrentIP().setValue(true);
	
	form.chkNew().setValue(true);
	form.chkSeenChecked().setValue(false);
	form.chkChecked().setValue(false);
	form.chkReview().setValue(true);
	form.chkCompleted().setVisible(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	form.chkCompleted().setValue(ConfigFlag.UI.DISPLAY_COMPLETE_FILTER_RESULTS_STATUS.getValue());//wdev-17322
	
	populateDays(ConfigFlag.DOM.OCS_NEWRES_DAYS_MAX.getValue());
	resetDaysToDefault();
	
	form.ListResultsBy().setValue(ListResultsByEnumeration.rdoNewestFirst);
	
	updateControlsState();
}
 
Example 15
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
public NewResultsCriteriaVo getValue() 
{
	NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();
	
	//newResultsSearchCriteria.setInpatientOrders(true);
	
	newResultsSearchCriteria.setSelectedTab(INPATIENT);
	
	newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
	newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());
	
	newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());
	
	newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
	newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());
	
	newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
	newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
	newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());
	
	newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
	
	newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
	newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
	newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
	newResultsSearchCriteria.setForReview(form.chkReview().getValue());
	newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

	newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
	newResultsSearchCriteria.setToDate(form.dteTo().getValue());	
	newResultsSearchCriteria.setDays(form.cmbDays().getValue());
	newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);
	
	newResultsSearchCriteria.setDiscipline(getDisciplines());
	newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());
	
	return newResultsSearchCriteria;
}
 
Example 16
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
public SortOrder getSortOrder() 
{
	if(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.DESCENDING;
	else if(ListResultsByEnumeration.rdoOldestFirst.equals(form.ListResultsBy().getValue()))
		return SortOrder.ASCENDING;
	
	return SortOrder.DESCENDING;
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getInpatientWard() != null)
	{
		form.qmbOrderingLocation().newRow(criteria.getInpatientWard(), criteria.getInpatientWard().toString());
		form.qmbOrderingLocation().setValue(criteria.getInpatientWard());
	}
	
	form.chkCurrentInpatientsOnly().setValue(criteria.getCurrentInpatientsOnly());
	form.chkInpatientOrdersPatientDischarged().setValue(criteria.getInpatientOrdersPatientDischarged());
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getInpatientWard() != null)
	{
		form.qmbOrderingLocation().newRow(criteria.getInpatientWard(), criteria.getInpatientWard().toString());
		form.qmbOrderingLocation().setValue(criteria.getInpatientWard());
	}
	
	form.chkCurrentInpatientsOnly().setValue(criteria.getCurrentInpatientsOnly());
	form.chkInpatientOrdersPatientDischarged().setValue(criteria.getInpatientOrdersPatientDischarged());
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getInpatientWard() != null)
	{
		form.qmbOrderingLocation().newRow(criteria.getInpatientWard(), criteria.getInpatientWard().toString());
		form.qmbOrderingLocation().setValue(criteria.getInpatientWard());
	}
	
	form.chkCurrentInpatientsOnly().setValue(criteria.getCurrentInpatientsOnly());
	form.chkInpatientOrdersPatientDischarged().setValue(criteria.getInpatientOrdersPatientDischarged());
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
public void setValue(NewResultsCriteriaVo criteria) 
{
	clear();
	
	if(criteria == null)
		return;
	
	form.cmbHospital().setValue(criteria.getHospital());
	
	if(criteria.getInpatientWard() != null)
	{
		form.qmbOrderingLocation().newRow(criteria.getInpatientWard(), criteria.getInpatientWard().toString());
		form.qmbOrderingLocation().setValue(criteria.getInpatientWard());
	}
	
	form.chkCurrentInpatientsOnly().setValue(criteria.getCurrentInpatientsOnly());
	form.chkInpatientOrdersPatientDischarged().setValue(criteria.getInpatientOrdersPatientDischarged());
	
	form.chkOrder().setValue(criteria.getOrder());
	form.chkCurrentIP().setValue(criteria.getCurrenIP());
	
	form.ccResponsibleHCP().setValue(criteria.getHCP());
	
	if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
	{
		form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
	}
	form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());			

	form.chkNew().setValue(criteria.getNewUpdated());
	form.chkSeenChecked().setValue(criteria.getSeenChecked());
	form.chkChecked().setValue(criteria.getChecked());
	form.chkReview().setValue(criteria.getForReview());	
	form.chkCompleted().setValue(criteria.getCompleted()); 
	
	populateDisciplineGrid(criteria.getDiscipline());
	
	form.dteFrom().setValue(criteria.getFromDate());
	form.dteTo().setValue(criteria.getToDate());
	form.cmbDays().setValue(criteria.getDays());
	
	form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
	form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());
	
	updateControlsState();
}