Java Code Examples for ims.core.vo.HCPLocationLiteVo

The following are top voted examples for showing how to use ims.core.vo.HCPLocationLiteVo. 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   View source code 5 votes vote down vote up
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
	mosNode.getNodes().clear();
	for (int i = 0; i < voCollMosOrgLoc.size(); i++)
	{
		MosOrgLocVo vo = voCollMosOrgLoc.get(i);
		TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
		orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
		HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
		for (int j = 0; j < vo.getHCPLocations().size(); j++)
		{
			HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

			StringBuffer sb = new StringBuffer();
			sb.append(locVo.getLocation().getName());
			sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

			TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
			if (j == 0)
				locNode.setExpanded(true);

			if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
			{
				locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
				locNode.setExpandedImage(form.getImages().Admin.LocationSite);
			}
			else
			{
				locNode.setCollapsedImage(form.getImages().Admin.Location);
				locNode.setExpandedImage(form.getImages().Admin.Location);
			}
		}
	}

}
 
Example 2
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
	mosNode.getNodes().clear();
	for (int i = 0; i < voCollMosOrgLoc.size(); i++)
	{
		MosOrgLocVo vo = voCollMosOrgLoc.get(i);
		TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
		orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
		HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
		for (int j = 0; j < vo.getHCPLocations().size(); j++)
		{
			HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

			StringBuffer sb = new StringBuffer();
			sb.append(locVo.getLocation().getName());
			sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

			TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
			if (j == 0)
				locNode.setExpanded(true);

			if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
			{
				locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
				locNode.setExpandedImage(form.getImages().Admin.LocationSite);
			}
			else
			{
				locNode.setCollapsedImage(form.getImages().Admin.Location);
				locNode.setExpandedImage(form.getImages().Admin.Location);
			}
		}
	}

}
 
Example 3
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
	mosNode.getNodes().clear();
	for (int i = 0; i < voCollMosOrgLoc.size(); i++)
	{
		MosOrgLocVo vo = voCollMosOrgLoc.get(i);
		TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
		orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
		HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
		for (int j = 0; j < vo.getHCPLocations().size(); j++)
		{
			HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

			StringBuffer sb = new StringBuffer();
			sb.append(locVo.getLocation().getName());
			sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

			TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
			if (j == 0)
				locNode.setExpanded(true);

			if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
			{
				locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
				locNode.setExpandedImage(form.getImages().Admin.LocationSite);
			}
			else
			{
				locNode.setCollapsedImage(form.getImages().Admin.Location);
				locNode.setExpandedImage(form.getImages().Admin.Location);
			}
		}
	}

}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
	mosNode.getNodes().clear();
	for (int i = 0; i < voCollMosOrgLoc.size(); i++)
	{
		MosOrgLocVo vo = voCollMosOrgLoc.get(i);
		TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
		orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
		HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
		for (int j = 0; j < vo.getHCPLocations().size(); j++)
		{
			HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

			StringBuffer sb = new StringBuffer();
			sb.append(locVo.getLocation().getName());
			sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

			TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
			if (j == 0)
				locNode.setExpanded(true);

			if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
			{
				locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
				locNode.setExpandedImage(form.getImages().Admin.LocationSite);
			}
			else
			{
				locNode.setCollapsedImage(form.getImages().Admin.Location);
				locNode.setExpandedImage(form.getImages().Admin.Location);
			}
		}
	}

}