Java Code Examples for ims.ocrr.vo.SelectedComponentFromSelectOrderVo.setReOrderReason()

The following are Jave code examples for showing how to use setReOrderReason() of the ims.ocrr.vo.SelectedComponentFromSelectOrderVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void markUnmarkComponent(InvestShortVo item, boolean isProfile, boolean mark, boolean isChildComponent, String reorderReason)
{
	if (item != null && item.getID_InvestigationIsNotNull() && item.getInvestigationIndexIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_Investigation());
		component.setComponentType(isProfile ? SelectAndOrderComponentType.PROFILE : SelectAndOrderComponentType.INVESTIGATION);
		component.setText(item.getInvestigationIndex().getName());
		component.setCategory(item.getInvestigationIndex().getCategory());
		component.setTooltip(getComponentInvestigationTooltip(item));
		component.setIsAddon(item.getIsAddon());
		component.setRequiresSite(item.getInvestigationIndex().getRequiresSiteSpecifier());
		component.setMinReOrderPeriod(item.getMinReorderPeriodUnit());
		component.setMinReOrderVal(item.getMinReorderPeriodVal());
		component.setMinReOrderFemalePeriod(item.getFemaleMinReorderPeriodUnit());
		component.setMinReOrderFemaleVal(item.getFemaleMinReorderPeriodVal());
		component.setPhlebMayCollect(item.getInvestigationIndex().getPhlebMayCollect());
		component.setGenderSpecific(item.getInvestigationIndex().getGenderSpecific());
		component.setReOrderReason(reorderReason);//WDEV-16624
		component.setAssociatedInvestigations(item.getAssocInvestigations());//WDEV-16624

		if (item.getProviderServiceIsNotNull() && item.getProviderService().getLocationServiceIsNotNull() && item.getProviderService().getLocationService().getServiceIsNotNull())
			component.setServiceID(item.getProviderService().getLocationService().getService().getID_Service());
		if (item.getActiveStatusIsNotNull() && item.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
			addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void markUnmarkComponent(InvestShortVo item, boolean isProfile, boolean mark, boolean isChildComponent, String reorderReason)
{
	if (item != null && item.getID_InvestigationIsNotNull() && item.getInvestigationIndexIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_Investigation());
		component.setComponentType(isProfile ? SelectAndOrderComponentType.PROFILE : SelectAndOrderComponentType.INVESTIGATION);
		component.setText(item.getInvestigationIndex().getName());
		component.setCategory(item.getInvestigationIndex().getCategory());
		component.setTooltip(getComponentInvestigationTooltip(item));
		component.setIsAddon(item.getIsAddon());
		component.setRequiresSite(item.getInvestigationIndex().getRequiresSiteSpecifier());
		component.setMinReOrderPeriod(item.getMinReorderPeriodUnit());
		component.setMinReOrderVal(item.getMinReorderPeriodVal());
		component.setMinReOrderFemalePeriod(item.getFemaleMinReorderPeriodUnit());
		component.setMinReOrderFemaleVal(item.getFemaleMinReorderPeriodVal());
		component.setPhlebMayCollect(item.getInvestigationIndex().getPhlebMayCollect());
		component.setGenderSpecific(item.getInvestigationIndex().getGenderSpecific());
		component.setReOrderReason(reorderReason);//WDEV-16624
		component.setAssociatedInvestigations(item.getAssocInvestigations());//WDEV-16624

		if (item.getProviderServiceIsNotNull() && item.getProviderService().getLocationServiceIsNotNull() && item.getProviderService().getLocationService().getServiceIsNotNull())
			component.setServiceID(item.getProviderService().getLocationService().getService().getID_Service());
		if (item.getActiveStatusIsNotNull() && item.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
			addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void markUnmarkComponent(InvestShortVo item, boolean isProfile, boolean mark, boolean isChildComponent, String reorderReason)
{
	if (item != null && item.getID_InvestigationIsNotNull() && item.getInvestigationIndexIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_Investigation());
		component.setComponentType(isProfile ? SelectAndOrderComponentType.PROFILE : SelectAndOrderComponentType.INVESTIGATION);
		component.setText(item.getInvestigationIndex().getName());
		component.setCategory(item.getInvestigationIndex().getCategory());
		component.setTooltip(getComponentInvestigationTooltip(item));
		component.setIsAddon(item.getIsAddon());
		component.setRequiresSite(item.getInvestigationIndex().getRequiresSiteSpecifier());
		component.setMinReOrderPeriod(item.getMinReorderPeriodUnit());
		component.setMinReOrderVal(item.getMinReorderPeriodVal());
		component.setMinReOrderFemalePeriod(item.getFemaleMinReorderPeriodUnit());
		component.setMinReOrderFemaleVal(item.getFemaleMinReorderPeriodVal());
		component.setPhlebMayCollect(item.getInvestigationIndex().getPhlebMayCollect());
		component.setGenderSpecific(item.getInvestigationIndex().getGenderSpecific());
		component.setReOrderReason(reorderReason);//WDEV-16624
		component.setAssociatedInvestigations(item.getAssocInvestigations());//WDEV-16624

		if (item.getProviderServiceIsNotNull() && item.getProviderService().getLocationServiceIsNotNull() && item.getProviderService().getLocationService().getServiceIsNotNull())
			component.setServiceID(item.getProviderService().getLocationService().getService().getID_Service());
		if (item.getActiveStatusIsNotNull() && item.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
			addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private void markUnmarkComponent(InvestShortVo item, boolean isProfile, boolean mark, boolean isChildComponent, String reorderReason)
{
	if (item != null && item.getID_InvestigationIsNotNull() && item.getInvestigationIndexIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_Investigation());
		component.setComponentType(isProfile ? SelectAndOrderComponentType.PROFILE : SelectAndOrderComponentType.INVESTIGATION);
		component.setText(item.getInvestigationIndex().getName());
		component.setCategory(item.getInvestigationIndex().getCategory());
		component.setTooltip(getComponentInvestigationTooltip(item));
		component.setIsAddon(item.getIsAddon());
		component.setRequiresSite(item.getInvestigationIndex().getRequiresSiteSpecifier());
		component.setMinReOrderPeriod(item.getMinReorderPeriodUnit());
		component.setMinReOrderVal(item.getMinReorderPeriodVal());
		component.setMinReOrderFemalePeriod(item.getFemaleMinReorderPeriodUnit());
		component.setMinReOrderFemaleVal(item.getFemaleMinReorderPeriodVal());
		component.setPhlebMayCollect(item.getInvestigationIndex().getPhlebMayCollect());
		component.setGenderSpecific(item.getInvestigationIndex().getGenderSpecific());
		component.setReOrderReason(reorderReason);//WDEV-16624
		component.setAssociatedInvestigations(item.getAssocInvestigations());//WDEV-16624

		if (item.getProviderServiceIsNotNull() && item.getProviderService().getLocationServiceIsNotNull() && item.getProviderService().getLocationService().getServiceIsNotNull())
			component.setServiceID(item.getProviderService().getLocationService().getService().getID_Service());
		if (item.getActiveStatusIsNotNull() && item.getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
			addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void markUnmarkChildComponentsRecursive(InvestigationSelectOrderVo childInvestigation, boolean addRoot, Integer parentInvId, Integer idCurrentInvestigation, int level, boolean fromOrderSet, boolean mark, String reorderReason)//WDEV-16624
{
	if (childInvestigation == null || childInvestigation.getInvestigationIndex() == null)
		return;

	SelectAndOrderComponentType type = SelectAndOrderComponentType.INVESTIGATION;
	if (childInvestigation.getInvestigationIndex().getIsProfileIsNotNull() && childInvestigation.getInvestigationIndex().getIsProfile().booleanValue())
		type = SelectAndOrderComponentType.PROFILE;

	int requiredLevel = fromOrderSet ? -1 : 1; // WDEV-4821

	if (!wasAnalyzed(childInvestigation.getID_Investigation(), type))
	{
		markAsAnalyzed(childInvestigation.getID_Investigation(), type);
		if (addRoot)
		{
			SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
			component.setID(childInvestigation.getID_Investigation());
			component.setComponentType(type);
			component.setText(childInvestigation.getInvestigationIndex().getName());
			component.setCategory(childInvestigation.getInvestigationIndex().getCategory());
			component.setTooltip(getComponentInvestigationTooltip(childInvestigation));
			component.setParentInvestigationId(parentInvId);
			component.setIsAddon(childInvestigation.getIsAddon());
			component.setRequiresSite(childInvestigation.getInvestigationIndex().getRequiresSiteSpecifier());
			component.setPhlebMayCollect(childInvestigation.getInvestigationIndex().getPhlebMayCollect());
			component.setGenderSpecific(childInvestigation.getInvestigationIndex().getGenderSpecific());
			
			if (childInvestigation.getProviderServiceIsNotNull() && childInvestigation.getProviderService().getLocationServiceIsNotNull() && childInvestigation.getProviderService().getLocationService().getServiceIsNotNull())
				component.setServiceID(childInvestigation.getProviderService().getLocationService().getService().getID_Service());
			
			//WDEV-16624
			if(checkIfInvestigationIsInBreachedList(childInvestigation.getID_Investigation()))
			{
				component.setReOrderReason(reorderReason);
			}
			
			if (childInvestigation.getInvestigationIndex().getActiveStatusIsNotNull() && childInvestigation.getInvestigationIndex().getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
				addRemoveSelection(component, mark, true);
		}

		if (childInvestigation.getAssocInvestigationsIsNotNull())
		{
			for (int x = 0; x < childInvestigation.getAssocInvestigations().size(); x++)
			{
				if (idCurrentInvestigation != null && (idCurrentInvestigation != childInvestigation.getID_Investigation()))
					level++;

				if (level < requiredLevel || requiredLevel == -1) // WDEV-4821
					markUnmarkChildComponentsRecursive(childInvestigation.getAssocInvestigations().get(x), true, childInvestigation.getID_Investigation(), childInvestigation.getID_Investigation(), level, mark, reorderReason);//WDEV-16624
			}
		}
	}
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
private void markUnmarkChildComponentsRecursive(InvestigationSelectOrderVo childInvestigation, boolean addRoot, Integer parentInvId, Integer idCurrentInvestigation, int level, boolean fromOrderSet, boolean mark, String reorderReason)//WDEV-16624
{
	if (childInvestigation == null || childInvestigation.getInvestigationIndex() == null)
		return;

	SelectAndOrderComponentType type = SelectAndOrderComponentType.INVESTIGATION;
	if (childInvestigation.getInvestigationIndex().getIsProfileIsNotNull() && childInvestigation.getInvestigationIndex().getIsProfile().booleanValue())
		type = SelectAndOrderComponentType.PROFILE;

	int requiredLevel = fromOrderSet ? -1 : 1; // WDEV-4821

	if (!wasAnalyzed(childInvestigation.getID_Investigation(), type))
	{
		markAsAnalyzed(childInvestigation.getID_Investigation(), type);
		if (addRoot)
		{
			SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
			component.setID(childInvestigation.getID_Investigation());
			component.setComponentType(type);
			component.setText(childInvestigation.getInvestigationIndex().getName());
			component.setCategory(childInvestigation.getInvestigationIndex().getCategory());
			component.setTooltip(getComponentInvestigationTooltip(childInvestigation));
			component.setParentInvestigationId(parentInvId);
			component.setIsAddon(childInvestigation.getIsAddon());
			component.setRequiresSite(childInvestigation.getInvestigationIndex().getRequiresSiteSpecifier());
			component.setPhlebMayCollect(childInvestigation.getInvestigationIndex().getPhlebMayCollect());
			component.setGenderSpecific(childInvestigation.getInvestigationIndex().getGenderSpecific());
			
			if (childInvestigation.getProviderServiceIsNotNull() && childInvestigation.getProviderService().getLocationServiceIsNotNull() && childInvestigation.getProviderService().getLocationService().getServiceIsNotNull())
				component.setServiceID(childInvestigation.getProviderService().getLocationService().getService().getID_Service());
			
			//WDEV-16624
			if(checkIfInvestigationIsInBreachedList(childInvestigation.getID_Investigation()))
			{
				component.setReOrderReason(reorderReason);
			}
			
			if (childInvestigation.getInvestigationIndex().getActiveStatusIsNotNull() && childInvestigation.getInvestigationIndex().getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
				addRemoveSelection(component, mark, true);
		}

		if (childInvestigation.getAssocInvestigationsIsNotNull())
		{
			for (int x = 0; x < childInvestigation.getAssocInvestigations().size(); x++)
			{
				if (idCurrentInvestigation != null && (idCurrentInvestigation != childInvestigation.getID_Investigation()))
					level++;

				if (level < requiredLevel || requiredLevel == -1) // WDEV-4821
					markUnmarkChildComponentsRecursive(childInvestigation.getAssocInvestigations().get(x), true, childInvestigation.getID_Investigation(), childInvestigation.getID_Investigation(), level, mark, reorderReason);//WDEV-16624
			}
		}
	}
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
private void markUnmarkChildComponentsRecursive(InvestigationSelectOrderVo childInvestigation, boolean addRoot, Integer parentInvId, Integer idCurrentInvestigation, int level, boolean fromOrderSet, boolean mark, String reorderReason)//WDEV-16624
{
	if (childInvestigation == null || childInvestigation.getInvestigationIndex() == null)
		return;

	SelectAndOrderComponentType type = SelectAndOrderComponentType.INVESTIGATION;
	if (childInvestigation.getInvestigationIndex().getIsProfileIsNotNull() && childInvestigation.getInvestigationIndex().getIsProfile().booleanValue())
		type = SelectAndOrderComponentType.PROFILE;

	int requiredLevel = fromOrderSet ? -1 : 1; // WDEV-4821

	if (!wasAnalyzed(childInvestigation.getID_Investigation(), type))
	{
		markAsAnalyzed(childInvestigation.getID_Investigation(), type);
		if (addRoot)
		{
			SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
			component.setID(childInvestigation.getID_Investigation());
			component.setComponentType(type);
			component.setText(childInvestigation.getInvestigationIndex().getName());
			component.setCategory(childInvestigation.getInvestigationIndex().getCategory());
			component.setTooltip(getComponentInvestigationTooltip(childInvestigation));
			component.setParentInvestigationId(parentInvId);
			component.setIsAddon(childInvestigation.getIsAddon());
			component.setRequiresSite(childInvestigation.getInvestigationIndex().getRequiresSiteSpecifier());
			component.setPhlebMayCollect(childInvestigation.getInvestigationIndex().getPhlebMayCollect());
			component.setGenderSpecific(childInvestigation.getInvestigationIndex().getGenderSpecific());
			
			if (childInvestigation.getProviderServiceIsNotNull() && childInvestigation.getProviderService().getLocationServiceIsNotNull() && childInvestigation.getProviderService().getLocationService().getServiceIsNotNull())
				component.setServiceID(childInvestigation.getProviderService().getLocationService().getService().getID_Service());
			
			//WDEV-16624
			if(checkIfInvestigationIsInBreachedList(childInvestigation.getID_Investigation()))
			{
				component.setReOrderReason(reorderReason);
			}
			
			if (childInvestigation.getInvestigationIndex().getActiveStatusIsNotNull() && childInvestigation.getInvestigationIndex().getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
				addRemoveSelection(component, mark, true);
		}

		if (childInvestigation.getAssocInvestigationsIsNotNull())
		{
			for (int x = 0; x < childInvestigation.getAssocInvestigations().size(); x++)
			{
				if (idCurrentInvestigation != null && (idCurrentInvestigation != childInvestigation.getID_Investigation()))
					level++;

				if (level < requiredLevel || requiredLevel == -1) // WDEV-4821
					markUnmarkChildComponentsRecursive(childInvestigation.getAssocInvestigations().get(x), true, childInvestigation.getID_Investigation(), childInvestigation.getID_Investigation(), level, mark, reorderReason);//WDEV-16624
			}
		}
	}
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 4 votes
private void markUnmarkChildComponentsRecursive(InvestigationSelectOrderVo childInvestigation, boolean addRoot, Integer parentInvId, Integer idCurrentInvestigation, int level, boolean fromOrderSet, boolean mark, String reorderReason)//WDEV-16624
{
	if (childInvestigation == null || childInvestigation.getInvestigationIndex() == null)
		return;

	SelectAndOrderComponentType type = SelectAndOrderComponentType.INVESTIGATION;
	if (childInvestigation.getInvestigationIndex().getIsProfileIsNotNull() && childInvestigation.getInvestigationIndex().getIsProfile().booleanValue())
		type = SelectAndOrderComponentType.PROFILE;

	int requiredLevel = fromOrderSet ? -1 : 1; // WDEV-4821

	if (!wasAnalyzed(childInvestigation.getID_Investigation(), type))
	{
		markAsAnalyzed(childInvestigation.getID_Investigation(), type);
		if (addRoot)
		{
			SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
			component.setID(childInvestigation.getID_Investigation());
			component.setComponentType(type);
			component.setText(childInvestigation.getInvestigationIndex().getName());
			component.setCategory(childInvestigation.getInvestigationIndex().getCategory());
			component.setTooltip(getComponentInvestigationTooltip(childInvestigation));
			component.setParentInvestigationId(parentInvId);
			component.setIsAddon(childInvestigation.getIsAddon());
			component.setRequiresSite(childInvestigation.getInvestigationIndex().getRequiresSiteSpecifier());
			component.setPhlebMayCollect(childInvestigation.getInvestigationIndex().getPhlebMayCollect());
			component.setGenderSpecific(childInvestigation.getInvestigationIndex().getGenderSpecific());
			
			if (childInvestigation.getProviderServiceIsNotNull() && childInvestigation.getProviderService().getLocationServiceIsNotNull() && childInvestigation.getProviderService().getLocationService().getServiceIsNotNull())
				component.setServiceID(childInvestigation.getProviderService().getLocationService().getService().getID_Service());
			
			//WDEV-16624
			if(checkIfInvestigationIsInBreachedList(childInvestigation.getID_Investigation()))
			{
				component.setReOrderReason(reorderReason);
			}
			
			if (childInvestigation.getInvestigationIndex().getActiveStatusIsNotNull() && childInvestigation.getInvestigationIndex().getActiveStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
				addRemoveSelection(component, mark, true);
		}

		if (childInvestigation.getAssocInvestigationsIsNotNull())
		{
			for (int x = 0; x < childInvestigation.getAssocInvestigations().size(); x++)
			{
				if (idCurrentInvestigation != null && (idCurrentInvestigation != childInvestigation.getID_Investigation()))
					level++;

				if (level < requiredLevel || requiredLevel == -1) // WDEV-4821
					markUnmarkChildComponentsRecursive(childInvestigation.getAssocInvestigations().get(x), true, childInvestigation.getID_Investigation(), childInvestigation.getID_Investigation(), level, mark, reorderReason);//WDEV-16624
			}
		}
	}
}