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

The following are Jave code examples for showing how to use setSortMode() 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.
+ Save this method
Example 1
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void addTrackingColumn(ColumnDetailVo column) 
{
	if(column == null || column.getColHeader() == null)
		return;
	
	DynamicGridColumn gridColumn = form.dyngrdTrack().getColumns().newColumn(column.getColHeader());
	gridColumn.setIdentifier(column.getColumn());
	gridColumn.setWidth(column.getColWidth());
	
	//WDEV-15819
	if (! isImageColumn(gridColumn)) //image columns will not have the sort option
	{
		gridColumn.setSortMode(SortMode.MANUAL);
	}
	

}
 
Example 2
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initializeFlatGrid()
{
	form.dyngrdNotes().clear();
	
	DynamicGridColumn clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_IMAGE_FLAT);
	clinicalNotesColumn.setWidth(30);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_DATE_FLAT);
	clinicalNotesColumn.setCaption("Date");
	clinicalNotesColumn.setSortMode(SortMode.MANUAL);
	clinicalNotesColumn.setWidth(100);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_TITLE_FLAT);
	clinicalNotesColumn.setIdentifier(COL_TITLE_FLAT);
	clinicalNotesColumn.setCaption("");
	clinicalNotesColumn.setWidth(220);
	
	clinicalNotesColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	clinicalNotesColumn.setIdentifier(COL_CONSULTANT_FLAT);
	clinicalNotesColumn.setCaption("Consultant");
	clinicalNotesColumn.setSortMode(SortMode.MANUAL);
	clinicalNotesColumn.setWidth(-1);
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 6 votes
private void initialise() 
{	
	form.dyngrdNotes().clear();

	DynamicGridColumn dateColumn = form.dyngrdNotes().getColumns().newColumn("Authoring Details", true);
	dateColumn.setWidth(150);	
	dateColumn.setIdentifier(new String("Authoring Details"));
	
	DynamicGridColumn statusColumn = form.dyngrdNotes().getColumns().newColumn("Status", true);
	statusColumn.setWidth(100);		
	statusColumn.setIdentifier(new String("Status"));
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn notesColumn = form.dyngrdNotes().getColumns().newColumn("Note", true);
	notesColumn.setWidth(-1);	
	notesColumn.setIdentifier(new String("Note"));
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdReasons().clear();
	form.dyngrdReasons().setSelectable(true);
	
	DynamicGridColumn reasonColumn = null;
	reasonColumn = form.dyngrdReasons().getColumns().newColumn(" ", false);				
	reasonColumn.setIdentifier("REASON");
	reasonColumn.setWidth(-1);
	reasonColumn.setSortMode(SortMode.AUTOMATIC);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
/**
 * Function used to initialize the dynamic grid for Pre Treatment staging
 */
private void initializeDynamicGrid()
{
	// Clear dynamic grid
	form.dyngrdOverall().clear();

	// Create T column
	DynamicGridColumn column = form.dyngrdOverall().getColumns().newColumn("T", COL_T_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);					// WDEV-12569
	// Create N column
	column = form.dyngrdOverall().getColumns().newColumn("N", COL_N_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);					// WDEV-12569
	// Create M column
	column = form.dyngrdOverall().getColumns().newColumn("M", COL_M_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);					// WDEV-12569

	// WDEV-13091
	// Only T, N, M columns are relevant for an OverallStaging recorded at Tumour Site level
	// The rest are removed

	// Column for Overall staging value
	column = form.dyngrdOverall().getColumns().newColumn("Overall Staging", COL_OVERALL);
	column.setWidth(120);
	column.setSortMode(SortMode.MANUAL);					// WDEV-12569
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View Source Code 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 7
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);
	form.dyngrdNotes().setReadOnly(true);
	
	DynamicGridColumn iconColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	iconColumn.setWidth(30);	
	iconColumn.setIdentifier(new String("ICON"));

	DynamicGridColumn correctedColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	correctedColumn.setWidth(30);	
	correctedColumn.setIdentifier(new String("CORRECT"));

	DynamicGridColumn patColumn = form.dyngrdNotes().getColumns().newColumn("Patient", true);
	patColumn.setWidth(180);	
	patColumn.setIdentifier(new String("Patient"));
	
	DynamicGridColumn dateColumn = form.dyngrdNotes().getColumns().newColumn("Authoring Details", true);
	dateColumn.setWidth(150);	
	dateColumn.setIdentifier(new String("Authoring Details"));
	
	DynamicGridColumn disColumn = form.dyngrdNotes().getColumns().newColumn("Discipline", true);
	disColumn.setWidth(100);		
	disColumn.setIdentifier(new String("Discipline"));
	disColumn.setSortMode(SortMode.AUTOMATIC);
		
	DynamicGridColumn statusColumn = form.dyngrdNotes().getColumns().newColumn("Status", true);
	statusColumn.setWidth(100);		
	statusColumn.setIdentifier(new String("Status"));
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn notesColumn = form.dyngrdNotes().getColumns().newColumn("Note", true);
	notesColumn.setWidth(-1);	
	notesColumn.setIdentifier(new String("Note"));
}
 
Example 8
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdDischargeDetails().clear();
	form.dyngrdDischargeDetails().setSelectable(true);
	form.dyngrdDischargeDetails().setReadOnly(true);
	form.dyngrdDischargeDetails().setFooterMaxHeight(18);
	
	DynamicGridColumn consultantColumn = null;
	consultantColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Responsible HCP", true);				
	consultantColumn.setIdentifier("CONSULTANT");
	consultantColumn.setWidth(170);
	consultantColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn wardColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Ward", true);
	wardColumn.setIdentifier("WARD");
	wardColumn.setWidth(140);			
	wardColumn.setSortMode(SortMode.AUTOMATIC);
	
	DynamicGridColumn dischargeDateColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Discharge Date", true);
	dischargeDateColumn.setIdentifier("DISCHARGE_DATE");
	dischargeDateColumn.setWidth(105);	
	dischargeDateColumn.setSortMode(SortMode.MANUAL);
	
	DynamicGridColumn methodColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Patient Name", true);
	methodColumn.setIdentifier("PATIENT_NAME");
	methodColumn.setWidth(170);			
	methodColumn.setSortMode(SortMode.AUTOMATIC);
	
	DynamicGridColumn destinationColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Hospital No", true);
	destinationColumn.setIdentifier("HOSPITAL_NO");
	destinationColumn.setWidth(100);		
	destinationColumn.setSortMode(SortMode.AUTOMATIC);
		
	DynamicGridColumn letterStatusColumn = form.dyngrdDischargeDetails().getColumns().newColumn("Letter Status", true);
	letterStatusColumn.setIdentifier("LETTER_STATUS");
	letterStatusColumn.setWidth(100);		
	letterStatusColumn.setSortMode(SortMode.AUTOMATIC);
}
 
Example 9
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);
	form.dyngrdNotes().setReadOnly(true);

	DynamicGridColumn correctedColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	correctedColumn.setWidth(30);
	correctedColumn.setIdentifier(new String("CORRECT"));

	DynamicGridColumn authoringdateColumn = form.dyngrdNotes().getColumns().newColumn("Recording Date Time", true);
	authoringdateColumn.setWidth(125);//WDEV-15112
	authoringdateColumn.setIdentifier(new String("Recording Date"));

	DynamicGridColumn authoringHCPColumn = form.dyngrdNotes().getColumns().newColumn("Recording User", true);
	authoringHCPColumn.setWidth(150);
	authoringHCPColumn.setIdentifier(new String("Recording User"));

	DynamicGridColumn disColumn = form.dyngrdNotes().getColumns().newColumn("Discipline", true);
	disColumn.setWidth(70);
	disColumn.setIdentifier(new String("Discipline"));
	disColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn statusColumn = form.dyngrdNotes().getColumns().newColumn("Status", true);
	statusColumn.setWidth(70);
	statusColumn.setIdentifier(new String("Status"));
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn ntColumn = form.dyngrdNotes().getColumns().newColumn("NoteType", true);
	ntColumn.setWidth(100);
	ntColumn.setIdentifier(new String("Note Type"));
	ntColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn notesColumn = form.dyngrdNotes().getColumns().newColumn("Note", true);
	notesColumn.setWidth(-1);
	notesColumn.setIdentifier(new String("Note"));
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 5 votes
private void initializeDynamicGrid()
{
	form.dyngrdNotes().clear();
	form.dyngrdNotes().setSelectable(true);
	form.dyngrdNotes().setReadOnly(true);

	form.dteFrom().setValue(new Date().addDay(-ConfigFlag.DOM.DAILY_NOTES_LIST_NO_OF_DAYS.getValue()));
	form.dteTo().setValue(new Date());

	DynamicGridColumn iconColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	iconColumn.setWidth(30);
	iconColumn.setIdentifier(new String("ICON"));

	DynamicGridColumn correctedColumn = form.dyngrdNotes().getColumns().newColumn("", true);
	correctedColumn.setWidth(30);
	correctedColumn.setIdentifier(new String("CORRECT"));

	DynamicGridColumn dateColumn = form.dyngrdNotes().getColumns().newColumn("Authoring Details", true);
	dateColumn.setWidth(150);
	dateColumn.setIdentifier(new String("Authoring Details"));

	DynamicGridColumn disColumn = form.dyngrdNotes().getColumns().newColumn("Discipline", true);
	disColumn.setWidth(100);
	disColumn.setIdentifier(new String("Discipline"));
	disColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn statusColumn = form.dyngrdNotes().getColumns().newColumn("Status", true);
	statusColumn.setWidth(100);
	statusColumn.setIdentifier(new String("Status"));
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn notesColumn = form.dyngrdNotes().getColumns().newColumn("Note", true);
	notesColumn.setWidth(-1);
	notesColumn.setIdentifier(new String("Note"));
}
 
Example 11
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynamicGrid()
{
	form.dyngrdPatients().clear();
	form.dyngrdPatients().setSelectable(true);

	DynamicGridColumn surnameColumn = form.dyngrdPatients().getColumns().newColumn("Surname", COLSURNAME);
	surnameColumn.setSortMode(SortMode.AUTOMATIC);
	surnameColumn.setWidth(64);

	DynamicGridColumn forenameColumn = form.dyngrdPatients().getColumns().newColumn("Forename", COLFORENAME);
	forenameColumn.setSortMode(SortMode.AUTOMATIC);
	forenameColumn.setWidth(64);

	DynamicGridColumn hospnumColumn = form.dyngrdPatients().getColumns().newColumn("Hosp. No.", COLHOSPNUM);
	hospnumColumn.setSortMode(SortMode.AUTOMATIC);
	hospnumColumn.setWidth(62);

	DynamicGridColumn ageColumn = form.dyngrdPatients().getColumns().newColumn("Age", COLAGE);
	ageColumn.setSortMode(SortMode.MANUAL);
	ageColumn.setWidth(35);

	DynamicGridColumn sexColumn = form.dyngrdPatients().getColumns().newColumn("Sex", COLSEX);
	sexColumn.setSortMode(SortMode.AUTOMATIC);
	sexColumn.setWidth(45);

	DynamicGridColumn alertColumn = form.dyngrdPatients().getColumns().newColumn("Alert", COLALERTS);
	alertColumn.setSortMode(SortMode.MANUAL);
	alertColumn.setWidth(40);

	DynamicGridColumn consColumn = form.dyngrdPatients().getColumns().newColumn("Consultant", COLCONSULANT);
	consColumn.setSortMode(SortMode.AUTOMATIC);
	consColumn.setWidth(72);

	DynamicGridColumn wardColumn = form.dyngrdPatients().getColumns().newColumn("Ward", COLWARD);
	wardColumn.setSortMode(SortMode.AUTOMATIC);
	wardColumn.setWidth(62);

	DynamicGridColumn specColumn = form.dyngrdPatients().getColumns().newColumn("Specialty", COLSPECIALTY);
	specColumn.setSortMode(SortMode.AUTOMATIC);
	specColumn.setWidth(66);

	DynamicGridColumn procColumn = form.dyngrdPatients().getColumns().newColumn("Procedure", COLPROCEDURE);
	procColumn.setSortMode(SortMode.AUTOMATIC);
	procColumn.setWidth(66);

	DynamicGridColumn tciDateColumn = form.dyngrdPatients().getColumns().newColumn("TCI Date", COLTCIDATE);
	tciDateColumn.setSortMode(SortMode.AUTOMATIC);
	tciDateColumn.setWidth(65);

	DynamicGridColumn manageColumn = form.dyngrdPatients().getColumns().newColumn("Management", COLMANAGE);
	manageColumn.setSortMode(SortMode.AUTOMATIC);
	manageColumn.setWidth(84);

	DynamicGridColumn commentsColumn = form.dyngrdPatients().getColumns().newColumn("Comments", COLCOMMENT);

	commentsColumn.setWidth(-1);

	form.lblTotal().setValue("Total : 0");
}
 
Example 12
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynamicGrid() 
{
	form.dyngrdPatients().clear();
	form.dyngrdPatients().setSelectable(true);
	
	DynamicGridColumn surnameColumn = form.dyngrdPatients().getColumns().newColumn("Surname", COLSURNAME);
	surnameColumn.setSortMode(SortMode.AUTOMATIC);
	surnameColumn.setWidth(64);	

	DynamicGridColumn forenameColumn = form.dyngrdPatients().getColumns().newColumn("Forename", COLFORENAME);
	forenameColumn.setSortMode(SortMode.AUTOMATIC);
	forenameColumn.setWidth(64);	
		
	DynamicGridColumn hospnumColumn = form.dyngrdPatients().getColumns().newColumn("Hosp. No.", COLHOSPNUM);
	hospnumColumn.setSortMode(SortMode.AUTOMATIC);
	hospnumColumn.setWidth(62);
		
	DynamicGridColumn ageColumn = form.dyngrdPatients().getColumns().newColumn("Age", COLAGE);
	ageColumn.setSortMode(SortMode.AUTOMATIC);
	ageColumn.setWidth(35);
		
	DynamicGridColumn sexColumn = form.dyngrdPatients().getColumns().newColumn("Sex", COLSEX);
	sexColumn.setSortMode(SortMode.AUTOMATIC);
	sexColumn.setWidth(45);
		
	DynamicGridColumn alertColumn = form.dyngrdPatients().getColumns().newColumn("Alert", COLALERTS);
	alertColumn.setSortMode(SortMode.MANUAL); // WDEV-18011 
	alertColumn.setWidth(40);

	DynamicGridColumn consColumn = form.dyngrdPatients().getColumns().newColumn("Consultant", COLCONSULANT);
	consColumn.setSortMode(SortMode.AUTOMATIC);
	consColumn.setWidth(72);

	DynamicGridColumn wardColumn = form.dyngrdPatients().getColumns().newColumn("Ward", COLWARD);
	wardColumn.setSortMode(SortMode.AUTOMATIC);
	wardColumn.setWidth(62);
	
	DynamicGridColumn specColumn = form.dyngrdPatients().getColumns().newColumn("Specialty", COLSPECIALTY);
	specColumn.setSortMode(SortMode.AUTOMATIC);
	specColumn.setWidth(66);
		
	DynamicGridColumn procColumn = form.dyngrdPatients().getColumns().newColumn("Procedure", COLPROCEDURE);
	procColumn.setSortMode(SortMode.AUTOMATIC);
	procColumn.setWidth(66);
		
	DynamicGridColumn tciDateColumn = form.dyngrdPatients().getColumns().newColumn("TCI Date", COLTCIDATE);
	tciDateColumn.setSortMode(SortMode.AUTOMATIC);
	tciDateColumn.setWidth(65);
		
	DynamicGridColumn manageColumn = form.dyngrdPatients().getColumns().newColumn("Management", COLMANAGE);
	manageColumn.setSortMode(SortMode.AUTOMATIC);
	manageColumn.setWidth(84);
	
	DynamicGridColumn commentsColumn = form.dyngrdPatients().getColumns().newColumn("Comments", COLCOMMENT);
	 
	commentsColumn.setWidth(-1);	

	form.lblTotal().setValue("Total : 0");		
}
 
Example 13
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynamicGrid() 
{
	form.dyngrdCurrIP().clear();
	form.dyngrdCurrIP().setSelectable(true);
	
	DynamicGridColumn surnameColumn = form.dyngrdCurrIP().getColumns().newColumn("Surname", COLSURNAME);
	surnameColumn.setSortMode(SortMode.AUTOMATIC);
	surnameColumn.setWidth(68);	

	DynamicGridColumn forenameColumn = form.dyngrdCurrIP().getColumns().newColumn("Forename", COLFORENAME);
	forenameColumn.setSortMode(SortMode.AUTOMATIC);
	forenameColumn.setWidth(68);	
		
	DynamicGridColumn hospnumColumn = form.dyngrdCurrIP().getColumns().newColumn("Hosp. No.", COLHOSPNUM);
	hospnumColumn.setSortMode(SortMode.AUTOMATIC);
	hospnumColumn.setWidth(65);
		
	DynamicGridColumn ageColumn = form.dyngrdCurrIP().getColumns().newColumn("Age", COLAGE);
	ageColumn.setSortMode(SortMode.MANUAL);
	ageColumn.setWidth(35);
		
	DynamicGridColumn sexColumn = form.dyngrdCurrIP().getColumns().newColumn("Sex", COLSEX);
	sexColumn.setSortMode(SortMode.AUTOMATIC);
	sexColumn.setWidth(45);
		
	DynamicGridColumn bedColumn = form.dyngrdCurrIP().getColumns().newColumn("Bed Type", COLBEDTYPE);
	bedColumn.setSortMode(SortMode.AUTOMATIC);
	bedColumn.setWidth(65);
		
	DynamicGridColumn alertColumn = form.dyngrdCurrIP().getColumns().newColumn("Alert", COLALERTS);
	alertColumn.setSortMode(SortMode.MANUAL);
	alertColumn.setWidth(45);
		
	DynamicGridColumn wardColumn = form.dyngrdCurrIP().getColumns().newColumn("Ward", COLWARD);
	wardColumn.setSortMode(SortMode.AUTOMATIC);
	wardColumn.setWidth(77);
		
	DynamicGridColumn locColumn = form.dyngrdCurrIP().getColumns().newColumn("Main/Side", COLLOCATION);
	locColumn.setSortMode(SortMode.AUTOMATIC);
	locColumn.setWidth(77);
		
	DynamicGridColumn consColumn = form.dyngrdCurrIP().getColumns().newColumn("Consultant", COLCONSULANT);
	consColumn.setSortMode(SortMode.AUTOMATIC);
	consColumn.setWidth(77);
		
	DynamicGridColumn estDateColumn = form.dyngrdCurrIP().getColumns().newColumn("Est. Disch", COLESTDISCH);
	estDateColumn.setSortMode(SortMode.MANUAL);
	estDateColumn.setWidth(65);
		
	DynamicGridColumn commentsColumn = form.dyngrdCurrIP().getColumns().newColumn("Comments", COLCOMMENT);
	 
	if(ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("CCO"))
	{			
		commentsColumn.setWidth(90);	

		DynamicGridColumn hlColumn = form.dyngrdCurrIP().getColumns().newColumn("HL", COLHOMELEAVE);
		hlColumn.setSortMode(SortMode.AUTOMATIC);
		hlColumn.setWidth(-1);	
	}
	else
		commentsColumn.setWidth(-1);	

	form.lblTotal().setValue("Total : 0");		
}
 
Example 14
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void formatPatientResultsGrid()
{
	boolean bDisplayOptionalCol = ConfigFlag.UI.DISPLAY_OPTIONAL_COLUMN_PATIENT_SEARCH.getValue();
	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); 
	
	form.dyngrdPatient().clear();
	form.dyngrdPatient().setReadOnly(true);//WDEV-15958
	
	form.dyngrdPatient().setSelectable(true);
	
	DynamicGridColumn column = form.dyngrdPatient().getColumns().newColumn("Surname");
	column.setIdentifier(COL_SURNAME);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatient().getColumns().newColumn("Forename");
	column.setIdentifier(COL_FORENAME);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn(dispIdType.getText());
	column.setIdentifier(COL_IDENTIFIER);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn("Sex");
	column.setIdentifier(COL_SEX);
	column.setWidth(50);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn("Age");
	column.setIdentifier(COL_AGE);
	column.setWidth(35);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);//WDEV-15958
	
	column = form.dyngrdPatient().getColumns().newColumn("DOB");
	column.setIdentifier(COL_DOB);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);//WDEV-15958

	column = form.dyngrdPatient().getColumns().newColumn("Address");
	column.setIdentifier(COL_ADDRESS);
	if (bDisplayOptionalCol)
		column.setWidth(275);
	else
		column.setWidth(-1);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	if (bDisplayOptionalCol)
	{
		String strOptional = "Ward"; // Default Column Name
		if(ConfigFlag.UI.PAT_SEARCH_OPTIONAL_COL_TYPE.getValue().equalsIgnoreCase("CONTACT")) 
		{
			strOptional = "Contact No.";
		}
		column = form.dyngrdPatient().getColumns().newColumn(strOptional);
		column.setIdentifier(COL_OPTIONAL);
		column.setWidth(-1);
	}
	
}
 
Example 15
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void formatPatientResultsGrid()
{
	boolean bDisplayOptionalCol = ConfigFlag.UI.DISPLAY_OPTIONAL_COLUMN_PATIENT_SEARCH.getValue();
	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()); 
	
	form.dyngrdPatient().clear();
	
	form.dyngrdPatient().setSelectable(true);
	
	DynamicGridColumn column = form.dyngrdPatient().getColumns().newColumn("Surname");
	column.setIdentifier(COL_SURNAME);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatient().getColumns().newColumn("Forename");
	column.setIdentifier(COL_FORENAME);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn(dispIdType.getText());
	column.setIdentifier(COL_IDENTIFIER);
	column.setWidth(100);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn("Sex");
	column.setIdentifier(COL_SEX);
	column.setWidth(50);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	column = form.dyngrdPatient().getColumns().newColumn("Age");
	column.setIdentifier(COL_AGE);
	column.setWidth(35);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);
	
	column = form.dyngrdPatient().getColumns().newColumn("DOB");
	column.setIdentifier(COL_DOB);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatient().getColumns().newColumn("Address");
	column.setIdentifier(COL_ADDRESS);
	if (bDisplayOptionalCol)
		column.setWidth(275);
	else
		column.setWidth(-1);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);
	
	if (bDisplayOptionalCol)
	{
		String strOptional = "Ward"; // Default Column Name
		if(ConfigFlag.UI.PAT_SEARCH_OPTIONAL_COL_TYPE.getValue().equalsIgnoreCase("CONTACT")) 
		{
			strOptional = "Contact No.";
		}
		column = form.dyngrdPatient().getColumns().newColumn(strOptional);
		column.setIdentifier(COL_OPTIONAL);
		column.setWidth(-1);
	}
	
}
 
Example 16
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
/**
 * Function used to initialize the dynamic grid for Pre Treatment staging
 */
private void initializeDynamicGrid()
{
	// Clear dynamic grid
	form.dyngrdOverall().clear();
	
	// Create T column
	DynamicGridColumn column = form.dyngrdOverall().getColumns().newColumn("T", COL_T_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
	// Create N column
	column = form.dyngrdOverall().getColumns().newColumn("N", COL_N_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
	// Create M column
	column = form.dyngrdOverall().getColumns().newColumn("M", COL_M_VALUE);
	column.setWidth(50);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
	
	// Check if Tumour Group uses histopathologic type for overall staging 
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresHisto()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Histology Type", COL_HIST_TYPE);
		column.setWidth(110);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Check if Tumour Group uses histopathologic grade for overall staging
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresDiff()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Histology Grade", COL_HIST_GRADE);
		column.setWidth(110);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Check if Tumour Group uses Serum Marker for overall staging
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresSMarkers()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Serum Marker", COL_SERUM);
		column.setWidth(110);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Check if Tumour Group has over 45 relevant for overall staging
	if (Boolean.TRUE.equals(form.getGlobalContext().ClinicalAdmin.getTumourGroup().getTnmRequiresOver45()))
	{
		column = form.dyngrdOverall().getColumns().newColumn("Ov. 45", COL_OVER_45);
		column.setWidth(40);
		column.setHeaderAlignment(Alignment.CENTER);
		column.setAlignment(Alignment.CENTER);
		column.setSortMode(SortMode.MANUAL);		// WDEV-12569
	}
	
	// Column for Overall staging value
	column = form.dyngrdOverall().getColumns().newColumn("Overall Staging", COL_OVERALL);
	column.setWidth(120);
	column.setSortMode(SortMode.MANUAL);			// WDEV-12569
}
 
Example 17
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynamicGrid()
{
	form.dyngrdReferrals().clear();
	form.dyngrdReferrals().setSelectable(true);
	
	DynamicGridColumn cabColumn = form.dyngrdReferrals().getColumns().newColumn("", COLCAB);
	cabColumn.setWidth(32);	

	if (ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue())
	{
		DynamicGridColumn eleColumn = form.dyngrdReferrals().getColumns().newColumn("", COLELECTIVELIST);
		eleColumn.setWidth(32);	
	}
	
	DynamicGridColumn serviceColumn = form.dyngrdReferrals().getColumns().newColumn("Service", COLSERVICE);
	serviceColumn.setWidth(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue() ? 185 : 153);

	DynamicGridColumn revColumn = form.dyngrdReferrals().getColumns().newColumn("", COLREVIEW);
	revColumn.setWidth(40);	
	revColumn.setAlignment(Alignment.CENTER);

	DynamicGridColumn remainingColumn = form.dyngrdReferrals().getColumns().newColumn("RTT Breach Date", COL20KPI);//WDEV-11713 ////WDEV-11779 Modified to "RTT BREACH DATE"
	remainingColumn.setWidth(100);//WDEV-11779 

	DynamicGridColumn ubrnColumn = form.dyngrdReferrals().getColumns().newColumn("", COLIMAGE);
	ubrnColumn.setWidth(40);	
	
	DynamicGridColumn recColumn = form.dyngrdReferrals().getColumns().newColumn("Received Date", COLRECIEVEDDATE);
	recColumn.setWidth(95);	

	DynamicGridColumn pdfColumn = form.dyngrdReferrals().getColumns().newColumn("", COLPDF);
	pdfColumn.setWidth(32);		
	pdfColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn statusColumn = form.dyngrdReferrals().getColumns().newColumn("Status", COLSTATUS);
	statusColumn.setWidth(135);		
	statusColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn invColumn = form.dyngrdReferrals().getColumns().newColumn("", COLINV);
	invColumn.setWidth(32);		
	invColumn.setSortMode(SortMode.AUTOMATIC);

	DynamicGridColumn invNeedApptColumn = form.dyngrdReferrals().getColumns().newColumn("", COLINVNEEDAPPT);
	invNeedApptColumn.setWidth(32);		
	invNeedApptColumn.setSortMode(SortMode.AUTOMATIC);
	
	DynamicGridColumn bookColumn = form.dyngrdReferrals().getColumns().newColumn("", COLBOOKING);
	bookColumn.setWidth(-1);	
}
 
Example 18
Project: AvoinApotti   File: Logic.java   View Source Code 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);
	}
}
 
Example 19
Project: AvoinApotti   File: Logic.java   View Source Code Vote up 4 votes
private void initializeDynPatGrid()
{
	form.dyngrdPatients().clear();

	DynamicGridColumn column;

	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());

	form.dyngrdPatients().setSelectable(true);
	
	form.dyngrdPatients().setHeaderHeight(40);
	
	column = form.dyngrdPatients().getColumns().newColumn(dispIdType.getText());
	column.setIdentifier(COL_IDENTIFIER);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("Surname");
	column.setIdentifier(COL_SURNAME);
	column.setWidth(95);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("Forename");
	column.setIdentifier(COL_FORENAME);
	column.setWidth(95);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("DOB");
	column.setIdentifier(COL_DOB);
	column.setWidth(65);
	column.setCanGrow(false);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatients().getColumns().newColumn("Ward");
	column.setIdentifier(COL_WARD);
	column.setWidth(95);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	if (!form.chkInpatientOnly().getValue())
	{
		column = form.dyngrdPatients().getColumns().newColumn("Discharge\nDate");
		column.setIdentifier(COL_DISCHARGEDATE);
		column.setWidth(78);
		column.setCanGrow(true);
		column.setSortMode(SortMode.MANUAL);
	}
	column = form.dyngrdPatients().getColumns().newColumn("Consultant");
	column.setIdentifier(COL_CONSULTANT);
	column.setWidth(90);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatients().getColumns().newColumn("Worklist Status");
	column.setIdentifier(COL_STATUS);
	column.setWidth(-1);
	column.setCanGrow(true);
	column.setSortMode(SortMode.AUTOMATIC);

	column = form.dyngrdPatients().getColumns().newColumn("Hours to\nBreach");
	column.setIdentifier(COL_HOURSTOBREACH);
	column.setWidth(70);
	column.setCanGrow(true);
	column.setSortMode(SortMode.MANUAL);

	column = form.dyngrdPatients().getColumns().newColumn("Dementia/\nDelirium");
	column.setIdentifier(COL_ICON);
	column.setWidth(-1);
	column.setCanGrow(false);
	column.setSortMode(SortMode.MANUAL);

}