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_PaySelection extends PO 11 { 12 13 public X_C_PaySelection (Properties ctx, int C_PaySelection_ID) 14 { 15 super (ctx, C_PaySelection_ID); 16 28 } 29 30 public X_C_PaySelection (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 426; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_C_PaySelection[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setC_BankAccount_ID (int C_BankAccount_ID) 47 { 48 setValue ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 49 } 50 public int getC_BankAccount_ID() 51 { 52 Integer ii = (Integer )getValue("C_BankAccount_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 void setC_PaySelection_ID (int C_PaySelection_ID) 57 { 58 setValueNoCheck ("C_PaySelection_ID", new Integer (C_PaySelection_ID)); 59 } 60 public int getC_PaySelection_ID() 61 { 62 Integer ii = (Integer )getValue("C_PaySelection_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 public void setCreateFrom (String CreateFrom) 67 { 68 setValue ("CreateFrom", CreateFrom); 69 } 70 public String getCreateFrom() 71 { 72 return (String )getValue("CreateFrom"); 73 } 74 public void setDescription (String Description) 75 { 76 setValue ("Description", Description); 77 } 78 public String getDescription() 79 { 80 return (String )getValue("Description"); 81 } 82 public void setIsApproved (boolean IsApproved) 83 { 84 setValue ("IsApproved", new Boolean (IsApproved)); 85 } 86 public boolean isApproved() 87 { 88 Boolean bb = (Boolean )getValue("IsApproved"); 89 if (bb != null) return bb.booleanValue(); 90 return false; 91 } 92 public void setName (String Name) 93 { 94 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 95 setValue ("Name", Name); 96 } 97 public String getName() 98 { 99 return (String )getValue("Name"); 100 } 101 public void setPayDate (Timestamp PayDate) 102 { 103 if (PayDate == null) throw new IllegalArgumentException ("PayDate is mandatory"); 104 setValue ("PayDate", PayDate); 105 } 106 public Timestamp getPayDate() 107 { 108 return (Timestamp)getValue("PayDate"); 109 } 110 public void setProcessed (boolean Processed) 111 { 112 setValue ("Processed", new Boolean (Processed)); 113 } 114 public boolean isProcessed() 115 { 116 Boolean bb = (Boolean )getValue("Processed"); 117 if (bb != null) return bb.booleanValue(); 118 return false; 119 } 120 public void setProcessing (String Processing) 121 { 122 if (Processing == null) throw new IllegalArgumentException ("Processing is mandatory"); 123 setValue ("Processing", Processing); 124 } 125 public String getProcessing() 126 { 127 return (String )getValue("Processing"); 128 } 129 public void setTotalAmt (BigDecimal TotalAmt) 130 { 131 if (TotalAmt == null) throw new IllegalArgumentException ("TotalAmt is mandatory"); 132 setValue ("TotalAmt", TotalAmt); 133 } 134 public BigDecimal getTotalAmt() 135 { 136 BigDecimal bd = (BigDecimal)getValue("TotalAmt"); 137 if (bd == null) return Env.ZERO; 138 return bd; 139 } 140 } 141
| Popular Tags
|