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

The following are Jave code examples for showing how to use setType() 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: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
/**
 * This functions sets up a practice for save and calls doSavePractice
 * @return boolean indicating success (true)
 */
private boolean savePractice()
{
	OrganisationVo practice = new OrganisationVo();
	
	if (form.getLocalContext().getPracticeIsNotNull())
		practice = form.getLocalContext().getPractice();
	practice = populatePracticeData(practice);
	
	practice.setType(OrganisationType.GPP);
	
	// this code adds a surgery to the value object if USE_GP_SURGERIES is false and if one doesn't already exist 
	// added to allow the ntpf to work as if using only practices. 
	if ( !practice.getLocationSitesIsNotNull())
	{				
		if (!canUseSurgery())
			practice = createOneMatchingChildSurgery(practice);
	}
	
	return doSavePractice(practice);
}
 
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   File: Logic.java   View Source Code Vote up 6 votes
/**
 * This functions sets up a practice for save and calls doSavePractice
 * @return boolean indicating success (true)
 */
private boolean savePractice()
{
	OrganisationVo practice = new OrganisationVo();
	
	if (form.getLocalContext().getPracticeIsNotNull())
		practice = form.getLocalContext().getPractice();
	practice = populatePracticeData(practice);
	
	practice.setType(OrganisationType.GPP);
	
	// this code adds a surgery to the value object if USE_GP_SURGERIES is false and if one doesn't already exist 
	// added to allow the ntpf to work as if using only practices. 
	if ( !practice.getLocationSitesIsNotNull())
	{				
		if (!canUseSurgery())
			practice = createOneMatchingChildSurgery(practice);
	}
	
	return doSavePractice(practice);
}
 
Example 5
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 6
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
/**
 * This functions sets up a practice for save and calls doSavePractice
 * @return boolean indicating success (true)
 */
private boolean savePractice()
{
	OrganisationVo practice = new OrganisationVo();
	
	if (form.getLocalContext().getPracticeIsNotNull())
		practice = form.getLocalContext().getPractice();
	practice = populatePracticeData(practice);
	
	practice.setType(OrganisationType.GPP);
	
	// this code adds a surgery to the value object if USE_GP_SURGERIES is false and if one doesn't already exist 
	// added to allow the ntpf to work as if using only practices. 
	if ( !practice.getLocationSitesIsNotNull())
	{				
		if (!canUseSurgery())
			practice = createOneMatchingChildSurgery(practice);
	}
	
	return doSavePractice(practice);
}
 
Example 7
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 8
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 6 votes
/**
 * This functions sets up a practice for save and calls doSavePractice
 * @return boolean indicating success (true)
 */
private boolean savePractice()
{
	OrganisationVo practice = new OrganisationVo();
	
	if (form.getLocalContext().getPracticeIsNotNull())
		practice = form.getLocalContext().getPractice();
	practice = populatePracticeData(practice);
	
	practice.setType(OrganisationType.GPP);
	
	// this code adds a surgery to the value object if USE_GP_SURGERIES is false and if one doesn't already exist 
	// added to allow the ntpf to work as if using only practices. 
	if ( !practice.getLocationSitesIsNotNull())
	{				
		if (!canUseSurgery())
			practice = createOneMatchingChildSurgery(practice);
	}
	
	return doSavePractice(practice);
}
 
Example 9
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 10
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 11
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 12
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;
}