Java Code Examples for ims.clinical.vo.lookups.LocalAnaesthetic

The following are top voted examples for showing how to use ims.clinical.vo.lookups.LocalAnaesthetic. 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   Source Code and License 6 votes vote down vote up
private void populateLocalAnaesthetic(LocalAnaestheticCollection localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || localAnaesthetic.size() == 0 || cell == null)
		return;

	LocalAnaesthetic cellValue = (LocalAnaesthetic) cell.getValue();

	cell.getItems().clear();

	for (int i = 0; i < localAnaesthetic.size(); i++)
	{
		if (!alreadyAdded(localAnaesthetic.get(i), cell))
		{
			cell.getItems().newItem(localAnaesthetic.get(i));
		}
	}

	cell.setValue(cellValue);
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocalAnaesthetic(LocalAnaestheticCollection localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || localAnaesthetic.size() == 0 || cell == null)
		return;

	LocalAnaesthetic cellValue = (LocalAnaesthetic) cell.getValue();

	cell.getItems().clear();

	for (int i = 0; i < localAnaesthetic.size(); i++)
	{
		if (!alreadyAdded(localAnaesthetic.get(i), cell))
		{
			cell.getItems().newItem(localAnaesthetic.get(i));
		}
	}

	cell.setValue(cellValue);
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocalAnaesthetic(LocalAnaestheticCollection localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || localAnaesthetic.size() == 0 || cell == null)
		return;

	LocalAnaesthetic cellValue = (LocalAnaesthetic) cell.getValue();

	cell.getItems().clear();

	for (int i = 0; i < localAnaesthetic.size(); i++)
	{
		if (!alreadyAdded(localAnaesthetic.get(i), cell))
		{
			cell.getItems().newItem(localAnaesthetic.get(i));
		}
	}

	cell.setValue(cellValue);
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void populateLocalAnaesthetic(LocalAnaestheticCollection localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || localAnaesthetic.size() == 0 || cell == null)
		return;

	LocalAnaesthetic cellValue = (LocalAnaesthetic) cell.getValue();

	cell.getItems().clear();

	for (int i = 0; i < localAnaesthetic.size(); i++)
	{
		if (!alreadyAdded(localAnaesthetic.get(i), cell))
		{
			cell.getItems().newItem(localAnaesthetic.get(i));
		}
	}

	cell.setValue(cellValue);
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean alreadyAdded(LocalAnaesthetic localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || cell == null)
		return true;

	DynamicGridColumn column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().size(); i++)
	{
		if (!cell.getRow().equals(form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i)) && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue() != null && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue().equals(localAnaesthetic))
			return true;
	}

	return false;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean alreadyAdded(LocalAnaesthetic localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || cell == null)
		return true;

	DynamicGridColumn column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().size(); i++)
	{
		if (!cell.getRow().equals(form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i)) && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue() != null && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue().equals(localAnaesthetic))
			return true;
	}

	return false;
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean alreadyAdded(LocalAnaesthetic localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || cell == null)
		return true;

	DynamicGridColumn column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().size(); i++)
	{
		if (!cell.getRow().equals(form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i)) && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue() != null && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue().equals(localAnaesthetic))
			return true;
	}

	return false;
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean alreadyAdded(LocalAnaesthetic localAnaesthetic, DynamicGridCell cell)
{
	if (localAnaesthetic == null || cell == null)
		return true;

	DynamicGridColumn column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().size(); i++)
	{
		if (!cell.getRow().equals(form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i)) && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue() != null && form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().get(i).getCells().get(column).getValue().equals(localAnaesthetic))
			return true;
	}

	return false;
}