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

The following are Jave code examples for showing how to use setName() 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
protected void onQmbHospitalTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	form.lyrSurgeryDetails().tabGenDet().qmbHospital().clear();
	
	OrganisationVo voOrg = new OrganisationVo();
	voOrg.setName(value);
		
	OrganisationVoCollection voColl = domain.listOrganisation(voOrg);
	for (int i = 0 ; i < voColl.size() ; i++)
	{
		if (voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue())
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().newRow(voColl.get(i), voColl.get(i).getName());

		if (voColl.size() == 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().setValue(voColl.get(0));
		else if (voColl.size() > 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().showOpened();		
	}
}
 
Example 2
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 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
	{
		PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
		voGP.setName(value);
		voGP.setIsActive(new Boolean(true));
		
	}
	else
	{
		OrganisationVo voOrg = new OrganisationVo();
		voOrg.setName(value);
		
	}
}
 
Example 4
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
protected void onQmbHospitalTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	form.lyrSurgeryDetails().tabGenDet().qmbHospital().clear();
	
	OrganisationVo voOrg = new OrganisationVo();
	voOrg.setName(value);
		
	OrganisationVoCollection voColl = domain.listOrganisation(voOrg);
	for (int i = 0 ; i < voColl.size() ; i++)
	{
		if (voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue())
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().newRow(voColl.get(i), voColl.get(i).getName());

		if (voColl.size() == 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().setValue(voColl.get(0));
		else if (voColl.size() > 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().showOpened();		
	}
}
 
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
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
	{
		PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
		voGP.setName(value);
		voGP.setIsActive(new Boolean(true));
		
	}
	else
	{
		OrganisationVo voOrg = new OrganisationVo();
		voOrg.setName(value);
		
	}
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
protected void onQmbHospitalTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	form.lyrSurgeryDetails().tabGenDet().qmbHospital().clear();
	
	OrganisationVo voOrg = new OrganisationVo();
	voOrg.setName(value);
		
	OrganisationVoCollection voColl = domain.listOrganisation(voOrg);
	for (int i = 0 ; i < voColl.size() ; i++)
	{
		if (voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue())
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().newRow(voColl.get(i), voColl.get(i).getName());

		if (voColl.size() == 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().setValue(voColl.get(0));
		else if (voColl.size() > 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().showOpened();		
	}
}
 
Example 8
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 9
Project: openMAXIMS   File: Logic.java   View Source Code Vote up 6 votes
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
	{
		PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
		voGP.setName(value);
		voGP.setIsActive(new Boolean(true));
		
	}
	else
	{
		OrganisationVo voOrg = new OrganisationVo();
		voOrg.setName(value);
		
	}
}
 
Example 10
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 6 votes
protected void onQmbHospitalTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	form.lyrSurgeryDetails().tabGenDet().qmbHospital().clear();
	
	OrganisationVo voOrg = new OrganisationVo();
	voOrg.setName(value);
		
	OrganisationVoCollection voColl = domain.listOrganisation(voOrg);
	for (int i = 0 ; i < voColl.size() ; i++)
	{
		if (voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue())
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().newRow(voColl.get(i), voColl.get(i).getName());

		if (voColl.size() == 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().setValue(voColl.get(0));
		else if (voColl.size() > 1)
			form.lyrSurgeryDetails().tabGenDet().qmbHospital().showOpened();		
	}
}
 
Example 11
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 12
Project: openmaxims-linux   File: Logic.java   View Source Code Vote up 6 votes
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
	if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
	{
		PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
		voGP.setName(value);
		voGP.setIsActive(new Boolean(true));
		
	}
	else
	{
		OrganisationVo voOrg = new OrganisationVo();
		voOrg.setName(value);
		
	}
}
 
Example 13
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 14
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 15
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 16
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;
}