Java Code Examples for ims.framework.controls.DynamicGridColumnCollection

The following are top voted examples for showing how to use ims.framework.controls.DynamicGridColumnCollection. 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 initDynGridComments()
{
	form.lyrSuitable().tabPageComments().dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time",COLUMN_ADTE,true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);
		
	newColumn = columns.newColumn("Authoring HCP",COLUMN_AHCP,true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);
			
	newColumn = columns.newColumn("Comments",COLUMN_COMMENTS,true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);
	
	form.lyrSuitable().tabPageComments().dyngrdComments().setSelectable(true);
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{
	
	DynamicGridRow newRow;
	if (beforeRow == null)
	{
	 newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP),DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE),DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS),DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);
	return newRow;
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addRowToMedication(PatientMedicationLiteVo patientMedic)
{
	if (patientMedic == null)
		return;
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION);
	if (patientMedic != null && patientMedic.getMedicationIsNotNull())
		nRow.setValue(patientMedic);

	DynamicGridCellItem item = cell.getItems().newItem(patientMedic.getMedication().getMedicationName());
	item.setValue(patientMedic.getMedication());

	cell.setValue(patientMedic.getMedication());
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);

	cell.setValue(patientMedic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(patientMedic.getExpiryDate());
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToSkinPreparation(SkinPreperationVo skinprep)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdSkinPreperation().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_SKINPREPARATION), DynamicCellType.ENUMERATION);
	nRow.setValue(skinprep);
	if (skinprep != null && skinprep.getSkinPreparationUsedIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(skinprep.getSkinPreparationUsed().getText());
		item.setValue(skinprep.getSkinPreparationUsed());
		cell.setValue(skinprep.getSkinPreparationUsed());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(skinprep == null ? null : skinprep.getBatchNo());
	cell.setStringMaxLength(20);

	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(skinprep == null ? null : skinprep.getExpiryDate());

}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initGridComments()
{
	form.dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time", COLUMN_ADTE, true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);

	newColumn = columns.newColumn("Authoring HCP", COLUMN_AHCP, true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);

	newColumn = columns.newColumn("Comments", COLUMN_COMMENTS, true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);

	form.dyngrdComments().setSelectable(true);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{

	DynamicGridRow newRow;
	if (beforeRow == null)
	{
		newRow = form.dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP), DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE), DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS), DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);

	return newRow;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initDynGridComments()
{
	form.lyrSuitable().tabPageComments().dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time",COLUMN_ADTE,true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);
		
	newColumn = columns.newColumn("Authoring HCP",COLUMN_AHCP,true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);
			
	newColumn = columns.newColumn("Comments",COLUMN_COMMENTS,true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);
	
	form.lyrSuitable().tabPageComments().dyngrdComments().setSelectable(true);
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{
	
	DynamicGridRow newRow;
	if (beforeRow == null)
	{
	 newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP),DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE),DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS),DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);
	return newRow;
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addRowToMedication(PatientMedicationLiteVo patientMedic)
{
	if (patientMedic == null)
		return;
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION);
	if (patientMedic != null && patientMedic.getMedicationIsNotNull())
		nRow.setValue(patientMedic);

	DynamicGridCellItem item = cell.getItems().newItem(patientMedic.getMedication().getMedicationName());
	item.setValue(patientMedic.getMedication());

	cell.setValue(patientMedic.getMedication());
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);

	cell.setValue(patientMedic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(patientMedic.getExpiryDate());
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToSkinPreparation(SkinPreperationVo skinprep)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdSkinPreperation().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_SKINPREPARATION), DynamicCellType.ENUMERATION);
	nRow.setValue(skinprep);
	if (skinprep != null && skinprep.getSkinPreparationUsedIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(skinprep.getSkinPreparationUsed().getText());
		item.setValue(skinprep.getSkinPreparationUsed());
		cell.setValue(skinprep.getSkinPreparationUsed());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(skinprep == null ? null : skinprep.getBatchNo());
	cell.setStringMaxLength(20);

	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(skinprep == null ? null : skinprep.getExpiryDate());

}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initGridComments()
{
	form.dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time", COLUMN_ADTE, true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);

	newColumn = columns.newColumn("Authoring HCP", COLUMN_AHCP, true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);

	newColumn = columns.newColumn("Comments", COLUMN_COMMENTS, true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);

	form.dyngrdComments().setSelectable(true);
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{

	DynamicGridRow newRow;
	if (beforeRow == null)
	{
		newRow = form.dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP), DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE), DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS), DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);

	return newRow;
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initDynGridComments()
{
	form.lyrSuitable().tabPageComments().dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time",COLUMN_ADTE,true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);
		
	newColumn = columns.newColumn("Authoring HCP",COLUMN_AHCP,true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);
			
	newColumn = columns.newColumn("Comments",COLUMN_COMMENTS,true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);
	
	form.lyrSuitable().tabPageComments().dyngrdComments().setSelectable(true);
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{
	
	DynamicGridRow newRow;
	if (beforeRow == null)
	{
	 newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP),DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE),DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS),DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);
	return newRow;
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addRowToMedication(PatientMedicationLiteVo patientMedic)
{
	if (patientMedic == null)
		return;
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION);
	if (patientMedic != null && patientMedic.getMedicationIsNotNull())
		nRow.setValue(patientMedic);

	DynamicGridCellItem item = cell.getItems().newItem(patientMedic.getMedication().getMedicationName());
	item.setValue(patientMedic.getMedication());

	cell.setValue(patientMedic.getMedication());
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);

	cell.setValue(patientMedic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(patientMedic.getExpiryDate());
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToSkinPreparation(SkinPreperationVo skinprep)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdSkinPreperation().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_SKINPREPARATION), DynamicCellType.ENUMERATION);
	nRow.setValue(skinprep);
	if (skinprep != null && skinprep.getSkinPreparationUsedIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(skinprep.getSkinPreparationUsed().getText());
		item.setValue(skinprep.getSkinPreparationUsed());
		cell.setValue(skinprep.getSkinPreparationUsed());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(skinprep == null ? null : skinprep.getBatchNo());
	cell.setStringMaxLength(20);

	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(skinprep == null ? null : skinprep.getExpiryDate());

}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initGridComments()
{
	form.dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time", COLUMN_ADTE, true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);

	newColumn = columns.newColumn("Authoring HCP", COLUMN_AHCP, true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);

	newColumn = columns.newColumn("Comments", COLUMN_COMMENTS, true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);

	form.dyngrdComments().setSelectable(true);
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{

	DynamicGridRow newRow;
	if (beforeRow == null)
	{
		newRow = form.dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP), DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE), DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS), DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);

	return newRow;
}
 
Example 22
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initDynGridComments()
{
	form.lyrSuitable().tabPageComments().dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time",COLUMN_ADTE,true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);
		
	newColumn = columns.newColumn("Authoring HCP",COLUMN_AHCP,true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);
			
	newColumn = columns.newColumn("Comments",COLUMN_COMMENTS,true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);
	
	form.lyrSuitable().tabPageComments().dyngrdComments().setSelectable(true);
}
 
Example 23
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{
	
	DynamicGridRow newRow;
	if (beforeRow == null)
	{
	 newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.lyrSuitable().tabPageComments().dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.lyrSuitable().tabPageComments().dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP),DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE),DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell =newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS),DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);
	return newRow;
}
 
Example 24
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addRowToMedication(PatientMedicationLiteVo patientMedic)
{
	if (patientMedic == null)
		return;
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION);
	if (patientMedic != null && patientMedic.getMedicationIsNotNull())
		nRow.setValue(patientMedic);

	DynamicGridCellItem item = cell.getItems().newItem(patientMedic.getMedication().getMedicationName());
	item.setValue(patientMedic.getMedication());

	cell.setValue(patientMedic.getMedication());
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);

	cell.setValue(patientMedic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(patientMedic.getExpiryDate());
}
 
Example 25
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToSkinPreparation(SkinPreperationVo skinprep)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdSkinPreperation().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_SKINPREPARATION), DynamicCellType.ENUMERATION);
	nRow.setValue(skinprep);
	if (skinprep != null && skinprep.getSkinPreparationUsedIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(skinprep.getSkinPreparationUsed().getText());
		item.setValue(skinprep.getSkinPreparationUsed());
		cell.setValue(skinprep.getSkinPreparationUsed());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(skinprep == null ? null : skinprep.getBatchNo());
	cell.setStringMaxLength(20);

	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(skinprep == null ? null : skinprep.getExpiryDate());

}
 
Example 26
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 27
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void initGridComments()
{
	form.dyngrdComments().clear();
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridColumn newColumn = columns.newColumn("Authoring Date/Time", COLUMN_ADTE, true);
	newColumn.setWidth(COLUMN_ADTEWIDTH);

	newColumn = columns.newColumn("Authoring HCP", COLUMN_AHCP, true);
	newColumn.setWidth(COLUMN_AHCPWIDTH);

	newColumn = columns.newColumn("Comments", COLUMN_COMMENTS, true);
	newColumn.setWidth(COLUMN_COMMENTSWIDTH);
	newColumn.setCanGrow(true);

	form.dyngrdComments().setSelectable(true);
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private DynamicGridRow createNewRow(DynamicGridRow beforeRow)
{

	DynamicGridRow newRow;
	if (beforeRow == null)
	{
		newRow = form.dyngrdComments().getRows().newRow();
	}
	else
	{
		newRow = form.dyngrdComments().getRows().newRowBefore(beforeRow);
	}
	newRow.setReadOnly(true);
	DynamicGridColumnCollection columns = form.dyngrdComments().getColumns();
	DynamicGridCell newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_AHCP), DynamicCellType.STRING);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_ADTE), DynamicCellType.DATETIME);
	newCell.setReadOnly(true);
	newCell = newRow.getCells().newCell(columns.getByIdentifier(COLUMN_COMMENTS), DynamicCellType.WRAPTEXT);
	newCell.setReadOnly(true);

	return newRow;
}
 
Example 29
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initDynGrid()
{
	form.dyngrdActions().clear();
	boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
	
	boolean onlyActive = form.cbFilter().getValue().equals("0");
	
	DynamicGridColumnCollection columns = form.dyngrdActions().getColumns();
	DynamicGridColumn newColumn = null;
	if (!isCcoSpecific)
	{
		newColumn = columns.newColumn("Selected", SELECTED_COLUMN_INDENTIFIER);
		newColumn.setWidth(SELECTED_COLUMN_WIDTH);
	}
	newColumn = columns.newColumn("Care Plan Actions", ACTION_COLUMN_INDENTIFIER);
	newColumn.setWidth(ACTION_COLUMN_WIDTHS[isCcoSpecific?(onlyActive?2:3):(onlyActive?0:1)]);
	newColumn = columns.newColumn("Start Date",STARTD_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTD_COLUMN_WIDTH);
	newColumn = columns.newColumn("By",STARTB_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTB_COLUMN_WIDTH[isCcoSpecific || !onlyActive?1:0]);
	
	if (!onlyActive)
	{
		newColumn = columns.newColumn("Stop Date",STOPD_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPD_COLUMN_WIDTH);
		
		newColumn = columns.newColumn("By",STOPB_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPB_COLUMN_WIDTH[isCcoSpecific?1:0]);
		
	}
	
	if (isCcoSpecific)
	{
		newColumn = columns.newColumn("Additional Info", NOTES_COLUMN_INDENTIFIER);
		newColumn.setWidth(NOTES_COLUMN_WIDTH);
	}
	
}
 
Example 30
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private DynamicGridColumn getCommentColumn(DynamicGridColumn valueColumn) 
{
	DynamicGridColumnCollection columns = form.dyngrd().getColumns();
	
	for (int i = 0; i < columns.size() - 1; i++)
	{
		if (columns.get(i).equals(valueColumn))
			return columns.get(i + 1);
	}
	
	return null;
}
 
Example 31
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void newRowToMedication()
{
	ims.framework.controls.DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION).setAutoPostBack(true);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING).setStringMaxLength(20);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
}
 
Example 32
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initDynGrid()
{
	form.dyngrdActions().clear();
	boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
	
	boolean onlyActive = form.cbFilter().getValue().equals("0");
	
	DynamicGridColumnCollection columns = form.dyngrdActions().getColumns();
	DynamicGridColumn newColumn = null;
	if (!isCcoSpecific)
	{
		newColumn = columns.newColumn("Selected", SELECTED_COLUMN_INDENTIFIER);
		newColumn.setWidth(SELECTED_COLUMN_WIDTH);
	}
	newColumn = columns.newColumn("Care Plan Actions", ACTION_COLUMN_INDENTIFIER);
	newColumn.setWidth(ACTION_COLUMN_WIDTHS[isCcoSpecific?(onlyActive?2:3):(onlyActive?0:1)]);
	newColumn = columns.newColumn("Start Date",STARTD_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTD_COLUMN_WIDTH);
	newColumn = columns.newColumn("By",STARTB_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTB_COLUMN_WIDTH[isCcoSpecific || !onlyActive?1:0]);
	
	if (!onlyActive)
	{
		newColumn = columns.newColumn("Stop Date",STOPD_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPD_COLUMN_WIDTH);
		
		newColumn = columns.newColumn("By",STOPB_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPB_COLUMN_WIDTH[isCcoSpecific?1:0]);
		
	}
	
	if (isCcoSpecific)
	{
		newColumn = columns.newColumn("Additional Info", NOTES_COLUMN_INDENTIFIER);
		newColumn.setWidth(NOTES_COLUMN_WIDTH);
	}
	
}
 
Example 33
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private DynamicGridColumn getCommentColumn(DynamicGridColumn valueColumn) 
{
	DynamicGridColumnCollection columns = form.dyngrd().getColumns();
	
	for (int i = 0; i < columns.size() - 1; i++)
	{
		if (columns.get(i).equals(valueColumn))
			return columns.get(i + 1);
	}
	
	return null;
}
 
Example 34
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void newRowToMedication()
{
	ims.framework.controls.DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION).setAutoPostBack(true);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING).setStringMaxLength(20);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
}
 
Example 35
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initDynGrid()
{
	form.dyngrdActions().clear();
	boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
	
	boolean onlyActive = form.cbFilter().getValue().equals("0");
	
	DynamicGridColumnCollection columns = form.dyngrdActions().getColumns();
	DynamicGridColumn newColumn = null;
	if (!isCcoSpecific)
	{
		newColumn = columns.newColumn("Selected", SELECTED_COLUMN_INDENTIFIER);
		newColumn.setWidth(SELECTED_COLUMN_WIDTH);
	}
	newColumn = columns.newColumn("Care Plan Actions", ACTION_COLUMN_INDENTIFIER);
	newColumn.setWidth(ACTION_COLUMN_WIDTHS[isCcoSpecific?(onlyActive?2:3):(onlyActive?0:1)]);
	newColumn = columns.newColumn("Start Date",STARTD_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTD_COLUMN_WIDTH);
	newColumn = columns.newColumn("By",STARTB_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTB_COLUMN_WIDTH[isCcoSpecific || !onlyActive?1:0]);
	
	if (!onlyActive)
	{
		newColumn = columns.newColumn("Stop Date",STOPD_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPD_COLUMN_WIDTH);
		
		newColumn = columns.newColumn("By",STOPB_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPB_COLUMN_WIDTH[isCcoSpecific?1:0]);
		
	}
	
	if (isCcoSpecific)
	{
		newColumn = columns.newColumn("Additional Info", NOTES_COLUMN_INDENTIFIER);
		newColumn.setWidth(NOTES_COLUMN_WIDTH);
	}
	
}
 
Example 36
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private DynamicGridColumn getCommentColumn(DynamicGridColumn valueColumn) 
{
	DynamicGridColumnCollection columns = form.dyngrd().getColumns();
	
	for (int i = 0; i < columns.size() - 1; i++)
	{
		if (columns.get(i).equals(valueColumn))
			return columns.get(i + 1);
	}
	
	return null;
}
 
Example 37
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void newRowToMedication()
{
	ims.framework.controls.DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION).setAutoPostBack(true);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING).setStringMaxLength(20);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
}
 
Example 38
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initDynGrid()
{
	form.dyngrdActions().clear();
	boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
	
	boolean onlyActive = form.cbFilter().getValue().equals("0");
	
	DynamicGridColumnCollection columns = form.dyngrdActions().getColumns();
	DynamicGridColumn newColumn = null;
	if (!isCcoSpecific)
	{
		newColumn = columns.newColumn("Selected", SELECTED_COLUMN_INDENTIFIER);
		newColumn.setWidth(SELECTED_COLUMN_WIDTH);
	}
	newColumn = columns.newColumn("Care Plan Actions", ACTION_COLUMN_INDENTIFIER);
	newColumn.setWidth(ACTION_COLUMN_WIDTHS[isCcoSpecific?(onlyActive?2:3):(onlyActive?0:1)]);
	newColumn = columns.newColumn("Start Date",STARTD_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTD_COLUMN_WIDTH);
	newColumn = columns.newColumn("By",STARTB_COLUMN_INDENTIFIER);
	newColumn.setWidth(STARTB_COLUMN_WIDTH[isCcoSpecific || !onlyActive?1:0]);
	
	if (!onlyActive)
	{
		newColumn = columns.newColumn("Stop Date",STOPD_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPD_COLUMN_WIDTH);
		
		newColumn = columns.newColumn("By",STOPB_COLUMN_INDENTIFIER);
		newColumn.setWidth(STOPB_COLUMN_WIDTH[isCcoSpecific?1:0]);
		
	}
	
	if (isCcoSpecific)
	{
		newColumn = columns.newColumn("Additional Info", NOTES_COLUMN_INDENTIFIER);
		newColumn.setWidth(NOTES_COLUMN_WIDTH);
	}
	
}
 
Example 39
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private DynamicGridColumn getCommentColumn(DynamicGridColumn valueColumn) 
{
	DynamicGridColumnCollection columns = form.dyngrd().getColumns();
	
	for (int i = 0; i < columns.size() - 1; i++)
	{
		if (columns.get(i).equals(valueColumn))
			return columns.get(i + 1);
	}
	
	return null;
}
 
Example 40
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void newRowToMedication()
{
	ims.framework.controls.DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdMedication().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdMedication().getRows().newRow();
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_MEDICATION), DynamicCellType.ENUMERATION).setAutoPostBack(true);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING).setStringMaxLength(20);
	nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
}