gt: 		if(value == null)
context: //#############################################################################
  //#                                                                           #
  //#  Copyright (C) <2014>  <IMS MAXIMS>                                       #
  //#                                                                           #
  //#  This program is free software: you can redistribute it and/or modify     #
  //#  it under the terms of the GNU Affero General Public License as           #
  //#  published by the Free Software Foundation, either version 3 of the       #
  //#  License, or (at your option) any later version.                          # 
  //#                                                                           #
  //#  This program is distributed in the hope that it will be useful,          #
  //#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
  //#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
  //#  GNU Affero General Public License for more details.                      #
  //#                                                                           #
  //#  You should have received a copy of the GNU Affero General Public License #
  //#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
  //#                                                                           #
  //#############################################################################
  //#EOH
  // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
  // Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
  // WARNING: DO NOT MODIFY the content of this file
  
  package ims.spinalinjuries.forms.sharednewconcern;
  
  public abstract class BaseLogic extends Handlers
  {
  	public final Class getDomainInterface() throws ClassNotFoundException
  	{
  		return ims.spinalinjuries.domain.SharedNewConcern.class;
  	}
  	public final void setContext(ims.framework.UIEngine engine, GenForm form, ims.spinalinjuries.domain.SharedNewConcern domain)
  	{
  		setContext(engine, form);
  		this.domain = domain;
  	}
  	protected final void oncmbIdByTeamValueSet(Object value)
  	{
  		java.util.ArrayList listOfValues = this.form.cmbIdByTeam().getValues();
  
  		if(value == null)
  		{
  			if(listOfValues != null && listOfValues.size() > 0)
  			{
  				for(int x = 0; x < listOfValues.size(); x++)
  				{
  					ims.core.vo.lookups.HcpDisType existingInstance = (ims.core.vo.lookups.HcpDisType)listOfValues.get(x);
  					if(!existingInstance.isActive())
  					{
  						bindcmbIdByTeamLookup();
  						return;
  					}
  				}
  			}
  		}
  		else if(value instanceof ims.core.vo.lookups.HcpDisType)
  		{
  			ims.core.vo.lookups.HcpDisType instance = (ims.core.vo.lookups.HcpDisType)value;
  
  			if(listOfValues != null)
  			{
  				if(listOfValues.size() == 0)
  					bindcmbIdByTeamLookup();
  
  				for(int x = 0; x < listOfValues.size(); x++)
  				{
  					ims.core.vo.lookups.HcpDisType existingInstance = (ims.core.vo.lookups.HcpDisType)listOfValues.get(x);
  					if(existingInstance.equals(instance))
  						return;
  				}
  			}
  
  			this.form.cmbIdByTeam().newRow(instance, instance.getText(), instance.getImage(), instance.getTextColor());
  		}
  	}
  	protected final void bindcmbIdByTeamLookup()
  	{
  		this.form.cmbIdByTeam().clear();
  		ims.core.vo.lookups.HcpDisTypeCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getHcpDisType(this.domain.getLookupService());
  		for(int x = 0; x < lookupCollection.size(); x++)
  		{
  			this.form.cmbIdByTeam().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
  		}
  	}
  	protected final void setcmbIdByTeamLookupValue(int id)
  	{
  		ims.core.vo.lookups.HcpDisType instance = ims.core.vo.lookups.LookupHelper.getHcpDisTypeInstance(this.domain.getLookupService(), id);
  		if(instance != null)
  			this.form.cmbIdByTeam().setValue(instance);
  	}
  	protected final void defaultcmbIdByTeamLookupValue()
  	{
  		this.form.cmbIdByTeam().setValue((ims.core.vo.lookups.HcpDisType)domain.getLookupService().getDefaultInstance(ims.core.vo.lookups.HcpDisType.class, engine.getFormName().getID(), ims.core.vo.lookups.HcpDisType.TYPE_ID));
  	}
  	protected final void oncmbAllocToTeamValueSet(Object value)
  	{
  		java.util.ArrayList listOfValues = this.form.cmbAllocToTeam().getValues();
  
  		if(value == null)
  		{
  			if(listOfValues != null && listOfValues.size() > 0)
  			{
  				for(int x = 0; x < listOfValues.size(); x++)
  				{
  					ims.core.vo.lookups.HcpDisType existingInstance = (ims.core.vo.lookups.HcpDisType)listOfValues.get(x);
  					if(!existingInstance.isActive())
  					{
  						bindcmbAllocToTeamLookup();
  						return;
  					}
  				}
  			}
  		}
  		else if(value instanceof ims.core.vo.lookups.HcpDisType)
  		{
  			ims.core.vo.lookups.HcpDisType instance = (ims.core.vo.lookups.HcpDisType)value;
  
  			if(listOfValues != null)
  			{
  				if(listOfValues.size() == 0)
  					bindcmbAllocToTeamLookup();
  
  				for(int x = 0; x < listOfValues.size(); x++)
  				{
  					ims.core.vo.lookups.HcpDisType existingInstance = (ims.core.vo.lookups.HcpDisType)listOfValues.get(x);
  					if(existingInstance.equals(instance))
  						return;
  				}
  			}
  
  			this.form.cmbAllocToTeam().newRow(instance, instance.getText(), instance.getImage(), instance.getTextColor());
  		}
  	}
  	protected final void bindcmbAllocToTeamLookup()
  	{
  		this.form.cmbAllocToTeam().clear();
  		ims.core.vo.lookups.HcpDisTypeCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getHcpDisType(this.domain.getLookupService());
  		for(int x = 0; x < lookupCollection.size(); x++)
  		{
  			this.form.cmbAllocToTeam().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
  		}
  	}
  	protected final void setcmbAllocToTeamLookupValue(int id)
  	{
  		ims.core.vo.lookups.HcpDisType instance = ims.core.vo.lookups.LookupHelper.getHcpDisTypeInstance(this.domain.getLookupService(), id);
  		if(instance != null)
  			this.form.cmbAllocToTeam().setValue(instance);
  	}
  	protected final void defaultcmbAllocToTeamLookupValue()
  	{
  		this.form.cmbAllocToTeam().setValue((ims.core.vo.lookups.HcpDisType)domain.getLookupService().getDefaultInstance(ims.core.vo.lookups.HcpDisType.class, engine.getFormName().getID(), ims.core.vo.lookups.HcpDisType.TYPE_ID));
  	}
  	protected final void oncmbStatusValueSet(Object value)
  	{
  		java.util.ArrayList listOfValues = this.form.cmbStatus().getValues();
  
  		if(value == null)
  		{
  			if(listOfValues != null && listOfValues.size() > 0)
  			{
  				for(int x = 0; x < listOfValues.size(); x++)
  				{
  					ims.core.vo.lookups.PatientConcernStatus existingInstance = (ims.core.vo.lookups.PatientConcernStatus)listOfValues.get(x);
  					if(!existingInstance.isActive())
  					{
  						bindcmbStatusLookup();
  						return;
  					}
  				}
  			}
  		}
  		else if(value instanceof ims.core.vo.lookups.PatientConcernStatus)
  		{
  			ims.core.vo.lookups.PatientConcernStatus instance = (ims.core.vo.lookups.PatientConcernStatus)value;
  
  			if(listOfValues != null)
  			{
  				if(listOfValues.size() == 0)
  					bindcmbStatusLookup();
  
  				for(int x = 0; x < listOfValues.size(); x++)
  				{
  					ims.core.vo.lookups.PatientConcernStatus existingInstance = (ims.core.vo.lookups.PatientConcernStatus)listOfValues.get(x);
  					if(existingInstance.equals(instance))
  						return;
  				}
  			}
  
  			this.form.cmbStatus().newRow(instance, instance.getText(), instance.getImage(), instance.getTextColor());
  		}
  	}
  	protected final void bindcmbStatusLookup()
  	{
  		this.form.cmbStatus().clear();
  		ims.core.vo.lookups.PatientConcernStatusCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getPatientConcernStatus(this.domain.getLookupService());
  		for(int x = 0; x < lookupCollection.size(); x++)
  		{
  			this.form.cmbStatus().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
  		}
  	}
  	protected final void setcmbStatusLookupValue(int id)
  	{
  		ims.core.vo.lookups.PatientConcernStatus instance = ims.core.vo.lookups.LookupHelper.getPatientConcernStatusInstance(this.domain.getLookupService(), id);
  		if(instance != null)
  			this.form.cmbStatus().setValue(instance);
  	}
  	protected final void defaultcmbStatusLookupValue()
  	{
  		this.form.cmbStatus().setValue((ims.core.vo.lookups.PatientConcernStatus)domain.getLookupService().getDefaultInstance(ims.core.vo.lookups.PatientConcernStatus.class, engine.getFormName().getID(), ims.core.vo.lookups.PatientConcernStatus.TYPE_ID));
  	}
  	protected void clearScreen()
  	{
  		this.form.cmbUpdatingHcp().setValue(null);
  		this.form.cmbRecordingHcp().setValue(null);
  		this.form.tmeAllocated().setValue(null);
  		this.form.cmbIdByMember().setValue(null);
  		this.form.dteIdentified().setValue(null);
  		this.form.txtConcernAction().setValue("");
  		this.form.cmbIdByTeam().setValue(null);
  		this.form.txtAssocNote().setValue("");
  		this.form.cmbAllocToMember().setValue(null);
  		this.form.cmbAllocToTeam().setValue(null);
  		this.form.dteAllocated().setValue(null);
  		this.form.tmeIdentified().setValue(null);
  		this.form.cmbStatus().setValue(null);
  	}
  	protected void populateScreenFromData(ims.core.vo.PatientCurrentConcernVo value)
  	{
  		clearScreen();
  