private void button6_Click(object sender, EventArgs e) { RPT.rpt_all_product MYREPORT = new RPT.rpt_all_product(); RPT.FRM_RPT frm = new RPT.FRM_RPT(); frm.crystalReportViewer1.ReportSource = MYREPORT; frm.ShowDialog(); }
private void button6_Click(object sender, EventArgs e) { RPT.patient_history_rpt myreport = new RPT.patient_history_rpt(); myreport.SetParameterValue("@pid", Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value)); RPT.FRM_RPT myform = new RPT.FRM_RPT(); 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_RPT frm = new RPT.FRM_RPT(); frm.crystalReportViewer1.ReportSource = MYREPORT; frm.ShowDialog(); }
private void button9_Click(object sender, EventArgs e) { RPT.GET_ALL_CATEGORIES rpt = new RPT.GET_ALL_CATEGORIES(); RPT.FRM_RPT frm = new RPT.FRM_RPT(); rpt.Refresh(); frm.crystalReportViewer1.ReportSource = rpt; frm.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { RPT.rpt_rosheta myreport = new RPT.rpt_rosheta(); myreport.SetParameterValue("@pid", dataGridView1.Rows[0].Cells[0].Value); myreport.SetParameterValue("@visit_date", dataGridView1.Rows[0].Cells[9].Value); RPT.FRM_RPT myform = new RPT.FRM_RPT(); myform.crystalReportViewer1.ReportSource = myreport; myform.ShowDialog(); }
private void button10_Click(object sender, EventArgs e) { RPT.rpt_singl_categories rpt = new RPT.rpt_singl_categories(); RPT.FRM_RPT frm = new RPT.FRM_RPT(); rpt.SetParameterValue("@ID", Convert.ToInt32(txtID.Text)); frm.crystalReportViewer1.ReportSource = rpt; frm.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; int Order_ID = Convert.ToInt32(DGORDERSSEARCH.CurrentRow.Cells[0].Value); RPT.CrystalReport1 OrderReport = new RPT.CrystalReport1(); RPT.FRM_RPT frm = new RPT.FRM_RPT(); OrderReport.SetParameterValue("@id_order", Order_ID); frm.crystalReportViewer1.ReportSource = OrderReport; frm.ShowDialog(); this.Cursor = Cursors.Default; }
private void BTNPRINT_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; int Order_ID = Convert.ToInt32(order.GET_LAST_ORDER_ID_For_Print().Rows[0][0]); RPT.CrystalReport1 OrderReport = new RPT.CrystalReport1(); RPT.FRM_RPT frm = new RPT.FRM_RPT(); OrderReport.SetParameterValue("@id_order", Order_ID); frm.crystalReportViewer1.ReportSource = OrderReport; frm.ShowDialog(); this.Cursor = Cursors.Default; }