PInstanceProcessData.insertPInstanceParam(this, pinstance, "10", "cheaper", strcheaper, vars.getClient(), vars.getOrg(), vars.getUser());
String strcalcQty = vars.getStringParameter("inpcalcQty", "N");
PInstanceProcessData.insertPInstanceParam(this, pinstance, "20", "calc_qty", strcalcQty, vars.getClient(), vars.getOrg(), vars.getUser());
ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
new ProcessRunner(bundle).execute(this);
PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
} catch (ServletException ex) {
myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
if (!myMessage.isConnectionAvailable()) {
bdErrorConnection(response);
return;
} else vars.setMessage(tabId, myMessage);
}
//close popup
if (myMessage!=null) {
if (log4j.isDebugEnabled()) log4j.debug(myMessage.getMessage());
vars.setMessage(tabId, myMessage);
}
printPageClosePopUp(response, vars);
} else if (vars.commandIn("SAVE_BUTTONGenerateTo154")) {
String strM_InOut_ID = vars.getGlobalVariable("inpKey", windowId + "|M_InOut_ID", "");
@SuppressWarnings("unused")
String strgenerateto = vars.getStringParameter("inpgenerateto");
String strProcessing = vars.getStringParameter("inpprocessing");
OBError myMessage = null;
try {
String pinstance = SequenceIdData.getUUID();
PInstanceProcessData.insertPInstance(this, pinstance, "154", (("M_InOut_ID".equalsIgnoreCase("AD_Language"))?"0":strM_InOut_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
String strmPricelistVersionId = vars.getStringParameter("inpmPricelistVersionId");
PInstanceProcessData.insertPInstanceParam(this, pinstance, "10", "M_Pricelist_Version_ID", strmPricelistVersionId, vars.getClient(), vars.getOrg(), vars.getUser());
ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
new ProcessRunner(bundle).execute(this);
PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
} catch (ServletException ex) {
myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
if (!myMessage.isConnectionAvailable()) {
bdErrorConnection(response);
return;
} else vars.setMessage(tabId, myMessage);
}
//close popup
if (myMessage!=null) {
if (log4j.isDebugEnabled()) log4j.debug(myMessage.getMessage());
vars.setMessage(tabId, myMessage);
}
printPageClosePopUp(response, vars);
} else if (vars.commandIn("SAVE_BUTTONDocAction109")) {
String strM_InOut_ID = vars.getGlobalVariable("inpKey", windowId + "|M_InOut_ID", "");
@SuppressWarnings("unused")
String strdocaction = vars.getStringParameter("inpdocaction");
String strProcessing = vars.getStringParameter("inpprocessing");
OBError myMessage = null;
try {
String pinstance = SequenceIdData.getUUID();
PInstanceProcessData.insertPInstance(this, pinstance, "109", (("M_InOut_ID".equalsIgnoreCase("AD_Language"))?"0":strM_InOut_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
HeaderData.updateDocAction(this, strdocaction, strM_InOut_ID);
ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
new ProcessRunner(bundle).execute(this);
PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
} catch (ServletException ex) {