} // create /// <summary> /// Start Standard Report. /// - Get Table Info & submit /// </summary> /// <param name="ctx">Context</param> /// <param name="pi">Process Info</param> /// <param name="IsDirectPrint">if true, prints directly - otherwise View</param> /// <returns>true if OK</returns> static public ReportEngine_N StartStandardReport(Ctx ctx, ProcessInfo pi, bool IsDirectPrint) { ReportEngine_N re = ReportEngine_N.Get(ctx, pi); if (re == null) { pi.SetSummary("");//No ReportEngine_N"); s_log.Log(Level.SEVERE, "No ReportEngine_N"); return(null); } if (IsDirectPrint) { re.Print(); } return(re); } // startStandardReport
} // startFinReport /// <summary> /// Start Document Print for Type. Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint /// </summary> /// <param name="ctx">document type in ReportEngine</param> /// <param name="type"></param> /// <param name="Record_ID"></param> /// <param name="IsDirectPrint">if true, prints directly - otherwise View</param> /// <param name="IsShowError"></param> /// <returns>true if success</returns> public static ReportEngine_N StartDocumentPrint(Ctx ctx, int type, int Record_ID, bool IsDirectPrint, bool IsShowError) { ReportEngine_N re = ReportEngine_N.Get(ctx, type, Record_ID); if (re == null) { //if (IsShowError) // ShowMessage.Error("NoDocPrintFormat", true); return(null); } if (IsDirectPrint) { re.Print(); ReportEngine_N.PrintConfirm(type, Record_ID); } return(re); } // StartDocumentPrint