Print button while creating a new document - ID: 2858657
This commit is contained in:
parent
3f2838856d
commit
5ed5ca144f
|
@ -19,6 +19,7 @@ package org.compiere.print;
|
|||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.compiere.apps.ADialog;
|
||||
import org.compiere.apps.ProcessCtl;
|
||||
import org.compiere.model.MPaySelectionCheck;
|
||||
|
@ -30,6 +31,8 @@ import org.compiere.process.ProcessInfo;
|
|||
import org.compiere.util.ASyncProcess;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Ini;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
|
||||
/**
|
||||
* Report Controller.
|
||||
|
@ -254,7 +257,10 @@ public class ReportCtl
|
|||
ReportEngine re = ReportEngine.get (Env.getCtx(), type, Record_ID);
|
||||
if (re == null)
|
||||
{
|
||||
ADialog.error(0, null, "NoDocPrintFormat");
|
||||
if(Ini.isClient())
|
||||
ADialog.error(0, null, "NoDocPrintFormat");
|
||||
else
|
||||
FDialog.error(0, (Component) null, "NoDocPrintFormat");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue