/
Form15.cs
118 lines (106 loc) · 4.12 KB
/
Form15.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace login1
{
public partial class Form15 : Form
{
private static Form15 frm;
static void frm_FormClosed(object sender, FormClosedEventArgs e)
{
frm = null;
}
private void Form15_Load(object sender, EventArgs e)
{
frm = null;
}
public static Form15 getMainForm
{
get
{
if (frm == null)
{
frm = new Form15();
frm.FormClosed += new FormClosedEventHandler(frm_FormClosed);
}
return frm;
}
}
BL.CLS_MINUTES MINUTES = new BL.CLS_MINUTES();
public Form15()
{
InitializeComponent();
if (frm == null)
frm = this;
this.dataGridView11.DataSource = MINUTES.GET_ALL_MINUTES();
}
private void textBox11_TextChanged(object sender, EventArgs e)
{
DataTable Dt = new DataTable();
Dt = MINUTES.SearchMINUTES(textBox11.Text);
this.dataGridView11.DataSource = Dt;
}
private void button4_Click(object sender, EventArgs e)
{
RPT.rpt_stu_single myReport = new RPT.rpt_stu_single();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.FRM_RPT_STUDENTS myForm = new RPT.FRM_RPT_STUDENTS();
myForm.crystalReportViewer1.ReportSource = myReport;
myForm.ShowDialog();
}
private void button5_Click(object sender, EventArgs e)
{
RPT.rpt_minout myReport = new RPT.rpt_minout();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.Form1 myForm = new RPT.Form1();
myForm.crystalReportViewer2.ReportSource = myReport;
myForm.ShowDialog();
}
private void button6_Click(object sender, EventArgs e)
{
RPT.minin myReport = new RPT.minin();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.Form2 myForm = new RPT.Form2();
myForm.crystalReportViewer3.ReportSource = myReport;
myForm.ShowDialog();
}
private void button8_Click(object sender, EventArgs e)
{
RPT.rpt_stu_single_22 myReport = new RPT.rpt_stu_single_22();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.Form3 myForm = new RPT.Form3();
myForm.crystalReportViewer4.ReportSource = myReport;
myForm.ShowDialog();
}
private void button9_Click(object sender, EventArgs e)
{
RPT.scheout myReport = new RPT.scheout();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.Form5 myForm = new RPT.Form5();
myForm.crystalReportViewer6.ReportSource = myReport;
myForm.ShowDialog();
}
private void button10_Click(object sender, EventArgs e)
{
RPT.schein myReport = new RPT.schein();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.Form4 myForm = new RPT.Form4();
myForm.crystalReportViewer5.ReportSource = myReport;
myForm.ShowDialog();
}
private void button11_Click(object sender, EventArgs e)
{
RPT.table myReport = new RPT.table();
myReport.SetParameterValue("@MINUTES_ID", this.dataGridView11.CurrentRow.Cells[0].Value.ToString());
RPT.Form6 myForm = new RPT.Form6();
myForm.crystalReportViewer6.ReportSource = myReport;
myForm.ShowDialog();
}
}
}