|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_C_UOM
org.compiere.model.MUOM
public class MUOM
Unit Of Measure Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_C_UOM |
|---|
accessLevel, COLUMNNAME_C_UOM_ID, COLUMNNAME_CostingPrecision, COLUMNNAME_Description, COLUMNNAME_IsDefault, COLUMNNAME_Name, COLUMNNAME_StdPrecision, COLUMNNAME_UOMSymbol, COLUMNNAME_X12DE355, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MUOM(Properties ctx,
int C_UOM_ID,
String trxName)
Constructor. |
|
MUOM(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor. |
|
| Method Summary | |
|---|---|
static MUOM |
get(Properties ctx,
int C_UOM_ID)
Get UOM from Cache |
static MUOM |
get(Properties ctx,
String name,
String trxName)
Get UOM by name |
static int |
getDefault_UOM_ID(Properties ctx)
Get Default C_UOM_ID |
static int |
getMinute_UOM_ID(Properties ctx)
Get Minute C_UOM_ID |
static int |
getPrecision(Properties ctx,
int C_UOM_ID)
Get Precision |
boolean |
isDay()
Day |
boolean |
isHour()
Hour |
boolean |
isMinute()
Minute |
boolean |
isMonth()
Month |
boolean |
isWeek()
Week |
boolean |
isWorkDay()
WorkDay |
boolean |
isWorkMonth()
WorkMonth |
boolean |
isYear()
Year |
BigDecimal |
round(BigDecimal qty,
boolean stdPrecision)
Round qty |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_C_UOM |
|---|
get_AccessLevel, getC_UOM_ID, getCostingPrecision, getDescription, getKeyNamePair, getName, getStdPrecision, getUOMSymbol, getX12DE355, initPO, isDefault, setC_UOM_ID, setCostingPrecision, setDescription, setIsDefault, setName, setStdPrecision, setUOMSymbol, setX12DE355 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MUOM(Properties ctx,
int C_UOM_ID,
String trxName)
ctx - contextC_UOM_ID - UOM IDtrxName - transaction
public MUOM(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static int getMinute_UOM_ID(Properties ctx)
ctx - context
public static int getDefault_UOM_ID(Properties ctx)
ctx - context for AD_Client
public static MUOM get(Properties ctx,
int C_UOM_ID)
ctx - contextC_UOM_ID - ID
public static MUOM get(Properties ctx,
String name,
String trxName)
ctx - name - trxName -
public static int getPrecision(Properties ctx,
int C_UOM_ID)
ctx - contextC_UOM_ID - ID
public String toString()
toString in class X_C_UOM
public BigDecimal round(BigDecimal qty,
boolean stdPrecision)
qty - quantitystdPrecision - true if std precisison
public boolean isMinute()
public boolean isHour()
public boolean isDay()
public boolean isWorkDay()
public boolean isWeek()
public boolean isMonth()
public boolean isWorkMonth()
public boolean isYear()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||