use of org.compiere.process.ProcessInfoParameter in project adempiere by adempiere.
the class IndentedBOM method prepare.
protected void prepare() {
for (ProcessInfoParameter para : getParameter()) {
String name = para.getParameterName();
if (para.getParameter() == null)
;
else if (name.equals(MCost.COLUMNNAME_C_AcctSchema_ID)) {
p_C_AcctSchema_ID = para.getParameterAsInt();
m_as = MAcctSchema.get(getCtx(), p_C_AcctSchema_ID);
} else if (name.equals(MCost.COLUMNNAME_M_CostElement_ID)) {
p_M_CostElement_ID = para.getParameterAsInt();
} else if (name.equals(MCost.COLUMNNAME_M_Product_ID))
p_M_Product_ID = para.getParameterAsInt();
else
log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name);
}
}
use of org.compiere.process.ProcessInfoParameter in project adempiere by adempiere.
the class ViewCopyFrom method prepare.
/**
* Get Parameters
*/
protected void prepare() {
p_Record_ID = getRecord_ID();
ProcessInfoParameter[] parameters = getParameter();
for (ProcessInfoParameter para : parameters) {
String name = para.getParameterName();
if (para.getParameter() == null)
;
if (MView.COLUMNNAME_AD_View_ID.equals(para.getParameterName()))
p_AD_View_ID = para.getParameterAsInt();
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
}
use of org.compiere.process.ProcessInfoParameter in project adempiere by adempiere.
the class CreateViewColumn method prepare.
/**
* Get Parameters
*/
protected void prepare() {
p_Record_ID = getRecord_ID();
ProcessInfoParameter[] parameters = getParameter();
for (ProcessInfoParameter para : parameters) {
String name = para.getParameterName();
if (para.getParameter() == null)
;
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
}
use of org.compiere.process.ProcessInfoParameter in project adempiere by adempiere.
the class BrowseCopyFrom method prepare.
/**
* Get Parameters
*/
protected void prepare() {
p_Record_ID = getRecord_ID();
ProcessInfoParameter[] parameters = getParameter();
for (ProcessInfoParameter para : parameters) {
String name = para.getParameterName();
if (para.getParameter() == null)
;
if (MBrowse.COLUMNNAME_AD_Browse_ID.equals(para.getParameterName()))
p_AD_Browse_ID = para.getParameterAsInt();
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
}
use of org.compiere.process.ProcessInfoParameter in project adempiere by adempiere.
the class CreatePeriods method prepare.
/**
* Prepare
*/
protected void prepare() {
for (ProcessInfoParameter para : getParameter()) {
String name = para.getParameterName();
if (para.getParameter() == null)
;
else if (name.equals("StartDate"))
p_StartDate = (Timestamp) para.getParameter();
else if (name.equals("NoPeriods"))
p_NoPeriods = para.getParameterAsInt();
else if (name.equals("DateFormat"))
p_DateFormat = (String) para.getParameter();
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
p_M_PeriodDefinition_ID = getRecord_ID();
}
Aggregations