Java Code Examples for ims.ocrr.vo.lookups.PrintStatus

The following are top voted examples for showing how to use ims.ocrr.vo.lookups.PrintStatus. 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 SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				 if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				 {
					 voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				 }
			}
		}
	}
	
	return voColl;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					//Set the value of the row with a new one (otherwise will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if(voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					// Set the value of the row with a new one (otherwise
					// will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if (voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 5
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 6
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid()
{
	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))
				{
					printCell.getItems().clear();
					printCell.getItems().newItem(PrintStatus.PRINTED);
					printCell.setValue(PrintStatus.PRINTED);
				}
			}
		}
	}
	
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				 if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				 {
					 voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				 }
			}
		}
	}
	
	return voColl;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					//Set the value of the row with a new one (otherwise will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if(voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 9
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 10
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					// Set the value of the row with a new one (otherwise
					// will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if (voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 11
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 12
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid()
{
	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))
				{
					printCell.getItems().clear();
					printCell.getItems().newItem(PrintStatus.PRINTED);
					printCell.setValue(PrintStatus.PRINTED);
				}
			}
		}
	}
	
	form.chkSelectAll().setValue(false);
	
}
 
Example 13
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
@Override
protected void onChkSelectAllValueChanged() throws PresentationLogicException
{
	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 (Boolean.TRUE.equals(form.chkSelectAll().getValue()))
				{
					printCell.getItems().clear();
					printCell.getItems().newItem(PrintStatus.FORPRINTING);
					printCell.setValue(PrintStatus.FORPRINTING);
				}
				else
						printCell.setValue(null);
			}
		}
	}
	
}
 
Example 14
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				 if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				 {
					 voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				 }
			}
		}
	}
	
	return voColl;
}
 
Example 15
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					//Set the value of the row with a new one (otherwise will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if(voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 17
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					// Set the value of the row with a new one (otherwise
					// will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if (voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 18
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 19
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid()
{
	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))
				{
					printCell.getItems().clear();
					printCell.getItems().newItem(PrintStatus.PRINTED);
					printCell.setValue(PrintStatus.PRINTED);
				}
			}
		}
	}
	
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				 if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				 {
					 voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				 }
			}
		}
	}
	
	return voColl;
}
 
Example 21
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if(printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					//Set the value of the row with a new one (otherwise will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if(voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 22
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private SpecimenWorkListItemListVoCollection getWorkListItemsToprint()
{
	SpecimenWorkListItemListVoCollection voColl = new SpecimenWorkListItemListVoCollection();
	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(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					voColl.add((SpecimenWorkListItemListVo) form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k).getValue());
				}
			}
		}
	}

	return voColl;
}
 
Example 23
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid(SpecimenWorkListItemListVoCollection voColl)
{
	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++)
			{
				DynamicGridRow row = form.dyngrdCollect().getRows().get(i).getRows().get(j).getRows().get(k);
				DynamicGridCell printCell = row.getCells().get(getColumn(PRINT_COL));
				if (printCell != null && printCell.getValue() != null && printCell.getValue().equals(PrintStatus.FORPRINTING))
				{
					loadPrintedStatus(printCell, true);
					printCell.setValue(PrintStatus.PRINTED);
					// Set the value of the row with a new one (otherwise
					// will get a Stale Object Exception when saving)
					SpecimenWorkListItemListVo voNewSavedValue = getNewValueFromSavedList(row.getValue(), voColl);
					if (voNewSavedValue != null)
						row.setValue(voNewSavedValue);
				}
			}
		}
	}
}
 
Example 24
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 25
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void refreshDataInGrid()
{
	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))
				{
					printCell.getItems().clear();
					printCell.getItems().newItem(PrintStatus.PRINTED);
					printCell.setValue(PrintStatus.PRINTED);
				}
			}
		}
	}
	
}
 
Example 26
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if(cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if(isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 27
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if (cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if (isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 28
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 29
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if(cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if(isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 30
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if (cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if (isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 31
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 32
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if(cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if(isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 33
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if (cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if (isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 34
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 35
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if(cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if(isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   View source code 5 votes vote down vote up
private void loadPrintedStatus(DynamicGridCell cell, boolean isPrinted)
{
	if (cell == null)
		return;
	cell.getItems().clear();
	cell.getItems().newItem(PrintStatus.FORPRINTING);
	if (isPrinted)
		cell.getItems().newItem(PrintStatus.PRINTED);
}
 
Example 37
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);
		}
	}
}