Java Code Examples for ims.ocrr.vo.SpecimenWorkListitemCustomVo

The following are top voted examples for showing how to use ims.ocrr.vo.SpecimenWorkListitemCustomVo. 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
private void updateControlsState()
{
	grdWorkListRow row = form.grdWorkList().getSelectedRow();
	
	//WDEV-16767
	if (row == null)
	{
		form.getGlobalContext().Core.setPatientShort(null);
	}
	else if (row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo)
	{
		if (form.getGlobalContext().Core.getPatientShort() == null || (form.getGlobalContext().Core.getPatientShort() != null && (!form.getGlobalContext().Core.getPatientShort().getID_Patient().equals(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()))))
		{
			form.getGlobalContext().Core.setPatientShort(domain.getPatientById(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()));
		}
	}
	
	form.getContextMenus().OCRR.getMoveToWardCollectionMoveToWardCollectionItem().setVisible(row != null && row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo && ((SpecimenWorkListitemCustomVo)row.getValue()).getContainerQuantityIsNotNull());
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListitemCustomVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListitemCustomVoCollection voColl = new SpecimenWorkListitemCustomVoCollection();
	
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		for (int j = 0; j < form.dyngrdCollect().getRows().get(i).getRows().size(); j++)
		{
			for (int k = 0; k < form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().size(); k++)
			{
				DynamicGridCell printCell = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getCells().get(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue()));
				
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListitemCustomVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void updateControlsState()
{
	grdWorkListRow row = form.grdWorkList().getSelectedRow();
	
	//WDEV-16767
	if (row == null)
	{
		form.getGlobalContext().Core.setPatientShort(null);
	}
	else if (row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo)
	{
		if (form.getGlobalContext().Core.getPatientShort() == null || (form.getGlobalContext().Core.getPatientShort() != null && (!form.getGlobalContext().Core.getPatientShort().getID_Patient().equals(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()))))
		{
			form.getGlobalContext().Core.setPatientShort(domain.getPatientById(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()));
		}
	}
	
	form.getContextMenus().OCRR.getMoveToWardCollectionMoveToWardCollectionItem().setVisible(row != null && row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo && ((SpecimenWorkListitemCustomVo)row.getValue()).getContainerQuantityIsNotNull());
}
 
Example 4
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private DynamicGridRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	if (item == null)
		return null;
	
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		DynamicGridRow row = form.dyngrdCollect().getRows().get(i);
		
		if (row.getValue() == null)
				continue;
		
		if (row.getValue().equals(item.getWardId()) || (item.getWardId() == null && row.getValue().equals(EmptyWard)))
		{
			return row;
		}
	}

	return null;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListitemCustomVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListitemCustomVoCollection voColl = new SpecimenWorkListitemCustomVoCollection();
	
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		for (int j = 0; j < form.dyngrdCollect().getRows().get(i).getRows().size(); j++)
		{
			for (int k = 0; k < form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().size(); k++)
			{
				DynamicGridCell printCell = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getCells().get(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue()));
				
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListitemCustomVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void updateControlsState()
{
	grdWorkListRow row = form.grdWorkList().getSelectedRow();
	
	//WDEV-16767
	if (row == null)
	{
		form.getGlobalContext().Core.setPatientShort(null);
	}
	else if (row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo)
	{
		if (form.getGlobalContext().Core.getPatientShort() == null || (form.getGlobalContext().Core.getPatientShort() != null && (!form.getGlobalContext().Core.getPatientShort().getID_Patient().equals(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()))))
		{
			form.getGlobalContext().Core.setPatientShort(domain.getPatientById(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()));
		}
	}
	
	form.getContextMenus().OCRR.getMoveToWardCollectionMoveToWardCollectionItem().setVisible(row != null && row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo && ((SpecimenWorkListitemCustomVo)row.getValue()).getContainerQuantityIsNotNull());
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListitemCustomVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListitemCustomVoCollection voColl = new SpecimenWorkListitemCustomVoCollection();
	
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		for (int j = 0; j < form.dyngrdCollect().getRows().get(i).getRows().size(); j++)
		{
			for (int k = 0; k < form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().size(); k++)
			{
				DynamicGridCell printCell = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getCells().get(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue()));
				
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListitemCustomVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void updateControlsState()
{
	grdWorkListRow row = form.grdWorkList().getSelectedRow();
	
	//WDEV-16767
	if (row == null)
	{
		form.getGlobalContext().Core.setPatientShort(null);
	}
	else if (row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo)
	{
		if (form.getGlobalContext().Core.getPatientShort() == null || (form.getGlobalContext().Core.getPatientShort() != null && (!form.getGlobalContext().Core.getPatientShort().getID_Patient().equals(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()))))
		{
			form.getGlobalContext().Core.setPatientShort(domain.getPatientById(((SpecimenWorkListitemCustomVo) row.getValue()).getPatientId()));
		}
	}
	
	form.getContextMenus().OCRR.getMoveToWardCollectionMoveToWardCollectionItem().setVisible(row != null && row.getValue() != null && row.getValue() instanceof SpecimenWorkListitemCustomVo && ((SpecimenWorkListitemCustomVo)row.getValue()).getContainerQuantityIsNotNull());
}
 
Example 9
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListitemCustomVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListitemCustomVoCollection voColl = new SpecimenWorkListitemCustomVoCollection();
	
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		for (int j = 0; j < form.dyngrdCollect().getRows().get(i).getRows().size(); j++)
		{
			for (int k = 0; k < form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().size(); k++)
			{
				DynamicGridCell printCell = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getCells().get(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue()));
				
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListitemCustomVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 10
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getPatientRow(grdWorkListRow lastWardRow, SpecimenWorkListitemCustomVo item)
{

	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 11
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i=0; i < form.grdWorkList().getRows().size(); i++)
	{
	 if (form.grdWorkList().getRows().get(i).getValue().equals(item.getWardId()))
		 {
		 	return form.grdWorkList().getRows().get(i);
		 }
	}
	
	return null;
}
 
Example 12
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch(menuItemID)
	{
		case GenForm.ContextMenus.OCRRNamespace.MoveToWardCollection.MoveToWardCollection:
			form.getGlobalContext().OCRR.setMoveToWardDetails(new MoveToWardDetailsVo());
			form.getGlobalContext().OCRR.getMoveToWardDetails().setSpecimenId(((SpecimenWorkListitemCustomVo)form.grdWorkList().getSelectedRow().getValue()).getWorkListitemId());
			engine.open(form.getForms().OCRR.MoveToWardSpecimenCollection);
			break;
	}
}
 
Example 13
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void processCellPostback(DynamicGridCell cell)
{
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(COLLECTED_COLUMN.intValue())))
	{
		if(cell.getValue() == null)
		{
			clearVariableCells(cell.getRow());
			
			//WDEV-16813
			SpecimenWorkListitemCustomVo item = (SpecimenWorkListitemCustomVo) cell.getRow().getValue();

			if (item != null && item.getCollectionComments() != null && item.getCollectionComments().length() > 0)
			{
				DynamicGridCell cellText = cell.getRow().getCells().newCell(form.dyngrdCollect().getColumns().getByIdentifier(COMMENTS_COLUMN), DynamicCellType.STRING);
				cellText.setValue(item.getCollectionComments());
				cellText.setTooltip(item.getCollectionComments());
				cellText.setReadOnly(true);
			}
		}
		else if(cell.getValue().equals(SpecimenCollectionStatus.COLLECTIONCOMPLETE))
		{
			createControlsForCollection(cell.getRow(), null);
		}
		else
		{
			createControlsForNotCollection(cell.getRow(), null);
		}
	}
	
	//WDEV-16581
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue())))
	{
		if(PrintStatus.PRINTED.equals(cell.getValue()) || cell.getValue() == null)
		{
			cell.getItems().clear();
			cell.getItems().newItem(PrintStatus.FORPRINTING);
		}
	}
}
 
Example 14
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getPatientRow(DynamicGridRow lastWardRow, SpecimenWorkListitemCustomVo item)
{
	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 15
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		if (form.dyngrdCollect().getRows().get(i).getValue().equals(item.getWardId()))
		{
			return form.dyngrdCollect().getRows().get(i);
		}
	}

	return null;
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getPatientRow(grdWorkListRow lastWardRow, SpecimenWorkListitemCustomVo item)
{

	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 17
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i=0; i < form.grdWorkList().getRows().size(); i++)
	{
	 if (form.grdWorkList().getRows().get(i).getValue().equals(item.getWardId()))
		 {
		 	return form.grdWorkList().getRows().get(i);
		 }
	}
	
	return null;
}
 
Example 18
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch(menuItemID)
	{
		case GenForm.ContextMenus.OCRRNamespace.MoveToWardCollection.MoveToWardCollection:
			form.getGlobalContext().OCRR.setMoveToWardDetails(new MoveToWardDetailsVo());
			form.getGlobalContext().OCRR.getMoveToWardDetails().setSpecimenId(((SpecimenWorkListitemCustomVo)form.grdWorkList().getSelectedRow().getValue()).getWorkListitemId());
			engine.open(form.getForms().OCRR.MoveToWardSpecimenCollection);
			break;
	}
}
 
Example 19
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void processCellPostback(DynamicGridCell cell)
{
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(COLLECTED_COLUMN.intValue())))
	{
		if(cell.getValue() == null)
		{
			clearVariableCells(cell.getRow());
			
			//WDEV-16813
			SpecimenWorkListitemCustomVo item = (SpecimenWorkListitemCustomVo) cell.getRow().getValue();

			if (item != null && item.getCollectionComments() != null && item.getCollectionComments().length() > 0)
			{
				DynamicGridCell cellText = cell.getRow().getCells().newCell(form.dyngrdCollect().getColumns().getByIdentifier(COMMENTS_COLUMN), DynamicCellType.STRING);
				cellText.setValue(item.getCollectionComments());
				cellText.setTooltip(item.getCollectionComments());
				cellText.setReadOnly(true);
			}
		}
		else if(cell.getValue().equals(SpecimenCollectionStatus.COLLECTIONCOMPLETE))
		{
			createControlsForCollection(cell.getRow(), null);
		}
		else
		{
			createControlsForNotCollection(cell.getRow(), null);
		}
	}
	
	//WDEV-16581
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue())))
	{
		if(PrintStatus.PRINTED.equals(cell.getValue()) || cell.getValue() == null)
		{
			cell.getItems().clear();
			cell.getItems().newItem(PrintStatus.FORPRINTING);
			form.chkSelectAll().setValue(false);
		}
	}
}
 
Example 20
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getPatientRow(DynamicGridRow lastWardRow, SpecimenWorkListitemCustomVo item)
{
	if (lastWardRow == null)
		return null;
	
	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 21
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getPatientRow(grdWorkListRow lastWardRow, SpecimenWorkListitemCustomVo item)
{

	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 22
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i=0; i < form.grdWorkList().getRows().size(); i++)
	{
	 if (form.grdWorkList().getRows().get(i).getValue().equals(item.getWardId()))
		 {
		 	return form.grdWorkList().getRows().get(i);
		 }
	}
	
	return null;
}
 
Example 23
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch(menuItemID)
	{
		case GenForm.ContextMenus.OCRRNamespace.MoveToWardCollection.MoveToWardCollection:
			form.getGlobalContext().OCRR.setMoveToWardDetails(new MoveToWardDetailsVo());
			form.getGlobalContext().OCRR.getMoveToWardDetails().setSpecimenId(((SpecimenWorkListitemCustomVo)form.grdWorkList().getSelectedRow().getValue()).getWorkListitemId());
			engine.open(form.getForms().OCRR.MoveToWardSpecimenCollection);
			break;
	}
}
 
Example 24
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void processCellPostback(DynamicGridCell cell)
{
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(COLLECTED_COLUMN.intValue())))
	{
		if(cell.getValue() == null)
		{
			clearVariableCells(cell.getRow());
			
			//WDEV-16813
			SpecimenWorkListitemCustomVo item = (SpecimenWorkListitemCustomVo) cell.getRow().getValue();

			if (item != null && item.getCollectionComments() != null && item.getCollectionComments().length() > 0)
			{
				DynamicGridCell cellText = cell.getRow().getCells().newCell(form.dyngrdCollect().getColumns().getByIdentifier(COMMENTS_COLUMN), DynamicCellType.STRING);
				cellText.setValue(item.getCollectionComments());
				cellText.setTooltip(item.getCollectionComments());
				cellText.setReadOnly(true);
			}
		}
		else if(cell.getValue().equals(SpecimenCollectionStatus.COLLECTIONCOMPLETE))
		{
			createControlsForCollection(cell.getRow(), null);
		}
		else
		{
			createControlsForNotCollection(cell.getRow(), null);
		}
	}
	
	//WDEV-16581
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue())))
	{
		if(PrintStatus.PRINTED.equals(cell.getValue()) || cell.getValue() == null)
		{
			cell.getItems().clear();
			cell.getItems().newItem(PrintStatus.FORPRINTING);
		}
	}
}
 
Example 25
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getPatientRow(DynamicGridRow lastWardRow, SpecimenWorkListitemCustomVo item)
{
	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 26
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		if (form.dyngrdCollect().getRows().get(i).getValue().equals(item.getWardId()))
		{
			return form.dyngrdCollect().getRows().get(i);
		}
	}

	return null;
}
 
Example 27
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getPatientRow(grdWorkListRow lastWardRow, SpecimenWorkListitemCustomVo item)
{

	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private grdWorkListRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i=0; i < form.grdWorkList().getRows().size(); i++)
	{
	 if (form.grdWorkList().getRows().get(i).getValue().equals(item.getWardId()))
		 {
		 	return form.grdWorkList().getRows().get(i);
		 }
	}
	
	return null;
}
 
Example 29
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
@Override
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException
{
	switch(menuItemID)
	{
		case GenForm.ContextMenus.OCRRNamespace.MoveToWardCollection.MoveToWardCollection:
			form.getGlobalContext().OCRR.setMoveToWardDetails(new MoveToWardDetailsVo());
			form.getGlobalContext().OCRR.getMoveToWardDetails().setSpecimenId(((SpecimenWorkListitemCustomVo)form.grdWorkList().getSelectedRow().getValue()).getWorkListitemId());
			engine.open(form.getForms().OCRR.MoveToWardSpecimenCollection);
			break;
	}
}
 
Example 30
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private void processCellPostback(DynamicGridCell cell)
{
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(COLLECTED_COLUMN.intValue())))
	{
		if(cell.getValue() == null)
		{
			clearVariableCells(cell.getRow());
			
			//WDEV-16813
			SpecimenWorkListitemCustomVo item = (SpecimenWorkListitemCustomVo) cell.getRow().getValue();

			if (item != null && item.getCollectionComments() != null && item.getCollectionComments().length() > 0)
			{
				DynamicGridCell cellText = cell.getRow().getCells().newCell(form.dyngrdCollect().getColumns().getByIdentifier(COMMENTS_COLUMN), DynamicCellType.STRING);
				cellText.setValue(item.getCollectionComments());
				cellText.setTooltip(item.getCollectionComments());
				cellText.setReadOnly(true);
			}
		}
		else if(cell.getValue().equals(SpecimenCollectionStatus.COLLECTIONCOMPLETE))
		{
			createControlsForCollection(cell.getRow(), null);
		}
		else
		{
			createControlsForNotCollection(cell.getRow(), null);
		}
	}
	
	//WDEV-16581
	if(cell.getColumn().equals(form.dyngrdCollect().getColumns().get(PRINT_COL.intValue())))
	{
		if(PrintStatus.PRINTED.equals(cell.getValue()) || cell.getValue() == null)
		{
			cell.getItems().clear();
			cell.getItems().newItem(PrintStatus.FORPRINTING);
		}
	}
}
 
Example 31
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getPatientRow(DynamicGridRow lastWardRow, SpecimenWorkListitemCustomVo item)
{
	for (int i = 0; i < lastWardRow.getRows().size(); i++)
	{
		if (lastWardRow.getRows().get(i).getValue().equals(item.getPatientId()))
		{
			return lastWardRow.getRows().get(i);
		}
	}

	return null;
}
 
Example 32
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private DynamicGridRow getWardForPatient(SpecimenWorkListitemCustomVo item)
{
	for (int i = 0; i < form.dyngrdCollect().getRows().size(); i++)
	{
		if (form.dyngrdCollect().getRows().get(i).getValue().equals(item.getWardId()))
		{
			return form.dyngrdCollect().getRows().get(i);
		}
	}

	return null;
}