/******************************************************************************
 * Product: iDempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. 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 General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;

/** Generated Model for AD_PrintForm
 *  @author iDempiere (generated)
 *  @version Release 11 - $Id$ */
@org.adempiere.base.Model(table="AD_PrintForm")
public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20231222L;

    /** Standard Constructor */
    public X_AD_PrintForm (Properties ctx, int AD_PrintForm_ID, String trxName)
    {
      super (ctx, AD_PrintForm_ID, trxName);
      /** if (AD_PrintForm_ID == 0)
        {
			setAD_PrintForm_ID (0);
			setName (null);
        } */
    }

    /** Standard Constructor */
    public X_AD_PrintForm (Properties ctx, int AD_PrintForm_ID, String trxName, String ... virtualColumns)
    {
      super (ctx, AD_PrintForm_ID, trxName, virtualColumns);
      /** if (AD_PrintForm_ID == 0)
        {
			setAD_PrintForm_ID (0);
			setName (null);
        } */
    }

    /** Standard Constructor */
    public X_AD_PrintForm (Properties ctx, String AD_PrintForm_UU, String trxName)
    {
      super (ctx, AD_PrintForm_UU, trxName);
      /** if (AD_PrintForm_UU == null)
        {
			setAD_PrintForm_ID (0);
			setName (null);
        } */
    }

    /** Standard Constructor */
    public X_AD_PrintForm (Properties ctx, String AD_PrintForm_UU, String trxName, String ... virtualColumns)
    {
      super (ctx, AD_PrintForm_UU, trxName, virtualColumns);
      /** if (AD_PrintForm_UU == null)
        {
			setAD_PrintForm_ID (0);
			setName (null);
        } */
    }

    /** Load Constructor */
    public X_AD_PrintForm (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 6 - System - Client
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuilder sb = new StringBuilder ("X_AD_PrintForm[")
        .append(get_ID()).append(",Name=").append(getName()).append("]");
      return sb.toString();
    }

	/** Set Print Form.
		@param AD_PrintForm_ID Form
	*/
	public void setAD_PrintForm_ID (int AD_PrintForm_ID)
	{
		if (AD_PrintForm_ID < 1)
			set_ValueNoCheck (COLUMNNAME_AD_PrintForm_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_AD_PrintForm_ID, Integer.valueOf(AD_PrintForm_ID));
	}

	/** Get Print Form.
		@return Form
	  */
	public int getAD_PrintForm_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintForm_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set AD_PrintForm_UU.
		@param AD_PrintForm_UU AD_PrintForm_UU
	*/
	public void setAD_PrintForm_UU (String AD_PrintForm_UU)
	{
		set_Value (COLUMNNAME_AD_PrintForm_UU, AD_PrintForm_UU);
	}

	/** Get AD_PrintForm_UU.
		@return AD_PrintForm_UU	  */
	public String getAD_PrintForm_UU()
	{
		return (String)get_Value(COLUMNNAME_AD_PrintForm_UU);
	}

	/** Set Description.
		@param Description Optional short description of the record
	*/
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription()
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	public org.compiere.model.I_R_MailText getDistrib_Order_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getDistrib_Order_MailText_ID(), get_TrxName());
	}

	/** Set Distribution Order Mail Text.
		@param Distrib_Order_MailText_ID Email text used for sending Distribution Order
	*/
	public void setDistrib_Order_MailText_ID (int Distrib_Order_MailText_ID)
	{
		if (Distrib_Order_MailText_ID < 1)
			set_Value (COLUMNNAME_Distrib_Order_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Distrib_Order_MailText_ID, Integer.valueOf(Distrib_Order_MailText_ID));
	}

	/** Get Distribution Order Mail Text.
		@return Email text used for sending Distribution Order
	  */
	public int getDistrib_Order_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Distrib_Order_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getDistrib_Order_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getDistrib_Order_PrintFormat_ID(), get_TrxName());
	}

	/** Set Distribution Order Print Format.
		@param Distrib_Order_PrintFormat_ID Print Format for printing Distribution Order
	*/
	public void setDistrib_Order_PrintFormat_ID (int Distrib_Order_PrintFormat_ID)
	{
		if (Distrib_Order_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Distrib_Order_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Distrib_Order_PrintFormat_ID, Integer.valueOf(Distrib_Order_PrintFormat_ID));
	}

	/** Get Distribution Order Print Format.
		@return Print Format for printing Distribution Order
	  */
	public int getDistrib_Order_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Distrib_Order_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_R_MailText getInvoice_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getInvoice_MailText_ID(), get_TrxName());
	}

	/** Set Invoice Mail Text.
		@param Invoice_MailText_ID Email text used for sending invoices
	*/
	public void setInvoice_MailText_ID (int Invoice_MailText_ID)
	{
		if (Invoice_MailText_ID < 1)
			set_Value (COLUMNNAME_Invoice_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Invoice_MailText_ID, Integer.valueOf(Invoice_MailText_ID));
	}

	/** Get Invoice Mail Text.
		@return Email text used for sending invoices
	  */
	public int getInvoice_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getInvoice_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getInvoice_PrintFormat_ID(), get_TrxName());
	}

	/** Set Invoice Print Format.
		@param Invoice_PrintFormat_ID Print Format for printing Invoices
	*/
	public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID)
	{
		if (Invoice_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Invoice_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Invoice_PrintFormat_ID, Integer.valueOf(Invoice_PrintFormat_ID));
	}

	/** Get Invoice Print Format.
		@return Print Format for printing Invoices
	  */
	public int getInvoice_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_R_MailText getManuf_Order_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getManuf_Order_MailText_ID(), get_TrxName());
	}

	/** Set Manufacturing Order Mail Text.
		@param Manuf_Order_MailText_ID Email text used for sending Manufacturing Order
	*/
	public void setManuf_Order_MailText_ID (int Manuf_Order_MailText_ID)
	{
		if (Manuf_Order_MailText_ID < 1)
			set_Value (COLUMNNAME_Manuf_Order_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Manuf_Order_MailText_ID, Integer.valueOf(Manuf_Order_MailText_ID));
	}

	/** Get Manufacturing Order Mail Text.
		@return Email text used for sending Manufacturing Order
	  */
	public int getManuf_Order_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Manuf_Order_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getManuf_Order_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getManuf_Order_PrintFormat_ID(), get_TrxName());
	}

	/** Set Manufacturing Order Print Format.
		@param Manuf_Order_PrintFormat_ID Print Format for printing Manufacturing Order
	*/
	public void setManuf_Order_PrintFormat_ID (int Manuf_Order_PrintFormat_ID)
	{
		if (Manuf_Order_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Manuf_Order_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Manuf_Order_PrintFormat_ID, Integer.valueOf(Manuf_Order_PrintFormat_ID));
	}

	/** Get Manufacturing Order Print Format.
		@return Print Format for printing Manufacturing Order
	  */
	public int getManuf_Order_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Manuf_Order_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Name.
		@param Name Alphanumeric identifier of the entity
	*/
	public void setName (String Name)
	{
		set_Value (COLUMNNAME_Name, Name);
	}

	/** Get Name.
		@return Alphanumeric identifier of the entity
	  */
	public String getName()
	{
		return (String)get_Value(COLUMNNAME_Name);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair()
    {
        return new KeyNamePair(get_ID(), getName());
    }

	public org.compiere.model.I_R_MailText getOrder_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getOrder_MailText_ID(), get_TrxName());
	}

	/** Set Order Mail Text.
		@param Order_MailText_ID Email text used for sending order acknowledgements or quotations
	*/
	public void setOrder_MailText_ID (int Order_MailText_ID)
	{
		if (Order_MailText_ID < 1)
			set_Value (COLUMNNAME_Order_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Order_MailText_ID, Integer.valueOf(Order_MailText_ID));
	}

	/** Get Order Mail Text.
		@return Email text used for sending order acknowledgements or quotations
	  */
	public int getOrder_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Order_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getOrder_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getOrder_PrintFormat_ID(), get_TrxName());
	}

	/** Set Order Print Format.
		@param Order_PrintFormat_ID Print Format for Orders, Quotes, Offers
	*/
	public void setOrder_PrintFormat_ID (int Order_PrintFormat_ID)
	{
		if (Order_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Order_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Order_PrintFormat_ID, Integer.valueOf(Order_PrintFormat_ID));
	}

	/** Get Order Print Format.
		@return Print Format for Orders, Quotes, Offers
	  */
	public int getOrder_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Order_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_R_MailText getProject_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getProject_MailText_ID(), get_TrxName());
	}

	/** Set Project Mail Text.
		@param Project_MailText_ID Standard text for Project EMails
	*/
	public void setProject_MailText_ID (int Project_MailText_ID)
	{
		if (Project_MailText_ID < 1)
			set_Value (COLUMNNAME_Project_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Project_MailText_ID, Integer.valueOf(Project_MailText_ID));
	}

	/** Get Project Mail Text.
		@return Standard text for Project EMails
	  */
	public int getProject_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Project_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getProject_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getProject_PrintFormat_ID(), get_TrxName());
	}

	/** Set Project Print Format.
		@param Project_PrintFormat_ID Standard Project Print Format
	*/
	public void setProject_PrintFormat_ID (int Project_PrintFormat_ID)
	{
		if (Project_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Project_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Project_PrintFormat_ID, Integer.valueOf(Project_PrintFormat_ID));
	}

	/** Get Project Print Format.
		@return Standard Project Print Format
	  */
	public int getProject_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Project_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_R_MailText getRemittance_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getRemittance_MailText_ID(), get_TrxName());
	}

	/** Set Remittance Mail Text.
		@param Remittance_MailText_ID Email text used for sending payment remittances
	*/
	public void setRemittance_MailText_ID (int Remittance_MailText_ID)
	{
		if (Remittance_MailText_ID < 1)
			set_Value (COLUMNNAME_Remittance_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Remittance_MailText_ID, Integer.valueOf(Remittance_MailText_ID));
	}

	/** Get Remittance Mail Text.
		@return Email text used for sending payment remittances
	  */
	public int getRemittance_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Remittance_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getRemittance_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getRemittance_PrintFormat_ID(), get_TrxName());
	}

	/** Set Remittance Print Format.
		@param Remittance_PrintFormat_ID Print Format for separate Remittances
	*/
	public void setRemittance_PrintFormat_ID (int Remittance_PrintFormat_ID)
	{
		if (Remittance_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Remittance_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Remittance_PrintFormat_ID, Integer.valueOf(Remittance_PrintFormat_ID));
	}

	/** Get Remittance Print Format.
		@return Print Format for separate Remittances
	  */
	public int getRemittance_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Remittance_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_R_MailText getShipment_MailText() throws RuntimeException
	{
		return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_ID)
			.getPO(getShipment_MailText_ID(), get_TrxName());
	}

	/** Set Shipment Mail Text.
		@param Shipment_MailText_ID Email text used for sending delivery notes
	*/
	public void setShipment_MailText_ID (int Shipment_MailText_ID)
	{
		if (Shipment_MailText_ID < 1)
			set_Value (COLUMNNAME_Shipment_MailText_ID, null);
		else
			set_Value (COLUMNNAME_Shipment_MailText_ID, Integer.valueOf(Shipment_MailText_ID));
	}

	/** Get Shipment Mail Text.
		@return Email text used for sending delivery notes
	  */
	public int getShipment_MailText_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Shipment_MailText_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_AD_PrintFormat getShipment_PrintFormat() throws RuntimeException
	{
		return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID)
			.getPO(getShipment_PrintFormat_ID(), get_TrxName());
	}

	/** Set Shipment Print Format.
		@param Shipment_PrintFormat_ID Print Format for Shipments, Receipts, Pick Lists
	*/
	public void setShipment_PrintFormat_ID (int Shipment_PrintFormat_ID)
	{
		if (Shipment_PrintFormat_ID < 1)
			set_Value (COLUMNNAME_Shipment_PrintFormat_ID, null);
		else
			set_Value (COLUMNNAME_Shipment_PrintFormat_ID, Integer.valueOf(Shipment_PrintFormat_ID));
	}

	/** Get Shipment Print Format.
		@return Print Format for Shipments, Receipts, Pick Lists
	  */
	public int getShipment_PrintFormat_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Shipment_PrintFormat_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
}