Java Code Examples for ims.core.vo.MemberOfStaffShortVo.setStaffType()

The following are Jave code examples for showing how to use setStaffType() of the ims.core.vo.MemberOfStaffShortVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private MemberOfStaffShortVo populateFilterFromScreen()
{
	MemberOfStaffShortVo voMosFilter = new MemberOfStaffShortVo();
	PersonName name = new PersonName();
	name.setSurname(form.txtSurName().getValue());
	voMosFilter.setName(name);
	voMosFilter.setStaffType(form.cmbStaffType().getValue());
	if (form.cmbHcpDiscipline().getValue() != null)
	{
		Hcp voHcp = new Hcp();
		voHcp.setHcpType(form.cmbHcpDiscipline().getValue());
		voMosFilter.setHcp(voHcp);
	}
	voMosFilter.setIsActive(new Boolean(form.chkActiveOnly().getValue()));
	
	return voMosFilter;
}
 
Example 2
Project: AvoinApotti   File: MosAdminImpl.java   Source Code and License Vote up 6 votes
public HcpCollection listHcps(HcpFilter filter)
{
	if (filter.getQueryName() == null)
	{			
		MemberOfStaffShortVo voMos = new MemberOfStaffShortVo();
		voMos.setStaffType(StaffType.HCP);
		MemberOfStaffShortVoCollection coll = this.listMembersOfStaff(voMos);			
		HcpCollection voCollHcp = new HcpCollection();
		
		for (int i = 0; i < coll.size(); i++) 
		{
			MemberOfStaffShortVo voLocalMos = coll.get(i);
			voCollHcp.add(voLocalMos.getHcp());				
		}
		return voCollHcp;
	}
	else
	{
		HcpAdmin hcpAdmin = (HcpAdmin) getDomainImpl(HcpAdminImpl.class);
		return hcpAdmin.listHCPs(filter);
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void populateFilterFromScreen(MemberOfStaffShortVo filterVo)
{
	PersonName name = new PersonName();
	filterVo.setName(name);
	name.setSurname(form.txtSName().getValue());
	filterVo.setStaffType(form.cmbStaffType().getValue());
	if (form.cmbHcpTypeFilter().getValue() != null)
	{
		filterVo.setHcp(new Hcp());
		filterVo.getHcp().setHcpType(form.cmbHcpTypeFilter().getValue());
	}
	filterVo.setIsActive(new Boolean(form.chkActiveOnly().getValue()));
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void populateMosVoFromScreen(MemberOfStaffShortVo voMos)
{
	if (voMos == null)
		return;

	voMos.setName(getMosNameFromScreen());
	voMos.getName().setUppers();
	voMos.setInitials(form.txtInitials().getValue());
	voMos.setSignatureBlock(form.txtSignatureBlock().getValue());
	voMos.setHcp(form.getGlobalContext().getHcp());
	voMos.setStaffType(form.cmbType().getValue());
	voMos.setSdsRoleId(form.txtSDSRole().getValue());
	String pasCode = voMos.getPasCode();
	voMos.setCodeMappings(getCodeMappings(voMos));
	if (!canUpdatePasId(voMos) && pasCode != null && !pasCode.equals(voMos.getPasCode()))
	{
		voMos.setPasCode(pasCode);
		engine.showMessage("The PAS Identifier for this Consultant cannot be updated as it has been got from the PAS. It will revert to the previous value.");
	}
	voMos.setCommChannels(getCommChannels());
	
	//WDEV-12587
	if(voMos.getID_MemberOfStaff() == null)
		voMos.setCanReferPatient(form.getGlobalContext().Admin.getCanReferPatient());
	else if(form.getGlobalContext().getHcp() != null && form.getGlobalContext().getHcp().getMosIsNotNull())
		voMos.setCanReferPatient(form.getGlobalContext().getHcp().getMos().getCanReferPatient());
}