Java Code Examples for ims.core.vo.OrganisationVo.setAddress()

The following are Jave code examples for showing how to use setAddress() of the ims.core.vo.OrganisationVo 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 6 votes
private void populateDataFromScreen() 
{
	OrganisationVo voOrganisation = form.getGlobalContext().Admin
			.getOrganisationVoIsNotNull() ? form.getGlobalContext().Admin
			.getOrganisationVo() : new OrganisationVo();
	PersonAddress voAddress = voOrganisation.getAddressIsNotNull() ? voOrganisation
			.getAddress()
			: new PersonAddress();
	voAddress.setLine1(form.txtOrgAdd1().getValue());
	voAddress.setLine2(form.txtOrgAdd2().getValue());
	voAddress.setLine3(form.txtOrgAdd3().getValue());
	voAddress.setLine4(form.txtOrgAdd4().getValue());
	voAddress.setLine5(form.txtOrgAdd5().getValue());
	voAddress.setCounty(form.cmbCounty().getValue());
	voAddress.setPhone(form.txtOrgPhone().getValue());
	voAddress.setFax(form.txtOrgFax().getValue());
	voAddress.setPostCode(form.txtPostCode().getValue());
	
	voOrganisation.setAddress(voAddress);

	voOrganisation.setIsActive(Boolean.TRUE);
	voOrganisation.setName(form.txtOrgName().getValue());
	voOrganisation.setType(OrganisationType.GPP);

	form.getGlobalContext().Admin.setOrganisationVo(voOrganisation);
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private void populateDataFromScreen() 
{
	OrganisationVo voOrganisation = form.getGlobalContext().Admin
			.getOrganisationVoIsNotNull() ? form.getGlobalContext().Admin
			.getOrganisationVo() : new OrganisationVo();
	PersonAddress voAddress = voOrganisation.getAddressIsNotNull() ? voOrganisation
			.getAddress()
			: new PersonAddress();
	voAddress.setLine1(form.txtOrgAdd1().getValue());
	voAddress.setLine2(form.txtOrgAdd2().getValue());
	voAddress.setLine3(form.txtOrgAdd3().getValue());
	voAddress.setLine4(form.txtOrgAdd4().getValue());
	voAddress.setLine5(form.txtOrgAdd5().getValue());
	voAddress.setCounty(form.cmbCounty().getValue());
	voAddress.setPhone(form.txtOrgPhone().getValue());
	voAddress.setFax(form.txtOrgFax().getValue());
	voAddress.setPostCode(form.txtPostCode().getValue());
	
	voOrganisation.setAddress(voAddress);

	voOrganisation.setIsActive(Boolean.TRUE);
	voOrganisation.setName(form.txtOrgName().getValue());
	voOrganisation.setType(OrganisationType.GPP);

	form.getGlobalContext().Admin.setOrganisationVo(voOrganisation);
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
private void populateDataFromScreen() 
{
	OrganisationVo voOrganisation = form.getGlobalContext().Admin
			.getOrganisationVoIsNotNull() ? form.getGlobalContext().Admin
			.getOrganisationVo() : new OrganisationVo();
	PersonAddress voAddress = voOrganisation.getAddressIsNotNull() ? voOrganisation
			.getAddress()
			: new PersonAddress();
	voAddress.setLine1(form.txtOrgAdd1().getValue());
	voAddress.setLine2(form.txtOrgAdd2().getValue());
	voAddress.setLine3(form.txtOrgAdd3().getValue());
	voAddress.setLine4(form.txtOrgAdd4().getValue());
	voAddress.setLine5(form.txtOrgAdd5().getValue());
	voAddress.setCounty(form.cmbCounty().getValue());
	voAddress.setPhone(form.txtOrgPhone().getValue());
	voAddress.setFax(form.txtOrgFax().getValue());
	voAddress.setPostCode(form.txtPostCode().getValue());
	
	voOrganisation.setAddress(voAddress);

	voOrganisation.setIsActive(Boolean.TRUE);
	voOrganisation.setName(form.txtOrgName().getValue());
	voOrganisation.setType(OrganisationType.GPP);

	form.getGlobalContext().Admin.setOrganisationVo(voOrganisation);
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 6 votes
private void populateDataFromScreen() 
{
	OrganisationVo voOrganisation = form.getGlobalContext().Admin
			.getOrganisationVoIsNotNull() ? form.getGlobalContext().Admin
			.getOrganisationVo() : new OrganisationVo();
	PersonAddress voAddress = voOrganisation.getAddressIsNotNull() ? voOrganisation
			.getAddress()
			: new PersonAddress();
	voAddress.setLine1(form.txtOrgAdd1().getValue());
	voAddress.setLine2(form.txtOrgAdd2().getValue());
	voAddress.setLine3(form.txtOrgAdd3().getValue());
	voAddress.setLine4(form.txtOrgAdd4().getValue());
	voAddress.setLine5(form.txtOrgAdd5().getValue());
	voAddress.setCounty(form.cmbCounty().getValue());
	voAddress.setPhone(form.txtOrgPhone().getValue());
	voAddress.setFax(form.txtOrgFax().getValue());
	voAddress.setPostCode(form.txtPostCode().getValue());
	
	voOrganisation.setAddress(voAddress);

	voOrganisation.setIsActive(Boolean.TRUE);
	voOrganisation.setName(form.txtOrgName().getValue());
	voOrganisation.setType(OrganisationType.GPP);

	form.getGlobalContext().Admin.setOrganisationVo(voOrganisation);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private OrganisationVo populatePracticeData(OrganisationVo value)
{			
	value.setAddress(populateAddressData(AddressType.PRACTICE));  // WDEV-15936 - specify address type 
	value.setName(form.ctnDetails().txtDetailsName().getValue());
	value.setIsActive(new Boolean(form.ctnDetails().chkDetailsActive().getValue()));
	value.setCodeMappings(getCodeMappings());
	value.setComment(form.ctnDetails().txtDetailsComment().getValue());
	value.setType(OrganisationType.GPP);
	value.setCommChannels(populateCommChannelsFromScreen());
	value.setPctCode(form.ctnDetails().txtPCT().getValue());
	value.setParent(null);
	
	return value;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 5 votes
private OrganisationVo populatePracticeData(OrganisationVo value)
{			
	value.setAddress(populateAddressData(AddressType.PRACTICE));  // WDEV-15936 - specify address type 
	value.setName(form.ctnDetails().txtDetailsName().getValue());
	value.setIsActive(new Boolean(form.ctnDetails().chkDetailsActive().getValue()));
	value.setCodeMappings(getCodeMappings());
	value.setComment(form.ctnDetails().txtDetailsComment().getValue());
	value.setType(OrganisationType.GPP);
	value.setCommChannels(populateCommChannelsFromScreen());
	value.setPctCode(form.ctnDetails().txtPCT().getValue());
	value.setParent(null);
	
	return value;
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 5 votes
private OrganisationVo populatePracticeData(OrganisationVo value)
{			
	value.setAddress(populateAddressData(AddressType.PRACTICE));  // WDEV-15936 - specify address type 
	value.setName(form.ctnDetails().txtDetailsName().getValue());
	value.setIsActive(new Boolean(form.ctnDetails().chkDetailsActive().getValue()));
	value.setCodeMappings(getCodeMappings());
	value.setComment(form.ctnDetails().txtDetailsComment().getValue());
	value.setType(OrganisationType.GPP);
	value.setCommChannels(populateCommChannelsFromScreen());
	value.setPctCode(form.ctnDetails().txtPCT().getValue());
	value.setParent(null);
	
	return value;
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 5 votes
private OrganisationVo populatePracticeData(OrganisationVo value)
{			
	value.setAddress(populateAddressData(AddressType.PRACTICE));  // WDEV-15936 - specify address type 
	value.setName(form.ctnDetails().txtDetailsName().getValue());
	value.setIsActive(new Boolean(form.ctnDetails().chkDetailsActive().getValue()));
	value.setCodeMappings(getCodeMappings());
	value.setComment(form.ctnDetails().txtDetailsComment().getValue());
	value.setType(OrganisationType.GPP);
	value.setCommChannels(populateCommChannelsFromScreen());
	value.setPctCode(form.ctnDetails().txtPCT().getValue());
	value.setParent(null);
	
	return value;
}