Java Code Examples for ims.framework.controls.DynamicGridCellTable

The following are top voted examples for showing how to use ims.framework.controls.DynamicGridCellTable. 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   View source code 6 votes vote down vote up
@Override
protected void onDyngrdPatientsCellButtonClicked(DynamicGridCell cell) 
{
	if(cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
	{
		DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
		if(helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
		{
			if (helper.getFiredCell().getIdentifier() instanceof Integer)
            {
				String identifier = (String)helper.getFiredCell().getIdentifier();
                engine.showMessage("Cell with identifier " + identifier + " was fired");
            }
		}
	}
}
 
Example 2
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
@Override
protected void onDyngrdPatientsCellButtonClicked(DynamicGridCell cell) 
{
	if(cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
	{
		DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
		if(helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
		{
			if (helper.getFiredCell().getIdentifier() instanceof Integer)
            {
				String identifier = (String)helper.getFiredCell().getIdentifier();
                engine.showMessage("Cell with identifier " + identifier + " was fired");
            }
		}
	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
@Override
protected void onDyngrdPatientsCellButtonClicked(DynamicGridCell cell) 
{
	if(cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
	{
		DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
		if(helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
		{
			if (helper.getFiredCell().getIdentifier() instanceof Integer)
            {
				String identifier = (String)helper.getFiredCell().getIdentifier();
                engine.showMessage("Cell with identifier " + identifier + " was fired");
            }
		}
	}
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
@Override
protected void onDyngrdPatientsCellButtonClicked(DynamicGridCell cell) 
{
	if(cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
	{
		DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
		if(helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
		{
			if (helper.getFiredCell().getIdentifier() instanceof Integer)
            {
				String identifier = (String)helper.getFiredCell().getIdentifier();
                engine.showMessage("Cell with identifier " + identifier + " was fired");
            }
		}
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	addConfigurableQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 6
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
@Override
protected void onDyngrdWhiteBoardCellButtonClicked(DynamicGridCell cell)
{
	if(cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
       {
              DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
              if(helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
              {
            	  	if (helper.getFiredCell().getIdentifier() instanceof String )
                     {
            	  		String  identifier = (String )helper.getFiredCell().getIdentifier();
            	  		
            	  		if (identifier.equals(BUTTON_CELL_EDIT))
            	  		{
            	  			setGlobalContexts((TrackingForPatientWhiteBoardVo)cell.getIdentifier());
            	  			engine.open(form.getForms().Emergency.EDWhiteBoardEditDialog);
            	  		}
                     }
            	  	else if (helper.getFiredCell().getIdentifier() instanceof PatientWhiteboardActionsVo )
                     {
                    	 PatientWhiteboardActionsVo  action = (PatientWhiteboardActionsVo )helper.getFiredCell().getIdentifier();
                    	 PatientWhiteboardRecordVo patientWhiteBoardRecord = (PatientWhiteboardRecordVo)helper.getFiredCell().getValue();
                         if (updateAndSaveStatusAction(action,patientWhiteBoardRecord))
                         {
                        	updatePatientCell(cell);
                        	 
                         }
                       
                     }
                    
              }
       }

}
 
Example 7
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 8
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	addConfigurableQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 9
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private void addNewRow()
{
	DynamicGridRow row = form.dyngrdWhiteBoard().getRows().newRow();
	
	addPatientButton(row);
	
	DynamicGridCell cellLoc = row.getCells().newCell(getColumnByIdentifier(COLUMN_LOCATION), DynamicCellType.STRING);
	cellLoc.setValue("Location");
	cellLoc.setTooltip("Location");
	cellLoc.setReadOnly(true);
	
	addAssessmentsToGrid(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getAssessments());
	addFixedQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig());
	addConfigurableQuestions(row,form.getGlobalContext().Emergency.getWhiteBoardConfig().getOtherQuestions());
	
	if (form.getGlobalContext().Emergency.getWhiteBoardConfig().getComments())
	{
		DynamicGridCell cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.IMAGEBUTTON);
   		
   		//Add Comment Button Cell
   		cellComment = row.getCells().newCell(getColumnByIdentifier(COLUMN_COMMENT), DynamicCellType.TABLE);
   		DynamicGridCellTable helper = new DynamicGridCellTable(cellComment);		
   		TableRow tableRow = helper.getRows().newRow();
   		TableCell tableCell = tableRow.getCells().newCell();
   		  		  tableCell.setType(TableCellType.BUTTON);		
   					
   		TableCellOptions cellOptions = new TableCellOptions();
   						 cellOptions.setAutopostback(true);
   						 cellOptions.setButtonImage(form.getImages().Core.Memo);
   						 cellOptions.setButtonImageText(" Comment");
   						 cellOptions.setButtonHeight(120);
   						 cellOptions.setButtonWidth(80);
   	
   		tableCell.setOptions(cellOptions);
   		cellComment.setValue(helper);
	}
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdgrdTriageWorklistCellButtonClicked(DynamicGridCell cell)
{
	
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedTriageWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedTriageWorklistButtons.STARTEDITTRIAGE.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_TRIAGE, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);  
                	}
                    else if( SelectedTriageWorklistButtons.PATIENTSUMMARY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
            			
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}	
                    }
                    else if( SelectedTriageWorklistButtons.DECISIONTOAMIT.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    }
                    else if( SelectedTriageWorklistButtons.VIEWHISTORY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                  }
           }
           //--------------
        

    }
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERTRIAGE ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 11
Project: AvoinApotti   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdClinicianWorklistCellButtonClicked(DynamicGridCell cell) //WDEV-18001
{
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedClinicianWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedClinicianWorklistButtons.EDITASSESSMENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLIST, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true);//WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);
                	}
                    else if( SelectedClinicianWorklistButtons.PATIENTSUMMARY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}
                    }
                    else if( SelectedClinicianWorklistButtons.DECISIONTOAMIT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    	
                    }
                    else if( SelectedClinicianWorklistButtons.VIEWHISTORY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                    else if( SelectedClinicianWorklistButtons.SEENBYCOMPLASSESSMNENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))   //wdev-17252
                    {
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);  //return to clinician worklist tab
                    }
                  }
           }
    }
	
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERASSESSMENT ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 12
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
private void updatePatientCell(DynamicGridCell cell)
{
	long startTime = System.currentTimeMillis();
	
	
	
	TrackingForPatientWhiteBoardVo trackingPatient = (TrackingForPatientWhiteBoardVo)cell.getIdentifier();
	
	DynamicGridCellTable helper = new DynamicGridCellTable(cell);		
	helper.setBorder(3);	
	
	addPatientAndTrackingDetailsToTableCell(trackingPatient, helper);
	
	addActionButtonsToTableCell(trackingPatient, helper);
    	
	addAssessmentButtonsToTableCell(trackingPatient, helper);
	
	long endTime = System.currentTimeMillis();
	long miliseconds = endTime - startTime;
	System.out.println("Time to Update patient Cell: " + miliseconds);
	
	cell.setValue(helper);
	cell.setReadOnly(true);
	cell.setIdentifier(trackingPatient);

}
 
Example 13
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdgrdTriageWorklistCellButtonClicked(DynamicGridCell cell)
{
	
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedTriageWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedTriageWorklistButtons.STARTEDITTRIAGE.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_TRIAGE, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);  
                	}
                    else if( SelectedTriageWorklistButtons.PATIENTSUMMARY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
            			
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}	
                    }
                    else if( SelectedTriageWorklistButtons.DECISIONTOAMIT.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    }
                    else if( SelectedTriageWorklistButtons.VIEWHISTORY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                  }
           }
           //--------------
        

    }
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERTRIAGE ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 14
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdClinicianWorklistCellButtonClicked(DynamicGridCell cell) //WDEV-18001
{
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedClinicianWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedClinicianWorklistButtons.EDITASSESSMENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLIST, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true);//WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);
                	}
                    else if( SelectedClinicianWorklistButtons.PATIENTSUMMARY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}
                    }
                    else if( SelectedClinicianWorklistButtons.DECISIONTOAMIT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    	
                    }
                    else if( SelectedClinicianWorklistButtons.VIEWHISTORY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                    else if( SelectedClinicianWorklistButtons.SEENBYCOMPLASSESSMNENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))   //wdev-17252
                    {
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);  //return to clinician worklist tab
                    }
                    else if( SelectedClinicianWorklistButtons.SEENBYNURSECOMPLASSESSMNENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))   //WDEV-20429
                    {
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEENNURSE, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); 
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);  //return to clinician worklist tab
                    }
                  }
           }
    }
	
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERASSESSMENT ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 15
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdgrdTriageWorklistCellButtonClicked(DynamicGridCell cell)
{
	
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedTriageWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedTriageWorklistButtons.STARTEDITTRIAGE.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_TRIAGE, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);  
                	}
                    else if( SelectedTriageWorklistButtons.PATIENTSUMMARY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
            			
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}	
                    }
                    else if( SelectedTriageWorklistButtons.DECISIONTOAMIT.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    }
                    else if( SelectedTriageWorklistButtons.VIEWHISTORY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                  }
           }
           //--------------
        

    }
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERTRIAGE ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdClinicianWorklistCellButtonClicked(DynamicGridCell cell) //WDEV-18001
{
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedClinicianWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedClinicianWorklistButtons.EDITASSESSMENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLIST, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true);//WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);
                	}
                    else if( SelectedClinicianWorklistButtons.PATIENTSUMMARY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}
                    }
                    else if( SelectedClinicianWorklistButtons.DECISIONTOAMIT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    	
                    }
                    else if( SelectedClinicianWorklistButtons.VIEWHISTORY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                    else if( SelectedClinicianWorklistButtons.SEENBYCOMPLASSESSMNENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))   //wdev-17252
                    {
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);  //return to clinician worklist tab
                    }
                  }
           }
    }
	
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERASSESSMENT ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 17
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdgrdTriageWorklistCellButtonClicked(DynamicGridCell cell)
{
	
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedTriageWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedTriageWorklistButtons.STARTEDITTRIAGE.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_TRIAGE, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);  
                	}
                    else if( SelectedTriageWorklistButtons.PATIENTSUMMARY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
            			
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}	
                    }
                    else if( SelectedTriageWorklistButtons.DECISIONTOAMIT.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	//TrackingForClinicianWorklistAndTriageVo tempVo = (TrackingForClinicianWorklistAndTriageVo)cell.getRow().getValue();
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    }
                    else if( SelectedTriageWorklistButtons.VIEWHISTORY.equals((SelectedTriageWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                  }
           }
           //--------------
        

    }
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERTRIAGE ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 18
Project: openmaxims-linux   File: Logic.java   View source code 4 votes vote down vote up
protected void onDyngrdClinicianWorklistCellButtonClicked(DynamicGridCell cell) //WDEV-18001
{
	
	//wdev-17138	
	if( cell.getValue() != null && cell.getValue() instanceof DynamicGridCellTable)
    {
		
           DynamicGridCellTable helper = (DynamicGridCellTable)cell.getValue();
           if( helper.getFiredCell() != null && helper.getFiredCell().getIdentifier() != null)
           {
                  if( helper.getFiredCell().getIdentifier() instanceof SelectedClinicianWorklistButtons)
                  {
               	   
               	    TrackingForClinicianWorklistAndTriageVo tempVo  = domain.getTrackingForClinicianWorklistAndTriage((TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue());//WDEV-18001
               	    if( tempVo != null && tempVo.getPatientIsNotNull() )
               	    {
               	    	form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(tempVo.getPatient()));
               	    }
                    if( SelectedClinicianWorklistButtons.EDITASSESSMENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                	{
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLIST, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true);//WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);
                	}
                    else if( SelectedClinicianWorklistButtons.PATIENTSUMMARY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
            			if( tempVo != null)
            			{
            				form.getGlobalContext().Core.setImsReportId(EMERGENCY_PATIENT_SUMMARY);
            				engine.open(form.getForms().Core.PrintReportByIMSId, new Object[] {CARE_CONTEXT_SEED, tempVo.getAttendance().getCareContext().getID_CareContext()});
            			}
                    }
                    else if( SelectedClinicianWorklistButtons.DECISIONTOAMIT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	form.getGlobalContext().Emergency.setTracking(tempVo);
            			
            			//WDEV-17661
            			if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PENDING"))
            			{
            				engine.open(form.getForms().Emergency.EDDecisionToAdmitDialog, new Object[] {tempVo});
            			}
            			else if (ConfigFlag.GEN.ED_DTA_ADMISSION_FUNCTIONALITY.getValue().equals("PARTIAL"))
            			{
            				engine.open(form.getForms().Emergency.EDPartialAdmissionDialog, new Object[] {tempVo});
            			}
                    	
                    }
                    else if( SelectedClinicianWorklistButtons.VIEWHISTORY.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))
                    {
                    	engine.open(form.getForms().Emergency.AttendanceHistory);
                    }
                    else if( SelectedClinicianWorklistButtons.SEENBYCOMPLASSESSMNENT.equals((SelectedClinicianWorklistButtons) helper.getFiredCell().getIdentifier()))   //wdev-17252
                    {
                    	displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN, (TrackingForDisplayClinicianAndTriageWorklistVo)cell.getRow().getValue(),true); //WDEV-18001
            			form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);  //return to clinician worklist tab
                    }
                  }
           }
    }
	
	
	/*if( cell != null && cell.getColumn() != null && cell.getColumn().getIdentifier() != null &&  cell.getColumn().getIdentifier().equals(COLUMN_EXTTRANSFERASSESSMENT ))		//wdev-16950
	{
		
	}
	*/
	
}
 
Example 19
Project: openMAXIMS   File: Logic.java   View source code 2 votes vote down vote up
private void addPatientCell(TrackingForPatientWhiteBoardVo tempVo, DynamicGridRow row, int column)
{
	if( tempVo == null)
		return ;
	
	DynamicGridCell cellLabel = row.getCells().newCell(getColumn(column), DynamicCellType.TABLE);
	
	DynamicGridCellTable helper = new DynamicGridCellTable(cellLabel);		
	helper.setBorder(3);	
	
	long startTime = System.currentTimeMillis();
	
	addPatientAndTrackingDetailsToTableCell(tempVo, helper);

	long endTime = System.currentTimeMillis();
	long miliseconds = endTime - startTime;
	System.out.println("Time to addPatientAndTrackingDetailsToTableCell: " + miliseconds);
	
	
	startTime = System.currentTimeMillis();
	
	addActionButtonsToTableCell(tempVo, helper);
	//addActionButtonsToTableCell1(tempVo, helper);
	
	endTime = System.currentTimeMillis();
	miliseconds = endTime - startTime;
	System.out.println("Time to addActionButtonsToTableCell: " + miliseconds);
	
	startTime = System.currentTimeMillis();
	
	addAssessmentButtonsToTableCell(tempVo, helper);
	
	endTime = System.currentTimeMillis();
	miliseconds = endTime - startTime;
	System.out.println("Time to addAssessmentButtonsToTableCell: " + miliseconds);
	
	cellLabel.setValue(helper);
	cellLabel.setReadOnly(true);
	cellLabel.setIdentifier(tempVo);

}