Java Code Examples for ims.framework.controls.DynamicGridColumn.setReadOnly()

The following are Jave code examples for showing how to use setReadOnly() of the ims.framework.controls.DynamicGridColumn class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
/**
 * Function used to initialize the dynamic grid for Pre Treatment staging
 */
private void initialiseDynamicGrdPreTreatment()
{
	form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabTNM().dynGrdPreTreatment().clear();
	
	DynamicGridColumn colTypeName = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabTNM().dynGrdPreTreatment().getColumns().newColumn("T / N / M Stage", COLTYPE_NAME);
	colTypeName.setCanGrow(false);
	colTypeName.setWidth(100);
	colTypeName.setReadOnly(true);

	DynamicGridColumn colTypeValue = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabTNM().dynGrdPreTreatment().getColumns().newColumn("Value", COLTYPE_VALUE);
	colTypeValue.setCanGrow(true);
	colTypeValue.setWidth(350);
	colTypeValue.setReadOnly(true);
	
	DynamicGridColumn colCertainName = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabTNM().dynGrdPreTreatment().getColumns().newColumn("T / N / M Certainty", COLCERTAIN_NAME);
	colCertainName.setCanGrow(false);
	colCertainName.setWidth(130);
	colCertainName.setReadOnly(true);
	
	DynamicGridColumn colCertainValue = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabTNM().dynGrdPreTreatment().getColumns().newColumn("Value", COLCERTAIN_VALUE);
	colCertainValue.setCanGrow(false);
	colCertainValue.setWidth(180);
	colCertainValue.setReadOnly(true);
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void initializeDynamicGrid() 
{
	form.dyngrdInterventions().clear();
	form.dyngrdInterventions().setSelectable(true);
	
	DynamicGridColumn orderColumn = form.dyngrdInterventions().getColumns().newColumn("Order No.", COLORDERNUMBER);
	orderColumn.setWidth(70);	
	orderColumn.setReadOnly(true);
	
	DynamicGridColumn descColumn = form.dyngrdInterventions().getColumns().newColumn("Description", COLDESC);
	descColumn.setWidth(220);	
	orderColumn.setReadOnly(true);

	DynamicGridColumn infoColumn = form.dyngrdInterventions().getColumns().newColumn("Additional Information", COLADDINFO);
	infoColumn.setWidth(250);
	infoColumn.setReadOnly(true);
		
	DynamicGridColumn tickColumn = form.dyngrdInterventions().getColumns().newColumn("Completed", COLCOMPLETED);
	tickColumn.setWidth(70);
	
		
	DynamicGridColumn compColumn = form.dyngrdInterventions().getColumns().newColumn("Completion Information", COLWHENWHO);
	compColumn.setWidth(-1);
	compColumn.setReadOnly(true);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void createDynamicGridColumns()
{
	form.dynGridDetails().clear();
	DynamicGridColumn imageColumn = form.dynGridDetails().getColumns().newColumn("", IMAGE_COLUMN);
	imageColumn.setWidth(20);
	
	DynamicGridColumn assessmentColumn = form.dynGridDetails().getColumns().newColumn("Current Assessment - Daily Patient Progress", ASSESSMENT_COLUMN);
	assessmentColumn.setWidth(450);
	assessmentColumn.setReadOnly(true);
	assessmentColumn.setCanGrow(true);
	
	DynamicGridColumn protocolColumn = form.dynGridDetails().getColumns().newColumn("Protocol", PROTOCOL_COLUMN);
	protocolColumn.setWidth(120);
	protocolColumn.setReadOnly(true);
	
	DynamicGridColumn initialsColumn = form.dynGridDetails().getColumns().newColumn("Initials", INITIALS_COLUMN);
	initialsColumn.setWidth(120);
	initialsColumn.setReadOnly(true);
	
	DynamicGridColumn urlColumn = form.dynGridDetails().getColumns().newColumn("", URL_COLUMN);
	urlColumn.setWidth(-1);
	urlColumn.setReadOnly(false);
	urlColumn.setAlignment(Alignment.CENTER);
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void createSeedColumns()
{
	form.ctnParams().dyngrdParams().clear();
	
	DynamicGridColumn nameCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	DynamicGridColumn seedCol = form.ctnParams().dyngrdParams().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	DynamicGridColumn mandatoryCol = form.ctnParams().dyngrdParams().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
/**
 * Function used to initialize the dynamic grid
 * Will create the columns (set the width, set the label, etc)
 */
private void initializeDynamicGrid()
{
	// Clear dynamic grid completely (all rows, all columns)
	form.dyngrdParameters().clear();
	
	// Create the 'Name' column - used for displaying seeds names
	DynamicGridColumn nameCol = form.dyngrdParameters().getColumns().newColumn("Name", NAME_COLUMN);
	nameCol.setWidth(250);
	nameCol.setBackColor(Color.Gray);
	nameCol.setReadOnly(true);

	// Create the 'Value' column - used for selecting seeds values
	DynamicGridColumn seedCol = form.dyngrdParameters().getColumns().newColumn("Value", VALUE_COLUMN);
	seedCol.setWidth(205);
	
	// Create the 'Mandatory' column - used for marking mandatory seeds
	DynamicGridColumn mandatoryCol = form.dyngrdParameters().getColumns().newColumn("", MANDATORY_COLUMN);
	mandatoryCol.setWidth(-1);
	mandatoryCol.setAlignment(Alignment.CENTER);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void initializeDepartmentGrid() 
{
	form.dyngrdDepartments().clear();

	form.dyngrdDepartments().setSelectable(true);
	
	DynamicGridColumn colDepartment = form.dyngrdDepartments().getColumns().newColumn("Department Type", COLDEPARTMENT);
	colDepartment.setWidth(900);
	colDepartment.setReadOnly(true);
	
	DynamicGridColumn colSelected = form.dyngrdDepartments().getColumns().newColumn("Selected", COLSELECTED);
	colSelected.setWidth(100);
	colSelected.setHeaderAlignment(Alignment.CENTER);
	colSelected.setAlignment(Alignment.CENTER);

	DynamicGridColumn colDefault = form.dyngrdDepartments().getColumns().newColumn("Default", COLDEFAULT);
	colDefault.setWidth(-1);
	colDefault.setHeaderAlignment(Alignment.CENTER);
	colDefault.setAlignment(Alignment.CENTER);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void createdDynamicGridSpecialInterest()
{
	form.dyngrdSpecialInterest().getRows().clear();
	
	DynamicGridColumn columnName = form.dyngrdSpecialInterest().getColumns().newColumn("Category", COLUMN_SPECIALINTERESTCATEGORY);
	columnName.setWidth(155);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	
	columnName = form.dyngrdSpecialInterest().getColumns().newColumn("Start Date", COLUMN_STARTDATE);
	columnName.setWidth(100);
	columnName.setReadOnly(true);
	
	columnName = form.dyngrdSpecialInterest().getColumns().newColumn("End Date", COLUMN_ENDDATE);
	columnName.setWidth(-1);
	columnName.setReadOnly(true);

}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void initializeSelectedProceduresGrid()
{
	form.dyngrdProcedures().clear();

	form.dyngrdProcedures().setSelectable(true);
	
	DynamicGridColumn colProcedure = form.dyngrdProcedures().getColumns().newColumn("Procedure", COLPROCEDURE);//WDEV-14006
	colProcedure.setWidth(550);//WDEV-14006
	colProcedure.setReadOnly(true);//WDEV-14006
	
	DynamicGridColumn colMain = form.dyngrdProcedures().getColumns().newColumn("Primary", COLMAIN);
	colMain.setWidth(50);
	colMain.setAlignment(Alignment.CENTER);

	DynamicGridColumn colImage = form.dyngrdProcedures().getColumns().newColumn("", COLIMAGE);
	colImage.setWidth(-1);
	colImage.setAlignment(Alignment.CENTER);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void initializeSelectedDiagnosisGrid()
{
	form.dyngrdDiagnosis().clear();

	form.dyngrdDiagnosis().setSelectable(true);
	
	DynamicGridColumn colDiagnose = form.dyngrdDiagnosis().getColumns().newColumn("Diagnosis", COLDIAGNOSE);
	colDiagnose.setWidth(550);
	colDiagnose.setReadOnly(true);
	
	DynamicGridColumn colMain = form.dyngrdDiagnosis().getColumns().newColumn("Main", COLMAIN);
	colMain.setWidth(50);
	colMain.setAlignment(Alignment.CENTER);

	DynamicGridColumn colImage = form.dyngrdDiagnosis().getColumns().newColumn("", COLIMAGE);
	colImage.setWidth(-1);
	colImage.setAlignment(Alignment.CENTER);
}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initialiseDynamicGrdPrognostic()
{
	// Clear prognostic dynamic grid
	form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab().dyngrdPrognosticPreTreatment().clear();
	
	
	// Build dynamic grid columns (they should be a match of the PreTreatment stage dynamic grid)
	DynamicGridColumn colTypeName = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab().dyngrdPrognosticPreTreatment().getColumns().newColumn("T / N / M Stage", COLTYPE_NAME);
	colTypeName.setCanGrow(false);
	colTypeName.setWidth(130);
	colTypeName.setReadOnly(true);
	colTypeName.setAlignment(Alignment.CENTER);
	
	DynamicGridColumn colTypeValue = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab().dyngrdPrognosticPreTreatment().getColumns().newColumn("Value", COLTYPE_VALUE);
	colTypeValue.setCanGrow(true);
	colTypeValue.setWidth(350);
	colTypeValue.setReadOnly(true);
	
	DynamicGridColumn colCertainName = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab().dyngrdPrognosticPreTreatment().getColumns().newColumn("T / N / M Certainty", COLCERTAIN_NAME);
	colCertainName.setCanGrow(false);
	colCertainName.setWidth(130);
	colCertainName.setReadOnly(true);
	colCertainName.setAlignment(Alignment.CENTER);
	
	DynamicGridColumn colCertainValue = form.lyrMain().tabTumourDetails().lyrPrognosticTNM().tabPrognosticTab().dyngrdPrognosticPreTreatment().getColumns().newColumn("Value", COLCERTAIN_VALUE);
	colCertainValue.setCanGrow(false);
	colCertainValue.setWidth(180);
	colCertainValue.setReadOnly(true);
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeDynamicGrdMotor()
{
	form.dynQuestions().clear();
	
	DynamicGridColumn column = form.dynQuestions().getColumns().newColumn("Questions", QUESTIONS_COLUMN);
	column.setWidth(350);
	column.setReadOnly(true);

	DynamicGridColumn column2 = form.dynQuestions().getColumns().newColumn("Answers", ANSWERS_COLUMN);
	column2.setWidth(-1);
	column2.setReadOnly(false);
	
	AdmissionQuestionCollection admQuestions = new AdmissionQuestionCollection();
	admQuestions = LookupHelper.getAdmissionQuestion(domain.getLookupService());
	
	for (int i = 0; i < admQuestions.size(); i++)
	{
		AdmissionQuestion ar = admQuestions.get(i);
		DynamicGridRow row = form.dynQuestions().getRows().newRow();
		row.setValue(ar);
		row.setSelectable(false);
		
		DynamicGridCell cell = row.getCells().newCell(getColumn(QUESTIONS_COLUMN), DynamicCellType.WRAPTEXT);
		cell.setValue(ar.getText());
		cell.setTooltip(ar.getText());
		cell.setAutoPostBack(false);
		cell.setReadOnly(true);
		 
		DynamicGridCell cell2 = row.getCells().newCell(getColumn(ANSWERS_COLUMN), DynamicCellType.ANSWER);
		cell2.getItems().newItem(YesNo.NO,YesNo.NO.getImage());
		cell2.getItems().newItem(YesNo.YES,YesNo.YES.getImage());
		cell2.setValue(null);
		cell2.setAutoPostBack(false);			
		}		
	
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initialiseTNMDynamicGrid(boolean withActiveColl)
{
	form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().clear();

	DynamicGridColumn colType = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getColumns().newColumn("Type", COLTYPE);
	colType.setWidth(40);
	colType.setReadOnly(true);
	colType.setCanGrow(true);

	DynamicGridColumn colTNM = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getColumns().newColumn("TNM Value", COLTNM);
	colTNM.setWidth(100);
	colTNM.setReadOnly(true);

	DynamicGridColumn colCPB = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getColumns().newColumn("CPB", COLCPB);
	colCPB.setWidth(140);
	colCPB.setReadOnly(true);

	DynamicGridColumn colTNBDescription = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getColumns().newColumn("TNM Description", COLTNMDESCRIPTION);
	colTNBDescription.setWidth(-1);
	colTNBDescription.setReadOnly(true);

	if (withActiveColl)
	{
		DynamicGridColumn colActive = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getColumns().newColumn("Active", COLACTIVE);
		colActive.setWidth(-1);
	}
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeDynamicGrid()
{
	
	form.dyngrdWhiteBoard().clear();
	form.dyngrdWhiteBoard().setHeaderHeight(40);
	form.dyngrdWhiteBoard().setReadOnly(true);

	DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("Name",COLUMN_PATIENT);
	column.setWidth(400);
	column.setAlignment(Alignment.CENTER);
	column.setVerticalAlignment(VerticalAlignment.TOP);
	column.setHeaderAlignment(Alignment.CENTER);
	column.setReadOnly(true);
	
	column = form.dyngrdWhiteBoard().getColumns().newColumn("Location",COLUMN_LOCATION);
	column.setWidth(60);
	column.setAlignment(Alignment.LEFT);
	column.setVerticalAlignment(VerticalAlignment.MIDDLE);

	column.setHeaderAlignment(Alignment.LEFT);
	
	initializeWithAssessments(form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	initializeWithFixedQuestions(form.getGlobalContext().Emergency.getWhiteBoardConfig());
	initializeWithConfigurableQuestions(form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		column = form.dyngrdWhiteBoard().getColumns().newColumn("Comment",COLUMN_COMMENT);
   		column.setWidth(85);
   		column.setAlignment(Alignment.CENTER);
   		column.setVerticalAlignment(VerticalAlignment.TOP);
   		column.setHeaderAlignment(Alignment.LEFT);
	}

	
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeFlagsGrid()
{
	form.dyngrdFlags().clear();

	DynamicGridColumn col = form.dyngrdFlags().getColumns().newColumn("Group", COL_GROUP);
	col.setWidth(85);
	col.setCanGrow(Boolean.TRUE);
	col.setReadOnly(Boolean.TRUE);
	col.setSortMode(SortMode.AUTOMATIC);

	col = form.dyngrdFlags().getColumns().newColumn("Configuration Flag", COL_FLAG);
	col.setWidth(300);
	col.setCanGrow(Boolean.TRUE);
	col.setReadOnly(Boolean.TRUE);
	col.setSortMode(SortMode.AUTOMATIC);

	col = form.dyngrdFlags().getColumns().newColumn("Default Value",COL_DEFAULT);
	col.setWidth(175);
	col.setCanGrow(Boolean.TRUE);
	col.setReadOnly(Boolean.TRUE);

	col = form.dyngrdFlags().getColumns().newColumn("Current Value",COL_CURRENT);
	col.setWidth(200);
	col.setCanGrow(Boolean.TRUE);
	col.setReadOnly(Boolean.TRUE);

	col = form.dyngrdFlags().getColumns().newColumn("Last Updated Date/Time",COL_UPD_DATE);
	col.setWidth(-1);
	col.setCanGrow(Boolean.TRUE);
	col.setReadOnly(Boolean.TRUE);
	col.setSortMode(SortMode.MANUAL);
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeDynamicGridColumns()
{
	DynamicGridColumn cabType = form.dyngrdClinInfo().getColumns().newColumn("Clinical Info", COLTYPE);
	cabType.setWidth(300);
	cabType.setReadOnly(true);

	DynamicGridColumn recAwait = form.dyngrdClinInfo().getColumns().newColumn("Awaiting", COLAWAIT);
	recAwait.setWidth(60);
	recAwait.setAlignment(Alignment.CENTER);

	DynamicGridColumn colRecieve = form.dyngrdClinInfo().getColumns().newColumn("Received", COLREC);
	colRecieve.setWidth(-1);
	colRecieve.setAlignment(Alignment.CENTER);
}
 
Example 16
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdPrescription().clear();
	form.dyngrdPrescription().setSelectable(true);	
	
	DynamicGridColumn column;
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_DATE);
	column.setWidth(200);		
	column.setCanGrow(false);
	column.setReadOnly(true);
		
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_USER);
	column.setWidth(200);
	column.setCanGrow(true);
			
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_DRUG);
	column.setWidth(200);		
	column.setCanGrow(false);
	
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_FREQUENCY);
	column.setWidth(100);
	column.setCanGrow(true);
	
	column = form.dyngrdPrescription().getColumns().newColumn("", COL_DAYS_SUPPLY);
	column.setWidth(60);
	column.setCanGrow(true);
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void initializeDynamicGridMedication()
{
	form.dyngrdMedication().clear();
	form.dyngrdMedication().setSelectable(true);		
	
	DynamicGridColumn collMedication = form.dyngrdMedication().getColumns().newColumn("Medication Name", true);
	collMedication.setWidth(190);	
	//collMedication.setSortMode(SortMode.AUTOMATIC);	WDEV-13098
	collMedication.setReadOnly(true);
	collMedication.setIdentifier(new String(MEDICATION));

	DynamicGridColumn collForm = form.dyngrdMedication().getColumns().newColumn("Form", true);
	collForm.setWidth(120);		
	collForm.setReadOnly(true);
	collForm.setIdentifier(new String(FORMM));	
	
	DynamicGridColumn collRoute = form.dyngrdMedication().getColumns().newColumn("Route", true);
	collRoute.setWidth(100);	
	collRoute.setReadOnly(true);
	collRoute.setIdentifier(new String(ROUTE));
	
	DynamicGridColumn collDose = form.dyngrdMedication().getColumns().newColumn("Dose", true);
	collDose.setWidth(130);	
	collDose.setReadOnly(true);
	collDose.setIdentifier(new String(DOSE));
	
	
	DynamicGridColumn collFrequency = form.dyngrdMedication().getColumns().newColumn("Frequency", true);
	collFrequency.setWidth(100);
	collFrequency.setReadOnly(true);
	collFrequency.setIdentifier(new String(FREQUENCY));
	
		
		
	DynamicGridColumn collCommDate = form.dyngrdMedication().getColumns().newColumn("Comm Date", true);
	collCommDate.setWidth(70);
	collCommDate.setReadOnly(true);
	collCommDate.setIdentifier(new String(COMM_DATE));		
	
	DynamicGridColumn collComments = form.dyngrdMedication().getColumns().newColumn("", true);
	collComments.setWidth(24);	
	collComments.setReadOnly(true);
	collComments.setIdentifier(new String(COMMENTS));
	
	DynamicGridColumn collInstructions = form.dyngrdMedication().getColumns().newColumn("", true);
	collInstructions.setWidth(24);	
	collInstructions.setReadOnly(true);
	collInstructions.setIdentifier(new String(INSTRUCTION));
	
	DynamicGridColumn collTickBox = form.dyngrdMedication().getColumns().newColumn("", true);
	collTickBox.setWidth(-1);	
	collTickBox.setReadOnly(false);		
	collTickBox.setIdentifier(new String(TICK_BOX));
}
 
Example 18
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void createddyngrdTriageWorklist()
{
	form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getRows().clear();
	form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().clear();
	
	
	DynamicGridColumn columnName = form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().newColumn("Name", COLUMN_NAMETRIAGE);
	columnName.setWidth(300);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	
	columnName = form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().newColumn(" ", COLUMN_STARTEDITTRIAGE);
	columnName.setWidth(170);
	columnName.setReadOnly(false);
	
	columnName = form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().newColumn(" ", COLUMN_PATIENTSUMMARYTRIAGE);
	columnName.setWidth(170);
	columnName.setReadOnly(false);
	
	columnName = form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().newColumn(" ", COLUMN_VIEWHISTORYTRIAGE);
	columnName.setWidth(170);
	columnName.setReadOnly(false);
	
	//wdev-16950
	if( engine.hasRight(AppRight.ED_CAN_PERFORM_ADMISSION))
	{
		columnName = form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().newColumn(" ", COLUMN_DECISIONTOADMITTRIAGE);
		columnName.setWidth(170);
		columnName.setReadOnly(false);
	}
	
	if( engine.hasRight(AppRight.ED_CAN_PERFORM_TRANSFER))
	{
		columnName = form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getColumns().newColumn(" ", COLUMN_EXTTRANSFERTRIAGE);
		columnName.setWidth(170);
		columnName.setReadOnly(false);
	}
	
	//------------

}
 
Example 19
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void createdDdyngrdClinicianWorklist()
{
	form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getRows().clear();
	form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().clear();
	
	DynamicGridColumn columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn("Name", COLUMN_NAMEASSESSMENT);
	columnName.setWidth(400);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	
	columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn(" ", COLUMN_SEENBYCOMPLASSESSMENT);		//wdev-17252
	columnName.setWidth(120);
	columnName.setReadOnly(false);
	
	columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn(" ", COLUMN_STARTEDITASSESSMENT);
	columnName.setWidth(120);
	columnName.setReadOnly(false);
	
	columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn(" ", COLUMN_PATIENTSUMMARYASSESSMENT);
	columnName.setWidth(120);
	columnName.setReadOnly(false);
	
	columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn(" ", COLUMN_VIEWHISTORYASSESSMENT);
	columnName.setWidth(120);
	columnName.setReadOnly(false);
	
	//wdev-16950
	if( engine.hasRight(AppRight.ED_CAN_PERFORM_ADMISSION))
	{
		columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn(" ", COLUMN_DECISIONTOADMITASSESSMENT);
		columnName.setWidth(120);
		columnName.setReadOnly(false);
	}
	if( engine.hasRight(AppRight.ED_CAN_PERFORM_TRANSFER))
	{
		columnName = form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getColumns().newColumn(" ", COLUMN_EXTTRANSFERASSESSMENT);
		columnName.setWidth(120);
		columnName.setReadOnly(false);
	}
	//----------------

}
 
Example 20
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void createdDynamicGridList()
{
	form.dyngrdList().getRows().clear();
	form.dyngrdList().setUnselectable(Boolean.TRUE);
	DynamicGridColumn columnName = form.dyngrdList().getColumns().newColumn("Start Date / End Date", COLUMN_STARTDATE_ENDDATE);
	
	if (Boolean.TRUE.equals(ConfigFlag.UI.PATIENT_SUMMARY_HIDE_HISTORY_COLUMN.getValue()))
	{
		columnName.setWidth(375);
	}
	else
		columnName.setWidth(355);
		
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	columnName.setSortMode(SortMode.AUTOMATIC);
	
	columnName = form.dyngrdList().getColumns().newColumn("Specialty / Context", COLUMN_SPECIALTY);
	columnName.setWidth(150);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	
	columnName = form.dyngrdList().getColumns().newColumn("Contact Type", COLUMN_CONTACT_TYPE);
	columnName.setWidth(120);
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	
	columnName = form.dyngrdList().getColumns().newColumn("Responsible HCP / Seen By", COLUMN_RMO);
	
	if (Boolean.TRUE.equals(ConfigFlag.UI.PATIENT_SUMMARY_HIDE_HISTORY_COLUMN.getValue()))
	{
		columnName.setWidth(-1);
	}
	else
		columnName.setWidth(170);
		
	columnName.setAlignment(Alignment.LEFT);
	columnName.setReadOnly(true);
	columnName.setCanGrow(Boolean.TRUE);
	
	if (Boolean.FALSE.equals(ConfigFlag.UI.PATIENT_SUMMARY_HIDE_HISTORY_COLUMN.getValue()))
	{
		columnName = form.dyngrdList().getColumns().newColumn("", COLUMN_HISTORY);
		columnName.setWidth(-1);
		columnName.setAlignment(Alignment.CENTER);
		columnName.setReadOnly(true);
	}
}