/****************************************************************************** * 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.eevolution.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; import org.compiere.model.*; import org.compiere.util.Env; import org.compiere.util.KeyNamePair; /** Generated Model for PP_Order * @author iDempiere (generated) * @version Release 12 - $Id$ */ @org.adempiere.base.Model(table="PP_Order") public class X_PP_Order extends PO implements I_PP_Order, I_Persistent { /** * */ private static final long serialVersionUID = 20241222L; /** Standard Constructor */ public X_PP_Order (Properties ctx, int PP_Order_ID, String trxName) { super (ctx, PP_Order_ID, trxName); /** if (PP_Order_ID == 0) { setAD_Workflow_ID (0); setC_DocTypeTarget_ID (0); // 0 setC_UOM_ID (0); // @UOMConversion@=Y | @Processed@='Y' setDateOrdered (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDatePromised (new Timestamp( System.currentTimeMillis() )); setDateStartSchedule (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDocAction (null); // -- setDocStatus (null); // DR setDocumentNo (null); setIsApproved (false); // N setIsPrinted (false); // N setIsSOTrx (false); // N setIsSelected (false); // N setLine (0); setM_Product_ID (0); setM_Warehouse_ID (0); setPP_Order_ID (0); setPP_Product_BOM_ID (0); setPriorityRule (null); setProcessed (false); // N setQtyDelivered (Env.ZERO); // 0 setQtyOrdered (Env.ZERO); // 1 setQtyReject (Env.ZERO); // 0 setQtyScrap (Env.ZERO); // 0 setS_Resource_ID (0); setYield (Env.ZERO); // 100 } */ } /** Standard Constructor */ public X_PP_Order (Properties ctx, int PP_Order_ID, String trxName, String ... virtualColumns) { super (ctx, PP_Order_ID, trxName, virtualColumns); /** if (PP_Order_ID == 0) { setAD_Workflow_ID (0); setC_DocTypeTarget_ID (0); // 0 setC_UOM_ID (0); // @UOMConversion@=Y | @Processed@='Y' setDateOrdered (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDatePromised (new Timestamp( System.currentTimeMillis() )); setDateStartSchedule (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDocAction (null); // -- setDocStatus (null); // DR setDocumentNo (null); setIsApproved (false); // N setIsPrinted (false); // N setIsSOTrx (false); // N setIsSelected (false); // N setLine (0); setM_Product_ID (0); setM_Warehouse_ID (0); setPP_Order_ID (0); setPP_Product_BOM_ID (0); setPriorityRule (null); setProcessed (false); // N setQtyDelivered (Env.ZERO); // 0 setQtyOrdered (Env.ZERO); // 1 setQtyReject (Env.ZERO); // 0 setQtyScrap (Env.ZERO); // 0 setS_Resource_ID (0); setYield (Env.ZERO); // 100 } */ } /** Standard Constructor */ public X_PP_Order (Properties ctx, String PP_Order_UU, String trxName) { super (ctx, PP_Order_UU, trxName); /** if (PP_Order_UU == null) { setAD_Workflow_ID (0); setC_DocTypeTarget_ID (0); // 0 setC_UOM_ID (0); // @UOMConversion@=Y | @Processed@='Y' setDateOrdered (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDatePromised (new Timestamp( System.currentTimeMillis() )); setDateStartSchedule (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDocAction (null); // -- setDocStatus (null); // DR setDocumentNo (null); setIsApproved (false); // N setIsPrinted (false); // N setIsSOTrx (false); // N setIsSelected (false); // N setLine (0); setM_Product_ID (0); setM_Warehouse_ID (0); setPP_Order_ID (0); setPP_Product_BOM_ID (0); setPriorityRule (null); setProcessed (false); // N setQtyDelivered (Env.ZERO); // 0 setQtyOrdered (Env.ZERO); // 1 setQtyReject (Env.ZERO); // 0 setQtyScrap (Env.ZERO); // 0 setS_Resource_ID (0); setYield (Env.ZERO); // 100 } */ } /** Standard Constructor */ public X_PP_Order (Properties ctx, String PP_Order_UU, String trxName, String ... virtualColumns) { super (ctx, PP_Order_UU, trxName, virtualColumns); /** if (PP_Order_UU == null) { setAD_Workflow_ID (0); setC_DocTypeTarget_ID (0); // 0 setC_UOM_ID (0); // @UOMConversion@=Y | @Processed@='Y' setDateOrdered (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDatePromised (new Timestamp( System.currentTimeMillis() )); setDateStartSchedule (new Timestamp( System.currentTimeMillis() )); // @#Date@ setDocAction (null); // -- setDocStatus (null); // DR setDocumentNo (null); setIsApproved (false); // N setIsPrinted (false); // N setIsSOTrx (false); // N setIsSelected (false); // N setLine (0); setM_Product_ID (0); setM_Warehouse_ID (0); setPP_Order_ID (0); setPP_Product_BOM_ID (0); setPriorityRule (null); setProcessed (false); // N setQtyDelivered (Env.ZERO); // 0 setQtyOrdered (Env.ZERO); // 1 setQtyReject (Env.ZERO); // 0 setQtyScrap (Env.ZERO); // 0 setS_Resource_ID (0); setYield (Env.ZERO); // 100 } */ } /** Load Constructor */ public X_PP_Order (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AccessLevel * @return 1 - Org */ 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_PP_Order[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization */ public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) { if (AD_OrgTrx_ID < 1) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); else set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); } /** Get Trx Organization. @return Performing or initiating organization */ public int getAD_OrgTrx_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_Workflow getAD_Workflow() throws RuntimeException { return (org.compiere.model.I_AD_Workflow)MTable.get(getCtx(), org.compiere.model.I_AD_Workflow.Table_ID) .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID Workflow or combination of tasks */ public void setAD_Workflow_ID (int AD_Workflow_ID) { if (AD_Workflow_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @return Workflow or combination of tasks */ public int getAD_Workflow_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Quantity Assay. @param Assay Indicated the Quantity Assay to use into Quality Order */ public void setAssay (BigDecimal Assay) { set_Value (COLUMNNAME_Assay, Assay); } /** Get Quantity Assay. @return Indicated the Quantity Assay to use into Quality Order */ public BigDecimal getAssay() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Assay); if (bd == null) return Env.ZERO; return bd; } public org.compiere.model.I_C_Activity getC_Activity() throws RuntimeException { return (org.compiere.model.I_C_Activity)MTable.get(getCtx(), org.compiere.model.I_C_Activity.Table_ID) .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID Business Activity */ public void setC_Activity_ID (int C_Activity_ID) { if (C_Activity_ID < 1) set_Value (COLUMNNAME_C_Activity_ID, null); else set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); } /** Get Activity. @return Business Activity */ public int getC_Activity_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException { return (org.compiere.model.I_C_Campaign)MTable.get(getCtx(), org.compiere.model.I_C_Campaign.Table_ID) .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID Marketing Campaign */ public void setC_Campaign_ID (int C_Campaign_ID) { if (C_Campaign_ID < 1) set_Value (COLUMNNAME_C_Campaign_ID, null); else set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); } /** Get Campaign. @return Marketing Campaign */ public int getC_Campaign_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException { return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_ID) .getPO(getC_DocTypeTarget_ID(), get_TrxName()); } /** Set Target Document Type. @param C_DocTypeTarget_ID Target document type for conversing documents */ public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) { if (C_DocTypeTarget_ID < 1) set_ValueNoCheck (COLUMNNAME_C_DocTypeTarget_ID, null); else set_ValueNoCheck (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); } /** Get Target Document Type. @return Target document type for conversing documents */ public int getC_DocTypeTarget_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException { return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_ID) .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID Document type or rules */ public void setC_DocType_ID (int C_DocType_ID) { if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @return Document type or rules */ public int getC_DocType_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_OrderLine getC_OrderLine() throws RuntimeException { return (org.compiere.model.I_C_OrderLine)MTable.get(getCtx(), org.compiere.model.I_C_OrderLine.Table_ID) .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID Sales Order Line */ public void setC_OrderLine_ID (int C_OrderLine_ID) { if (C_OrderLine_ID < 1) set_Value (COLUMNNAME_C_OrderLine_ID, null); else set_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); } /** Get Sales Order Line. @return Sales Order Line */ public int getC_OrderLine_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Project getC_Project() throws RuntimeException { return (org.compiere.model.I_C_Project)MTable.get(getCtx(), org.compiere.model.I_C_Project.Table_ID) .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID Financial Project */ public void setC_Project_ID (int C_Project_ID) { if (C_Project_ID < 1) set_Value (COLUMNNAME_C_Project_ID, null); else set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @return Financial Project */ public int getC_Project_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_UOM getC_UOM() throws RuntimeException { return (org.compiere.model.I_C_UOM)MTable.get(getCtx(), org.compiere.model.I_C_UOM.Table_ID) .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID Unit of Measure */ public void setC_UOM_ID (int C_UOM_ID) { if (C_UOM_ID < 1) set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); else set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @return Unit of Measure */ public int getC_UOM_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Copy From. @param CopyFrom Copy From Record */ public void setCopyFrom (String CopyFrom) { set_Value (COLUMNNAME_CopyFrom, CopyFrom); } /** Get Copy From. @return Copy From Record */ public String getCopyFrom() { return (String)get_Value(COLUMNNAME_CopyFrom); } /** Set Date Confirm. @param DateConfirm Date Confirm of this Order */ public void setDateConfirm (Timestamp DateConfirm) { set_ValueNoCheck (COLUMNNAME_DateConfirm, DateConfirm); } /** Get Date Confirm. @return Date Confirm of this Order */ public Timestamp getDateConfirm() { return (Timestamp)get_Value(COLUMNNAME_DateConfirm); } /** Set Date Delivered. @param DateDelivered Date when the product was delivered */ public void setDateDelivered (Timestamp DateDelivered) { set_ValueNoCheck (COLUMNNAME_DateDelivered, DateDelivered); } /** Get Date Delivered. @return Date when the product was delivered */ public Timestamp getDateDelivered() { return (Timestamp)get_Value(COLUMNNAME_DateDelivered); } /** Set Finish Date. @param DateFinish Finish or (planned) completion date */ public void setDateFinish (Timestamp DateFinish) { set_ValueNoCheck (COLUMNNAME_DateFinish, DateFinish); } /** Get Finish Date. @return Finish or (planned) completion date */ public Timestamp getDateFinish() { return (Timestamp)get_Value(COLUMNNAME_DateFinish); } /** Set Date Finish Schedule. @param DateFinishSchedule Scheduled Finish date for this Order */ public void setDateFinishSchedule (Timestamp DateFinishSchedule) { set_Value (COLUMNNAME_DateFinishSchedule, DateFinishSchedule); } /** Get Date Finish Schedule. @return Scheduled Finish date for this Order */ public Timestamp getDateFinishSchedule() { return (Timestamp)get_Value(COLUMNNAME_DateFinishSchedule); } /** Set Date Ordered. @param DateOrdered Date of Order */ public void setDateOrdered (Timestamp DateOrdered) { set_Value (COLUMNNAME_DateOrdered, DateOrdered); } /** Get Date Ordered. @return Date of Order */ public Timestamp getDateOrdered() { return (Timestamp)get_Value(COLUMNNAME_DateOrdered); } /** Set Date Promised. @param DatePromised Date Order was promised */ public void setDatePromised (Timestamp DatePromised) { set_Value (COLUMNNAME_DatePromised, DatePromised); } /** Get Date Promised. @return Date Order was promised */ public Timestamp getDatePromised() { return (Timestamp)get_Value(COLUMNNAME_DatePromised); } /** Set Date Start. @param DateStart Date Start for this Order */ public void setDateStart (Timestamp DateStart) { set_ValueNoCheck (COLUMNNAME_DateStart, DateStart); } /** Get Date Start. @return Date Start for this Order */ public Timestamp getDateStart() { return (Timestamp)get_Value(COLUMNNAME_DateStart); } /** Set Date Start Schedule. @param DateStartSchedule Scheduled start date for this Order */ public void setDateStartSchedule (Timestamp DateStartSchedule) { set_Value (COLUMNNAME_DateStartSchedule, DateStartSchedule); } /** Get Date Start Schedule. @return Scheduled start date for this Order */ public Timestamp getDateStartSchedule() { return (Timestamp)get_Value(COLUMNNAME_DateStartSchedule); } /** 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); } /** DocAction AD_Reference_ID=135 */ public static final int DOCACTION_AD_Reference_ID=135; /** <None> = -- */ public static final String DOCACTION_None = "--"; /** Approve = AP */ public static final String DOCACTION_Approve = "AP"; /** Close = CL */ public static final String DOCACTION_Close = "CL"; /** Complete = CO */ public static final String DOCACTION_Complete = "CO"; /** Invalidate = IN */ public static final String DOCACTION_Invalidate = "IN"; /** Post = PO */ public static final String DOCACTION_Post = "PO"; /** Prepare = PR */ public static final String DOCACTION_Prepare = "PR"; /** Reverse - Accrual = RA */ public static final String DOCACTION_Reverse_Accrual = "RA"; /** Reverse - Correct = RC */ public static final String DOCACTION_Reverse_Correct = "RC"; /** Re-activate = RE */ public static final String DOCACTION_Re_Activate = "RE"; /** Reject = RJ */ public static final String DOCACTION_Reject = "RJ"; /** Void = VO */ public static final String DOCACTION_Void = "VO"; /** Wait Complete = WC */ public static final String DOCACTION_WaitComplete = "WC"; /** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; /** Set Document Action. @param DocAction The targeted status of the document */ public void setDocAction (String DocAction) { set_Value (COLUMNNAME_DocAction, DocAction); } /** Get Document Action. @return The targeted status of the document */ public String getDocAction() { return (String)get_Value(COLUMNNAME_DocAction); } /** DocStatus AD_Reference_ID=131 */ public static final int DOCSTATUS_AD_Reference_ID=131; /** Unknown = ?? */ public static final String DOCSTATUS_Unknown = "??"; /** Approved = AP */ public static final String DOCSTATUS_Approved = "AP"; /** Closed = CL */ public static final String DOCSTATUS_Closed = "CL"; /** Completed = CO */ public static final String DOCSTATUS_Completed = "CO"; /** Drafted = DR */ public static final String DOCSTATUS_Drafted = "DR"; /** Invalid = IN */ public static final String DOCSTATUS_Invalid = "IN"; /** In Progress = IP */ public static final String DOCSTATUS_InProgress = "IP"; /** Not Approved = NA */ public static final String DOCSTATUS_NotApproved = "NA"; /** Reversed = RE */ public static final String DOCSTATUS_Reversed = "RE"; /** Voided = VO */ public static final String DOCSTATUS_Voided = "VO"; /** Waiting Confirmation = WC */ public static final String DOCSTATUS_WaitingConfirmation = "WC"; /** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; /** Set Document Status. @param DocStatus The current status of the document */ public void setDocStatus (String DocStatus) { set_Value (COLUMNNAME_DocStatus, DocStatus); } /** Get Document Status. @return The current status of the document */ public String getDocStatus() { return (String)get_Value(COLUMNNAME_DocStatus); } /** Set Document No. @param DocumentNo Document sequence number of the document */ public void setDocumentNo (String DocumentNo) { set_Value (COLUMNNAME_DocumentNo, DocumentNo); } /** Get Document No. @return Document sequence number of the document */ public String getDocumentNo() { return (String)get_Value(COLUMNNAME_DocumentNo); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getDocumentNo()); } /** Set Float After. @param FloatAfter Float After */ public void setFloatAfter (BigDecimal FloatAfter) { set_Value (COLUMNNAME_FloatAfter, FloatAfter); } /** Get Float After. @return Float After */ public BigDecimal getFloatAfter() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FloatAfter); if (bd == null) return Env.ZERO; return bd; } /** Set Float Before. @param FloatBefored Float Before */ public void setFloatBefored (BigDecimal FloatBefored) { set_Value (COLUMNNAME_FloatBefored, FloatBefored); } /** Get Float Before. @return Float Before */ public BigDecimal getFloatBefored() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FloatBefored); if (bd == null) return Env.ZERO; return bd; } /** Set Approved. @param IsApproved Indicates if this document requires approval */ public void setIsApproved (boolean IsApproved) { set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); } /** Get Approved. @return Indicates if this document requires approval */ public boolean isApproved() { Object oo = get_Value(COLUMNNAME_IsApproved); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Printed. @param IsPrinted Indicates if this document / line is printed */ public void setIsPrinted (boolean IsPrinted) { set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); } /** Get Printed. @return Indicates if this document / line is printed */ public boolean isPrinted() { Object oo = get_Value(COLUMNNAME_IsPrinted); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Is Qty Percentage. @param IsQtyPercentage Indicate that this component is based in % Quantity */ public void setIsQtyPercentage (boolean IsQtyPercentage) { set_Value (COLUMNNAME_IsQtyPercentage, Boolean.valueOf(IsQtyPercentage)); } /** Get Is Qty Percentage. @return Indicate that this component is based in % Quantity */ public boolean isQtyPercentage() { Object oo = get_Value(COLUMNNAME_IsQtyPercentage); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Sales Transaction. @param IsSOTrx This is a Sales Transaction */ public void setIsSOTrx (boolean IsSOTrx) { set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); } /** Get Sales Transaction. @return This is a Sales Transaction */ public boolean isSOTrx() { Object oo = get_Value(COLUMNNAME_IsSOTrx); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Selected. @param IsSelected Selected */ public void setIsSelected (boolean IsSelected) { set_Value (COLUMNNAME_IsSelected, Boolean.valueOf(IsSelected)); } /** Get Selected. @return Selected */ public boolean isSelected() { Object oo = get_Value(COLUMNNAME_IsSelected); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Line No. @param Line Unique line for this document */ public void setLine (int Line) { set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); } /** Get Line No. @return Unique line for this document */ public int getLine() { Integer ii = (Integer)get_Value(COLUMNNAME_Line); if (ii == null) return 0; return ii.intValue(); } /** Set Lot No. @param Lot Lot number (alphanumeric) */ public void setLot (String Lot) { set_Value (COLUMNNAME_Lot, Lot); } /** Get Lot No. @return Lot number (alphanumeric) */ public String getLot() { return (String)get_Value(COLUMNNAME_Lot); } public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException { return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_ID) .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { if (M_AttributeSetInstance_ID < 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @return Product Attribute Set Instance */ public int getM_AttributeSetInstance_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Product getM_Product() throws RuntimeException { return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_ID) .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID Product, Service, Item */ public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @return Product, Service, Item */ public int getM_Product_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Warehouse getM_Warehouse() throws RuntimeException { return (org.compiere.model.I_M_Warehouse)MTable.get(getCtx(), org.compiere.model.I_M_Warehouse.Table_ID) .getPO(getM_Warehouse_ID(), get_TrxName()); } /** Set Warehouse. @param M_Warehouse_ID Storage Warehouse and Service Point */ public void setM_Warehouse_ID (int M_Warehouse_ID) { if (M_Warehouse_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } /** Get Warehouse. @return Storage Warehouse and Service Point */ public int getM_Warehouse_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Order Type. @param OrderType Type of Order: MRP records grouped by source (Sales Order, Purchase Order, Distribution Order, Requisition) */ public void setOrderType (String OrderType) { set_Value (COLUMNNAME_OrderType, OrderType); } /** Get Order Type. @return Type of Order: MRP records grouped by source (Sales Order, Purchase Order, Distribution Order, Requisition) */ public String getOrderType() { return (String)get_Value(COLUMNNAME_OrderType); } /** Set Manufacturing Order. @param PP_Order_ID Manufacturing Order */ public void setPP_Order_ID (int PP_Order_ID) { if (PP_Order_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Order_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Order_ID, Integer.valueOf(PP_Order_ID)); } /** Get Manufacturing Order. @return Manufacturing Order */ public int getPP_Order_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_ID); if (ii == null) return 0; return ii.intValue(); } /** Set PP_Order_UU. @param PP_Order_UU PP_Order_UU */ public void setPP_Order_UU (String PP_Order_UU) { set_Value (COLUMNNAME_PP_Order_UU, PP_Order_UU); } /** Get PP_Order_UU. @return PP_Order_UU */ public String getPP_Order_UU() { return (String)get_Value(COLUMNNAME_PP_Order_UU); } public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException { return (org.eevolution.model.I_PP_Product_BOM)MTable.get(getCtx(), org.eevolution.model.I_PP_Product_BOM.Table_ID) .getPO(getPP_Product_BOM_ID(), get_TrxName()); } /** Set BOM & Formula. @param PP_Product_BOM_ID BOM & Formula */ public void setPP_Product_BOM_ID (int PP_Product_BOM_ID) { if (PP_Product_BOM_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Product_BOM_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Product_BOM_ID, Integer.valueOf(PP_Product_BOM_ID)); } /** Get BOM & Formula. @return BOM & Formula */ public int getPP_Product_BOM_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_PP_Product_BOM_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_User getPlanner() throws RuntimeException { return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_ID) .getPO(getPlanner_ID(), get_TrxName()); } /** Set Planner. @param Planner_ID Planner */ public void setPlanner_ID (int Planner_ID) { if (Planner_ID < 1) set_Value (COLUMNNAME_Planner_ID, null); else set_Value (COLUMNNAME_Planner_ID, Integer.valueOf(Planner_ID)); } /** Get Planner. @return Planner */ public int getPlanner_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_Planner_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Posted. @param Posted Posting status */ public void setPosted (boolean Posted) { set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); } /** Get Posted. @return Posting status */ public boolean isPosted() { Object oo = get_Value(COLUMNNAME_Posted); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** PriorityRule AD_Reference_ID=154 */ public static final int PRIORITYRULE_AD_Reference_ID=154; /** Urgent = 1 */ public static final String PRIORITYRULE_Urgent = "1"; /** High = 3 */ public static final String PRIORITYRULE_High = "3"; /** Medium = 5 */ public static final String PRIORITYRULE_Medium = "5"; /** Low = 7 */ public static final String PRIORITYRULE_Low = "7"; /** Minor = 9 */ public static final String PRIORITYRULE_Minor = "9"; /** Set Priority. @param PriorityRule Priority of a document */ public void setPriorityRule (String PriorityRule) { set_Value (COLUMNNAME_PriorityRule, PriorityRule); } /** Get Priority. @return Priority of a document */ public String getPriorityRule() { return (String)get_Value(COLUMNNAME_PriorityRule); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The document has been processed */ public boolean isProcessed() { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Processed On. @param ProcessedOn The date+time (expressed in decimal format) when the document has been processed */ public void setProcessedOn (BigDecimal ProcessedOn) { set_Value (COLUMNNAME_ProcessedOn, ProcessedOn); } /** Get Processed On. @return The date+time (expressed in decimal format) when the document has been processed */ public BigDecimal getProcessedOn() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ProcessedOn); if (bd == null) return Env.ZERO; return bd; } /** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing() { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Qty Batch Size. @param QtyBatchSize Qty Batch Size */ public void setQtyBatchSize (BigDecimal QtyBatchSize) { set_ValueNoCheck (COLUMNNAME_QtyBatchSize, QtyBatchSize); } /** Get Qty Batch Size. @return Qty Batch Size */ public BigDecimal getQtyBatchSize() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBatchSize); if (bd == null) return Env.ZERO; return bd; } /** Set Qty Batch. @param QtyBatchs Qty Batch */ public void setQtyBatchs (BigDecimal QtyBatchs) { set_ValueNoCheck (COLUMNNAME_QtyBatchs, QtyBatchs); } /** Get Qty Batch. @return Qty Batch */ public BigDecimal getQtyBatchs() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBatchs); if (bd == null) return Env.ZERO; return bd; } /** Set Delivered Quantity. @param QtyDelivered Delivered Quantity */ public void setQtyDelivered (BigDecimal QtyDelivered) { set_Value (COLUMNNAME_QtyDelivered, QtyDelivered); } /** Get Delivered Quantity. @return Delivered Quantity */ public BigDecimal getQtyDelivered() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyDelivered); if (bd == null) return Env.ZERO; return bd; } /** Set Quantity. @param QtyEntered The Quantity Entered is based on the selected UoM */ public void setQtyEntered (BigDecimal QtyEntered) { set_Value (COLUMNNAME_QtyEntered, QtyEntered); } /** Get Quantity. @return The Quantity Entered is based on the selected UoM */ public BigDecimal getQtyEntered() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyEntered); if (bd == null) return Env.ZERO; return bd; } /** Set Ordered Quantity. @param QtyOrdered Ordered Quantity */ public void setQtyOrdered (BigDecimal QtyOrdered) { set_ValueNoCheck (COLUMNNAME_QtyOrdered, QtyOrdered); } /** Get Ordered Quantity. @return Ordered Quantity */ public BigDecimal getQtyOrdered() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); if (bd == null) return Env.ZERO; return bd; } /** Set Qty Reject. @param QtyReject Qty Reject */ public void setQtyReject (BigDecimal QtyReject) { set_Value (COLUMNNAME_QtyReject, QtyReject); } /** Get Qty Reject. @return Qty Reject */ public BigDecimal getQtyReject() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReject); if (bd == null) return Env.ZERO; return bd; } /** Set Reserved Quantity. @param QtyReserved Reserved Quantity */ public void setQtyReserved (BigDecimal QtyReserved) { set_Value (COLUMNNAME_QtyReserved, QtyReserved); } /** Get Reserved Quantity. @return Reserved Quantity */ public BigDecimal getQtyReserved() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); if (bd == null) return Env.ZERO; return bd; } /** Set Scrap %. @param QtyScrap Scrap % Quantity for this component */ public void setQtyScrap (BigDecimal QtyScrap) { set_Value (COLUMNNAME_QtyScrap, QtyScrap); } /** Get Scrap %. @return Scrap % Quantity for this component */ public BigDecimal getQtyScrap() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyScrap); if (bd == null) return Env.ZERO; return bd; } public org.compiere.model.I_S_Resource getS_Resource() throws RuntimeException { return (org.compiere.model.I_S_Resource)MTable.get(getCtx(), org.compiere.model.I_S_Resource.Table_ID) .getPO(getS_Resource_ID(), get_TrxName()); } /** Set Resource. @param S_Resource_ID Resource */ public void setS_Resource_ID (int S_Resource_ID) { if (S_Resource_ID < 1) set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); else set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); } /** Get Resource. @return Resource */ public int getS_Resource_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Schedule Type. @param ScheduleType Type of schedule */ public void setScheduleType (String ScheduleType) { set_Value (COLUMNNAME_ScheduleType, ScheduleType); } /** Get Schedule Type. @return Type of schedule */ public String getScheduleType() { return (String)get_Value(COLUMNNAME_ScheduleType); } /** Set Serial No. @param SerNo Product Serial Number */ public void setSerNo (String SerNo) { set_Value (COLUMNNAME_SerNo, SerNo); } /** Get Serial No. @return Product Serial Number */ public String getSerNo() { return (String)get_Value(COLUMNNAME_SerNo); } public org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException { return (org.compiere.model.I_C_ElementValue)MTable.get(getCtx(), org.compiere.model.I_C_ElementValue.Table_ID) .getPO(getUser1_ID(), get_TrxName()); } /** Set User Element List 1. @param User1_ID User defined list element #1 */ public void setUser1_ID (int User1_ID) { if (User1_ID < 1) set_Value (COLUMNNAME_User1_ID, null); else set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); } /** Get User Element List 1. @return User defined list element #1 */ public int getUser1_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_ElementValue getUser2() throws RuntimeException { return (org.compiere.model.I_C_ElementValue)MTable.get(getCtx(), org.compiere.model.I_C_ElementValue.Table_ID) .getPO(getUser2_ID(), get_TrxName()); } /** Set User Element List 2. @param User2_ID User defined list element #2 */ public void setUser2_ID (int User2_ID) { if (User2_ID < 1) set_Value (COLUMNNAME_User2_ID, null); else set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); } /** Get User Element List 2. @return User defined list element #2 */ public int getUser2_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Yield %. @param Yield The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent */ public void setYield (BigDecimal Yield) { set_Value (COLUMNNAME_Yield, Yield); } /** Get Yield %. @return The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent */ public BigDecimal getYield() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Yield); if (bd == null) return Env.ZERO; return bd; } }