1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_CommissionRun extends PO 11 { 12 13 public X_C_CommissionRun (Properties ctx, int C_CommissionRun_ID) 14 { 15 super (ctx, C_CommissionRun_ID); 16 26 } 27 28 public X_C_CommissionRun (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 436; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_C_CommissionRun[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 void setC_CommissionRun_ID (int C_CommissionRun_ID) 45 { 46 setValueNoCheck ("C_CommissionRun_ID", new Integer (C_CommissionRun_ID)); 47 } 48 public int getC_CommissionRun_ID() 49 { 50 Integer ii = (Integer )getValue("C_CommissionRun_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 void setC_Commission_ID (int C_Commission_ID) 55 { 56 setValueNoCheck ("C_Commission_ID", new Integer (C_Commission_ID)); 57 } 58 public int getC_Commission_ID() 59 { 60 Integer ii = (Integer )getValue("C_Commission_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setDescription (String Description) 65 { 66 setValue ("Description", Description); 67 } 68 public String getDescription() 69 { 70 return (String )getValue("Description"); 71 } 72 public void setDocumentNo (String DocumentNo) 73 { 74 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 75 setValue ("DocumentNo", DocumentNo); 76 } 77 public String getDocumentNo() 78 { 79 return (String )getValue("DocumentNo"); 80 } 81 void setGrandTotal (BigDecimal GrandTotal) 82 { 83 if (GrandTotal == null) throw new IllegalArgumentException ("GrandTotal is mandatory"); 84 setValueNoCheck ("GrandTotal", GrandTotal); 85 } 86 public BigDecimal getGrandTotal() 87 { 88 BigDecimal bd = (BigDecimal)getValue("GrandTotal"); 89 if (bd == null) return Env.ZERO; 90 return bd; 91 } 92 public void setProcessed (boolean Processed) 93 { 94 setValue ("Processed", new Boolean (Processed)); 95 } 96 public boolean isProcessed() 97 { 98 Boolean bb = (Boolean )getValue("Processed"); 99 if (bb != null) return bb.booleanValue(); 100 return false; 101 } 102 public void setProcessing (String Processing) 103 { 104 setValue ("Processing", Processing); 105 } 106 public String getProcessing() 107 { 108 return (String )getValue("Processing"); 109 } 110 public void setStartDate (Timestamp StartDate) 111 { 112 if (StartDate == null) throw new IllegalArgumentException ("StartDate is mandatory"); 113 setValue ("StartDate", StartDate); 114 } 115 public Timestamp getStartDate() 116 { 117 return (Timestamp)getValue("StartDate"); 118 } 119 } 120 | Popular Tags |