Esempio n. 1
0
        private PurchasePrintoutReport createPurchasePrintoutReport(DateTime fromDate, DateTime toDate, string invoiceNo, long vendorId, long vendorSiteId)
        {
            List <PurchasePrintoutModel> modelList = mapPurchasePrintoutModel(service.PurchasePrintout(AuthenticationHelper.CompanyId.Value, SessionHelper.SOBId, fromDate, toDate, invoiceNo, vendorId, vendorSiteId));
            PurchasePrintoutReport       report    = new PurchasePrintoutReport();

            report.Parameters["FromDate"].Value     = fromDate;
            report.Parameters["ToDate"].Value       = toDate;
            report.Parameters["InvoiceNo"].Value    = invoiceNo;
            report.Parameters["VendorId"].Value     = vendorId;
            report.Parameters["VendorSiteId"].Value = vendorSiteId;
            report.DataSource = modelList;
            return(report);
        }