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_M_EDI extends PO 11 { 12 13 public X_M_EDI (Properties ctx, int M_EDI_ID) 14 { 15 super (ctx, M_EDI_ID); 16 32 } 33 34 public X_M_EDI (Properties ctx, ResultSet rs) 35 { 36 super (ctx, rs); 37 } 38 39 protected POInfo initPO (Properties ctx) 40 { 41 int AD_Table_ID = 367; 42 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 43 return poi; 44 } 45 public String toString() 46 { 47 StringBuffer sb = new StringBuffer ("X_M_EDI[").append(getID()).append("]"); 48 return sb.toString(); 49 } 50 public void setC_BP_EDI_ID (int C_BP_EDI_ID) 51 { 52 setValue ("C_BP_EDI_ID", new Integer (C_BP_EDI_ID)); 53 } 54 public int getC_BP_EDI_ID() 55 { 56 Integer ii = (Integer )getValue("C_BP_EDI_ID"); 57 if (ii == null) return 0; 58 return ii.intValue(); 59 } 60 public void setDocumentNo (String DocumentNo) 61 { 62 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 63 setValue ("DocumentNo", DocumentNo); 64 } 65 public String getDocumentNo() 66 { 67 return (String )getValue("DocumentNo"); 68 } 69 public static final String EDISTATUS_Draft = "D"; 70 public static final String EDISTATUS_Sent = "S"; 71 public static final String EDISTATUS_Acknowledged = "A"; 72 public static final String EDISTATUS_AnsweredComplete = "C"; 73 void setEDIStatus (String EDIStatus) 74 { 75 if (EDIStatus.equals("D") || EDIStatus.equals("S") || EDIStatus.equals("A") || EDIStatus.equals("C")); 76 else throw new IllegalArgumentException ("EDIStatus Invalid value - Reference_ID=202 - D - S - A - C"); 77 if (EDIStatus == null) throw new IllegalArgumentException ("EDIStatus is mandatory"); 78 setValueNoCheck ("EDIStatus", EDIStatus); 79 } 80 public String getEDIStatus() 81 { 82 return (String )getValue("EDIStatus"); 83 } 84 public void setLine (int Line) 85 { 86 setValue ("Line", new Integer (Line)); 87 } 88 public int getLine() 89 { 90 Integer ii = (Integer )getValue("Line"); 91 if (ii == null) return 0; 92 return ii.intValue(); 93 } 94 void setM_EDI_ID (int M_EDI_ID) 95 { 96 setValueNoCheck ("M_EDI_ID", new Integer (M_EDI_ID)); 97 } 98 public int getM_EDI_ID() 99 { 100 Integer ii = (Integer )getValue("M_EDI_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 public void setM_Product_ID (int M_Product_ID) 105 { 106 setValue ("M_Product_ID", new Integer (M_Product_ID)); 107 } 108 public int getM_Product_ID() 109 { 110 Integer ii = (Integer )getValue("M_Product_ID"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 public void setM_Warehouse_ID (int M_Warehouse_ID) 115 { 116 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 117 } 118 public int getM_Warehouse_ID() 119 { 120 Integer ii = (Integer )getValue("M_Warehouse_ID"); 121 if (ii == null) return 0; 122 return ii.intValue(); 123 } 124 public void setProcessed (boolean Processed) 125 { 126 setValue ("Processed", new Boolean (Processed)); 127 } 128 public boolean isProcessed() 129 { 130 Boolean bb = (Boolean )getValue("Processed"); 131 if (bb != null) return bb.booleanValue(); 132 return false; 133 } 134 public void setReply_Price (BigDecimal Reply_Price) 135 { 136 setValue ("Reply_Price", Reply_Price); 137 } 138 public BigDecimal getReply_Price() 139 { 140 BigDecimal bd = (BigDecimal)getValue("Reply_Price"); 141 if (bd == null) return Env.ZERO; 142 return bd; 143 } 144 public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable) 145 { 146 setValue ("Reply_QtyAvailable", Reply_QtyAvailable); 147 } 148 public BigDecimal getReply_QtyAvailable() 149 { 150 BigDecimal bd = (BigDecimal)getValue("Reply_QtyAvailable"); 151 if (bd == null) return Env.ZERO; 152 return bd; 153 } 154 public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed) 155 { 156 setValue ("Reply_QtyConfirmed", Reply_QtyConfirmed); 157 } 158 public BigDecimal getReply_QtyConfirmed() 159 { 160 BigDecimal bd = (BigDecimal)getValue("Reply_QtyConfirmed"); 161 if (bd == null) return Env.ZERO; 162 return bd; 163 } 164 public void setReply_Received (Timestamp Reply_Received) 165 { 166 setValue ("Reply_Received", Reply_Received); 167 } 168 public Timestamp getReply_Received() 169 { 170 return (Timestamp)getValue("Reply_Received"); 171 } 172 public void setReply_Remarks (String Reply_Remarks) 173 { 174 setValue ("Reply_Remarks", Reply_Remarks); 175 } 176 public String getReply_Remarks() 177 { 178 return (String )getValue("Reply_Remarks"); 179 } 180 public void setReply_ShipDate (Timestamp Reply_ShipDate) 181 { 182 setValue ("Reply_ShipDate", Reply_ShipDate); 183 } 184 public Timestamp getReply_ShipDate() 185 { 186 return (Timestamp)getValue("Reply_ShipDate"); 187 } 188 public void setRequest_Price (BigDecimal Request_Price) 189 { 190 setValue ("Request_Price", Request_Price); 191 } 192 public BigDecimal getRequest_Price() 193 { 194 BigDecimal bd = (BigDecimal)getValue("Request_Price"); 195 if (bd == null) return Env.ZERO; 196 return bd; 197 } 198 public void setRequest_Qty (BigDecimal Request_Qty) 199 { 200 if (Request_Qty == null) throw new IllegalArgumentException ("Request_Qty is mandatory"); 201 setValue ("Request_Qty", Request_Qty); 202 } 203 public BigDecimal getRequest_Qty() 204 { 205 BigDecimal bd = (BigDecimal)getValue("Request_Qty"); 206 if (bd == null) return Env.ZERO; 207 return bd; 208 } 209 public void setRequest_Shipdate (Timestamp Request_Shipdate) 210 { 211 if (Request_Shipdate == null) throw new IllegalArgumentException ("Request_Shipdate is mandatory"); 212 setValue ("Request_Shipdate", Request_Shipdate); 213 } 214 public Timestamp getRequest_Shipdate() 215 { 216 return (Timestamp)getValue("Request_Shipdate"); 217 } 218 public void setTrxReceived (Timestamp TrxReceived) 219 { 220 setValue ("TrxReceived", TrxReceived); 221 } 222 public Timestamp getTrxReceived() 223 { 224 return (Timestamp)getValue("TrxReceived"); 225 } 226 public void setTrxSent (Timestamp TrxSent) 227 { 228 if (TrxSent == null) throw new IllegalArgumentException ("TrxSent is mandatory"); 229 setValue ("TrxSent", TrxSent); 230 } 231 public Timestamp getTrxSent() 232 { 233 return (Timestamp)getValue("TrxSent"); 234 } 235 public static final String TRXTYPE_Inquiry = "I"; 236 public static final String TRXTYPE_PurchaseOrder = "O"; 237 void setTrxType (String TrxType) 238 { 239 if (TrxType.equals("I") || TrxType.equals("O")); 240 else throw new IllegalArgumentException ("TrxType Invalid value - Reference_ID=203 - I - O"); 241 if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); 242 setValueNoCheck ("TrxType", TrxType); 243 } 244 public String getTrxType() 245 { 246 return (String )getValue("TrxType"); 247 } 248 } 249 | Popular Tags |