Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptKardexInv rpt = new rptKardexInv();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                DataSets.dsALMACENTableAdapters.vListaKardexInventarioTableAdapter adapKardexInventario = new DataSets.dsALMACENTableAdapters.vListaKardexInventarioTableAdapter();
                DataSets.dsALMACEN dsAlmacen = new DataSets.dsALMACEN();

                if (checkBox1.Checked)
                {
                    adapKardexInventario.Fill(dsAlmacen.vListaKardexInventario, null, null); //DateTimePicker1.Value.AddDays(1)
                }
                else //(DateTime)dateTimePicker1.Value (DateTime)dateTimePicker2.Value.AddDays(1)
                {
                    adapKardexInventario.Fill(dsAlmacen.vListaKardexInventario, (DateTime)dateTimePicker1.Value, (DateTime)dateTimePicker2.Value);
                }

                rptKardexInv rptKardex = new rptKardexInv();
                rptKardex.SetDataSource(dsAlmacen);
                this.crystalReportViewer1.ReportSource = rptKardex;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }