📄 x_a_asset.java
字号:
{
Object oo = get_Value("IsOwned");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Last Maintenance.
Last Maintenance Date */
public void setLastMaintenanceDate (Timestamp LastMaintenanceDate)
{
set_Value ("LastMaintenanceDate", LastMaintenanceDate);
}
/** Get Last Maintenance.
Last Maintenance Date */
public Timestamp getLastMaintenanceDate()
{
return (Timestamp)get_Value("LastMaintenanceDate");
}
/** Set Last Note.
Last Maintenance Note */
public void setLastMaintenanceNote (String LastMaintenanceNote)
{
if (LastMaintenanceNote != null && LastMaintenanceNote.length() > 60)
{
log.warning("Length > 60 - truncated");
LastMaintenanceNote = LastMaintenanceNote.substring(0,59);
}
set_Value ("LastMaintenanceNote", LastMaintenanceNote);
}
/** Get Last Note.
Last Maintenance Note */
public String getLastMaintenanceNote()
{
return (String)get_Value("LastMaintenanceNote");
}
/** Set Last Unit.
Last Maintenance Unit */
public void setLastMaintenanceUnit (int LastMaintenanceUnit)
{
set_Value ("LastMaintenanceUnit", new Integer(LastMaintenanceUnit));
}
/** Get Last Unit.
Last Maintenance Unit */
public int getLastMaintenanceUnit()
{
Integer ii = (Integer)get_Value("LastMaintenanceUnit");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Lease Termination.
Lease Termination Date */
public void setLeaseTerminationDate (Timestamp LeaseTerminationDate)
{
set_Value ("LeaseTerminationDate", LeaseTerminationDate);
}
/** Get Lease Termination.
Lease Termination Date */
public Timestamp getLeaseTerminationDate()
{
return (Timestamp)get_Value("LeaseTerminationDate");
}
/** Lease_BPartner_ID AD_Reference_ID=192 */
public static final int LEASE_BPARTNER_ID_AD_Reference_ID=192;
/** Set Lessor.
The Business Partner who rents or leases */
public void setLease_BPartner_ID (int Lease_BPartner_ID)
{
if (Lease_BPartner_ID <= 0) set_Value ("Lease_BPartner_ID", null);
else
set_Value ("Lease_BPartner_ID", new Integer(Lease_BPartner_ID));
}
/** Get Lessor.
The Business Partner who rents or leases */
public int getLease_BPartner_ID()
{
Integer ii = (Integer)get_Value("Lease_BPartner_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Life use.
Units of use until the asset is not usable anymore */
public void setLifeUseUnits (int LifeUseUnits)
{
set_Value ("LifeUseUnits", new Integer(LifeUseUnits));
}
/** Get Life use.
Units of use until the asset is not usable anymore */
public int getLifeUseUnits()
{
Integer ii = (Integer)get_Value("LifeUseUnits");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Location comment.
Additional comments or remarks concerning the location */
public void setLocationComment (String LocationComment)
{
if (LocationComment != null && LocationComment.length() > 255)
{
log.warning("Length > 255 - truncated");
LocationComment = LocationComment.substring(0,254);
}
set_Value ("LocationComment", LocationComment);
}
/** Get Location comment.
Additional comments or remarks concerning the location */
public String getLocationComment()
{
return (String)get_Value("LocationComment");
}
/** Set Lot No.
Lot number (alphanumeric) */
public void setLot (String Lot)
{
if (Lot != null && Lot.length() > 255)
{
log.warning("Length > 255 - truncated");
Lot = Lot.substring(0,254);
}
set_Value ("Lot", Lot);
}
/** Get Lot No.
Lot number (alphanumeric) */
public String getLot()
{
return (String)get_Value("Lot");
}
/** Set Attribute Set Instance.
Product Attribute Set Instance */
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory.");
set_ValueNoCheck ("M_AttributeSetInstance_ID", new Integer(M_AttributeSetInstance_ID));
}
/** Get Attribute Set Instance.
Product Attribute Set Instance */
public int getM_AttributeSetInstance_ID()
{
Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Shipment/Receipt Line.
Line on Shipment or Receipt document */
public void setM_InOutLine_ID (int M_InOutLine_ID)
{
if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null);
else
set_Value ("M_InOutLine_ID", new Integer(M_InOutLine_ID));
}
/** Get Shipment/Receipt Line.
Line on Shipment or Receipt document */
public int getM_InOutLine_ID()
{
Integer ii = (Integer)get_Value("M_InOutLine_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Locator.
Warehouse Locator */
public void setM_Locator_ID (int M_Locator_ID)
{
if (M_Locator_ID <= 0) set_Value ("M_Locator_ID", null);
else
set_Value ("M_Locator_ID", new Integer(M_Locator_ID));
}
/** Get Locator.
Warehouse Locator */
public int getM_Locator_ID()
{
Integer ii = (Integer)get_Value("M_Locator_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Product.
Product, Service, Item */
public void setM_Product_ID (int M_Product_ID)
{
if (M_Product_ID <= 0) set_ValueNoCheck ("M_Product_ID", null);
else
set_ValueNoCheck ("M_Product_ID", new Integer(M_Product_ID));
}
/** Get Product.
Product, Service, Item */
public int getM_Product_ID()
{
Integer ii = (Integer)get_Value("M_Product_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Name.
Alphanumeric identifier of the entity */
public void setName (String Name)
{
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0,59);
}
set_Value ("Name", Name);
}
/** Get Name.
Alphanumeric identifier of the entity */
public String getName()
{
return (String)get_Value("Name");
}
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Next Maintenence.
Next Maintenence Date */
public void setNextMaintenenceDate (Timestamp NextMaintenenceDate)
{
set_Value ("NextMaintenenceDate", NextMaintenenceDate);
}
/** Get Next Maintenence.
Next Maintenence Date */
public Timestamp getNextMaintenenceDate()
{
return (Timestamp)get_Value("NextMaintenenceDate");
}
/** Set Next Unit.
Next Maintenence Unit */
public void setNextMaintenenceUnit (int NextMaintenenceUnit)
{
set_Value ("NextMaintenenceUnit", new Integer(NextMaintenenceUnit));
}
/** Get Next Unit.
Next Maintenence Unit */
public int getNextMaintenenceUnit()
{
Integer ii = (Integer)get_Value("NextMaintenenceUnit");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Quantity.
Quantity */
public void setQty (BigDecimal Qty)
{
set_Value ("Qty", Qty);
}
/** Get Quantity.
Quantity */
public BigDecimal getQty()
{
BigDecimal bd = (BigDecimal)get_Value("Qty");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Serial No.
Product Serial Number */
public void setSerNo (String SerNo)
{
if (SerNo != null && SerNo.length() > 255)
{
log.warning("Length > 255 - truncated");
SerNo = SerNo.substring(0,254);
}
set_Value ("SerNo", SerNo);
}
/** Get Serial No.
Product Serial Number */
public String getSerNo()
{
return (String)get_Value("SerNo");
}
/** Set Usable Life - Months.
Months of the usable life of the asset */
public void setUseLifeMonths (int UseLifeMonths)
{
set_Value ("UseLifeMonths", new Integer(UseLifeMonths));
}
/** Get Usable Life - Months.
Months of the usable life of the asset */
public int getUseLifeMonths()
{
Integer ii = (Integer)get_Value("UseLifeMonths");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Usable Life - Years.
Years of the usable life of the asset */
public void setUseLifeYears (int UseLifeYears)
{
set_Value ("UseLifeYears", new Integer(UseLifeYears));
}
/** Get Usable Life - Years.
Years of the usable life of the asset */
public int getUseLifeYears()
{
Integer ii = (Integer)get_Value("UseLifeYears");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Use units.
Currently used units of the assets */
public void setUseUnits (int UseUnits)
{
set_ValueNoCheck ("UseUnits", new Integer(UseUnits));
}
/** Get Use units.
Currently used units of the assets */
public int getUseUnits()
{
Integer ii = (Integer)get_Value("UseUnits");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Search Key.
Search key for the record in the format required - must be unique */
public void setValue (String Value)
{
if (Value == null) throw new IllegalArgumentException ("Value is mandatory.");
if (Value.length() > 40)
{
log.warning("Length > 40 - truncated");
Value = Value.substring(0,39);
}
set_Value ("Value", Value);
}
/** Get Search Key.
Search key for the record in the format required - must be unique */
public String getValue()
{
return (String)get_Value("Value");
}
/** Set Version No.
Version Number */
public void setVersionNo (String VersionNo)
{
if (VersionNo != null && VersionNo.length() > 20)
{
log.warning("Length > 20 - truncated");
VersionNo = VersionNo.substring(0,19);
}
set_Value ("VersionNo", VersionNo);
}
/** Get Version No.
Version Number */
public String getVersionNo()
{
return (String)get_Value("VersionNo");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -