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

The following are top voted examples for showing how to use ims.clinical.vo.lookups.SkinPreparationused. 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 String getSkinPreparation(SkinPreparationusedCollection skinPreparationUsed, String otherSkin) 
{
	if(skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return null;
	
	String skinPreparationDisplay = "";
	
	for(int i=0; i<skinPreparationUsed.size(); i++)
	{
		SkinPreparationused skin = skinPreparationUsed.get(i);
		
		if(skin == null)
			continue;
		
		if(SkinPreparationused.OTHER.equals(skin) && otherSkin != null)
		{
			skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText() + ": " + otherSkin;
			continue;
		}
		
		skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText();
	}
	
	return skinPreparationDisplay.length() > 0 ? skinPreparationDisplay : null;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
	SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect())
		{
			skinPreparationusedCollection.add(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue());
		}

		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
		{
			intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
		}
	}

	return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
	if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return;

	for (int i = 0; i < skinPreparationUsed.size(); i++)
	{
		if (skinPreparationUsed.get(i) == null)
			continue;

		for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
		{
			if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
			{
				form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

				if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
				{
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
				}
				break;
			}
		}
	}
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSkinPreparation(SkinPreparationusedCollection skinPreparationUsed, String otherSkin) 
{
	if(skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return null;
	
	String skinPreparationDisplay = "";
	
	for(int i=0; i<skinPreparationUsed.size(); i++)
	{
		SkinPreparationused skin = skinPreparationUsed.get(i);
		
		if(skin == null)
			continue;
		
		if(SkinPreparationused.OTHER.equals(skin) && otherSkin != null)
		{
			skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText() + ": " + otherSkin;
			continue;
		}
		
		skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText();
	}
	
	return skinPreparationDisplay.length() > 0 ? skinPreparationDisplay : null;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
	SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect())
		{
			skinPreparationusedCollection.add(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue());
		}

		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
		{
			intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
		}
	}

	return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
	if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return;

	for (int i = 0; i < skinPreparationUsed.size(); i++)
	{
		if (skinPreparationUsed.get(i) == null)
			continue;

		for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
		{
			if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
			{
				form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

				if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
				{
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
				}
				break;
			}
		}
	}
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private String getSkinPreparation(SkinPreparationusedCollection skinPreparationUsed, String otherSkin) 
{
	if(skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return null;
	
	String skinPreparationDisplay = "";
	
	for(int i=0; i<skinPreparationUsed.size(); i++)
	{
		SkinPreparationused skin = skinPreparationUsed.get(i);
		
		if(skin == null)
			continue;
		
		if(SkinPreparationused.OTHER.equals(skin) && otherSkin != null)
		{
			skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText() + ": " + otherSkin;
			continue;
		}
		
		skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText();
	}
	
	return skinPreparationDisplay.length() > 0 ? skinPreparationDisplay : null;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
	SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect())
		{
			skinPreparationusedCollection.add(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue());
		}

		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
		{
			intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
		}
	}

	return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
	if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return;

	for (int i = 0; i < skinPreparationUsed.size(); i++)
	{
		if (skinPreparationUsed.get(i) == null)
			continue;

		for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
		{
			if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
			{
				form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

				if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
				{
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
				}
				break;
			}
		}
	}
}
 
Example 10
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
	SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect())
		{
			skinPreparationusedCollection.add(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue());
		}

		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
		{
			intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
		}
	}

	return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
	if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
		return;

	for (int i = 0; i < skinPreparationUsed.size(); i++)
	{
		if (skinPreparationUsed.get(i) == null)
			continue;

		for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
		{
			if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
			{
				form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

				if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
				{
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
					form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
				}
				break;
			}
		}
	}
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean checkOtherSkinPreparation()
{
	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

			return true;
	}

	return false;
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
	Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

	row.setcolOtherReadOnly(otherCondition);
	if (otherCondition)
		row.setcolOther(null);
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean checkOtherSkinPreparation()
{
	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

			return true;
	}

	return false;
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
	Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

	row.setcolOtherReadOnly(otherCondition);
	if (otherCondition)
		row.setcolOther(null);
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean checkOtherSkinPreparation()
{
	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

			return true;
	}

	return false;
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
	Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

	row.setcolOtherReadOnly(otherCondition);
	if (otherCondition)
		row.setcolOther(null);
}
 
Example 18
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private boolean checkOtherSkinPreparation()
{
	for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
	{
		if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

			return true;
	}

	return false;
}
 
Example 19
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
	Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

	row.setcolOtherReadOnly(otherCondition);
	if (otherCondition)
		row.setcolOther(null);
}