public ActionResult Cheques(int transporterID) { ViewBag.TargetController = "Cheque"; ViewBag.TransporterID = transporterID; var transporterCheques = _transporterChequeService.Get(t => t.TransporterChequeDetails.FirstOrDefault().TransporterPaymentRequest.TransportOrder.TransporterID == transporterID).OrderByDescending(t => t.IssueDate); //var transporterChequeViewModels = BindTransporterChequeViewModel(transporterCheques); return(View(transporterCheques)); }
public ActionResult PrintCheckPayment(int transporterID, string checkno, string pvn) { var transporterCheques = _transporterChequeService.Get(t => t.TransporterChequeDetails.FirstOrDefault().TransporterPaymentRequest.TransportOrder.TransporterID == transporterID).Where(t => t.CheckNo == checkno && t.PaymentVoucherNo == pvn).OrderByDescending(t => t.IssueDate); var tc = new List <TransporterChequeViewModel> { }; tc.AddRange(transporterCheques.Select(BindTransporterChequeViewModel)); var reportPath = Server.MapPath("~/Report/Finance/CheckPayment.rdlc"); var result = ReportHelper.PrintReport(reportPath, tc, "CheckPayment", true, false); return(File(result.RenderBytes, result.MimeType)); }