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_InOut extends PO 11 { 12 13 public X_M_InOut (Properties ctx, int M_InOut_ID) 14 { 15 super (ctx, M_InOut_ID); 16 40 } 41 42 public X_M_InOut (Properties ctx, ResultSet rs) 43 { 44 super (ctx, rs); 45 } 46 47 protected POInfo initPO (Properties ctx) 48 { 49 int AD_Table_ID = 319; 50 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 51 return poi; 52 } 53 public String toString() 54 { 55 StringBuffer sb = new StringBuffer ("X_M_InOut[").append(getID()).append("]"); 56 return sb.toString(); 57 } 58 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 59 { 60 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 61 else 62 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 63 } 64 public int getAD_OrgTrx_ID() 65 { 66 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 67 if (ii == null) return 0; 68 return ii.intValue(); 69 } 70 public void setAD_User_ID (int AD_User_ID) 71 { 72 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 73 else 74 setValue ("AD_User_ID", new Integer (AD_User_ID)); 75 } 76 public int getAD_User_ID() 77 { 78 Integer ii = (Integer )getValue("AD_User_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 public void setC_Activity_ID (int C_Activity_ID) 83 { 84 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 85 else 86 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 87 } 88 public int getC_Activity_ID() 89 { 90 Integer ii = (Integer )getValue("C_Activity_ID"); 91 if (ii == null) return 0; 92 return ii.intValue(); 93 } 94 public void setC_BPartner_ID (int C_BPartner_ID) 95 { 96 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 97 } 98 public int getC_BPartner_ID() 99 { 100 Integer ii = (Integer )getValue("C_BPartner_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 105 { 106 setValue ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 107 } 108 public int getC_BPartner_Location_ID() 109 { 110 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 public void setC_Campaign_ID (int C_Campaign_ID) 115 { 116 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 117 else 118 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 119 } 120 public int getC_Campaign_ID() 121 { 122 Integer ii = (Integer )getValue("C_Campaign_ID"); 123 if (ii == null) return 0; 124 return ii.intValue(); 125 } 126 public void setC_Charge_ID (int C_Charge_ID) 127 { 128 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null); 129 else 130 setValue ("C_Charge_ID", new Integer (C_Charge_ID)); 131 } 132 public int getC_Charge_ID() 133 { 134 Integer ii = (Integer )getValue("C_Charge_ID"); 135 if (ii == null) return 0; 136 return ii.intValue(); 137 } 138 void setC_DocType_ID (int C_DocType_ID) 139 { 140 setValueNoCheck ("C_DocType_ID", new Integer (C_DocType_ID)); 141 } 142 public int getC_DocType_ID() 143 { 144 Integer ii = (Integer )getValue("C_DocType_ID"); 145 if (ii == null) return 0; 146 return ii.intValue(); 147 } 148 void setC_Invoice_ID (int C_Invoice_ID) 149 { 150 if (C_Invoice_ID == 0) setValueNoCheck ("C_Invoice_ID", null); 151 else 152 setValueNoCheck ("C_Invoice_ID", new Integer (C_Invoice_ID)); 153 } 154 public int getC_Invoice_ID() 155 { 156 Integer ii = (Integer )getValue("C_Invoice_ID"); 157 if (ii == null) return 0; 158 return ii.intValue(); 159 } 160 void setC_Order_ID (int C_Order_ID) 161 { 162 if (C_Order_ID == 0) setValueNoCheck ("C_Order_ID", null); 163 else 164 setValueNoCheck ("C_Order_ID", new Integer (C_Order_ID)); 165 } 166 public int getC_Order_ID() 167 { 168 Integer ii = (Integer )getValue("C_Order_ID"); 169 if (ii == null) return 0; 170 return ii.intValue(); 171 } 172 public void setC_Project_ID (int C_Project_ID) 173 { 174 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 175 else 176 setValue ("C_Project_ID", new Integer (C_Project_ID)); 177 } 178 public int getC_Project_ID() 179 { 180 Integer ii = (Integer )getValue("C_Project_ID"); 181 if (ii == null) return 0; 182 return ii.intValue(); 183 } 184 public void setChargeAmt (BigDecimal ChargeAmt) 185 { 186 setValue ("ChargeAmt", ChargeAmt); 187 } 188 public BigDecimal getChargeAmt() 189 { 190 BigDecimal bd = (BigDecimal)getValue("ChargeAmt"); 191 if (bd == null) return Env.ZERO; 192 return bd; 193 } 194 public void setCreateFrom (String CreateFrom) 195 { 196 setValue ("CreateFrom", CreateFrom); 197 } 198 public String getCreateFrom() 199 { 200 return (String )getValue("CreateFrom"); 201 } 202 public void setDateAcct (Timestamp DateAcct) 203 { 204 if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory"); 205 setValue ("DateAcct", DateAcct); 206 } 207 public Timestamp getDateAcct() 208 { 209 return (Timestamp)getValue("DateAcct"); 210 } 211 void setDateOrdered (Timestamp DateOrdered) 212 { 213 setValueNoCheck ("DateOrdered", DateOrdered); 214 } 215 public Timestamp getDateOrdered() 216 { 217 return (Timestamp)getValue("DateOrdered"); 218 } 219 public void setDatePrinted (Timestamp DatePrinted) 220 { 221 setValue ("DatePrinted", DatePrinted); 222 } 223 public Timestamp getDatePrinted() 224 { 225 return (Timestamp)getValue("DatePrinted"); 226 } 227 public static final String DELIVERYRULE_AfterReceipt = "R"; 228 public static final String DELIVERYRULE_Availability = "A"; 229 public static final String DELIVERYRULE_CompleteLine = "L"; 230 public static final String DELIVERYRULE_CompleteOrder = "O"; 231 public void setDeliveryRule (String DeliveryRule) 232 { 233 if (DeliveryRule.equals("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O")); 234 else throw new IllegalArgumentException ("DeliveryRule Invalid value - Reference_ID=151 - R - A - L - O"); 235 if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); 236 setValue ("DeliveryRule", DeliveryRule); 237 } 238 public String getDeliveryRule() 239 { 240 return (String )getValue("DeliveryRule"); 241 } 242 public static final String DELIVERYVIARULE_Pickup = "P"; 243 public static final String DELIVERYVIARULE_Delivery = "D"; 244 public static final String DELIVERYVIARULE_Shipper = "S"; 245 public void setDeliveryViaRule (String DeliveryViaRule) 246 { 247 if (DeliveryViaRule.equals("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); 248 else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - Reference_ID=152 - P - D - S"); 249 if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); 250 setValue ("DeliveryViaRule", DeliveryViaRule); 251 } 252 public String getDeliveryViaRule() 253 { 254 return (String )getValue("DeliveryViaRule"); 255 } 256 public void setDescription (String Description) 257 { 258 setValue ("Description", Description); 259 } 260 public String getDescription() 261 { 262 return (String )getValue("Description"); 263 } 264 public static final String DOCACTION_Process = "PR"; 265 public static final String DOCACTION_Unlock = "XL"; 266 public static final String DOCACTION_Complete = "CO"; 267 public static final String DOCACTION_Approve = "AP"; 268 public static final String DOCACTION_Reject = "RJ"; 269 public static final String DOCACTION_Post = "PO"; 270 public static final String DOCACTION_Void = "VO"; 271 public static final String DOCACTION_Close = "CL"; 272 public static final String DOCACTION_ReverseMinusCorrection = "RC"; 273 public static final String DOCACTION_ReverseMinusAccrual = "RA"; 274 public static final String DOCACTION_Transfer = "TR"; 275 public static final String DOCACTION_ReMinusActivate = "RE"; 276 public static final String DOCACTION_LeNoneGt = "--"; 277 void setDocAction (String DocAction) 278 { 279 if (DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("TR") || DocAction.equals("RE") || DocAction.equals("--")); 280 else throw new IllegalArgumentException ("DocAction Invalid value - Reference_ID=135 - PR - XL - CO - AP - RJ - PO - VO - CL - RC - RA - TR - RE - --"); 281 if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); 282 setValueNoCheck ("DocAction", DocAction); 283 } 284 public String getDocAction() 285 { 286 return (String )getValue("DocAction"); 287 } 288 public static final String DOCSTATUS_InProgress = "IP"; 289 public static final String DOCSTATUS_WaitingPayment = "WP"; 290 public static final String DOCSTATUS_Drafted = "DR"; 291 public static final String DOCSTATUS_Completed = "CO"; 292 public static final String DOCSTATUS_Approved = "AP"; 293 public static final String DOCSTATUS_Changed = "CH"; 294 public static final String DOCSTATUS_NotApproved = "NA"; 295 public static final String DOCSTATUS_TransferError = "TE"; 296 public static final String DOCSTATUS_Printed = "PR"; 297 public static final String DOCSTATUS_Transferred = "TR"; 298 public static final String DOCSTATUS_Voided = "VO"; 299 public static final String DOCSTATUS_Inactive = "IN"; 300 public static final String DOCSTATUS_PostingError = "PE"; 301 public static final String DOCSTATUS_Posted = "PO"; 302 public static final String DOCSTATUS_Reversed = "RE"; 303 public static final String DOCSTATUS_Closed = "CL"; 304 public static final String DOCSTATUS_Unknown = "??"; 305 public static final String DOCSTATUS_BeingProcessed = "XX"; 306 void setDocStatus (String DocStatus) 307 { 308 if (DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("CH") || DocStatus.equals("NA") || DocStatus.equals("TE") || DocStatus.equals("PR") || DocStatus.equals("TR") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("PE") || DocStatus.equals("PO") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("XX")); 309 else throw new IllegalArgumentException ("DocStatus Invalid value - Reference_ID=131 - IP - WP - DR - CO - AP - CH - NA - TE - PR - TR - VO - IN - PE - PO - RE - CL - ?? - XX"); 310 if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); 311 setValueNoCheck ("DocStatus", DocStatus); 312 } 313 public String getDocStatus() 314 { 315 return (String )getValue("DocStatus"); 316 } 317 void setDocumentNo (String DocumentNo) 318 { 319 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 320 setValueNoCheck ("DocumentNo", DocumentNo); 321 } 322 public String getDocumentNo() 323 { 324 return (String )getValue("DocumentNo"); 325 } 326 public void setFreightAmt (BigDecimal FreightAmt) 327 { 328 setValue ("FreightAmt", FreightAmt); 329 } 330 public BigDecimal getFreightAmt() 331 { 332 BigDecimal bd = (BigDecimal)getValue("FreightAmt"); 333 if (bd == null) return Env.ZERO; 334 return bd; 335 } 336 public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; 337 public static final String FREIGHTCOSTRULE_FixPrice = "F"; 338 public static final String FREIGHTCOSTRULE_Calculated = "C"; 339 public static final String FREIGHTCOSTRULE_Line = "L"; 340 public void setFreightCostRule (String FreightCostRule) 341 { 342 if (FreightCostRule.equals("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); 343 else throw new IllegalArgumentException ("FreightCostRule Invalid value - Reference_ID=153 - I - F - C - L"); 344 if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); 345 setValue ("FreightCostRule", FreightCostRule); 346 } 347 public String getFreightCostRule() 348 { 349 return (String )getValue("FreightCostRule"); 350 } 351 public void setGenerateTo (String GenerateTo) 352 { 353 setValue ("GenerateTo", GenerateTo); 354 } 355 public String getGenerateTo() 356 { 357 return (String )getValue("GenerateTo"); 358 } 359 public void setIsPrinted (boolean IsPrinted) 360 { 361 setValue ("IsPrinted", new Boolean (IsPrinted)); 362 } 363 public boolean isPrinted() 364 { 365 Boolean bb = (Boolean )getValue("IsPrinted"); 366 if (bb != null) return bb.booleanValue(); 367 return false; 368 } 369 public void setIsSOTrx (boolean IsSOTrx) 370 { 371 setValue ("IsSOTrx", new Boolean (IsSOTrx)); 372 } 373 public boolean isSOTrx() 374 { 375 Boolean bb = (Boolean )getValue("IsSOTrx"); 376 if (bb != null) return bb.booleanValue(); 377 return false; 378 } 379 void setM_InOut_ID (int M_InOut_ID) 380 { 381 setValueNoCheck ("M_InOut_ID", new Integer (M_InOut_ID)); 382 } 383 public int getM_InOut_ID() 384 { 385 Integer ii = (Integer )getValue("M_InOut_ID"); 386 if (ii == null) return 0; 387 return ii.intValue(); 388 } 389 public void setM_Shipper_ID (int M_Shipper_ID) 390 { 391 if (M_Shipper_ID == 0) setValue ("M_Shipper_ID", null); 392 else 393 setValue ("M_Shipper_ID", new Integer (M_Shipper_ID)); 394 } 395 public int getM_Shipper_ID() 396 { 397 Integer ii = (Integer )getValue("M_Shipper_ID"); 398 if (ii == null) return 0; 399 return ii.intValue(); 400 } 401 public void setM_Warehouse_ID (int M_Warehouse_ID) 402 { 403 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 404 } 405 public int getM_Warehouse_ID() 406 { 407 Integer ii = (Integer )getValue("M_Warehouse_ID"); 408 if (ii == null) return 0; 409 return ii.intValue(); 410 } 411 public void setMovementDate (Timestamp MovementDate) 412 { 413 if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory"); 414 setValue ("MovementDate", MovementDate); 415 } 416 public Timestamp getMovementDate() 417 { 418 return (Timestamp)getValue("MovementDate"); 419 } 420 public static final String MOVEMENTTYPE_ProductionPlus = "P+"; 421 public static final String MOVEMENTTYPE_ProductionMinus = "P-"; 422 public static final String MOVEMENTTYPE_CustomerShipment = "C-"; 423 public static final String MOVEMENTTYPE_CustomerReturns = "C+"; 424 public static final String MOVEMENTTYPE_VendorReceipts = "V+"; 425 public static final String MOVEMENTTYPE_VendorReturns = "V-"; 426 public static final String MOVEMENTTYPE_InventoryOut = "I-"; 427 public static final String MOVEMENTTYPE_InventoryIn = "I+"; 428 public static final String MOVEMENTTYPE_MovementFrom = "M-"; 429 public static final String MOVEMENTTYPE_MovementTo = "M+"; 430 public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; 431 public static final String MOVEMENTTYPE_WorkOrderMinus = "W-"; 432 void setMovementType (String MovementType) 433 { 434 if (MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("C-") || MovementType.equals("C+") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("I-") || MovementType.equals("I+") || MovementType.equals("M-") || MovementType.equals("M+") || MovementType.equals("W+") || MovementType.equals("W-")); 435 else throw new IllegalArgumentException ("MovementType Invalid value - Reference_ID=189 - P+ - P- - C- - C+ - V+ - V- - I- - I+ - M- - M+ - W+ - W-"); 436 if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); 437 setValueNoCheck ("MovementType", MovementType); 438 } 439 public String getMovementType() 440 { 441 return (String )getValue("MovementType"); 442 } 443 public void setNoPackages (int NoPackages) 444 { 445 setValue ("NoPackages", new Integer (NoPackages)); 446 } 447 public int getNoPackages() 448 { 449 Integer ii = (Integer )getValue("NoPackages"); 450 if (ii == null) return 0; 451 return ii.intValue(); 452 } 453 public void setPOReference (String POReference) 454 { 455 setValue ("POReference", POReference); 456 } 457 public String getPOReference() 458 { 459 return (String )getValue("POReference"); 460 } 461 public void setPickDate (Timestamp PickDate) 462 { 463 setValue ("PickDate", PickDate); 464 } 465 public Timestamp getPickDate() 466 { 467 return (Timestamp)getValue("PickDate"); 468 } 469 public void setPosted (boolean Posted) 470 { 471 setValue ("Posted", new Boolean (Posted)); 472 } 473 public boolean isPosted() 474 { 475 Boolean bb = (Boolean )getValue("Posted"); 476 if (bb != null) return bb.booleanValue(); 477 return false; 478 } 479 public static final String PRIORITYRULE_High = "3"; 480 public static final String PRIORITYRULE_Medium = "5"; 481 public static final String PRIORITYRULE_Low = "7"; 482 public void setPriorityRule (String PriorityRule) 483 { 484 if (PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7")); 485 else throw new IllegalArgumentException ("PriorityRule Invalid value - Reference_ID=154 - 3 - 5 - 7"); 486 if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); 487 setValue ("PriorityRule", PriorityRule); 488 } 489 public String getPriorityRule() 490 { 491 return (String )getValue("PriorityRule"); 492 } 493 public void setProcessed (boolean Processed) 494 { 495 setValue ("Processed", new Boolean (Processed)); 496 } 497 public boolean isProcessed() 498 { 499 Boolean bb = (Boolean )getValue("Processed"); 500 if (bb != null) return bb.booleanValue(); 501 return false; 502 } 503 public void setProcessing (String Processing) 504 { 505 setValue ("Processing", Processing); 506 } 507 public String getProcessing() 508 { 509 return (String )getValue("Processing"); 510 } 511 public void setSalesRep_ID (int SalesRep_ID) 512 { 513 if (SalesRep_ID == 0) setValue ("SalesRep_ID", null); 514 else 515 setValue ("SalesRep_ID", new Integer (SalesRep_ID)); 516 } 517 public int getSalesRep_ID() 518 { 519 Integer ii = (Integer )getValue("SalesRep_ID"); 520 if (ii == null) return 0; 521 return ii.intValue(); 522 } 523 public void setSendEMail (boolean SendEMail) 524 { 525 setValue ("SendEMail", new Boolean (SendEMail)); 526 } 527 public boolean isSendEMail() 528 { 529 Boolean bb = (Boolean )getValue("SendEMail"); 530 if (bb != null) return bb.booleanValue(); 531 return false; 532 } 533 public void setShipDate (Timestamp ShipDate) 534 { 535 setValue ("ShipDate", ShipDate); 536 } 537 public Timestamp getShipDate() 538 { 539 return (Timestamp)getValue("ShipDate"); 540 } 541 public void setTrackingNo (String TrackingNo) 542 { 543 setValue ("TrackingNo", TrackingNo); 544 } 545 public String getTrackingNo() 546 { 547 return (String )getValue("TrackingNo"); 548 } 549 public void setUser1_ID (int User1_ID) 550 { 551 if (User1_ID == 0) setValue ("User1_ID", null); 552 else 553 setValue ("User1_ID", new Integer (User1_ID)); 554 } 555 public int getUser1_ID() 556 { 557 Integer ii = (Integer )getValue("User1_ID"); 558 if (ii == null) return 0; 559 return ii.intValue(); 560 } 561 public void setUser2_ID (int User2_ID) 562 { 563 if (User2_ID == 0) setValue ("User2_ID", null); 564 else 565 setValue ("User2_ID", new Integer (User2_ID)); 566 } 567 public int getUser2_ID() 568 { 569 Integer ii = (Integer )getValue("User2_ID"); 570 if (ii == null) return 0; 571 return ii.intValue(); 572 } 573 } 574 | Popular Tags |