Java Code Examples for ims.core.vo.LocSiteVo.getAddress()

The following are Jave code examples for showing how to use getAddress() of the ims.core.vo.LocSiteVo 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: M02VoMapper.java   View Source Code Vote up 5 votes
private void checkModifiedSurgery(LocSiteVoCollection locationSites, LocSiteVo siteVo)
{
	for (int i = 0; i < locationSites.size(); i++)
	{
		LocSiteVo vo =locationSites.get(i); 
		if (vo.equals(siteVo))
		{				
			if (vo.getAddress() == null) vo.setAddress(new PersonAddress());
			
			if (!siteVo.getAddressIsNotNull() || //msg surgery will be null if all fields cleared with HL7Null ("")
			!adrLinesEqual(vo.getAddress().getLine1(),siteVo.getAddress().getLine1()) ||						
			!adrLinesEqual(vo.getAddress().getLine2(),siteVo.getAddress().getLine2()) ||
			!adrLinesEqual(vo.getAddress().getLine3(),siteVo.getAddress().getLine3()) || 
			!adrLinesEqual(vo.getAddress().getLine4(),siteVo.getAddress().getLine4()) || 
			!adrLinesEqual(vo.getAddress().getLine5(),siteVo.getAddress().getLine5()) ||
			!adrLinesEqual(vo.getAddress().getPostCode(),siteVo.getAddress().getPostCode()	)
			||
			vo.getAddress().getCountyIsNotNull() && !vo.getAddress().getCounty().equals(siteVo.getAddress().getCounty())
			)
			{
				vo.setAddress(siteVo.getAddress());
				vo.setName(siteVo.getName());
			}
			setCommsChannels(vo.getCommChannels(),siteVo.getCommChannels());				
		}
	}
}
 
Example 2
Project: openMAXIMS   File: M02VoMapper.java   View Source Code Vote up 5 votes
private void checkModifiedSurgery(LocSiteVoCollection locationSites, LocSiteVo siteVo)
{
	for (int i = 0; i < locationSites.size(); i++)
	{
		LocSiteVo vo =locationSites.get(i); 
		if (vo.equals(siteVo))
		{				
			if (vo.getAddress() == null) vo.setAddress(new PersonAddress());
			
			if (!siteVo.getAddressIsNotNull() || //msg surgery will be null if all fields cleared with HL7Null ("")
			!adrLinesEqual(vo.getAddress().getLine1(),siteVo.getAddress().getLine1()) ||						
			!adrLinesEqual(vo.getAddress().getLine2(),siteVo.getAddress().getLine2()) ||
			!adrLinesEqual(vo.getAddress().getLine3(),siteVo.getAddress().getLine3()) || 
			!adrLinesEqual(vo.getAddress().getLine4(),siteVo.getAddress().getLine4()) || 
			!adrLinesEqual(vo.getAddress().getLine5(),siteVo.getAddress().getLine5()) ||
			!adrLinesEqual(vo.getAddress().getPostCode(),siteVo.getAddress().getPostCode()	)
			||
			vo.getAddress().getCountyIsNotNull() && !vo.getAddress().getCounty().equals(siteVo.getAddress().getCounty())
			)
			{
				vo.setAddress(siteVo.getAddress());
				vo.setName(siteVo.getName());
			}
			setCommsChannels(vo.getCommChannels(),siteVo.getCommChannels());				
		}
	}
}
 
Example 3
Project: openMAXIMS   File: M02VoMapper.java   View Source Code Vote up 5 votes
private void checkModifiedSurgery(LocSiteVoCollection locationSites, LocSiteVo siteVo)
{
	for (int i = 0; i < locationSites.size(); i++)
	{
		LocSiteVo vo =locationSites.get(i); 
		if (vo.equals(siteVo))
		{				
			if (vo.getAddress() == null) vo.setAddress(new PersonAddress());
			
			if (!siteVo.getAddressIsNotNull() || //msg surgery will be null if all fields cleared with HL7Null ("")
			!adrLinesEqual(vo.getAddress().getLine1(),siteVo.getAddress().getLine1()) ||						
			!adrLinesEqual(vo.getAddress().getLine2(),siteVo.getAddress().getLine2()) ||
			!adrLinesEqual(vo.getAddress().getLine3(),siteVo.getAddress().getLine3()) || 
			!adrLinesEqual(vo.getAddress().getLine4(),siteVo.getAddress().getLine4()) || 
			!adrLinesEqual(vo.getAddress().getLine5(),siteVo.getAddress().getLine5()) ||
			!adrLinesEqual(vo.getAddress().getPostCode(),siteVo.getAddress().getPostCode()	)
			||
			vo.getAddress().getCountyIsNotNull() && !vo.getAddress().getCounty().equals(siteVo.getAddress().getCounty())
			)
			{
				vo.setAddress(siteVo.getAddress());
				vo.setName(siteVo.getName());
			}
			setCommsChannels(vo.getCommChannels(),siteVo.getCommChannels());				
		}
	}
}
 
Example 4
Project: openmaxims-linux   File: M02VoMapper.java   View Source Code Vote up 5 votes
private void checkModifiedSurgery(LocSiteVoCollection locationSites, LocSiteVo siteVo)
{
	for (int i = 0; i < locationSites.size(); i++)
	{
		LocSiteVo vo =locationSites.get(i); 
		if (vo.equals(siteVo))
		{				
			if (vo.getAddress() == null) vo.setAddress(new PersonAddress());
			
			if (!siteVo.getAddressIsNotNull() || //msg surgery will be null if all fields cleared with HL7Null ("")
			!adrLinesEqual(vo.getAddress().getLine1(),siteVo.getAddress().getLine1()) ||						
			!adrLinesEqual(vo.getAddress().getLine2(),siteVo.getAddress().getLine2()) ||
			!adrLinesEqual(vo.getAddress().getLine3(),siteVo.getAddress().getLine3()) || 
			!adrLinesEqual(vo.getAddress().getLine4(),siteVo.getAddress().getLine4()) || 
			!adrLinesEqual(vo.getAddress().getLine5(),siteVo.getAddress().getLine5()) ||
			!adrLinesEqual(vo.getAddress().getPostCode(),siteVo.getAddress().getPostCode()	)
			||
			vo.getAddress().getCountyIsNotNull() && !vo.getAddress().getCounty().equals(siteVo.getAddress().getCounty())
			)
			{
				vo.setAddress(siteVo.getAddress());
				vo.setName(siteVo.getName());
			}
			setCommsChannels(vo.getCommChannels(),siteVo.getCommChannels());				
		}
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
/**
 * Addes the given LocSiteVo to the given DynamicGridRow in the practices grid. 
 * @param LocSiteVo
 * @param DynamicGridRow
 */
private void populateSurgeries(LocSiteVo voSurgery, DynamicGridRow rowPractice)
{
	if (voSurgery != null && rowPractice != null)
	{
		DynamicGridRow rowSurgery = null;
		rowSurgery = rowPractice.getRows().newRow();

		DynamicGridColumn nameColumn = form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_PRACTICENAME);
		if(nameColumn == null)
			return;
		
		DynamicGridCell cell = rowSurgery.getCells().newCell(nameColumn, DynamicCellType.STRING);
		String name = ""; 
		if (voSurgery.getNameIsNotNull())
			name = voSurgery.getName();
		
		cell.setValue(name);
		cell.setTooltip(name);
		cell.setWidth(300);
		cell.setReadOnly(true);
		
		cell = rowSurgery.getCells().newCell(form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_ADDRESS), DynamicCellType.STRING);
		cell.setReadOnly(true);//WDEV-15431
		if (voSurgery.getAddress() != null)
		{
			String strAddress = voSurgery.getAddress().toDisplayString();
			if(strAddress.endsWith(","))
			{
				strAddress = strAddress.substring(0,strAddress.length()-1);
			
			}
			
			
			cell.setValue(strAddress);
			cell.setTooltip(strAddress);
			cell.setWidth(-1);
		}
		
		rowSurgery.setCollapsedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setExpandedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setSelectable(false);
	}
}
 
Example 6
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
/**
 * Addes the given LocSiteVo to the given DynamicGridRow in the practices grid. 
 * @param LocSiteVo
 * @param DynamicGridRow
 */
private void populateSurgeries(LocSiteVo voSurgery, DynamicGridRow rowPractice)
{
	if (voSurgery != null && rowPractice != null)
	{
		DynamicGridRow rowSurgery = null;
		rowSurgery = rowPractice.getRows().newRow();

		DynamicGridColumn nameColumn = form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_PRACTICENAME);
		if(nameColumn == null)
			return;
		
		DynamicGridCell cell = rowSurgery.getCells().newCell(nameColumn, DynamicCellType.STRING);
		String name = ""; 
		if (voSurgery.getNameIsNotNull())
			name = voSurgery.getName();
		
		cell.setValue(name);
		cell.setTooltip(name);
		cell.setWidth(300);
		cell.setReadOnly(true);
		
		cell = rowSurgery.getCells().newCell(form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_ADDRESS), DynamicCellType.STRING);
		cell.setReadOnly(true);//WDEV-15431
		if (voSurgery.getAddress() != null)
		{
			String strAddress = voSurgery.getAddress().toDisplayString();
			if(strAddress.endsWith(","))
			{
				strAddress = strAddress.substring(0,strAddress.length()-1);
			
			}
			
			
			cell.setValue(strAddress);
			cell.setTooltip(strAddress);
			cell.setWidth(-1);
		}
		
		rowSurgery.setCollapsedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setExpandedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setSelectable(false);
	}
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 4 votes
/**
 * Addes the given LocSiteVo to the given DynamicGridRow in the practices grid. 
 * @param LocSiteVo
 * @param DynamicGridRow
 */
private void populateSurgeries(LocSiteVo voSurgery, DynamicGridRow rowPractice)
{
	if (voSurgery != null && rowPractice != null)
	{
		DynamicGridRow rowSurgery = null;
		rowSurgery = rowPractice.getRows().newRow();

		DynamicGridColumn nameColumn = form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_PRACTICENAME);
		if(nameColumn == null)
			return;
		
		DynamicGridCell cell = rowSurgery.getCells().newCell(nameColumn, DynamicCellType.STRING);
		String name = ""; 
		if (voSurgery.getNameIsNotNull())
			name = voSurgery.getName();
		
		cell.setValue(name);
		cell.setTooltip(name);
		cell.setWidth(300);
		cell.setReadOnly(true);
		
		cell = rowSurgery.getCells().newCell(form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_ADDRESS), DynamicCellType.STRING);
		cell.setReadOnly(true);//WDEV-15431
		if (voSurgery.getAddress() != null)
		{
			String strAddress = voSurgery.getAddress().toDisplayString();
			if(strAddress.endsWith(","))
			{
				strAddress = strAddress.substring(0,strAddress.length()-1);
			
			}
			
			
			cell.setValue(strAddress);
			cell.setTooltip(strAddress);
			cell.setWidth(-1);
		}
		
		rowSurgery.setCollapsedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setExpandedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setSelectable(false);
	}
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 4 votes
/**
 * Addes the given LocSiteVo to the given DynamicGridRow in the practices grid. 
 * @param LocSiteVo
 * @param DynamicGridRow
 */
private void populateSurgeries(LocSiteVo voSurgery, DynamicGridRow rowPractice)
{
	if (voSurgery != null && rowPractice != null)
	{
		DynamicGridRow rowSurgery = null;
		rowSurgery = rowPractice.getRows().newRow();

		DynamicGridColumn nameColumn = form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_PRACTICENAME);
		if(nameColumn == null)
			return;
		
		DynamicGridCell cell = rowSurgery.getCells().newCell(nameColumn, DynamicCellType.STRING);
		String name = ""; 
		if (voSurgery.getNameIsNotNull())
			name = voSurgery.getName();
		
		cell.setValue(name);
		cell.setTooltip(name);
		cell.setWidth(300);
		cell.setReadOnly(true);
		
		cell = rowSurgery.getCells().newCell(form.ctnGPDetails().lyrGPDetails().tabPractices().dyngrdPractices().getColumns().getByIdentifier(COL_ADDRESS), DynamicCellType.STRING);
		cell.setReadOnly(true);//WDEV-15431
		if (voSurgery.getAddress() != null)
		{
			String strAddress = voSurgery.getAddress().toDisplayString();
			if(strAddress.endsWith(","))
			{
				strAddress = strAddress.substring(0,strAddress.length()-1);
			
			}
			
			
			cell.setValue(strAddress);
			cell.setTooltip(strAddress);
			cell.setWidth(-1);
		}
		
		rowSurgery.setCollapsedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setExpandedImage(form.getImages().Admin.LocationSite);
		rowSurgery.setSelectable(false);
	}
}