// 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.RefMan.forms.bookappointment;

public abstract class BaseLogic extends Handlers
{
	public final Class getDomainInterface() throws ClassNotFoundException
	{
		return ims.RefMan.domain.BookAppointment.class;
	}
	public final void setContext(ims.framework.UIEngine engine, GenForm form, ims.RefMan.domain.BookAppointment domain)
	{
		setContext(engine, form);
		this.domain = domain;
	}
	protected final void bindgrdApptcolConsMediaLookup()
	{
		this.form.grdAppt().colConsMediaComboBox().clear();
		ims.scheduling.vo.lookups.ConsultationMediaTypeCollection lookupCollection = ims.scheduling.vo.lookups.LookupHelper.getConsultationMediaType(this.domain.getLookupService());
		for(int x = 0; x < lookupCollection.size(); x++)
		{
			this.form.grdAppt().colConsMediaComboBox().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		}
	}
	protected final void bindgrdApptcolPatCategoryLookup()
	{
		this.form.grdAppt().colPatCategoryComboBox().clear();
		ims.RefMan.vo.lookups.CatsReferralCategoryCollection lookupCollection = ims.RefMan.vo.lookups.LookupHelper.getCatsReferralCategory(this.domain.getLookupService());
		for(int x = 0; x < lookupCollection.size(); x++)
		{
			this.form.grdAppt().colPatCategoryComboBox().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		}
	}
	public final void free()
	{
		super.free();
		domain = null;
	}
	
	protected ims.RefMan.domain.BookAppointment domain;
}
