Пример #1
0
        private void frm_KolicinaProdanih_rpt_Load(object sender, EventArgs e)
        {
            PEPBazaDataSet1 ds = new PEPBazaDataSet1();

            SelectKolicinaByVrsta(ds.KolicinaProdanih);

            bindingSource1.DataSource = ds.KolicinaProdanih;

            ReportDataSource rds = new ReportDataSource("DS_KolicinaProdanih", bindingSource1);

            reportViewer1.LocalReport.DataSources.Add(rds);
            this.reportViewer1.RefreshReport();
            this.reportViewer1.RefreshReport();
        }
Пример #2
0
        private void frm_Statistika_rpt_Load(object sender, EventArgs e)
        {
            PEPBazaDataSet1 ds = new PEPBazaDataSet1();

            SelectProdajaTotal(ds.ProdajaTotal, korisnikID);

            bindingSource1.DataSource = ds.ProdajaTotal;

            ReportDataSource rds = new ReportDataSource("DSProdajaTotal", bindingSource1);

            reportViewer1.LocalReport.DataSources.Add(rds);
            this.reportViewer1.RefreshReport();
            this.reportViewer1.RefreshReport();
        }
Пример #3
0
        private void frm_Report_Load(object sender, EventArgs e)
        {
            PEPBazaDataSet1 ds = new PEPBazaDataSet1();

            SelectZaradaByMjesec(ds.ZaradaByMjesec);

            bindingSource1.DataSource = ds.ZaradaByMjesec;

            ReportDataSource rds = new ReportDataSource("DS_Zarada", bindingSource1);

            reportViewer1.LocalReport.DataSources.Add(rds);
            this.reportViewer1.RefreshReport();
            this.reportViewer1.RefreshReport();
        }
        private void StatistikaFrm_Load(object sender, EventArgs e)
        {
            BindNajprodavaniji();
            BindDizajneri();
            BindProizvodi();
            //this.rV1.RefreshReport();

            PEPBazaDataSet1 ds = new PEPBazaDataSet1();

            SelectZaradaByMjesec(ds.ZaradaByMjesec);

            chart1.DataSource = ds.ZaradaByMjesec.ToList();
            chart1.Series["Total"].XValueMember = "Month";
            chart1.Series["Total"].XValueType   = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;

            chart1.Series["Total"].YValueMembers       = "Zarada";
            chart1.Series["Total"].YValueType          = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double;
            chart1.Series["Total"].IsValueShownAsLabel = true;



            SelectKolicinaByVrsta(ds.KolicinaProdanih);

            chart2.DataSource = ds.KolicinaProdanih.ToList();
            chart2.Series["Vrsta"].XValueMember = "Naziv";
            chart2.Series["Vrsta"].XValueType   = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;

            chart2.Series["Vrsta"].YValueMembers       = "Kolicina";
            chart2.Series["Vrsta"].YValueType          = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;
            chart2.Series["Vrsta"].IsValueShownAsLabel = true;



            //bindingSource1.DataSource = ds.ProdajaTotal;

            //ReportDataSource rds = new ReportDataSource("DSProdajaTotal", bindingSource1);
            //reportViewer1.LocalReport.DataSources.Add(rds);
            //this.reportViewer1.RefreshReport();
            //this.reportViewer1.RefreshReport();
        }