private void جردالمخازنToolStripMenuItem_Click(object sender, EventArgs e) { reports frm = new reports(); allStoresNoWatermark rpt = new allStoresNoWatermark(); //MvtRpt rpt2 = new MvtRpt(); //rpt2.SetDataSource(db.mvtReport(2)); // Set datasource first //rpt2.SetParameterValue("@id", movement_header.id); frm.crystalReportViewer1.ReportSource = rpt; frm.ShowDialog(); }
private void btnPrint_Click(object sender, EventArgs e) { reports frm = new reports(); MvtRpt rpt = new MvtRpt(); MvtRpt rpt2 = new MvtRpt(); //rpt2.SetDataSource(db.mvtReport(2)); // Set datasource first rpt2.SetParameterValue("@id", movement_header.id); frm.crystalReportViewer1.ReportSource = rpt2; frm.ShowDialog(); btnPrint.Enabled = false; }
private void btnPrint_Click(object sender, EventArgs e) { reports frm = new reports(); storeItemNoWatermark rpt = new storeItemNoWatermark(); //MvtRpt rpt2 = new MvtRpt(); //rpt2.SetDataSource(db.mvtReport(2)); // Set datasource first rpt.SetParameterValue("@store_id", Cmb_stores.SelectedValue); //rpt.Refresh(); frm.crystalReportViewer1.ReportSource = rpt; //frm.crystalReportViewer1.RefreshReport(); frm.ShowDialog(); }
private void الاصنافالنشطهToolStripMenuItem_Click(object sender, EventArgs e) { //reportItemsRate frm = new reportItemsRate(); // frm.ShowDialog(); reports frm = new reports(); getActiveItems rpt = new getActiveItems(); //MvtRpt rpt2 = new MvtRpt(); //rpt2.SetDataSource(db.mvtReport(2)); // Set datasource first //rpt.SetParameterValue("@start", DateTime.Today); //rpt.SetParameterValue("@end", DateTime.Today); frm.crystalReportViewer1.ReportSource = rpt; frm.ShowDialog(); }
private void metroButton1_Click(object sender, EventArgs e) { if (Mvt_number.Text.ToString() == "" || Cmb_stores.Text.ToString() == null || place.Text.ToString() == "" || reciever.Text.ToString() == "") { MessageBox.Show("لم يتم ادخال بيانات الأذن كاملة الرجاء مراجعة البيانات"); return; } save(); reports frm = new reports(); MvtRpt rpt = new MvtRpt(); MvtRpt rpt2 = new MvtRpt(); //rpt2.SetDataSource(db.mvtReport(2)); // Set datasource first rpt2.SetParameterValue("@id", movement_header.id); frm.crystalReportViewer1.ReportSource = rpt2; frm.ShowDialog(); // btnPrint.Enabled = false; }