Java Code Examples for ims.ocrr.vo.OrderSetForHelpTextVo

The following are top voted examples for showing how to use ims.ocrr.vo.OrderSetForHelpTextVo. 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 5 votes vote down vote up
private void markUnmarkComponent(OrderSetForHelpTextVo item, boolean mark, boolean isChildComponent)//WDEV-16624
{
	if (item != null && item.getID_OrderSetIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_OrderSet());
		component.setComponentType(SelectAndOrderComponentType.ORDERSET);
		component.setText(item.getName());
		component.setTooltip(escapeAmpersandInTooltip(item.getDescription()));
		component.setAssociatedInvestigations(getInvestigationsFromOrderSet(item));//WDEV-16624
		addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private InvestigationRefVoCollection getInvestigationsFromOrderSet(OrderSetForHelpTextVo item) 
{
	if(item == null || item.getComponent() == null)
		return null;
	
	InvestigationRefVoCollection coll = new InvestigationRefVoCollection();
	
	for(int i=0; i<item.getComponent().size(); i++)
	{
		OrderSetComponentForHelpTextVo component = item.getComponent().get(i);
		
		if(component == null)
			continue;
		
		InvestigationSelectOrderVo inv = component.getInvestigation();
		
		if(inv.getInvestigationIndex().getIsProfile())
		{
			if(inv.getAssocInvestigations() != null)
			{
				for(int j=0; j<inv.getAssocInvestigations().size(); j++)
				{
					InvestigationSelectOrderVo invinv = inv.getAssocInvestigations().get(j);
					
					if(invinv == null)
						continue;
					
					coll.add(invinv);
				}
			}
		}
		else
		{
			coll.add(inv);
		}
	}
	
	return coll;
}
 
Example 3
Project: AvoinApotti   File: OrderEntryTemplatePopulation.java   Source Code and License 5 votes vote down vote up
private TreeSet<String> getInvestigationNamesFromOrderSet(OrderSetForHelpTextVo orderSet, TreeSet<String> investigationNames, ArrayList<OrderSetForHelpTextVo> visitedOrderSet) 
{
	if(orderSet == null || orderSet.getComponent() == null || visitedOrderSet.indexOf(orderSet) >=0)
		return investigationNames;
	
	visitedOrderSet.add(orderSet);
	OrderSetComponentForHelpTextVoCollection orderSetComponent = orderSet.getComponent();
	
	for(int i=0; i<orderSetComponent.size(); i++)
	{
		OrderSetComponentForHelpTextVo component = orderSetComponent.get(i);
		
		if(component == null)
			continue;
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getInvestigationIndexIsNotNull() && (component.getInvestigation().getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(component.getInvestigation().getInvestigationIndex().getIsProfile())))
			investigationNames.add(component.getInvestigation().getInvestigationIndex().getName() + getTurnaround(component.getInvestigation())); //WDEV-16863
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getAssocInvestigationsIsNotNull())
		{
			for(int j=0; j<component.getInvestigation().getAssocInvestigations().size(); j++)
			{
				InvestigationSelectOrderVo investigationChild = component.getInvestigation().getAssocInvestigations().get(j);
				
				if(!investigationChild.getInvestigationIndexIsNotNull())
					continue;
				
				if(investigationChild.getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(investigationChild.getInvestigationIndex().getIsProfile()))
					investigationNames.add(investigationChild.getInvestigationIndex().getName() + getTurnaround(investigationChild)); //WDEV-16863
			}
		}
			
		getInvestigationNamesFromOrderSet(component.getOrderSet(), investigationNames, visitedOrderSet);
	}
	
	return investigationNames;
}
 
Example 4
Project: AvoinApotti   File: OrderEntryTemplateEditImpl.java   Source Code and License 5 votes vote down vote up
public OrderSetForHelpTextVo getOrderSet(OrderSetRefVo orderSet) 
{
	if(orderSet == null || !orderSet.getID_OrderSetIsNotNull())
		return null;
	
	DomainFactory factory = getDomainFactory();
	return OrderSetForHelpTextVoAssembler.create((OrderSet) factory.getDomainObject(OrderSet.class, orderSet.getID_OrderSet()));
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void markUnmarkComponent(OrderSetForHelpTextVo item, boolean mark, boolean isChildComponent)//WDEV-16624
{
	if (item != null && item.getID_OrderSetIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_OrderSet());
		component.setComponentType(SelectAndOrderComponentType.ORDERSET);
		component.setText(item.getName());
		component.setTooltip(escapeAmpersandInTooltip(item.getDescription()));
		component.setAssociatedInvestigations(getInvestigationsFromOrderSet(item));//WDEV-16624
		addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private InvestigationRefVoCollection getInvestigationsFromOrderSet(OrderSetForHelpTextVo item) 
{
	if(item == null || item.getComponent() == null)
		return null;
	
	InvestigationRefVoCollection coll = new InvestigationRefVoCollection();
	
	for(int i=0; i<item.getComponent().size(); i++)
	{
		OrderSetComponentForHelpTextVo component = item.getComponent().get(i);
		
		if(component == null)
			continue;
		
		InvestigationSelectOrderVo inv = component.getInvestigation();
		
		if(inv.getInvestigationIndex().getIsProfile())
		{
			if(inv.getAssocInvestigations() != null)
			{
				for(int j=0; j<inv.getAssocInvestigations().size(); j++)
				{
					InvestigationSelectOrderVo invinv = inv.getAssocInvestigations().get(j);
					
					if(invinv == null)
						continue;
					
					coll.add(invinv);
				}
			}
		}
		else
		{
			coll.add(inv);
		}
	}
	
	return coll;
}
 
Example 7
Project: openMAXIMS   File: OrderEntryTemplatePopulation.java   Source Code and License 5 votes vote down vote up
private TreeSet<String> getInvestigationNamesFromOrderSet(OrderSetForHelpTextVo orderSet, TreeSet<String> investigationNames, ArrayList<OrderSetForHelpTextVo> visitedOrderSet) 
{
	if(orderSet == null || orderSet.getComponent() == null || visitedOrderSet.indexOf(orderSet) >=0)
		return investigationNames;
	
	visitedOrderSet.add(orderSet);
	OrderSetComponentForHelpTextVoCollection orderSetComponent = orderSet.getComponent();
	
	for(int i=0; i<orderSetComponent.size(); i++)
	{
		OrderSetComponentForHelpTextVo component = orderSetComponent.get(i);
		
		if(component == null)
			continue;
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getInvestigationIndexIsNotNull() && (component.getInvestigation().getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(component.getInvestigation().getInvestigationIndex().getIsProfile())))
			investigationNames.add(component.getInvestigation().getInvestigationIndex().getName() + getTurnaround(component.getInvestigation())); //WDEV-16863
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getAssocInvestigationsIsNotNull())
		{
			for(int j=0; j<component.getInvestigation().getAssocInvestigations().size(); j++)
			{
				InvestigationSelectOrderVo investigationChild = component.getInvestigation().getAssocInvestigations().get(j);
				
				if(!investigationChild.getInvestigationIndexIsNotNull())
					continue;
				
				if(investigationChild.getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(investigationChild.getInvestigationIndex().getIsProfile()))
					investigationNames.add(investigationChild.getInvestigationIndex().getName() + getTurnaround(investigationChild)); //WDEV-16863
			}
		}
			
		getInvestigationNamesFromOrderSet(component.getOrderSet(), investigationNames, visitedOrderSet);
	}
	
	return investigationNames;
}
 
Example 8
Project: openMAXIMS   File: OrderEntryTemplateEditImpl.java   Source Code and License 5 votes vote down vote up
public OrderSetForHelpTextVo getOrderSet(OrderSetRefVo orderSet) 
{
	if(orderSet == null || !orderSet.getID_OrderSetIsNotNull())
		return null;
	
	DomainFactory factory = getDomainFactory();
	return OrderSetForHelpTextVoAssembler.create((OrderSet) factory.getDomainObject(OrderSet.class, orderSet.getID_OrderSet()));
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void markUnmarkComponent(OrderSetForHelpTextVo item, boolean mark, boolean isChildComponent)//WDEV-16624
{
	if (item != null && item.getID_OrderSetIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_OrderSet());
		component.setComponentType(SelectAndOrderComponentType.ORDERSET);
		component.setText(item.getName());
		component.setTooltip(escapeAmpersandInTooltip(item.getDescription()));
		component.setAssociatedInvestigations(getInvestigationsFromOrderSet(item));//WDEV-16624
		addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private InvestigationRefVoCollection getInvestigationsFromOrderSet(OrderSetForHelpTextVo item) 
{
	if(item == null || item.getComponent() == null)
		return null;
	
	InvestigationRefVoCollection coll = new InvestigationRefVoCollection();
	
	for(int i=0; i<item.getComponent().size(); i++)
	{
		OrderSetComponentForHelpTextVo component = item.getComponent().get(i);
		
		if(component == null)
			continue;
		
		InvestigationSelectOrderVo inv = component.getInvestigation();
		
		if(inv.getInvestigationIndex().getIsProfile())
		{
			if(inv.getAssocInvestigations() != null)
			{
				for(int j=0; j<inv.getAssocInvestigations().size(); j++)
				{
					InvestigationSelectOrderVo invinv = inv.getAssocInvestigations().get(j);
					
					if(invinv == null)
						continue;
					
					coll.add(invinv);
				}
			}
		}
		else
		{
			coll.add(inv);
		}
	}
	
	return coll;
}
 
Example 11
Project: openMAXIMS   File: OrderEntryTemplatePopulation.java   Source Code and License 5 votes vote down vote up
private TreeSet<String> getInvestigationNamesFromOrderSet(OrderSetForHelpTextVo orderSet, TreeSet<String> investigationNames, ArrayList<OrderSetForHelpTextVo> visitedOrderSet) 
{
	if(orderSet == null || orderSet.getComponent() == null || visitedOrderSet.indexOf(orderSet) >=0)
		return investigationNames;
	
	visitedOrderSet.add(orderSet);
	OrderSetComponentForHelpTextVoCollection orderSetComponent = orderSet.getComponent();
	
	for(int i=0; i<orderSetComponent.size(); i++)
	{
		OrderSetComponentForHelpTextVo component = orderSetComponent.get(i);
		
		if(component == null)
			continue;
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getInvestigationIndexIsNotNull() && (component.getInvestigation().getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(component.getInvestigation().getInvestigationIndex().getIsProfile())))
			investigationNames.add(component.getInvestigation().getInvestigationIndex().getName() + getTurnaround(component.getInvestigation())); //WDEV-16863
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getAssocInvestigationsIsNotNull())
		{
			for(int j=0; j<component.getInvestigation().getAssocInvestigations().size(); j++)
			{
				InvestigationSelectOrderVo investigationChild = component.getInvestigation().getAssocInvestigations().get(j);
				
				if(!investigationChild.getInvestigationIndexIsNotNull())
					continue;
				
				if(investigationChild.getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(investigationChild.getInvestigationIndex().getIsProfile()))
					investigationNames.add(investigationChild.getInvestigationIndex().getName() + getTurnaround(investigationChild)); //WDEV-16863
			}
		}
			
		getInvestigationNamesFromOrderSet(component.getOrderSet(), investigationNames, visitedOrderSet);
	}
	
	return investigationNames;
}
 
Example 12
Project: openMAXIMS   File: OrderEntryTemplateEditImpl.java   Source Code and License 5 votes vote down vote up
public OrderSetForHelpTextVo getOrderSet(OrderSetRefVo orderSet) 
{
	if(orderSet == null || !orderSet.getID_OrderSetIsNotNull())
		return null;
	
	DomainFactory factory = getDomainFactory();
	return OrderSetForHelpTextVoAssembler.create((OrderSet) factory.getDomainObject(OrderSet.class, orderSet.getID_OrderSet()));
}
 
Example 13
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void markUnmarkComponent(OrderSetForHelpTextVo item, boolean mark, boolean isChildComponent)//WDEV-16624
{
	if (item != null && item.getID_OrderSetIsNotNull())
	{
		SelectedComponentFromSelectOrderVo component = new SelectedComponentFromSelectOrderVo();
		component.setID(item.getID_OrderSet());
		component.setComponentType(SelectAndOrderComponentType.ORDERSET);
		component.setText(item.getName());
		component.setTooltip(escapeAmpersandInTooltip(item.getDescription()));
		component.setAssociatedInvestigations(getInvestigationsFromOrderSet(item));//WDEV-16624
		addRemoveSelection(component, mark, isChildComponent);
	}
}
 
Example 14
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private InvestigationRefVoCollection getInvestigationsFromOrderSet(OrderSetForHelpTextVo item) 
{
	if(item == null || item.getComponent() == null)
		return null;
	
	InvestigationRefVoCollection coll = new InvestigationRefVoCollection();
	
	for(int i=0; i<item.getComponent().size(); i++)
	{
		OrderSetComponentForHelpTextVo component = item.getComponent().get(i);
		
		if(component == null)
			continue;
		
		InvestigationSelectOrderVo inv = component.getInvestigation();
		
		if(inv.getInvestigationIndex().getIsProfile())
		{
			if(inv.getAssocInvestigations() != null)
			{
				for(int j=0; j<inv.getAssocInvestigations().size(); j++)
				{
					InvestigationSelectOrderVo invinv = inv.getAssocInvestigations().get(j);
					
					if(invinv == null)
						continue;
					
					coll.add(invinv);
				}
			}
		}
		else
		{
			coll.add(inv);
		}
	}
	
	return coll;
}
 
Example 15
Project: openmaxims-linux   File: OrderEntryTemplatePopulation.java   Source Code and License 5 votes vote down vote up
private TreeSet<String> getInvestigationNamesFromOrderSet(OrderSetForHelpTextVo orderSet, TreeSet<String> investigationNames, ArrayList<OrderSetForHelpTextVo> visitedOrderSet) 
{
	if(orderSet == null || orderSet.getComponent() == null || visitedOrderSet.indexOf(orderSet) >=0)
		return investigationNames;
	
	visitedOrderSet.add(orderSet);
	OrderSetComponentForHelpTextVoCollection orderSetComponent = orderSet.getComponent();
	
	for(int i=0; i<orderSetComponent.size(); i++)
	{
		OrderSetComponentForHelpTextVo component = orderSetComponent.get(i);
		
		if(component == null)
			continue;
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getInvestigationIndexIsNotNull() && (component.getInvestigation().getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(component.getInvestigation().getInvestigationIndex().getIsProfile())))
			investigationNames.add(component.getInvestigation().getInvestigationIndex().getName() + getTurnaround(component.getInvestigation())); //WDEV-16863
		
		if(component.getInvestigationIsNotNull() && component.getInvestigation().getAssocInvestigationsIsNotNull())
		{
			for(int j=0; j<component.getInvestigation().getAssocInvestigations().size(); j++)
			{
				InvestigationSelectOrderVo investigationChild = component.getInvestigation().getAssocInvestigations().get(j);
				
				if(!investigationChild.getInvestigationIndexIsNotNull())
					continue;
				
				if(investigationChild.getInvestigationIndex().getIsProfile() == null || Boolean.FALSE.equals(investigationChild.getInvestigationIndex().getIsProfile()))
					investigationNames.add(investigationChild.getInvestigationIndex().getName() + getTurnaround(investigationChild)); //WDEV-16863
			}
		}
			
		getInvestigationNamesFromOrderSet(component.getOrderSet(), investigationNames, visitedOrderSet);
	}
	
	return investigationNames;
}
 
Example 16
Project: openmaxims-linux   File: OrderEntryTemplateEditImpl.java   Source Code and License 5 votes vote down vote up
public OrderSetForHelpTextVo getOrderSet(OrderSetRefVo orderSet) 
{
	if(orderSet == null || !orderSet.getID_OrderSetIsNotNull())
		return null;
	
	DomainFactory factory = getDomainFactory();
	return OrderSetForHelpTextVoAssembler.create((OrderSet) factory.getDomainObject(OrderSet.class, orderSet.getID_OrderSet()));
}