예제 #1
0
 public ActionResult ReportPrintMultipleLevel(string itemIds)
 {
     try
     {
         var identity         = (LoginIdentity)Thread.CurrentPrincipal.Identity;
         var itemIdIdList     = new JavaScriptSerializer().Deserialize <string[]>(itemIds);
         var maIds            = string.Join(",", itemIdIdList.Select(x => "'" + x + "'").ToArray());
         var data             = _rawSqlService.GetAllForMultipleLabelPrint(maIds);
         ReportDataSource rpt = new ReportDataSource("MultipleSalesInvoice", data);
         RdlcReportViewerBranchWise.reportDataSource = rpt;
         string rPath = "RdlcReport/RptMultipleLevelPrint.rdlc";
         Response.Redirect("~/ReportViewer/RdlcReportViewerBranchWise.aspx?rPath=" + rPath + "&branchId=" + identity.BranchId);
         return(View());
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }