/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/DischargeSummaryScheduleVoBean.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <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/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.clinical.vo.beans;

public class DischargeSummaryScheduleVoBean extends ims.vo.ValueObjectBean
{
	public DischargeSummaryScheduleVoBean()
	{
	}
	public DischargeSummaryScheduleVoBean(ims.clinical.vo.DischargeSummaryScheduleVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.creationdate = vo.getCreationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCreationDate().getBean();
		this.lastrun = vo.getLastRun() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastRun().getBean();
		this.nextrun = vo.getNextRun() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getNextRun().getBean();
		this.printagentto = vo.getPrintAgentTo();
		this.triggerfrequency = vo.getTriggerFrequency();
		this.repeatinterval = vo.getRepeatInterval();
		this.jobtype = vo.getJobType() == null ? null : (ims.vo.LookupInstanceBean)vo.getJobType().getBean();
		this.generatedleettersno = vo.getGeneratedLeettersNo();
		this.successfulemailsno = vo.getSuccessfulEmailsNo();
		this.failedemailsno = vo.getFailedEmailsNo();
		this.printedlettersno = vo.getPrintedLettersNo();
		this.failedemails = vo.getFailedEmails() == null ? null : vo.getFailedEmails().getBeanCollection();
		this.sealedenvelopepatientsno = vo.getSealedEnvelopePatientsNo();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.DischargeSummaryScheduleVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.creationdate = vo.getCreationDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCreationDate().getBean();
		this.lastrun = vo.getLastRun() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastRun().getBean();
		this.nextrun = vo.getNextRun() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getNextRun().getBean();
		this.printagentto = vo.getPrintAgentTo();
		this.triggerfrequency = vo.getTriggerFrequency();
		this.repeatinterval = vo.getRepeatInterval();
		this.jobtype = vo.getJobType() == null ? null : (ims.vo.LookupInstanceBean)vo.getJobType().getBean();
		this.generatedleettersno = vo.getGeneratedLeettersNo();
		this.successfulemailsno = vo.getSuccessfulEmailsNo();
		this.failedemailsno = vo.getFailedEmailsNo();
		this.printedlettersno = vo.getPrintedLettersNo();
		this.failedemails = vo.getFailedEmails() == null ? null : vo.getFailedEmails().getBeanCollection();
		this.sealedenvelopepatientsno = vo.getSealedEnvelopePatientsNo();
	}

	public ims.clinical.vo.DischargeSummaryScheduleVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.clinical.vo.DischargeSummaryScheduleVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.clinical.vo.DischargeSummaryScheduleVo vo = null;
		if(map != null)
			vo = (ims.clinical.vo.DischargeSummaryScheduleVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.clinical.vo.DischargeSummaryScheduleVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public Integer getId()
	{
		return this.id;
	}
	public void setId(Integer value)
	{
		this.id = value;
	}
	public int getVersion()
	{
		return this.version;
	}
	public void setVersion(int value)
	{
		this.version = value;
	}
	public ims.framework.utils.beans.DateBean getCreationDate()
	{
		return this.creationdate;
	}
	public void setCreationDate(ims.framework.utils.beans.DateBean value)
	{
		this.creationdate = value;
	}
	public ims.framework.utils.beans.DateTimeBean getLastRun()
	{
		return this.lastrun;
	}
	public void setLastRun(ims.framework.utils.beans.DateTimeBean value)
	{
		this.lastrun = value;
	}
	public ims.framework.utils.beans.DateTimeBean getNextRun()
	{
		return this.nextrun;
	}
	public void setNextRun(ims.framework.utils.beans.DateTimeBean value)
	{
		this.nextrun = value;
	}
	public String getPrintAgentTo()
	{
		return this.printagentto;
	}
	public void setPrintAgentTo(String value)
	{
		this.printagentto = value;
	}
	public String getTriggerFrequency()
	{
		return this.triggerfrequency;
	}
	public void setTriggerFrequency(String value)
	{
		this.triggerfrequency = value;
	}
	public String getRepeatInterval()
	{
		return this.repeatinterval;
	}
	public void setRepeatInterval(String value)
	{
		this.repeatinterval = value;
	}
	public ims.vo.LookupInstanceBean getJobType()
	{
		return this.jobtype;
	}
	public void setJobType(ims.vo.LookupInstanceBean value)
	{
		this.jobtype = value;
	}
	public Integer getGeneratedLeettersNo()
	{
		return this.generatedleettersno;
	}
	public void setGeneratedLeettersNo(Integer value)
	{
		this.generatedleettersno = value;
	}
	public Integer getSuccessfulEmailsNo()
	{
		return this.successfulemailsno;
	}
	public void setSuccessfulEmailsNo(Integer value)
	{
		this.successfulemailsno = value;
	}
	public Integer getFailedEmailsNo()
	{
		return this.failedemailsno;
	}
	public void setFailedEmailsNo(Integer value)
	{
		this.failedemailsno = value;
	}
	public Integer getPrintedLettersNo()
	{
		return this.printedlettersno;
	}
	public void setPrintedLettersNo(Integer value)
	{
		this.printedlettersno = value;
	}
	public ims.clinical.vo.beans.FailedEmailsDetailsVoBean[] getFailedEmails()
	{
		return this.failedemails;
	}
	public void setFailedEmails(ims.clinical.vo.beans.FailedEmailsDetailsVoBean[] value)
	{
		this.failedemails = value;
	}
	public Integer getSealedEnvelopePatientsNo()
	{
		return this.sealedenvelopepatientsno;
	}
	public void setSealedEnvelopePatientsNo(Integer value)
	{
		this.sealedenvelopepatientsno = value;
	}

	private Integer id;
	private int version;
	private ims.framework.utils.beans.DateBean creationdate;
	private ims.framework.utils.beans.DateTimeBean lastrun;
	private ims.framework.utils.beans.DateTimeBean nextrun;
	private String printagentto;
	private String triggerfrequency;
	private String repeatinterval;
	private ims.vo.LookupInstanceBean jobtype;
	private Integer generatedleettersno;
	private Integer successfulemailsno;
	private Integer failedemailsno;
	private Integer printedlettersno;
	private ims.clinical.vo.beans.FailedEmailsDetailsVoBean[] failedemails;
	private Integer sealedenvelopepatientsno;
}
