Package org.openbravo.erpCommon.utility
Class AttributeSetInstanceValue
- java.lang.Object
-
- org.openbravo.erpCommon.utility.AttributeSetInstanceValue
-
public class AttributeSetInstanceValue extends Object
Create a new attribute set instance value.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Logger
log4j
-
Constructor Summary
Constructors Constructor Description AttributeSetInstanceValue()
AttributeSetInstanceValue(String strlot, String strserno, String strguaranteedate, String strlocked, String strlockDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttSetInstanceId()
String
getGuaranteeDate()
String
getLockDescription()
String
getLocked()
String
getLot()
protected String
getNextLotNumber(ConnectionProvider conProv, VariablesSecureApp vars, String lotControlId, Connection conn)
Obtains next lot number and updates its sequenceprotected String
getNextSerialNumber(ConnectionProvider conProv, VariablesSecureApp vars, String mSernoctlId, Connection conn)
Obtains next serial number and updates its sequenceString
getSerialNumber()
OBError
setAttributeInstance(ConnectionProvider conProv, VariablesSecureApp vars, String strAttributeSet, String strInstance, String strWindow, String strIsSOTrx, String strProduct, Map<String,String> attributeValues)
Checks if the record has attachments associated.OBError
setAttributeInstance(ConnectionProvider conProv, VariablesSecureApp vars, String strAttributeSet, String strInstance, String strWindow, String strIsSOTrx, String strProduct, Map<String,String> attributeValues, Organization organization)
Checks if the record has attachments associated.void
setGuaranteeDate(String _data)
void
setLockDescription(String _data)
void
setLocked(String _data)
void
setLot(String _data)
void
setSerialNumber(String _data)
-
-
-
Method Detail
-
setLot
public void setLot(String _data)
-
getLot
public String getLot()
-
setSerialNumber
public void setSerialNumber(String _data)
-
getSerialNumber
public String getSerialNumber()
-
setGuaranteeDate
public void setGuaranteeDate(String _data)
-
getGuaranteeDate
public String getGuaranteeDate()
-
setLockDescription
public void setLockDescription(String _data)
-
getLockDescription
public String getLockDescription()
-
setLocked
public void setLocked(String _data)
-
getLocked
public String getLocked()
-
getAttSetInstanceId
public String getAttSetInstanceId()
-
setAttributeInstance
public OBError setAttributeInstance(ConnectionProvider conProv, VariablesSecureApp vars, String strAttributeSet, String strInstance, String strWindow, String strIsSOTrx, String strProduct, Map<String,String> attributeValues, Organization organization) throws javax.servlet.ServletException
Checks if the record has attachments associated.- Parameters:
conProv
- Handler for the database connection.vars
- Handler for the session info.strAttributeSet
- String with the record attributeSetId.strInstance
- String with the instanceId.strWindow
- String with the windowId.strIsSOTrx
- String with the isSotrx.strProduct
- String with the productId.attributeValues
- Map with the attribute values.organization
- Organization for the attribute set instance.- Returns:
- OBError with the result.
- Throws:
javax.servlet.ServletException
-
getNextSerialNumber
protected String getNextSerialNumber(ConnectionProvider conProv, VariablesSecureApp vars, String mSernoctlId, Connection conn) throws javax.servlet.ServletException
Obtains next serial number and updates its sequence- Throws:
javax.servlet.ServletException
-
getNextLotNumber
protected String getNextLotNumber(ConnectionProvider conProv, VariablesSecureApp vars, String lotControlId, Connection conn) throws javax.servlet.ServletException
Obtains next lot number and updates its sequence- Throws:
javax.servlet.ServletException
-
setAttributeInstance
public OBError setAttributeInstance(ConnectionProvider conProv, VariablesSecureApp vars, String strAttributeSet, String strInstance, String strWindow, String strIsSOTrx, String strProduct, Map<String,String> attributeValues) throws javax.servlet.ServletException
Checks if the record has attachments associated.- Parameters:
conProv
- Handler for the database connection.vars
- Handler for the session info.strAttributeSet
- String with the record attributeSetId.strInstance
- String with the instanceId.strWindow
- String with the windowId.strIsSOTrx
- String with the isSotrx.strProduct
- String with the productId.attributeValues
- Map with the attribute values.- Returns:
- OBError with the result.
- Throws:
javax.servlet.ServletException
-
-