From 221be72ff62eb94c855af92f06830e689d724374 Mon Sep 17 00:00:00 2001 From: deathmeat Date: Fri, 2 Mar 2007 19:03:47 +0000 Subject: [PATCH] [ 1672618 ] Enable processes to run silently --- .../org/compiere/apps/ProcessParameter.java | 20 +++++++++++++++++++ .../315-trunk/001_allow_silent_processes.sql | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 migration/315-trunk/001_allow_silent_processes.sql diff --git a/client/src/org/compiere/apps/ProcessParameter.java b/client/src/org/compiere/apps/ProcessParameter.java index b3a1835318..2aa017806e 100644 --- a/client/src/org/compiere/apps/ProcessParameter.java +++ b/client/src/org/compiere/apps/ProcessParameter.java @@ -475,4 +475,24 @@ public class ProcessParameter extends CDialog return m_isOK; } // isOK + public void setVisible(boolean b) + { + MProcess m_process = new MProcess(Env.getCtx(), + m_processInfo.getAD_Process_ID(), null); + if(m_process.getShowHelp() != null && m_process.getShowHelp().equals("S")) + { + // It is defined as a silent process + if(saveParameters()) + { + m_isOK = true; + dispose(); + } + } + else + { + // Not a silent process + super.setVisible(b); + } + } + } // ProcessParameter diff --git a/migration/315-trunk/001_allow_silent_processes.sql b/migration/315-trunk/001_allow_silent_processes.sql new file mode 100644 index 0000000000..ca9ccc393d --- /dev/null +++ b/migration/315-trunk/001_allow_silent_processes.sql @@ -0,0 +1,9 @@ +Insert into "AD_REF_LIST" + ("AD_REF_LIST_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY", + "UPDATED","UPDATEDBY","VALUE","NAME","DESCRIPTION","AD_REFERENCE_ID","VALIDFROM", + "VALIDTO","ENTITYTYPE") + values + (50040,0,0,'Y',to_date('02.03.07','DD.MM.RR'),0,to_date('02.03.07','DD.MM.RR'), + 0,'S','Run silently - Take Defaults',null,50007,null,null,'D'); + +COMMIT;