|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_C_UOM
org.compiere.model.MUOM
public class MUOM
Unit Of Measure Model
| Field Summary | |
|---|---|
static int |
Each_ID
C_UOM_ID for Each |
| Fields inherited from class org.compiere.model.X_C_UOM |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MUOM(Ctx ctx,
int C_UOM_ID,
String trxName)
Constructor. |
|
MUOM(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor. |
|
| Method Summary | |
|---|---|
static MUOM |
get(Ctx ctx,
int C_UOM_ID)
Get UOM from Cache |
static int |
getDefault_UOM_ID(Ctx ctx)
Get Default C_UOM_ID |
static int |
getMinute_UOM_ID(Ctx ctx)
Get Minute C_UOM_ID |
static int |
getPrecision(Ctx 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, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int Each_ID
| Constructor Detail |
|---|
public MUOM(Ctx ctx,
int C_UOM_ID,
String trxName)
ctx - contextC_UOM_ID - UOM IDtrxName - transaction
public MUOM(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static int getMinute_UOM_ID(Ctx ctx)
ctx - context
public static int getDefault_UOM_ID(Ctx ctx)
ctx - context for AD_Client
public static MUOM get(Ctx ctx,
int C_UOM_ID)
ctx - contextC_UOM_ID - ID
public static int getPrecision(Ctx 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()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||