Java Code Examples for ims.clinical.vo.lookups.AttendanceStatusCollection

The following are top voted examples for showing how to use ims.clinical.vo.lookups.AttendanceStatusCollection. 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 adStatusAndNoteCells(DynamicGridRow row)
{
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for (int k = 0; k < collAttendStatus.size(); k++)
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
	cellNote.setStringMaxLength(255);

}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void adStatusAndNoteCells(DynamicGridRow row)
{
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for (int k = 0; k < collAttendStatus.size(); k++)
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
	cellNote.setStringMaxLength(255);

}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void adStatusAndNoteCells(DynamicGridRow row)
{
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for (int k = 0; k < collAttendStatus.size(); k++)
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
	cellNote.setStringMaxLength(255);

}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void adStatusAndNoteCells(DynamicGridRow row)
{
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for (int k = 0; k < collAttendStatus.size(); k++)
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
	cellNote.setStringMaxLength(255);

}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addOtherRowTodyngrdReportTo()
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
	cellInvitee.setWidth(100);
	cellInvitee.setTooltip("Please enter a Family Member Name");
	cellInvitee.setReadOnly(false);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	cellInvitee.setStringMaxLength(55);
	
	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");
	cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));
	
	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setTooltip("Please enter a Note here");
	cellNote.setReadOnly(false);
	cellNote.setStringMaxLength(255);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	
	row.setValue(DynamicCellType.STRING);
	row.setIdentifier(DynamicCellType.STRING);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
	cellReportTo.setWidth(100);
	cellReportTo.setAutoPostBack(true);
	cellReportTo.setReadOnly(false);
	cellReportTo.setIdentifier(classType);
	if (classType.equals(HcpLiteVo.class))
		cellReportTo.setTooltip("Please search for a Member Of Staff");
	else
		cellReportTo.setTooltip("Please search for a GP");

	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setStringMaxLength(255);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addOtherRowTodyngrdReportTo()
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
	cellInvitee.setWidth(100);
	cellInvitee.setTooltip("Please enter a Family Member Name");
	cellInvitee.setReadOnly(false);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	cellInvitee.setStringMaxLength(55);
	
	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");
	cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));
	
	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setTooltip("Please enter a Note here");
	cellNote.setReadOnly(false);
	cellNote.setStringMaxLength(255);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	
	row.setValue(DynamicCellType.STRING);
	row.setIdentifier(DynamicCellType.STRING);
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
	cellReportTo.setWidth(100);
	cellReportTo.setAutoPostBack(true);
	cellReportTo.setReadOnly(false);
	cellReportTo.setIdentifier(classType);
	if (classType.equals(HcpLiteVo.class))
		cellReportTo.setTooltip("Please search for a Member Of Staff");
	else
		cellReportTo.setTooltip("Please search for a GP");

	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setStringMaxLength(255);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addOtherRowTodyngrdReportTo()
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
	cellInvitee.setWidth(100);
	cellInvitee.setTooltip("Please enter a Family Member Name");
	cellInvitee.setReadOnly(false);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	cellInvitee.setStringMaxLength(55);
	
	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");
	cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));
	
	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setTooltip("Please enter a Note here");
	cellNote.setReadOnly(false);
	cellNote.setStringMaxLength(255);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	
	row.setValue(DynamicCellType.STRING);
	row.setIdentifier(DynamicCellType.STRING);
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
	cellReportTo.setWidth(100);
	cellReportTo.setAutoPostBack(true);
	cellReportTo.setReadOnly(false);
	cellReportTo.setIdentifier(classType);
	if (classType.equals(HcpLiteVo.class))
		cellReportTo.setTooltip("Please search for a Member Of Staff");
	else
		cellReportTo.setTooltip("Please search for a GP");

	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setStringMaxLength(255);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addOtherRowTodyngrdReportTo()
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellInvitee = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.STRING);
	cellInvitee.setWidth(100);
	cellInvitee.setTooltip("Please enter a Family Member Name");
	cellInvitee.setReadOnly(false);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	cellInvitee.setStringMaxLength(55);
	
	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");
	cellInvitee.setIdentifier(DynamicCellType.ENUMERATION);

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));
	
	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setTooltip("Please enter a Note here");
	cellNote.setReadOnly(false);
	cellNote.setStringMaxLength(255);
	cellInvitee.setIdentifier(DynamicCellType.STRING);
	
	row.setValue(DynamicCellType.STRING);
	row.setIdentifier(DynamicCellType.STRING);
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addQueryComboRowTodyngrdInvitees(Class classType)
{
	DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();
	DynamicGridCell cellReportTo = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
	cellReportTo.setWidth(100);
	cellReportTo.setAutoPostBack(true);
	cellReportTo.setReadOnly(false);
	cellReportTo.setIdentifier(classType);
	if (classType.equals(HcpLiteVo.class))
		cellReportTo.setTooltip("Please search for a Member Of Staff");
	else
		cellReportTo.setTooltip("Please search for a GP");

	//Show a Label cell
	DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
	cellStatus.setReadOnly(false);
	cellStatus.setWidth(100);
	cellStatus.setTooltip("Please select a status");

	AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
	for(int k = 0 ; k < collAttendStatus.size() ; k++) 
		cellStatus.getItems().newItem(collAttendStatus.get(k));

	DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
	cellNote.setWidth(-1);
	cellNote.setStringMaxLength(255);
	cellNote.setReadOnly(false);
	cellNote.setTooltip("Please add a note");
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
		if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;

		for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if (voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

				if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
					cellInvitee.setStringMaxLength(55);
				}

				// Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");

				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for (int k = 0; k < collAttendStatus.size(); k++)
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				cellNote.setStringMaxLength(255);

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
	}
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
		if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;
		
		for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if(voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
				
				if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
				}
				
				//Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");
				
				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for(int k = 0 ; k < collAttendStatus.size() ; k++) 
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setStringMaxLength(255);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				
				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
		form.ctnDetails().dyngrdInvitees().setValue(null);
		form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
	}
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
		if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;

		for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if (voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

				if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
					cellInvitee.setStringMaxLength(55);
				}

				// Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");

				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for (int k = 0; k < collAttendStatus.size(); k++)
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				cellNote.setStringMaxLength(255);

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
	}
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
		if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;
		
		for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if(voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
				
				if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
				}
				
				//Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");
				
				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for(int k = 0 ; k < collAttendStatus.size() ; k++) 
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setStringMaxLength(255);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				
				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
		form.ctnDetails().dyngrdInvitees().setValue(null);
		form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
	}
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
		if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;

		for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if (voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

				if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
					cellInvitee.setStringMaxLength(55);
				}

				// Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");

				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for (int k = 0; k < collAttendStatus.size(); k++)
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				cellNote.setStringMaxLength(255);

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
	}
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
		if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;
		
		for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if(voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
				
				if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
				}
				
				//Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");
				
				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for(int k = 0 ; k < collAttendStatus.size() ; k++) 
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setStringMaxLength(255);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				
				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
		form.ctnDetails().dyngrdInvitees().setValue(null);
		form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
	}
}
 
Example 19
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) || result.equals(DialogResult.YES)))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection();
		if (voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;

		for (int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if (voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());

				if (voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
					cellInvitee.setStringMaxLength(55);
				}

				// Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");

				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for (int k = 0; k < collAttendStatus.size(); k++)
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				cellNote.setStringMaxLength(255);

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
	}
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
	if (formName.equals(form.getForms().Clinical.TeamMemberSelection) && (result.equals(DialogResult.OK) ||result.equals(DialogResult.YES) ))
	{
		ClinicalTeamMemberVoCollection voClinicalTeamMemberColl = form.getGlobalContext().Clinical.getTeamMemberSelection(); 
		if(voClinicalTeamMemberColl == null || voClinicalTeamMemberColl.size() == 0)
			return;
		
		for(int x = 0; x < voClinicalTeamMemberColl.size(); x++)
		{
			if(voClinicalTeamMemberColl.get(x) != null)
			{
				DynamicGridRow row = form.ctnDetails().dyngrdInvitees().getRows().newRow();

				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
				
				if(voClinicalTeamMemberColl.get(x).getHCPIsNotNull())
				{
					DynamicGridCell cellInvitee = row.getCells().newCell(getColByIdentifier(INVITEE_COLUMN), DynamicCellType.QUERYCOMBOBOX);
					cellInvitee.setWidth(100);
					cellInvitee.getItems().newItem(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setTypedText(voClinicalTeamMemberColl.get(x).getHCP().toString());
					cellInvitee.setValue(voClinicalTeamMemberColl.get(x).getHCP());
					cellInvitee.setReadOnly(true);
					cellInvitee.setIdentifier(HcpLiteVo.class);
				}
				
				//Show a Label cell
				DynamicGridCell cellStatus = row.getCells().newCell(getColByIdentifier(STATUS_COLUMN), DynamicCellType.ENUMERATION);
				cellStatus.setReadOnly(false);
				cellStatus.setWidth(100);
				cellStatus.setTooltip("Please select a status");
				
				AttendanceStatusCollection collAttendStatus = ims.clinical.vo.lookups.LookupHelper.getAttendanceStatus(domain.getLookupService());
				for(int k = 0 ; k < collAttendStatus.size() ; k++) 
					cellStatus.getItems().newItem(collAttendStatus.get(k));

				DynamicGridCell cellNote = row.getCells().newCell(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN), DynamicCellType.STRING);
				cellNote.setWidth(-1);
				cellNote.setStringMaxLength(255);
				cellNote.setReadOnly(false);
				cellNote.setTooltip("Please add a note");
				
				row.setValue(voClinicalTeamMemberColl.get(x).getHCP());
			}
		}
		form.ctnDetails().dyngrdInvitees().setValue(null);
		form.getContextMenus().getGoalPlanningMeetingInviteesREMOVEItem().setVisible(false);
	}
}