public override List <UCAReports.ReportCommon.ReportDataSource> GetReportDataSource()
        {
            DAL.SaleInvoice.SaleInvoiceDAL DALObj = new DAL.SaleInvoice.SaleInvoiceDAL();
            List <SaleInvoiceReportModel>  ds     = DALObj.GetSaleInvoiceReportHeader(SaleInvoiceID);

            if (ds != null && ds.Count > 0)
            {
                ReportDisplayName_ = "ShippingInvoice" + ds[0].InvoiceNo.ToString("000#");
            }

            return(new List <UCAReports.ReportCommon.ReportDataSource>()
            {
                new UCAReports.ReportCommon.ReportDataSource()
                {
                    DataSetName = "dsSaleInvoice", DataSource = ds
                }
            });
        }
Example #2
0
        public override List <UCAReports.ReportCommon.ReportDataSource> GetReportDataSource()
        {
            DAL.SaleInvoice.SaleInvoiceDAL DALObj = new DAL.SaleInvoice.SaleInvoiceDAL();
            List <SERLabelReportModel>     ds     = DALObj.GetSERLabelReportData(SaleInvoiceID);

            if (ds != null && ds.Count > 0)
            {
                SERLabelReportModel ObjToCopy = CommonFunctions.DeepCopy <SERLabelReportModel>(ds.First());
                ds.Add(ObjToCopy);
                ds.Add(ObjToCopy);
                ds.Add(ObjToCopy);
                ds.Add(ObjToCopy);

                ReportDisplayName_ = "SER Label" + ds[0].InvoiceNo.ToString("000#");
            }

            return(new List <UCAReports.ReportCommon.ReportDataSource>()
            {
                new UCAReports.ReportCommon.ReportDataSource()
                {
                    DataSetName = "dsSERLabel", DataSource = ds
                }
            });
        }