/******************************************************************************
 * Product: Compiere ERP & CRM Smart Business Solution                        *
 * Copyright (C) 1999-2007 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., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA      *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
package org.compiere.model;

/** Generated Model - DO NOT CHANGE */
import java.sql.*;
import java.math.*;
import org.compiere.framework.*;
import org.compiere.util.*;
/** Generated Model for AD_PrintForm
 *  @author Jorg Janke (generated) 
 *  @version Release 3.0.0 - $Id: GenerateModel.java,v 1.1 2008/01/16 07:34:32 jrmt Exp $ */
public class X_AD_PrintForm extends PO
{
/** Standard Constructor
@param ctx context
@param AD_PrintForm_ID id
@param trxName transaction
*/
public X_AD_PrintForm (Ctx ctx, int AD_PrintForm_ID, String trxName)
{
super (ctx, AD_PrintForm_ID, trxName);
/** if (AD_PrintForm_ID == 0)
{
setAD_PrintForm_ID (0);
setName (null);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_PrintForm (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27447919539789L;
/** Last Updated Timestamp 2006-12-11 08:43:43.0 */
public static final long updatedMS = 1165794223000L;
/** AD_Table_ID=454 */
public static final int Table_ID=454;

/** TableName=AD_PrintForm */
public static final String Table_Name="AD_PrintForm";

protected static KeyNamePair Model = new KeyNamePair(454,"AD_PrintForm");

protected BigDecimal accessLevel = new BigDecimal(6);
/** AccessLevel
@return 6 - System - Client 
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected POInfo initPO (Ctx ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer ("X_AD_PrintForm[").append(get_ID()).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) throw new IllegalArgumentException ("AD_PrintForm_ID is mandatory.");
set_ValueNoCheck ("AD_PrintForm_ID", new Integer(AD_PrintForm_ID));
}
/** Get Print Form.
@return Form */
public int getAD_PrintForm_ID() 
{
Integer ii = (Integer)get_Value("AD_PrintForm_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Description.
@param Description Optional short description of the record */
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
Description = Description.substring(0,255);
}
set_Value ("Description", Description);
}
/** Get Description.
@return Optional short description of the record */
public String getDescription() 
{
return (String)get_Value("Description");
}

/** Inventory_MailText_ID AD_Reference_ID=274 */
public static final int INVENTORY_MAILTEXT_ID_AD_Reference_ID=274;
/** Set Inventory Mail Text.
@param Inventory_MailText_ID Email text used for sending physical inventory  */
public void setInventory_MailText_ID (int Inventory_MailText_ID)
{
if (Inventory_MailText_ID <= 0) set_Value ("Inventory_MailText_ID", null);
else
set_Value ("Inventory_MailText_ID", new Integer(Inventory_MailText_ID));
}
/** Get Inventory Mail Text.
@return Email text used for sending physical inventory  */
public int getInventory_MailText_ID() 
{
Integer ii = (Integer)get_Value("Inventory_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Inventory_PrintFormat_ID AD_Reference_ID=404 */
public static final int INVENTORY_PRINTFORMAT_ID_AD_Reference_ID=404;
/** Set Inventory Print Format.
@param Inventory_PrintFormat_ID Print Format for printing Physical Inventory */
public void setInventory_PrintFormat_ID (int Inventory_PrintFormat_ID)
{
if (Inventory_PrintFormat_ID <= 0) set_Value ("Inventory_PrintFormat_ID", null);
else
set_Value ("Inventory_PrintFormat_ID", new Integer(Inventory_PrintFormat_ID));
}
/** Get Inventory Print Format.
@return Print Format for printing Physical Inventory */
public int getInventory_PrintFormat_ID() 
{
Integer ii = (Integer)get_Value("Inventory_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Invoice_MailText_ID AD_Reference_ID=274 */
public static final int INVOICE_MAILTEXT_ID_AD_Reference_ID=274;
/** 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 <= 0) set_Value ("Invoice_MailText_ID", null);
else
set_Value ("Invoice_MailText_ID", new Integer(Invoice_MailText_ID));
}
/** Get Invoice Mail Text.
@return Email text used for sending invoices */
public int getInvoice_MailText_ID() 
{
Integer ii = (Integer)get_Value("Invoice_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Invoice_PrintFormat_ID AD_Reference_ID=261 */
public static final int INVOICE_PRINTFORMAT_ID_AD_Reference_ID=261;
/** 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 <= 0) set_Value ("Invoice_PrintFormat_ID", null);
else
set_Value ("Invoice_PrintFormat_ID", new Integer(Invoice_PrintFormat_ID));
}
/** Get Invoice Print Format.
@return Print Format for printing Invoices */
public int getInvoice_PrintFormat_ID() 
{
Integer ii = (Integer)get_Value("Invoice_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Movement_MailText_ID AD_Reference_ID=274 */
public static final int MOVEMENT_MAILTEXT_ID_AD_Reference_ID=274;
/** Set Movement Mail Text.
@param Movement_MailText_ID Email text used for sending Movements */
public void setMovement_MailText_ID (int Movement_MailText_ID)
{
if (Movement_MailText_ID <= 0) set_Value ("Movement_MailText_ID", null);
else
set_Value ("Movement_MailText_ID", new Integer(Movement_MailText_ID));
}
/** Get Movement Mail Text.
@return Email text used for sending Movements */
public int getMovement_MailText_ID() 
{
Integer ii = (Integer)get_Value("Movement_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Movement_PrintFormat_ID AD_Reference_ID=403 */
public static final int MOVEMENT_PRINTFORMAT_ID_AD_Reference_ID=403;
/** Set Movement Print Format.
@param Movement_PrintFormat_ID Print Format for using Movements */
public void setMovement_PrintFormat_ID (int Movement_PrintFormat_ID)
{
if (Movement_PrintFormat_ID <= 0) set_Value ("Movement_PrintFormat_ID", null);
else
set_Value ("Movement_PrintFormat_ID", new Integer(Movement_PrintFormat_ID));
}
/** Get Movement Print Format.
@return Print Format for using Movements */
public int getMovement_PrintFormat_ID() 
{
Integer ii = (Integer)get_Value("Movement_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Name.
@param Name Alphanumeric identifier of the entity */
public void setName (String Name)
{
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0,60);
}
set_Value ("Name", Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity */
public String getName() 
{
return (String)get_Value("Name");
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair */
public KeyNamePair getKeyNamePair() 
{
return new KeyNamePair(get_ID(), getName());
}

/** Order_MailText_ID AD_Reference_ID=274 */
public static final int ORDER_MAILTEXT_ID_AD_Reference_ID=274;
/** 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 <= 0) set_Value ("Order_MailText_ID", null);
else
set_Value ("Order_MailText_ID", new Integer(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("Order_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Order_PrintFormat_ID AD_Reference_ID=262 */
public static final int ORDER_PRINTFORMAT_ID_AD_Reference_ID=262;
/** 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 <= 0) set_Value ("Order_PrintFormat_ID", null);
else
set_Value ("Order_PrintFormat_ID", new Integer(Order_PrintFormat_ID));
}
/** Get Order Print Format.
@return Print Format for Orders, Quotes, Offers */
public int getOrder_PrintFormat_ID() 
{
Integer ii = (Integer)get_Value("Order_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Project_MailText_ID AD_Reference_ID=274 */
public static final int PROJECT_MAILTEXT_ID_AD_Reference_ID=274;
/** 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 <= 0) set_Value ("Project_MailText_ID", null);
else
set_Value ("Project_MailText_ID", new Integer(Project_MailText_ID));
}
/** Get Project Mail Text.
@return Standard text for Project EMails */
public int getProject_MailText_ID() 
{
Integer ii = (Integer)get_Value("Project_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Project_PrintFormat_ID AD_Reference_ID=402 */
public static final int PROJECT_PRINTFORMAT_ID_AD_Reference_ID=402;
/** 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 <= 0) set_Value ("Project_PrintFormat_ID", null);
else
set_Value ("Project_PrintFormat_ID", new Integer(Project_PrintFormat_ID));
}
/** Get Project Print Format.
@return Standard Project Print Format */
public int getProject_PrintFormat_ID() 
{
Integer ii = (Integer)get_Value("Project_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Remittance_MailText_ID AD_Reference_ID=274 */
public static final int REMITTANCE_MAILTEXT_ID_AD_Reference_ID=274;
/** 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 <= 0) set_Value ("Remittance_MailText_ID", null);
else
set_Value ("Remittance_MailText_ID", new Integer(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("Remittance_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Remittance_PrintFormat_ID AD_Reference_ID=268 */
public static final int REMITTANCE_PRINTFORMAT_ID_AD_Reference_ID=268;
/** 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 <= 0) set_Value ("Remittance_PrintFormat_ID", null);
else
set_Value ("Remittance_PrintFormat_ID", new Integer(Remittance_PrintFormat_ID));
}
/** Get Remittance Print Format.
@return Print Format for separate Remittances */
public int getRemittance_PrintFormat_ID() 
{
Integer ii = (Integer)get_Value("Remittance_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Shipment_MailText_ID AD_Reference_ID=274 */
public static final int SHIPMENT_MAILTEXT_ID_AD_Reference_ID=274;
/** 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 <= 0) set_Value ("Shipment_MailText_ID", null);
else
set_Value ("Shipment_MailText_ID", new Integer(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("Shipment_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Shipment_PrintFormat_ID AD_Reference_ID=263 */
public static final int SHIPMENT_PRINTFORMAT_ID_AD_Reference_ID=263;
/** 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 <= 0) set_Value ("Shipment_PrintFormat_ID", null);
else
set_Value ("Shipment_PrintFormat_ID", new Integer(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("Shipment_PrintFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}
}
