-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrangChu.cs
118 lines (100 loc) · 3.02 KB
/
TrangChu.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.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WDF_BTL;
namespace WDF_BTL
{
public partial class TrangChu : Form
{
string connectionString = ConfigurationManager.ConnectionStrings["BTL"].ConnectionString;
public TrangChu()
{
InitializeComponent();
}
private void msNhanVien_Click(object sender, EventArgs e)
{
NhanVien nv = new NhanVien();
nv.Show();
}
private void msDSSach_Click(object sender, EventArgs e)
{
FormBaoCao form = new FormBaoCao();
form.Show();
form.showReport("", "Select_Sach", "DSSach.rpt");
}
private void msKhachHang_Click(object sender, EventArgs e)
{
KhachHang kh = new KhachHang();
kh.Show();
}
private void msSach_Click(object sender, EventArgs e)
{
Sach sach = new Sach();
sach.Show();
}
private void msHDBan_Click(object sender, EventArgs e)
{
HoaDonBan hdb = new HoaDonBan();
hdb.Show();
}
private void msCTHDBan_Click(object sender, EventArgs e)
{
DialogHDB hdb = new DialogHDB();
hdb.ShowDialog();
}
private void msCTHDNhap_Click(object sender, EventArgs e)
{
DialogHDN hdn = new DialogHDN();
hdn.ShowDialog();
}
private void msDSNV_Click(object sender, EventArgs e)
{
FormBaoCao form = new FormBaoCao();
form.Show();
form.showReport("", "Select_NV", "DSNV.rpt");
}
private void msDSKH_Click(object sender, EventArgs e)
{
FormBaoCao form = new FormBaoCao();
form.Show();
form.showReport("", "Select_KH", "DSKH.rpt");
}
private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
{
Login login = new Login();
login.Show();
this.Hide();
}
private void TrangChu_FormClosed(object sender, FormClosedEventArgs e)
{
Application.Exit();
}
private void tàiKhoảnToolStripMenuItem_Click(object sender, EventArgs e)
{
TaiKhoan tk = new TaiKhoan();
tk.Show();
}
private void chiTiếtBánToolStripMenuItem_Click(object sender, EventArgs e)
{
CTBan ctban = new CTBan();
ctban.Show();
}
private void chiTiếtNhậpToolStripMenuItem_Click(object sender, EventArgs e)
{
CTNhap ctnhap = new CTNhap();
ctnhap.Show();
}
private void msHDNhap_Click(object sender, EventArgs e)
{
HoaDonNhap hdn = new HoaDonNhap();
hdn.Show();
}
}
}