[ 1672618 ] Enable processes to run silently

This commit is contained in:
deathmeat 2007-03-20 16:42:52 +00:00
parent d60eebced2
commit 03ae86128f
3 changed files with 36 additions and 30 deletions

View File

@ -253,6 +253,11 @@ public class ProcessDialog extends CFrame
// anyway show resulting window // anyway show resulting window
} }
} }
// Check if the process is a silent one
if(m_ShowHelp != null && m_ShowHelp.equals("S"))
bOK.doClick();
dialog.revalidate(); dialog.revalidate();
return true; return true;
} // init } // init
@ -320,6 +325,10 @@ public class ProcessDialog extends CFrame
// Close automatically // Close automatically
if (m_IsReport && !pi.isError()) if (m_IsReport && !pi.isError())
bOK.doClick(); bOK.doClick();
// If the process is a silent one and no errors occured, close the dialog
if(m_ShowHelp != null && m_ShowHelp.equals("S"))
bOK.doClick();
} // unlockUI } // unlockUI
/** /**

View File

@ -475,24 +475,23 @@ public class ProcessParameter extends CDialog
return m_isOK; return m_isOK;
} // isOK } // isOK
/** deathmeat: POSTPONED TO END OF BUG FIXING BEFORE 3.2 */ public void setVisible(boolean b)
// public void setVisible(boolean b) {
// { MProcess m_process = new MProcess(Env.getCtx(),
// MProcess m_process = new MProcess(Env.getCtx(), m_processInfo.getAD_Process_ID(), null);
// m_processInfo.getAD_Process_ID(), null); if(m_process.getShowHelp() != null && m_process.getShowHelp().equals("S"))
// if(m_process.getShowHelp() != null && m_process.getShowHelp().equals("S")) {
// { // It is defined as a silent process
// // It is defined as a silent process if(saveParameters())
// if(saveParameters()) {
// { m_isOK = true;
// m_isOK = true; dispose();
// dispose(); }
// } }
// } else
// else {
// { // Not a silent process
// // Not a silent process super.setVisible(b);
// super.setVisible(b); }
// } }
// }
} // ProcessParameter } // ProcessParameter

View File

@ -1,11 +1,9 @@
-- POSTPONED TO END OF BUG FIXING BEFORE 3.2 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');
-- Insert into "AD_REF_LIST" COMMIT;
-- ("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;