BF[1897842] JasperReport - no procedure defined

This commit is contained in:
tspc 2008-03-14 13:31:53 +00:00
parent 125e7fbbcc
commit b4b1dc934f
1 changed files with 725 additions and 732 deletions

View File

@ -413,39 +413,32 @@ public class ProcessCtl implements Runnable
} }
} }
// If not a report, we need a prodedure name /**********************************************************************
if (!IsReport && ProcedureName.length() == 0) * Report submission
*/
// Optional Pre-Report Process
if (ProcedureName.length() > 0)
{ {
m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure"), true); m_pi.setReportingProcess(true);
if (!startDBProcess(ProcedureName))
{
unlock();
return;
}
} // Pre-Report
if (isJasper)
{
m_pi.setReportingProcess(true);
m_pi.setClassName(ProcessUtil.JASPER_STARTER_CLASS);
startProcess();
unlock(); unlock();
return; return;
} }
/**********************************************************************
* Report submission
*/
if (IsReport) if (IsReport)
{ {
m_pi.setReportingProcess(true); m_pi.setReportingProcess(true);
// Optional Pre-Report Process
if (ProcedureName.length() > 0)
{
if (!startDBProcess(ProcedureName))
{
unlock();
return;
}
} // Pre-Report
if (isJasper)
{
m_pi.setClassName(ProcessUtil.JASPER_STARTER_CLASS);
startProcess();
unlock();
return;
}
// Start Report ----------------------------------------------- // Start Report -----------------------------------------------
boolean ok = ReportCtl.start(m_parent, windowno, m_pi, IsDirectPrint); boolean ok = ReportCtl.start(m_parent, windowno, m_pi, IsDirectPrint);
m_pi.setSummary("Report", !ok); m_pi.setSummary("Report", !ok);