Java Code Examples for ims.core.vo.ExternalResourceVo

The following are top voted examples for showing how to use ims.core.vo.ExternalResourceVo. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

	if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
	{
		ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

		form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
		if (admFromDet.getResourceAddressIsNotNull())
		{
			form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
			form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
			form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
			form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
			form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
		}

		form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
	}

}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

	if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
	{
		ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

		form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
		if (referrerDet.getResourceAddressIsNotNull())
		{
			form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
			form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
			form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
			form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
			form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
		}
		
		form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
	if (selectedExtResForAdmittedFrom == null)
		return;

	if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
		if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

			form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
			form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
			form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
			form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtTelephoneNr().setValue(resAddress.getPhone());
		}

	}
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
	if (selectedExtResForReferredFrom == null)
		return;

	if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
		if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

			form.txtReferrerAdr1().setValue(resAddress.getLine1());
			form.txtReferrerAdr2().setValue(resAddress.getLine2());
			form.txtReferrerAdr3().setValue(resAddress.getLine3());
			form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtReferrerContactNr().setValue(resAddress.getPhone());
		}

	}

}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if( externalVoCol == null )
		return;
	
	for( int i = 0; i < externalVoCol.size();i++ )
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if( tempVo != null )
		{
			grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
			rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
			rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
			rowextres.setColumnName(tempVo.getResourcename());
			rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
			rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
			rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
			rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
			rowextres.setValue(tempVo);
			
		}
	}
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateDetailFields(ExternalResourceVo tempVo)
{
	if( tempVo == null)
		return;
	
	form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
	form.txtNameDetails().setValue(tempVo.getResourcename());
	form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
	form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
	form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
	form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
	form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
	form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
	form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
	cmbExternalResourceTypeDetailsValueChanged();
	
	
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGidAfterSave(ExternalResourceVo record)
{
	if( record == null )
		return;
	clearGridExternalResource();
	
	grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
	rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
	rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
	rowextres.setColumnName(record.getResourcename());
	rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
	rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
	rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
	rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
	rowextres.setValue(record);
	
	
	
	
	
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

	if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
	{
		ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

		form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
		if (admFromDet.getResourceAddressIsNotNull())
		{
			form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
			form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
			form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
			form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
			form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
		}

		form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
	}

}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

	if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
	{
		ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

		form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
		if (referrerDet.getResourceAddressIsNotNull())
		{
			form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
			form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
			form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
			form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
			form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
		}
		
		form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
	if (selectedExtResForAdmittedFrom == null)
		return;

	if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
		if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

			form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
			form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
			form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
			form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtTelephoneNr().setValue(resAddress.getPhone());
		}

	}
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
	if (selectedExtResForReferredFrom == null)
		return;

	if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
		if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

			form.txtReferrerAdr1().setValue(resAddress.getLine1());
			form.txtReferrerAdr2().setValue(resAddress.getLine2());
			form.txtReferrerAdr3().setValue(resAddress.getLine3());
			form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtReferrerContactNr().setValue(resAddress.getPhone());
		}

	}

}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if( externalVoCol == null )
		return;
	
	for( int i = 0; i < externalVoCol.size();i++ )
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if( tempVo != null )
		{
			grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
			rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
			rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
			rowextres.setColumnName(tempVo.getResourcename());
			rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
			rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
			rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
			rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
			rowextres.setValue(tempVo);
			
		}
	}
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateDetailFields(ExternalResourceVo tempVo)
{
	if( tempVo == null)
		return;
	
	form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
	form.txtNameDetails().setValue(tempVo.getResourcename());
	form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
	form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
	form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
	form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
	form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
	form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
	form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
	cmbExternalResourceTypeDetailsValueChanged();
	
	
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGidAfterSave(ExternalResourceVo record)
{
	if( record == null )
		return;
	clearGridExternalResource();
	
	grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
	rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
	rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
	rowextres.setColumnName(record.getResourcename());
	rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
	rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
	rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
	rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
	rowextres.setValue(record);
	
	
	
	
	
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

	if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
	{
		ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

		form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
		if (admFromDet.getResourceAddressIsNotNull())
		{
			form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
			form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
			form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
			form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
			form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
		}

		form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
	}

}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

	if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
	{
		ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

		form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
		if (referrerDet.getResourceAddressIsNotNull())
		{
			form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
			form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
			form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
			form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
			form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
		}
		
		form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
	}
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
	if (selectedExtResForAdmittedFrom == null)
		return;

	if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
		if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

			form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
			form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
			form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
			form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtTelephoneNr().setValue(resAddress.getPhone());
		}

	}
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
	if (selectedExtResForReferredFrom == null)
		return;

	if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
		if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

			form.txtReferrerAdr1().setValue(resAddress.getLine1());
			form.txtReferrerAdr2().setValue(resAddress.getLine2());
			form.txtReferrerAdr3().setValue(resAddress.getLine3());
			form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtReferrerContactNr().setValue(resAddress.getPhone());
		}

	}

}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if( externalVoCol == null )
		return;
	
	for( int i = 0; i < externalVoCol.size();i++ )
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if( tempVo != null )
		{
			grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
			rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
			rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
			rowextres.setColumnName(tempVo.getResourcename());
			rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
			rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
			rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
			rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
			rowextres.setValue(tempVo);
			
		}
	}
}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateDetailFields(ExternalResourceVo tempVo)
{
	if( tempVo == null)
		return;
	
	form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
	form.txtNameDetails().setValue(tempVo.getResourcename());
	form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
	form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
	form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
	form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
	form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
	form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
	form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
	cmbExternalResourceTypeDetailsValueChanged();
	
	
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGidAfterSave(ExternalResourceVo record)
{
	if( record == null )
		return;
	clearGridExternalResource();
	
	grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
	rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
	rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
	rowextres.setColumnName(record.getResourcename());
	rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
	rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
	rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
	rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
	rowextres.setValue(record);
	
	
	
	
	
}
 
Example 22
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

	if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
	{
		ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

		form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
		if (admFromDet.getResourceAddressIsNotNull())
		{
			form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
			form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
			form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
			form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
			form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
		}

		form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
	}

}
 
Example 23
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
	if (admissionDetail.getExtendedDetails() == null)
		return;

	form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

	if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
	{
		ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

		form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
		if (referrerDet.getResourceAddressIsNotNull())
		{
			form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
			form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
			form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
			form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
			form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
		}
		
		form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
	}
}
 
Example 24
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
	if (selectedExtResForAdmittedFrom == null)
		return;

	if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
		if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

			form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
			form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
			form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
			form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtTelephoneNr().setValue(resAddress.getPhone());
		}

	}
}
 
Example 25
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
	if (selectedExtResForReferredFrom == null)
		return;

	if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
	{
		form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
		if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
		{
			PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

			form.txtReferrerAdr1().setValue(resAddress.getLine1());
			form.txtReferrerAdr2().setValue(resAddress.getLine2());
			form.txtReferrerAdr3().setValue(resAddress.getLine3());
			form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

			form.txtReferrerContactNr().setValue(resAddress.getPhone());
		}

	}

}
 
Example 26
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if( externalVoCol == null )
		return;
	
	for( int i = 0; i < externalVoCol.size();i++ )
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if( tempVo != null )
		{
			grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
			rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
			rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
			rowextres.setColumnName(tempVo.getResourcename());
			rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
			rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
			rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
			rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
			rowextres.setValue(tempVo);
			
		}
	}
}
 
Example 27
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateDetailFields(ExternalResourceVo tempVo)
{
	if( tempVo == null)
		return;
	
	form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
	form.txtNameDetails().setValue(tempVo.getResourcename());
	form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
	form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
	form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
	form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
	form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
	form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
	form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
	cmbExternalResourceTypeDetailsValueChanged();
	
	
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateGidAfterSave(ExternalResourceVo record)
{
	if( record == null )
		return;
	clearGridExternalResource();
	
	grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
	rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
	rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
	rowextres.setColumnName(record.getResourcename());
	rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
	rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
	rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
	rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
	rowextres.setValue(record);
	
	
	
	
	
}
 
Example 29
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if (externalVoCol == null)
		return;

	for (int i = 0; i < externalVoCol.size(); i++)
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if (tempVo != null)
		{
			grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
			rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
			rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
			rowExternalResGrid.setColumnName(tempVo.getResourcename());

			if (tempVo.getResourceAddressIsNotNull())
			{
				rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
				rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
				rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
			}
			rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
			rowExternalResGrid.setValue(tempVo);

		}
	}
}
 
Example 30
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void grdExternalResourceSelectionChanged()
{
	clearDetailsFields();
	if( form.grdExternalResource().getSelectedRow() != null)
	{
		ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
		populateDetailFields(tempVo);
	}
	updateControlsState();
}
 
Example 31
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if (externalVoCol == null)
		return;

	for (int i = 0; i < externalVoCol.size(); i++)
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if (tempVo != null)
		{
			grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
			rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
			rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
			rowExternalResGrid.setColumnName(tempVo.getResourcename());

			if (tempVo.getResourceAddressIsNotNull())
			{
				rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
				rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
				rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
			}
			rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
			rowExternalResGrid.setValue(tempVo);

		}
	}
}
 
Example 32
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void grdExternalResourceSelectionChanged()
{
	clearDetailsFields();
	if( form.grdExternalResource().getSelectedRow() != null)
	{
		ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
		populateDetailFields(tempVo);
	}
	updateControlsState();
}
 
Example 33
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if (externalVoCol == null)
		return;

	for (int i = 0; i < externalVoCol.size(); i++)
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if (tempVo != null)
		{
			grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
			rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
			rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
			rowExternalResGrid.setColumnName(tempVo.getResourcename());

			if (tempVo.getResourceAddressIsNotNull())
			{
				rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
				rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
				rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
			}
			rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
			rowExternalResGrid.setValue(tempVo);

		}
	}
}
 
Example 34
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void grdExternalResourceSelectionChanged()
{
	clearDetailsFields();
	if( form.grdExternalResource().getSelectedRow() != null)
	{
		ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
		populateDetailFields(tempVo);
	}
	updateControlsState();
}
 
Example 35
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
	if (externalVoCol == null)
		return;

	for (int i = 0; i < externalVoCol.size(); i++)
	{
		ExternalResourceVo tempVo = externalVoCol.get(i);
		if (tempVo != null)
		{
			grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
			rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
			rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
			rowExternalResGrid.setColumnName(tempVo.getResourcename());

			if (tempVo.getResourceAddressIsNotNull())
			{
				rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
				rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
				rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
			}
			rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
			rowExternalResGrid.setValue(tempVo);

		}
	}
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void grdExternalResourceSelectionChanged()
{
	clearDetailsFields();
	if( form.grdExternalResource().getSelectedRow() != null)
	{
		ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
		populateDetailFields(tempVo);
	}
	updateControlsState();
}
 
Example 37
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
	return form.grdExternalResource().getValue();
}
 
Example 38
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
	return form.grdExternalResource().getValue();
}
 
Example 39
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
	return form.grdExternalResource().getValue();
}
 
Example 40
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
	return form.grdExternalResource().getValue();
}