public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ViewStockCardReport rpt = new ViewStockCardReport();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
 private void loadPrintData()
 {
     if (Session["ReportType"].ToString().Equals("Stockcard"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("PurchaseOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("DeliverOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("AdjustmentVoucher"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
 }
コード例 #3
0
 private void loadPrintData()
 {
     if (Session["ReportType"].ToString().Equals("Stockcard"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("PurchaseOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("DeliverOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("AdjustmentVoucher"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
 }