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_S_TimeExpense extends PO 11 { 12 13 public X_S_TimeExpense (Properties ctx, int S_TimeExpense_ID) 14 { 15 super (ctx, S_TimeExpense_ID); 16 28 } 29 30 public X_S_TimeExpense (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 486; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_S_TimeExpense[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setC_BPartner_ID (int C_BPartner_ID) 47 { 48 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 49 } 50 public int getC_BPartner_ID() 51 { 52 Integer ii = (Integer )getValue("C_BPartner_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setDateReport (Timestamp DateReport) 57 { 58 if (DateReport == null) throw new IllegalArgumentException ("DateReport is mandatory"); 59 setValue ("DateReport", DateReport); 60 } 61 public Timestamp getDateReport() 62 { 63 return (Timestamp)getValue("DateReport"); 64 } 65 public void setDescription (String Description) 66 { 67 setValue ("Description", Description); 68 } 69 public String getDescription() 70 { 71 return (String )getValue("Description"); 72 } 73 public void setDocumentNo (String DocumentNo) 74 { 75 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 76 setValue ("DocumentNo", DocumentNo); 77 } 78 public String getDocumentNo() 79 { 80 return (String )getValue("DocumentNo"); 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 setM_PriceList_ID (int M_PriceList_ID) 93 { 94 setValue ("M_PriceList_ID", new Integer (M_PriceList_ID)); 95 } 96 public int getM_PriceList_ID() 97 { 98 Integer ii = (Integer )getValue("M_PriceList_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 public void setM_Warehouse_ID (int M_Warehouse_ID) 103 { 104 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 105 } 106 public int getM_Warehouse_ID() 107 { 108 Integer ii = (Integer )getValue("M_Warehouse_ID"); 109 if (ii == null) return 0; 110 return ii.intValue(); 111 } 112 public void setProcessed (boolean Processed) 113 { 114 setValue ("Processed", new Boolean (Processed)); 115 } 116 public boolean isProcessed() 117 { 118 Boolean bb = (Boolean )getValue("Processed"); 119 if (bb != null) return bb.booleanValue(); 120 return false; 121 } 122 public void setProcessing (String Processing) 123 { 124 setValue ("Processing", Processing); 125 } 126 public String getProcessing() 127 { 128 return (String )getValue("Processing"); 129 } 130 void setS_TimeExpense_ID (int S_TimeExpense_ID) 131 { 132 setValueNoCheck ("S_TimeExpense_ID", new Integer (S_TimeExpense_ID)); 133 } 134 public int getS_TimeExpense_ID() 135 { 136 Integer ii = (Integer )getValue("S_TimeExpense_ID"); 137 if (ii == null) return 0; 138 return ii.intValue(); 139 } 140 } 141
| Popular Tags
|