Java Code Examples for ims.core.vo.lookups.PreActiveActiveInactiveStatus.ACTIVE

The following are Jave code examples for showing how to use ACTIVE of the ims.core.vo.lookups.PreActiveActiveInactiveStatus class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
	clearGrid();
	UserDefinedAssessmentType type 		 = form.cmbComponent().getValue();
	PreActiveActiveInactiveStatus status = PreActiveActiveInactiveStatus.ACTIVE;
	String name = getName();
	
	if(type == null)
	{
		engine.showMessage("Please select a Component Type.");
		form.cmbComponent().setFocus();
		enableContextMenu();
		return;
	}
	
	ValueObjectCollection voColl = null;

	if (isUserAssessmentType(type))
	{
		voColl = domain.listAssessments(name, status, getUserDefinedTypes(type));
	}

	if (ifImageAssessmentType(type))
	{
		//WDEV-2432 - exclude MEDICALNOTING 
		voColl = domain.listGraphicAssessments(name, status, getUserDefinedTypes(type, UserDefinedAssessmentType.MEDICALNOTING));
	}

	if (voColl == null || voColl.size() == 0)
	{
		engine.showMessage("No Active " + type.toString() + " found for the Search Criteria Provided");
	}

	populateGrid(voColl);
	
	enableContextMenu();
}