예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            InventoryReport_Live rpt = new InventoryReport_Live();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void GetInventoryReports(string nofilter, string CostCode, string Item_Code, string ProjectCode)
        {
            SqlConnection  con = new SqlConnection(conStr);
            SqlDataAdapter sda = new SqlDataAdapter("Inventory_Reports  " + nofilter + "," + Item_Code + "," + CostCode + "," + ProjectCode, con);
            DataSet        ds  = new DataSet();

            sda.Fill(ds);
            ds.Tables[0].TableName = "Inventory_Reports";

            InventoryReport_Live bill = new InventoryReport_Live();

            bill.SetDataSource(ds);
            bill.VerifyDatabase();
            crystalReportViewer1.ReportSource = bill;
            crystalReportViewer1.RefreshReport();
        }