예제 #1
0
 private void button7_Click(object sender, EventArgs e)
 {
     RPT.rtp_singl_categoreis rpt = new RPT.rtp_singl_categoreis();
     RPT.FRM_RPR_PRODUCT      frm = new RPT.FRM_RPR_PRODUCT();
     rpt.SetParameterValue("@ID", Convert.ToInt32(txtID.Text));
     frm.crystalReportViewer1.ReportSource = rpt;
     frm.ShowDialog();
 }
예제 #2
0
 private void button11_Click(object sender, EventArgs e)
 {
     RPT.rtp_all_categorieis rpt = new RPT.rtp_all_categorieis();
     RPT.FRM_RPR_PRODUCT     frm = new RPT.FRM_RPR_PRODUCT();
     rpt.Refresh();
     frm.crystalReportViewer1.ReportSource = rpt;
     frm.ShowDialog();
 }
        private void button6_Click(object sender, EventArgs e)
        {
            RPT.rpt_all_product myReport = new RPT.rpt_all_product();
            RPT.FRM_RPR_PRODUCT myForm   = new RPT.FRM_RPR_PRODUCT();
            myForm.crystalReportViewer1.ReportSource = myReport;

            myForm.ShowDialog();
        }
        private void button5_Click(object sender, EventArgs e)
        {
            RPT.rpt_product_singl myReport = new RPT.rpt_product_singl();
            myReport.SetParameterValue("@ID", this.dataGridView1.CurrentRow.Cells[0].Value.ToString());

            RPT.FRM_RPR_PRODUCT frm = new RPT.FRM_RPR_PRODUCT();

            frm.crystalReportViewer1.ReportSource = myReport;

            frm.ShowDialog();
        }
예제 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            int OrderID = Convert.ToInt32(dvgorders.CurrentRow.Cells[0].Value);

            RPT.RTP_ORDER       reoprt_order = new RPT.RTP_ORDER();
            RPT.FRM_RPR_PRODUCT frm          = new RPT.FRM_RPR_PRODUCT();
            reoprt_order.SetDataSource(order.GET_ORDER_DETAILS(OrderID));
            frm.crystalReportViewer1.ReportSource = reoprt_order;
            frm.ShowDialog();
            Cursor.Current = Cursors.Default;
        }
        private void btnPrint_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            int OrderID = Convert.ToInt32(order.GET_LAST_ORDER_ID_FOR_PRINT().Rows[0][0]);

            RPT.RTP_ORDER reoprt_order = new RPT.RTP_ORDER();

            RPT.FRM_RPR_PRODUCT frm = new RPT.FRM_RPR_PRODUCT();

            reoprt_order.SetDataSource(order.GET_ORDER_DETAILS(OrderID));

            frm.crystalReportViewer1.ReportSource = reoprt_order;

            frm.ShowDialog();
            Cursor.Current = Cursors.Default;
        }