Example #1
0
 public ActionResult RdlcReport_Reorder(string companyId, string branchId, string categoryId, string subCategoryId, string supplierId, string productId, string productCode)
 {
     try
     {
         var dataSet          = _rawSqlService.GetProductReorder(companyId, branchId, categoryId, subCategoryId, supplierId, productId, productCode);
         ReportDataSource rpt = new ReportDataSource("Product", dataSet.Tables["ProductReorder"]);
         RdlcReportViewerWithoutDate.reportDataSource = rpt;
         string rPath = "RdlcReport/RptProductListReorder.rdlc";
         Response.Redirect("~/ReportViewer/RdlcReportViewerWithoutDate.aspx?rPath=" + rPath + "&companyId=" + companyId + "&branchId=" + branchId);
         return(View());
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }