Exemplo n.º 1
0
 private void button6_Click(object sender, EventArgs e)
 {
     RPT.rpt_all_products  my_report_all = new RPT.rpt_all_products();
     RPT.FRM_RPT_PRODUCTcs mForm         = new RPT.FRM_RPT_PRODUCTcs();
     my_report_all.Refresh();
     mForm.crystalReportViewer1.ReportSource = my_report_all;
     mForm.ShowDialog();
 }
Exemplo n.º 2
0
 private void btnPrintAll_Click(object sender, EventArgs e)
 {
     RPT.rpt_all_categories my_report_all_cat = new RPT.rpt_all_categories();
     RPT.FRM_RPT_PRODUCTcs  mForm             = new RPT.FRM_RPT_PRODUCTcs();
     my_report_all_cat.Refresh();
     mForm.crystalReportViewer1.ReportSource = my_report_all_cat;
     mForm.ShowDialog();
 }
Exemplo n.º 3
0
 private void button5_Click(object sender, EventArgs e)
 {
     RPT.rpt_prd_single my_report = new RPT.rpt_prd_single();
     my_report.SetParameterValue("@ID", this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
     RPT.FRM_RPT_PRODUCTcs myForm = new RPT.FRM_RPT_PRODUCTcs();
     my_report.Refresh();
     myForm.crystalReportViewer1.ReportSource = my_report;
     myForm.ShowDialog();
 }
Exemplo n.º 4
0
 private void btnrintCurrent_Click(object sender, EventArgs e)
 {
     RPT.rpt_single_category my_report_single_cat = new RPT.rpt_single_category();
     RPT.FRM_RPT_PRODUCTcs   mForm = new RPT.FRM_RPT_PRODUCTcs();
     my_report_single_cat.Refresh();
     my_report_single_cat.SetParameterValue("@ID", Convert.ToInt32(txtID.Text));
     mForm.crystalReportViewer1.ReportSource = my_report_single_cat;
     mForm.ShowDialog();
 }
        private void btnPrintOrder_Click(object sender, EventArgs e)
        {
            //Get the last order
            this.Cursor = Cursors.WaitCursor;
            int order_id = Convert.ToInt32(order.GET_LAST_ORDER_FOR_PRINT().Rows[0][0]);

            RPT.rpt_orders        reporto = new RPT.rpt_orders();
            RPT.FRM_RPT_PRODUCTcs frm     = new RPT.FRM_RPT_PRODUCTcs();
            reporto.SetDataSource(order.GET_ORDER_DETAILS(order_id));
            frm.crystalReportViewer1.ReportSource = reporto;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Exemplo n.º 6
0
        private void btnPrintOrdersList_Click(object sender, EventArgs e)
        {
            //Get the last order
            this.Cursor = Cursors.WaitCursor;
            int order_id = Convert.ToInt32(dvbOrders.CurrentRow.Cells[0].Value);

            RPT.rpt_orders        reporto = new RPT.rpt_orders();
            RPT.FRM_RPT_PRODUCTcs frm     = new RPT.FRM_RPT_PRODUCTcs();
            reporto.Refresh();
            reporto.SetDataSource(order.GET_ORDER_DETAILS(order_id));
            frm.crystalReportViewer1.ReportSource = reporto;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }