private void GenerateReport(Int64 doId) { LocalReportManager reportManager = new LocalReportManager("DeliveryOrder", ConfigurationManager.AppSettings["ReportNamespace"].ToString(), ConfigurationManager.AppSettings["ReportPath"].ToString()); ReportBLL cls = new ReportBLL(); List <DOPrintEntity> lstDO = ReportBLL.GetDeliveryOrder(doId); List <DOPrintEntity> lstDOCntr = ReportBLL.GetDeliveryOrderContainer(doId); ReportDataSource dsDO = new ReportDataSource("dsDeliveryOrder", lstDO); ReportDataSource dsDOCntr = new ReportDataSource("dsDeliveryOrderContainer", lstDOCntr); reportManager.ReportFormat = ReportFormat.PDF; reportManager.AddDataSource(dsDO); reportManager.AddDataSource(dsDOCntr); reportManager.Export(); }
private void GenerateReport() { ReportBLL cls = new ReportBLL(); string agentName = string.Empty; int vesselId = Convert.ToInt32(hdnVessel.Value); //Int64 vesselId = GetSelectedVesselId(); Int64 voyageId = Convert.ToInt64(ddlVoyage.SelectedValue); List <ExportEDIEntity> lstHeader = ReportBLL.GetExportEdi(vesselId, voyageId, Convert.ToInt32(ddlPort.SelectedValue), Convert.ToInt32(ddlLoc.SelectedValue)); List <ExportEDIEntity> lstData = ReportBLL.GetExportEdiCntr(vesselId, voyageId, Convert.ToInt32(ddlPort.SelectedValue), Convert.ToInt32(ddlLoc.SelectedValue)); DataSet dsCompany = CommonBLL.GetCompanyDetails(1); if (!ReferenceEquals(dsCompany, null) && dsCompany.Tables.Count > 0 && dsCompany.Tables[0].Rows.Count > 0) { agentName = Convert.ToString(dsCompany.Tables[0].Rows[0]["CompName"]); } LocalReportManager reportManager = new LocalReportManager(rptViewer, "ExportEDI", ConfigurationManager.AppSettings["ReportNamespace"].ToString(), ConfigurationManager.AppSettings["ReportPath"].ToString()); reportManager.HasSubReport = true; reportManager.AddParameter("VesselVoyage", txtVessel.Text.Trim() + " V." + ddlVoyage.SelectedItem.Text); reportManager.AddParameter("AgentName", agentName); reportManager.AddParameter("MainLineOperator", txtMLO.Text.Trim()); reportManager.AddDataSource(new ReportDataSource("DataSetHeader", lstHeader)); reportManager.AddSubReportDataSource(new ReportDataSource("DataSetContainer", lstData)); reportManager.Show(); }
private void GenerateSummaryReport() { ReportBLL cls = new ReportBLL(); string rptName = ""; if (chkDetails.Checked == true) { rptName = "CashierWiseSaleDetail"; } else { rptName = "CashierWiseSaleSummary"; } LocalReportManager reportManager = new LocalReportManager(rptViewer, rptName, ConfigurationManager.AppSettings["ReportNamespace"].ToString(), ConfigurationManager.AppSettings["ReportPath"].ToString()); ReportCriteria criteria = new ReportCriteria(); BuildCriteria(criteria); List <ReportEntity> lstData = ReportBLL.GetCashierWiseSale(criteria); ReportDataSource dsGeneral = new ReportDataSource("dsReportData", lstData); reportManager.AddParameter("FromDate", txtFromDt.Text.Trim()); reportManager.AddParameter("ToDate", txtToDt.Text.Trim()); reportManager.AddDataSource(dsGeneral); reportManager.Show(); }
private void GenerateReport() { ReportBLL cls = new ReportBLL(); LocalReportManager reportManager = new LocalReportManager(rptViewer, "CashierLog", ConfigurationManager.AppSettings["ReportNamespace"].ToString(), ConfigurationManager.AppSettings["ReportPath"].ToString()); ReportCriteria criteria = new ReportCriteria(); //BuildCriteria(criteria); List <ReportEntity> lstData = ReportBLL.GetCashierLog(criteria); ReportDataSource dsGeneral = new ReportDataSource("dsReportData", lstData); reportManager.AddParameter("FromDate", txtFromDt.Text.Trim()); reportManager.AddParameter("ToDate", txtToDt.Text.Trim()); reportManager.AddDataSource(dsGeneral); reportManager.Show(); }