/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/pci/vo/beans/DeliverShotDetailsVoBean.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.pci.vo.beans;

public class DeliverShotDetailsVoBean extends ims.vo.ValueObjectBean
{
	public DeliverShotDetailsVoBean()
	{
	}
	public DeliverShotDetailsVoBean(ims.pci.vo.DeliverShotDetailsVo vo)
	{
		this.delivereddate = vo.getDeliveredDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDeliveredDate().getBean();
		this.vaccinemanufacturer = vo.getVaccineManufacturer() == null ? null : (ims.vo.LookupInstanceBean)vo.getVaccineManufacturer().getBean();
		this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean();
		this.batchnumber = vo.getBatchNumber();
		this.paymenttype = vo.getPaymentType() == null ? null : (ims.vo.LookupInstanceBean)vo.getPaymentType().getBean();
		this.deliveredby = vo.getDeliveredBy() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getDeliveredBy().getBean();
		this.deliveredbygp = vo.getDeliveredByGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getDeliveredByGp().getBean();
		this.paymentgp = vo.getPaymentGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getPaymentGp().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.pci.vo.DeliverShotDetailsVo vo)
	{
		this.delivereddate = vo.getDeliveredDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDeliveredDate().getBean();
		this.vaccinemanufacturer = vo.getVaccineManufacturer() == null ? null : (ims.vo.LookupInstanceBean)vo.getVaccineManufacturer().getBean();
		this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean();
		this.batchnumber = vo.getBatchNumber();
		this.paymenttype = vo.getPaymentType() == null ? null : (ims.vo.LookupInstanceBean)vo.getPaymentType().getBean();
		this.deliveredby = vo.getDeliveredBy() == null ? null : (ims.core.vo.beans.HcpLiteVoBean)vo.getDeliveredBy().getBean(map);
		this.deliveredbygp = vo.getDeliveredByGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getDeliveredByGp().getBean(map);
		this.paymentgp = vo.getPaymentGp() == null ? null : (ims.core.vo.beans.GpShortVoBean)vo.getPaymentGp().getBean(map);
	}

	public ims.pci.vo.DeliverShotDetailsVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

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

	public ims.framework.utils.beans.DateBean getDeliveredDate()
	{
		return this.delivereddate;
	}
	public void setDeliveredDate(ims.framework.utils.beans.DateBean value)
	{
		this.delivereddate = value;
	}
	public ims.vo.LookupInstanceBean getVaccineManufacturer()
	{
		return this.vaccinemanufacturer;
	}
	public void setVaccineManufacturer(ims.vo.LookupInstanceBean value)
	{
		this.vaccinemanufacturer = value;
	}
	public ims.framework.utils.beans.DateBean getExpiryDate()
	{
		return this.expirydate;
	}
	public void setExpiryDate(ims.framework.utils.beans.DateBean value)
	{
		this.expirydate = value;
	}
	public String getBatchNumber()
	{
		return this.batchnumber;
	}
	public void setBatchNumber(String value)
	{
		this.batchnumber = value;
	}
	public ims.vo.LookupInstanceBean getPaymentType()
	{
		return this.paymenttype;
	}
	public void setPaymentType(ims.vo.LookupInstanceBean value)
	{
		this.paymenttype = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean getDeliveredBy()
	{
		return this.deliveredby;
	}
	public void setDeliveredBy(ims.core.vo.beans.HcpLiteVoBean value)
	{
		this.deliveredby = value;
	}
	public ims.core.vo.beans.GpShortVoBean getDeliveredByGp()
	{
		return this.deliveredbygp;
	}
	public void setDeliveredByGp(ims.core.vo.beans.GpShortVoBean value)
	{
		this.deliveredbygp = value;
	}
	public ims.core.vo.beans.GpShortVoBean getPaymentGp()
	{
		return this.paymentgp;
	}
	public void setPaymentGp(ims.core.vo.beans.GpShortVoBean value)
	{
		this.paymentgp = value;
	}

	private ims.framework.utils.beans.DateBean delivereddate;
	private ims.vo.LookupInstanceBean vaccinemanufacturer;
	private ims.framework.utils.beans.DateBean expirydate;
	private String batchnumber;
	private ims.vo.LookupInstanceBean paymenttype;
	private ims.core.vo.beans.HcpLiteVoBean deliveredby;
	private ims.core.vo.beans.GpShortVoBean deliveredbygp;
	private ims.core.vo.beans.GpShortVoBean paymentgp;
}
