public ActionResult BLP010_GenerateReportFromTable()
        {
            ObjectResultData        res                    = new ObjectResultData();
            IBillingHandler         billingHandler         = ServiceContainer.GetService <IBillingHandler>() as IBillingHandler;
            IBillingDocumentHandler billingDocumentHandler = ServiceContainer.GetService <IBillingDocumentHandler>() as IBillingDocumentHandler;

            res.MessageType = MessageModel.MESSAGE_TYPE.WARNING;
            res.ResultData  = true;

            try
            {
                List <string> lstInvoiceNo = billingHandler.GetTbt_InvoiceReprint();
                foreach (string invoiceno in lstInvoiceNo)
                {
                    try
                    {
                        billingDocumentHandler.GenerateBLR010FilePath(invoiceno, ProcessID.C_PROCESS_ID_MANAGE_INVOICE, DateTime.Now);
                    }
                    catch (Exception ex)
                    {
                        res.ResultData = false;
                        res.AddErrorMessage(ex);
                    }
                }
            }
            catch (Exception ex)
            {
                res.ResultData = false;
                res.AddErrorMessage(ex);
            }

            return(Json(res));
        }