diff --git a/BUS/BUS.csproj b/BUS/BUS.csproj
index 1833a5e..c21b468 100644
--- a/BUS/BUS.csproj
+++ b/BUS/BUS.csproj
@@ -55,6 +55,7 @@
+
diff --git a/BUS/HocSinhBUS.cs b/BUS/HocSinhBUS.cs
index e9f2e1e..0c0c118 100644
--- a/BUS/HocSinhBUS.cs
+++ b/BUS/HocSinhBUS.cs
@@ -76,13 +76,13 @@ public void HienThi(
txtHoTenCha.DataBindings.Add("Text", bindingSource, "HoTenCha");
cmbNgheNghiepCha.DataBindings.Clear();
- cmbNgheNghiepCha.DataBindings.Add("SelectedValue", bindingSource, "MaNNghiepCha");
+ cmbNgheNghiepCha.DataBindings.Add("SelectedValue", bindingSource, "MaNgheCha");
txtHoTenMe.DataBindings.Clear();
txtHoTenMe.DataBindings.Add("Text", bindingSource, "HoTenMe");
cmbNgheNghiepMe.DataBindings.Clear();
- cmbNgheNghiepMe.DataBindings.Add("SelectedValue", bindingSource, "MaNNghiepMe");
+ cmbNgheNghiepMe.DataBindings.Add("SelectedValue", bindingSource, "MaNgheMe");
txtEmail.DataBindings.Clear();
txtEmail.DataBindings.Add("Text", bindingSource, "Email");
@@ -103,6 +103,20 @@ public void HienThiHocSinhTheoLop(
dataGridViewX.DataSource = bs;
}
+ public void HienThiHocSinhTheoLop(string namHoc, string khoiLop, string lop, ListViewEx listViewEx)
+ {
+ DataTable dataTable = HocSinhDAO.Instance.LayDanhSachHocSinhTheoLop(namHoc, khoiLop, lop);
+ listViewEx.Items.Clear();
+
+ foreach (DataRow Row in dataTable.Rows)
+ {
+ ListViewItem item = new ListViewItem();
+ item.Text = Row["MaHocSinh"].ToString();
+ item.SubItems.Add(Row["HoTen"].ToString());
+ listViewEx.Items.Add(item);
+ }
+ }
+
public void HienThiComboBox(string namHoc, string lop, ComboBoxEx comboBox)
{
comboBox.DataSource = HocSinhDAO.Instance.LayDanhSachHocSinh(namHoc, lop);
@@ -110,6 +124,11 @@ public void HienThiComboBox(string namHoc, string lop, ComboBoxEx comboBox)
comboBox.ValueMember = "MaHocSinh";
}
+ public DataTable LayDanhSachHocSinhTheoNamHoc(string namHoc)
+ {
+ return HocSinhDAO.Instance.LayDanhSachHocSinhTheoNamHoc(namHoc);
+ }
+
public IList Report()
{
DataTable dataTable = HocSinhDAO.Instance.LayDanhSachHocSinh();
diff --git a/BUS/KhoiLopBUS.cs b/BUS/KhoiLopBUS.cs
index 1b5c213..079fba5 100644
--- a/BUS/KhoiLopBUS.cs
+++ b/BUS/KhoiLopBUS.cs
@@ -1,5 +1,6 @@
using DAO;
using DevComponents.DotNetBar.Controls;
+using System;
using System.Data;
using System.Windows.Forms;
@@ -37,6 +38,13 @@ public void HienThiComboBox(ComboBoxEx comboBox)
comboBox.ValueMember = "MaKhoiLop";
}
+ public void HienThiComboBox(string khoiLop, ComboBoxEx comboBox)
+ {
+ comboBox.DataSource = KhoiLopDAO.Instance.LayDanhSachKhoiLop(khoiLop);
+ comboBox.DisplayMember = "TenKhoiLop";
+ comboBox.ValueMember = "MaKhoiLop";
+ }
+
public void HienThiDgvCmbCol(DataGridViewComboBoxColumn cmbColumn)
{
cmbColumn.DataSource = KhoiLopDAO.Instance.LayDanhSachKhoiLop();
diff --git a/BUS/LopBUS.cs b/BUS/LopBUS.cs
index c0fe94a..964e3de 100644
--- a/BUS/LopBUS.cs
+++ b/BUS/LopBUS.cs
@@ -72,6 +72,13 @@ public void HienThiComboBox(string namHoc, ComboBoxEx comboBox)
comboBox.ValueMember = "MaLop";
}
+ public void HienThiComboBox(string khoiLop, string namHoc, ComboBoxEx comboBox)
+ {
+ comboBox.DataSource = LopDAO.Instance.LayDanhSachLop(khoiLop, namHoc);
+ comboBox.DisplayMember = "TenLop";
+ comboBox.ValueMember = "MaLop";
+ }
+
public void HienThiDgvCmbCol(DataGridViewComboBoxColumn cmbColumn)
{
cmbColumn.DataSource = LopDAO.Instance.LayDanhSachLop();
diff --git a/BUS/NgheNghiepBUS.cs b/BUS/NgheNghiepBUS.cs
index a55f8ae..377759a 100644
--- a/BUS/NgheNghiepBUS.cs
+++ b/BUS/NgheNghiepBUS.cs
@@ -42,7 +42,7 @@ public void HienThiDgvCmbColCha(DataGridViewComboBoxColumn cmbColumn)
cmbColumn.DataSource = NgheNghiepDAO.Instance.LayDanhSachNgheNghiep();
cmbColumn.DisplayMember = "TenNghe";
cmbColumn.ValueMember = "MaNghe";
- cmbColumn.DataPropertyName = "MaNNghiepCha";
+ cmbColumn.DataPropertyName = "MaNgheCha";
cmbColumn.HeaderText = "Nghề nghiệp cha";
}
@@ -51,7 +51,7 @@ public void HienThiDgvCmbColMe(DataGridViewComboBoxColumn cmbColumn)
cmbColumn.DataSource = NgheNghiepDAO.Instance.LayDanhSachNgheNghiep();
cmbColumn.DisplayMember = "TenNghe";
cmbColumn.ValueMember = "MaNghe";
- cmbColumn.DataPropertyName = "MaNNghiepMe";
+ cmbColumn.DataPropertyName = "MaNgheMe";
cmbColumn.HeaderText = "Nghề nghiệp mẹ";
}
diff --git a/BUS/PhanLopBUS.cs b/BUS/PhanLopBUS.cs
new file mode 100644
index 0000000..32ba811
--- /dev/null
+++ b/BUS/PhanLopBUS.cs
@@ -0,0 +1,42 @@
+using DAO;
+using DevComponents.DotNetBar.Controls;
+using DTO;
+using System.Windows.Forms;
+
+namespace BUS
+{
+ public class PhanLopBUS
+ {
+ private static PhanLopBUS instance;
+
+ private PhanLopBUS() { }
+
+ public static PhanLopBUS Instance
+ {
+ get
+ {
+ if (instance == null) instance = new PhanLopBUS();
+ return instance;
+ }
+ private set => instance = value;
+ }
+
+ public void LuuHocSinhVaoBangPhanLop(string namHoc, string khoiLop, string lop, ListViewEx listViewEx)
+ {
+ foreach (ListViewItem item in listViewEx.Items)
+ {
+ PhanLopDTO phanLop = new PhanLopDTO(namHoc, khoiLop, lop, item.SubItems[0].Text.ToString());
+ PhanLopDAO.Instance.LuuHocSinhVaoBangPhanLop(phanLop);
+ }
+ }
+
+ public void XoaHocSinhKhoiBangPhanLop(string namHoc, string khoiLop, string lop, ListViewEx listViewEx)
+ {
+ foreach (ListViewItem item in listViewEx.Items)
+ {
+ PhanLopDTO phanLop = new PhanLopDTO(namHoc, khoiLop, lop, item.SubItems[0].Text.ToString());
+ PhanLopDAO.Instance.XoaHocSinhKhoiBangPhanLop(phanLop);
+ }
+ }
+ }
+}
diff --git a/BUS/bin/Debug/BUS.dll b/BUS/bin/Debug/BUS.dll
index 4c6cfc1..5fcf1cf 100644
Binary files a/BUS/bin/Debug/BUS.dll and b/BUS/bin/Debug/BUS.dll differ
diff --git a/BUS/bin/Debug/BUS.pdb b/BUS/bin/Debug/BUS.pdb
index 2589e26..2ad0a16 100644
Binary files a/BUS/bin/Debug/BUS.pdb and b/BUS/bin/Debug/BUS.pdb differ
diff --git a/BUS/bin/Debug/DAO.dll b/BUS/bin/Debug/DAO.dll
index 9e20faf..b3d1976 100644
Binary files a/BUS/bin/Debug/DAO.dll and b/BUS/bin/Debug/DAO.dll differ
diff --git a/BUS/bin/Debug/DAO.pdb b/BUS/bin/Debug/DAO.pdb
index e0c5407..aefddb0 100644
Binary files a/BUS/bin/Debug/DAO.pdb and b/BUS/bin/Debug/DAO.pdb differ
diff --git a/BUS/bin/Debug/DTO.dll b/BUS/bin/Debug/DTO.dll
index 3385d58..6ff80d3 100644
Binary files a/BUS/bin/Debug/DTO.dll and b/BUS/bin/Debug/DTO.dll differ
diff --git a/BUS/bin/Debug/DTO.pdb b/BUS/bin/Debug/DTO.pdb
index 9428bbf..0b4c9d2 100644
Binary files a/BUS/bin/Debug/DTO.pdb and b/BUS/bin/Debug/DTO.pdb differ
diff --git a/BUS/bin/Release/BUS.dll b/BUS/bin/Release/BUS.dll
index f431be8..41e9251 100644
Binary files a/BUS/bin/Release/BUS.dll and b/BUS/bin/Release/BUS.dll differ
diff --git a/BUS/bin/Release/BUS.pdb b/BUS/bin/Release/BUS.pdb
index ec6839f..53a49f2 100644
Binary files a/BUS/bin/Release/BUS.pdb and b/BUS/bin/Release/BUS.pdb differ
diff --git a/BUS/bin/Release/DAO.dll b/BUS/bin/Release/DAO.dll
index 07c66d6..b4bc3da 100644
Binary files a/BUS/bin/Release/DAO.dll and b/BUS/bin/Release/DAO.dll differ
diff --git a/BUS/bin/Release/DAO.pdb b/BUS/bin/Release/DAO.pdb
index 87ba874..e2e3c3d 100644
Binary files a/BUS/bin/Release/DAO.pdb and b/BUS/bin/Release/DAO.pdb differ
diff --git a/BUS/bin/Release/DTO.dll b/BUS/bin/Release/DTO.dll
index fc129ba..305529f 100644
Binary files a/BUS/bin/Release/DTO.dll and b/BUS/bin/Release/DTO.dll differ
diff --git a/BUS/bin/Release/DTO.pdb b/BUS/bin/Release/DTO.pdb
index 83ffd60..872346e 100644
Binary files a/BUS/bin/Release/DTO.pdb and b/BUS/bin/Release/DTO.pdb differ
diff --git a/DAO/DAO.csproj b/DAO/DAO.csproj
index bda7650..a2dfc94 100644
--- a/DAO/DAO.csproj
+++ b/DAO/DAO.csproj
@@ -53,6 +53,7 @@
+
diff --git a/DAO/HocSinhDAO.cs b/DAO/HocSinhDAO.cs
index 7db3ca4..cde26c2 100644
--- a/DAO/HocSinhDAO.cs
+++ b/DAO/HocSinhDAO.cs
@@ -1,4 +1,5 @@
using DTO;
+using System;
using System.Data;
namespace DAO
@@ -32,6 +33,21 @@ public DataTable LayDanhSachHocSinh(string namHoc, string lop, bool tatCaCot = f
return DataProvider.Instance.ExecuteQuery(query, parameters);
}
+ public DataTable LayDanhSachHocSinhTheoLop(string namHoc, string khoiLop, string lop)
+ {
+ string query = "EXEC LayDanhSachHocSinhTheoLop @maNamHoc , @maKhoiLop , @maLop";
+ object[] parameters = new object[] { namHoc, khoiLop, lop };
+ return DataProvider.Instance.ExecuteQuery(query, parameters);
+ }
+
+ public DataTable LayDanhSachHocSinhTheoNamHoc(string namHoc)
+ {
+ string query = "EXEC LayDanhSachHocSinhTheoNamHoc @maNamHoc";
+ object[] parameters = new object[] { namHoc };
+ return DataProvider.Instance.ExecuteQuery(query, parameters);
+ }
+
+
public void CapNhatHocSinh(DataTable dataTable)
{
DataProvider.Instance.UpdateTable(dataTable, "HOCSINH");
diff --git a/DAO/KhoiLopDAO.cs b/DAO/KhoiLopDAO.cs
index 6b9ddb6..f27e2f8 100644
--- a/DAO/KhoiLopDAO.cs
+++ b/DAO/KhoiLopDAO.cs
@@ -1,4 +1,5 @@
-using System.Data;
+using System;
+using System.Data;
namespace DAO
{
@@ -24,6 +25,14 @@ public DataTable LayDanhSachKhoiLop()
return DataProvider.Instance.ExecuteQuery(query);
}
+ public DataTable LayDanhSachKhoiLop(string khoiLop)
+ {
+ string query = $"SELECT * FROM KHOILOP WHERE MaKhoiLop = '{khoiLop}'";
+ if (khoiLop == "KHOI10") query += "OR MaKhoiLop = 'KHOI11'";
+ else if (khoiLop == "KHOI11") query += "OR MaKhoiLop = 'KHOI12'";
+ return DataProvider.Instance.ExecuteQuery(query);
+ }
+
public void CapNhatKhoiLop(DataTable dataTable)
{
DataProvider.Instance.UpdateTable(dataTable, "KHOILOP");
diff --git a/DAO/LopDAO.cs b/DAO/LopDAO.cs
index 3439b88..39c587d 100644
--- a/DAO/LopDAO.cs
+++ b/DAO/LopDAO.cs
@@ -32,6 +32,12 @@ public DataTable LayDanhSachLop(string namHoc)
return DataProvider.Instance.ExecuteQuery(query);
}
+ public DataTable LayDanhSachLop(string khoiLop, string namHoc)
+ {
+ string query = $"SELECT * FROM LOP WHERE MaKhoiLop = '{khoiLop}' AND MaNamHoc = '{namHoc}'";
+ return DataProvider.Instance.ExecuteQuery(query);
+ }
+
public int LaySiSo(string maLop)
{
string query = $"SELECT SiSo FROM LOP WHERE MaLop = '{maLop}'";
diff --git a/DAO/PhanLopDAO.cs b/DAO/PhanLopDAO.cs
new file mode 100644
index 0000000..973b362
--- /dev/null
+++ b/DAO/PhanLopDAO.cs
@@ -0,0 +1,36 @@
+using DTO;
+using System.Data;
+
+namespace DAO
+{
+ public class PhanLopDAO
+ {
+ private static PhanLopDAO instance;
+
+ private PhanLopDAO() { }
+
+ public static PhanLopDAO Instance
+ {
+ get
+ {
+ if (instance == null) instance = new PhanLopDAO();
+ return instance;
+ }
+ private set => instance = value;
+ }
+
+ public void LuuHocSinhVaoBangPhanLop(PhanLopDTO phanLop)
+ {
+ string query = "EXEC LuuHocSinhVaoBangPhanLop @maNamHoc , @maKhoiLop , @maLop , @maHocSinh";
+ object[] parameters = new object[] { phanLop.MaNamHoc, phanLop.MaKhoiLop, phanLop.MaLop, phanLop.MaHocSinh };
+ DataProvider.Instance.ExecuteNonQuery(query, parameters);
+ }
+
+ public void XoaHocSinhKhoiBangPhanLop(PhanLopDTO phanLop)
+ {
+ string query = "EXEC XoaHocSinhKhoiBangPhanLop @maNamHoc , @maKhoiLop , @maLop , @maHocSinh";
+ object[] parameters = new object[] { phanLop.MaNamHoc, phanLop.MaKhoiLop, phanLop.MaLop, phanLop.MaHocSinh };
+ DataProvider.Instance.ExecuteNonQuery(query, parameters);
+ }
+ }
+}
diff --git a/DAO/bin/Debug/DAO.dll b/DAO/bin/Debug/DAO.dll
index 9e20faf..b3d1976 100644
Binary files a/DAO/bin/Debug/DAO.dll and b/DAO/bin/Debug/DAO.dll differ
diff --git a/DAO/bin/Debug/DAO.pdb b/DAO/bin/Debug/DAO.pdb
index e0c5407..aefddb0 100644
Binary files a/DAO/bin/Debug/DAO.pdb and b/DAO/bin/Debug/DAO.pdb differ
diff --git a/DAO/bin/Debug/DTO.dll b/DAO/bin/Debug/DTO.dll
index 3385d58..6ff80d3 100644
Binary files a/DAO/bin/Debug/DTO.dll and b/DAO/bin/Debug/DTO.dll differ
diff --git a/DAO/bin/Debug/DTO.pdb b/DAO/bin/Debug/DTO.pdb
index 9428bbf..0b4c9d2 100644
Binary files a/DAO/bin/Debug/DTO.pdb and b/DAO/bin/Debug/DTO.pdb differ
diff --git a/DAO/bin/Release/DAO.dll b/DAO/bin/Release/DAO.dll
index 07c66d6..b4bc3da 100644
Binary files a/DAO/bin/Release/DAO.dll and b/DAO/bin/Release/DAO.dll differ
diff --git a/DAO/bin/Release/DAO.pdb b/DAO/bin/Release/DAO.pdb
index 87ba874..e2e3c3d 100644
Binary files a/DAO/bin/Release/DAO.pdb and b/DAO/bin/Release/DAO.pdb differ
diff --git a/DAO/bin/Release/DTO.dll b/DAO/bin/Release/DTO.dll
index fc129ba..305529f 100644
Binary files a/DAO/bin/Release/DTO.dll and b/DAO/bin/Release/DTO.dll differ
diff --git a/DAO/bin/Release/DTO.pdb b/DAO/bin/Release/DTO.pdb
index 83ffd60..872346e 100644
Binary files a/DAO/bin/Release/DTO.pdb and b/DAO/bin/Release/DTO.pdb differ
diff --git a/DATABASE/Procedures.sql b/DATABASE/Procedures.sql
index 14277fd..b8209c4 100644
--- a/DATABASE/Procedures.sql
+++ b/DATABASE/Procedures.sql
@@ -35,6 +35,30 @@ BEGIN
END
GO
+CREATE PROCEDURE LayDanhSachHocSinhTheoNamHoc @maNamHoc VARCHAR(6)
+AS
+BEGIN
+ SELECT PL.MaHocSinh, HS.HoTen, LOP.TenLop FROM HOCSINH HS
+ INNER JOIN PHANLOP PL ON HS.MaHocSinh = PL.MaHocSinh
+ INNER JOIN LOP ON LOP.MaLop = PL.MaLop
+ WHERE PL.MaNamHoc = @maNamHoc
+END
+GO
+
+CREATE PROCEDURE LayDanhSachHocSinhTheoLop
+ @maNamHoc VARCHAR(6),
+ @maKhoiLop VARCHAR(10),
+ @maLop VARCHAR(10)
+AS
+BEGIN
+ SELECT PL.MaHocSinh, HS.HoTen, LOP.TenLop FROM HOCSINH HS
+ INNER JOIN PHANLOP PL ON HS.MaHocSinh = PL.MaHocSinh
+ INNER JOIN KHOILOP KL ON KL.MaKhoiLop = PL.MaKhoiLop
+ INNER JOIN LOP ON LOP.MaLop = PL.MaLop
+ WHERE PL.MaNamHoc = @maNamHoc AND PL.MaKhoiLop = @maKhoiLop AND PL.MaLop = @maLop
+END
+GO
+
CREATE PROCEDURE ThemHocSinh
@maHocSinh VARCHAR(6),
@hoTen NVARCHAR(30),
@@ -57,6 +81,34 @@ GO
--===================================================================================================================================================
+CREATE PROCEDURE LuuHocSinhVaoBangPhanLop
+ @maNamHoc VARCHAR(6),
+ @maKhoiLop VARCHAR(6),
+ @maLop VARCHAR(10),
+ @maHocSinh VARCHAR(6)
+AS
+BEGIN
+ INSERT INTO PHANLOP VALUES(@maNamHoc, @maKhoiLop, @maLop, @maHocSinh)
+END
+GO
+
+CREATE PROCEDURE XoaHocSinhKhoiBangPhanLop
+ @maNamHoc VARCHAR(6),
+ @maKhoiLop VARCHAR(6),
+ @maLop VARCHAR(10),
+ @maHocSinh VARCHAR(6)
+AS
+BEGIN
+ DELETE FROM PHANLOP
+ WHERE MaNamHoc = @maNamHoc
+ AND MaKhoiLop = @maKhoiLop
+ AND MaLop = @maLop
+ AND MaHocSinh = @maHocSinh
+END
+GO
+
+--===================================================================================================================================================
+
CREATE PROCEDURE LayDanhSachDiem
@maHocSinh VARCHAR(6),
@maMonHoc VARCHAR(6),
diff --git a/DATABASE/Tables.sql b/DATABASE/Tables.sql
index 7bc4ca1..289844f 100644
--- a/DATABASE/Tables.sql
+++ b/DATABASE/Tables.sql
@@ -23,7 +23,7 @@ CREATE TABLE LOAINGUOIDUNG
)
INSERT INTO LOAINGUOIDUNG VALUES('LND001', N'Ban giám hiệu')
-INSERT INTO LOAINGUOIDUNG VALUES('LND002', N'Giáo viện')
+INSERT INTO LOAINGUOIDUNG VALUES('LND002', N'Giáo viên')
INSERT INTO LOAINGUOIDUNG VALUES('LND003', N'Nhân viên giáo vụ')
--===================================================================================================================================================
@@ -213,15 +213,15 @@ CREATE TABLE HOCSINH
MaDanToc VARCHAR(6) NOT NULL,
MaTonGiao VARCHAR(6) NOT NULL,
HoTenCha NVARCHAR(30) NOT NULL,
- MaNNghiepCha VARCHAR(6) NOT NULL,
+ MaNgheCha VARCHAR(6) NOT NULL,
HoTenMe NVARCHAR(30) NOT NULL,
- MaNNghiepMe VARCHAR(6) NOT NULL,
+ MaNgheMe VARCHAR(6) NOT NULL,
Email NVARCHAR(50) NOT NULL UNIQUE,
CONSTRAINT FK_HOCSINH_DANTOC FOREIGN KEY(MaDanToc) REFERENCES DANTOC(MaDanToc),
CONSTRAINT FK_HOCSINH_TONGIAO FOREIGN KEY(MaTonGiao) REFERENCES TONGIAO(MaTonGiao),
- CONSTRAINT FK_HOCSINH_NGHENGHIEPCHA FOREIGN KEY(MaNNghiepCha) REFERENCES NGHENGHIEP(MaNghe),
- CONSTRAINT FK_HOCSINH_NGHENGHIEPME FOREIGN KEY(MaNNghiepMe) REFERENCES NGHENGHIEP(MaNghe)
+ CONSTRAINT FK_HOCSINH_NGHENGHIEPCHA FOREIGN KEY(MaNgheCha) REFERENCES NGHENGHIEP(MaNghe),
+ CONSTRAINT FK_HOCSINH_NGHENGHIEPME FOREIGN KEY(MaNgheMe) REFERENCES NGHENGHIEP(MaNghe)
)
INSERT INTO HOCSINH VALUES('HS0001', N'Nguyễn Văn Tú', '0', '01/02/2005', N'Long Xuyên', 'DT0001', 'TG0005', N'Biết chết liền', 'NN0005', N'Biết chết liền', 'NN0002', 'hs001@gmail.com')
diff --git a/DTO/DTO.csproj b/DTO/DTO.csproj
index c9ca5bc..4c87c7e 100644
--- a/DTO/DTO.csproj
+++ b/DTO/DTO.csproj
@@ -48,6 +48,7 @@
+
diff --git a/DTO/PhanLopDTO.cs b/DTO/PhanLopDTO.cs
new file mode 100644
index 0000000..d6e2f04
--- /dev/null
+++ b/DTO/PhanLopDTO.cs
@@ -0,0 +1,23 @@
+namespace DTO
+{
+ public class PhanLopDTO
+ {
+ private string maNamHoc;
+ private string maKhoiLop;
+ private string maLop;
+ private string maHocSinh;
+
+ public PhanLopDTO(string maNamHoc, string maKhoiLop, string maLop, string maHocSinh)
+ {
+ this.maNamHoc = maNamHoc;
+ this.maKhoiLop = maKhoiLop;
+ this.maLop = maLop;
+ this.maHocSinh = maHocSinh;
+ }
+
+ public string MaNamHoc { get => maNamHoc; set => maNamHoc = value; }
+ public string MaKhoiLop { get => maKhoiLop; set => maKhoiLop = value; }
+ public string MaLop { get => maLop; set => maLop = value; }
+ public string MaHocSinh { get => maHocSinh; set => maHocSinh = value; }
+ }
+}
diff --git a/DTO/bin/Debug/DTO.dll b/DTO/bin/Debug/DTO.dll
index 3385d58..6ff80d3 100644
Binary files a/DTO/bin/Debug/DTO.dll and b/DTO/bin/Debug/DTO.dll differ
diff --git a/DTO/bin/Debug/DTO.pdb b/DTO/bin/Debug/DTO.pdb
index 9428bbf..0b4c9d2 100644
Binary files a/DTO/bin/Debug/DTO.pdb and b/DTO/bin/Debug/DTO.pdb differ
diff --git a/DTO/bin/Release/DTO.dll b/DTO/bin/Release/DTO.dll
index fc129ba..305529f 100644
Binary files a/DTO/bin/Release/DTO.dll and b/DTO/bin/Release/DTO.dll differ
diff --git a/DTO/bin/Release/DTO.pdb b/DTO/bin/Release/DTO.pdb
index 83ffd60..872346e 100644
Binary files a/DTO/bin/Release/DTO.pdb and b/DTO/bin/Release/DTO.pdb differ
diff --git a/QuanLyHocSinh.1.0.2.nupkg b/QuanLyHocSinh.1.0.3.nupkg
similarity index 84%
rename from QuanLyHocSinh.1.0.2.nupkg
rename to QuanLyHocSinh.1.0.3.nupkg
index 7a58f34..e8c0e5f 100644
Binary files a/QuanLyHocSinh.1.0.2.nupkg and b/QuanLyHocSinh.1.0.3.nupkg differ
diff --git a/QuanLyHocSinh/Properties/AssemblyInfo.cs b/QuanLyHocSinh/Properties/AssemblyInfo.cs
index de30bd1..d793c8b 100644
--- a/QuanLyHocSinh/Properties/AssemblyInfo.cs
+++ b/QuanLyHocSinh/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.2")]
-[assembly: AssemblyFileVersion("1.0.2")]
+[assembly: AssemblyVersion("1.0.3")]
+[assembly: AssemblyFileVersion("1.0.3")]
diff --git a/QuanLyHocSinh/Properties/Resources.Designer.cs b/QuanLyHocSinh/Properties/Resources.Designer.cs
index 6aad0c4..43ca43a 100644
--- a/QuanLyHocSinh/Properties/Resources.Designer.cs
+++ b/QuanLyHocSinh/Properties/Resources.Designer.cs
@@ -80,6 +80,16 @@ internal static System.Drawing.Bitmap cap_nhat {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap chuyen_lop {
+ get {
+ object obj = ResourceManager.GetObject("chuyen lop", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
@@ -390,6 +400,16 @@ internal static System.Drawing.Bitmap luu {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap luu_chuyen_lop {
+ get {
+ object obj = ResourceManager.GetObject("luu chuyen lop", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
@@ -430,6 +450,16 @@ internal static System.Drawing.Bitmap phan_cong {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap phan_lop {
+ get {
+ object obj = ResourceManager.GetObject("phan lop", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
@@ -520,6 +550,16 @@ internal static System.Drawing.Bitmap thoat {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap thoat_phan_lop {
+ get {
+ object obj = ResourceManager.GetObject("thoat phan lop", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
@@ -579,5 +619,15 @@ internal static System.Drawing.Bitmap xoa {
return ((System.Drawing.Bitmap)(obj));
}
}
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap xoa_chuyen_lop {
+ get {
+ object obj = ResourceManager.GetObject("xoa chuyen lop", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/QuanLyHocSinh/Properties/Resources.resx b/QuanLyHocSinh/Properties/Resources.resx
index 431863f..9a3febd 100644
--- a/QuanLyHocSinh/Properties/Resources.resx
+++ b/QuanLyHocSinh/Properties/Resources.resx
@@ -124,6 +124,9 @@
..\Resources\cap nhat.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\chuyen lop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\dan toc.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -217,6 +220,9 @@
..\Resources\luu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\luu chuyen lop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\mon hoc.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -229,6 +235,9 @@
..\Resources\phan cong.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\phan lop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\phuc hoi du lieu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -256,6 +265,9 @@
..\Resources\thoat.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\thoat phan lop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\thoat phan mem.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -274,4 +286,7 @@
..\Resources\xoa.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\xoa chuyen lop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/QuanLyHocSinh/QuanLyHocSinh.csproj b/QuanLyHocSinh/QuanLyHocSinh.csproj
index 505a648..ed7c56a 100644
--- a/QuanLyHocSinh/QuanLyHocSinh.csproj
+++ b/QuanLyHocSinh/QuanLyHocSinh.csproj
@@ -170,6 +170,12 @@
frmPhanCong.cs
+
+ Form
+
+
+ frmPhanLop.cs
+
Form
@@ -289,6 +295,9 @@
frmPhanCong.cs
+
+ frmPhanLop.cs
+
frmQuyDinh.cs
@@ -530,6 +539,11 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/QuanLyHocSinh/Resources/chuyen lop.png b/QuanLyHocSinh/Resources/chuyen lop.png
new file mode 100644
index 0000000..f84e9c5
Binary files /dev/null and b/QuanLyHocSinh/Resources/chuyen lop.png differ
diff --git a/QuanLyHocSinh/Resources/luu chuyen lop.png b/QuanLyHocSinh/Resources/luu chuyen lop.png
new file mode 100644
index 0000000..e48ceeb
Binary files /dev/null and b/QuanLyHocSinh/Resources/luu chuyen lop.png differ
diff --git a/QuanLyHocSinh/Resources/phan lop.png b/QuanLyHocSinh/Resources/phan lop.png
new file mode 100644
index 0000000..4013bd8
Binary files /dev/null and b/QuanLyHocSinh/Resources/phan lop.png differ
diff --git a/QuanLyHocSinh/Resources/thoat phan lop.png b/QuanLyHocSinh/Resources/thoat phan lop.png
new file mode 100644
index 0000000..38ce6da
Binary files /dev/null and b/QuanLyHocSinh/Resources/thoat phan lop.png differ
diff --git a/QuanLyHocSinh/Resources/xoa chuyen lop.png b/QuanLyHocSinh/Resources/xoa chuyen lop.png
new file mode 100644
index 0000000..70ed535
Binary files /dev/null and b/QuanLyHocSinh/Resources/xoa chuyen lop.png differ
diff --git a/QuanLyHocSinh/bin/Debug/BUS.dll b/QuanLyHocSinh/bin/Debug/BUS.dll
index 4c6cfc1..5fcf1cf 100644
Binary files a/QuanLyHocSinh/bin/Debug/BUS.dll and b/QuanLyHocSinh/bin/Debug/BUS.dll differ
diff --git a/QuanLyHocSinh/bin/Debug/BUS.pdb b/QuanLyHocSinh/bin/Debug/BUS.pdb
index 2589e26..2ad0a16 100644
Binary files a/QuanLyHocSinh/bin/Debug/BUS.pdb and b/QuanLyHocSinh/bin/Debug/BUS.pdb differ
diff --git a/QuanLyHocSinh/bin/Debug/DAO.dll b/QuanLyHocSinh/bin/Debug/DAO.dll
index 9e20faf..b3d1976 100644
Binary files a/QuanLyHocSinh/bin/Debug/DAO.dll and b/QuanLyHocSinh/bin/Debug/DAO.dll differ
diff --git a/QuanLyHocSinh/bin/Debug/DAO.pdb b/QuanLyHocSinh/bin/Debug/DAO.pdb
index e0c5407..aefddb0 100644
Binary files a/QuanLyHocSinh/bin/Debug/DAO.pdb and b/QuanLyHocSinh/bin/Debug/DAO.pdb differ
diff --git a/QuanLyHocSinh/bin/Debug/DTO.dll b/QuanLyHocSinh/bin/Debug/DTO.dll
index 3385d58..6ff80d3 100644
Binary files a/QuanLyHocSinh/bin/Debug/DTO.dll and b/QuanLyHocSinh/bin/Debug/DTO.dll differ
diff --git a/QuanLyHocSinh/bin/Debug/DTO.pdb b/QuanLyHocSinh/bin/Debug/DTO.pdb
index 9428bbf..0b4c9d2 100644
Binary files a/QuanLyHocSinh/bin/Debug/DTO.pdb and b/QuanLyHocSinh/bin/Debug/DTO.pdb differ
diff --git a/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.exe b/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.exe
index 2dc337c..470f7c7 100644
Binary files a/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.exe and b/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.exe differ
diff --git a/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.pdb b/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.pdb
index 91ea3d1..870027f 100644
Binary files a/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.pdb and b/QuanLyHocSinh/bin/Debug/QuanLyHocSinh.pdb differ
diff --git a/QuanLyHocSinh/bin/Release/BUS.dll b/QuanLyHocSinh/bin/Release/BUS.dll
index f431be8..41e9251 100644
Binary files a/QuanLyHocSinh/bin/Release/BUS.dll and b/QuanLyHocSinh/bin/Release/BUS.dll differ
diff --git a/QuanLyHocSinh/bin/Release/BUS.pdb b/QuanLyHocSinh/bin/Release/BUS.pdb
index ec6839f..53a49f2 100644
Binary files a/QuanLyHocSinh/bin/Release/BUS.pdb and b/QuanLyHocSinh/bin/Release/BUS.pdb differ
diff --git a/QuanLyHocSinh/bin/Release/DAO.dll b/QuanLyHocSinh/bin/Release/DAO.dll
index 07c66d6..b4bc3da 100644
Binary files a/QuanLyHocSinh/bin/Release/DAO.dll and b/QuanLyHocSinh/bin/Release/DAO.dll differ
diff --git a/QuanLyHocSinh/bin/Release/DAO.pdb b/QuanLyHocSinh/bin/Release/DAO.pdb
index 87ba874..e2e3c3d 100644
Binary files a/QuanLyHocSinh/bin/Release/DAO.pdb and b/QuanLyHocSinh/bin/Release/DAO.pdb differ
diff --git a/QuanLyHocSinh/bin/Release/DTO.dll b/QuanLyHocSinh/bin/Release/DTO.dll
index fc129ba..305529f 100644
Binary files a/QuanLyHocSinh/bin/Release/DTO.dll and b/QuanLyHocSinh/bin/Release/DTO.dll differ
diff --git a/QuanLyHocSinh/bin/Release/DTO.pdb b/QuanLyHocSinh/bin/Release/DTO.pdb
index 83ffd60..872346e 100644
Binary files a/QuanLyHocSinh/bin/Release/DTO.pdb and b/QuanLyHocSinh/bin/Release/DTO.pdb differ
diff --git a/QuanLyHocSinh/bin/Release/QuanLyHocSinh.exe b/QuanLyHocSinh/bin/Release/QuanLyHocSinh.exe
index 01b0289..62a3353 100644
Binary files a/QuanLyHocSinh/bin/Release/QuanLyHocSinh.exe and b/QuanLyHocSinh/bin/Release/QuanLyHocSinh.exe differ
diff --git a/QuanLyHocSinh/bin/Release/QuanLyHocSinh.pdb b/QuanLyHocSinh/bin/Release/QuanLyHocSinh.pdb
index f42c34b..ec4e102 100644
Binary files a/QuanLyHocSinh/bin/Release/QuanLyHocSinh.pdb and b/QuanLyHocSinh/bin/Release/QuanLyHocSinh.pdb differ
diff --git a/QuanLyHocSinh/frmHocSinh.Designer.cs b/QuanLyHocSinh/frmHocSinh.Designer.cs
index 8a5b981..78cb275 100644
--- a/QuanLyHocSinh/frmHocSinh.Designer.cs
+++ b/QuanLyHocSinh/frmHocSinh.Designer.cs
@@ -30,9 +30,9 @@ private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmHocSinh));
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.groupBoxDanhSach = new System.Windows.Forms.GroupBox();
this.ctxMenu = new DevComponents.DotNetBar.ContextMenuBar();
this.btnMenu = new DevComponents.DotNetBar.ButtonItem();
@@ -50,9 +50,9 @@ private void InitializeComponent()
this.colMaDanToc = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.colMaTonGiao = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.colHoTenCha = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colMaNNghiepCha = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.colMaNgheCha = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.colHoTenMe = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.colMaNNghiepMe = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.colMaNgheMe = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.colEmail = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bindingNavigatorHocSinh = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
@@ -79,8 +79,8 @@ private void InitializeComponent()
this.lblBuffer = new System.Windows.Forms.Label();
this.dtpNgaySinh = new DevComponents.Editors.DateTimeAdv.DateTimeInput();
this.btnLuuVaoDS = new DevComponents.DotNetBar.ButtonX();
- this.btnThemNNMe = new DevComponents.DotNetBar.ButtonX();
- this.btnThemNNCha = new DevComponents.DotNetBar.ButtonX();
+ this.btnThemNgheMe = new DevComponents.DotNetBar.ButtonX();
+ this.btnThemNgheCha = new DevComponents.DotNetBar.ButtonX();
this.btnThemDanToc = new DevComponents.DotNetBar.ButtonX();
this.btnThemTonGiao = new DevComponents.DotNetBar.ButtonX();
this.label02 = new System.Windows.Forms.Label();
@@ -232,19 +232,19 @@ private void InitializeComponent()
this.colMaDanToc,
this.colMaTonGiao,
this.colHoTenCha,
- this.colMaNNghiepCha,
+ this.colMaNgheCha,
this.colHoTenMe,
- this.colMaNNghiepMe,
+ this.colMaNgheMe,
this.colEmail});
this.ctxMenu.SetContextMenuEx(this.dgvHocSinh, this.btnMenu);
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dgvHocSinh.DefaultCellStyle = dataGridViewCellStyle2;
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dgvHocSinh.DefaultCellStyle = dataGridViewCellStyle5;
this.dgvHocSinh.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvHocSinh.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.dgvHocSinh.Location = new System.Drawing.Point(3, 51);
@@ -278,8 +278,8 @@ private void InitializeComponent()
// colNgaySinh
//
this.colNgaySinh.DataPropertyName = "NgaySinh";
- dataGridViewCellStyle1.Format = "dd/MM/yyyy";
- this.colNgaySinh.DefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle4.Format = "dd/MM/yyyy";
+ this.colNgaySinh.DefaultCellStyle = dataGridViewCellStyle4;
this.colNgaySinh.HeaderText = "Ngày sinh";
this.colNgaySinh.Name = "colNgaySinh";
this.colNgaySinh.Width = 85;
@@ -312,11 +312,11 @@ private void InitializeComponent()
this.colHoTenCha.Name = "colHoTenCha";
this.colHoTenCha.Width = 150;
//
- // colMaNNghiepCha
+ // colMaNgheCha
//
- this.colMaNNghiepCha.DataPropertyName = "MaNNghiepCha";
- this.colMaNNghiepCha.HeaderText = "Nghề nghiệp cha";
- this.colMaNNghiepCha.Name = "colMaNNghiepCha";
+ this.colMaNgheCha.DataPropertyName = "MaNgheCha";
+ this.colMaNgheCha.HeaderText = "Nghề nghiệp cha";
+ this.colMaNgheCha.Name = "colMaNgheCha";
//
// colHoTenMe
//
@@ -326,11 +326,11 @@ private void InitializeComponent()
this.colHoTenMe.Name = "colHoTenMe";
this.colHoTenMe.Width = 150;
//
- // colMaNNghiepMe
+ // colMaNgheMe
//
- this.colMaNNghiepMe.DataPropertyName = "MaNNghiepMe";
- this.colMaNNghiepMe.HeaderText = "Nghề nghiệp mẹ";
- this.colMaNNghiepMe.Name = "colMaNNghiepMe";
+ this.colMaNgheMe.DataPropertyName = "MaNgheMe";
+ this.colMaNgheMe.HeaderText = "Nghề nghiệp mẹ";
+ this.colMaNgheMe.Name = "colMaNgheMe";
//
// colEmail
//
@@ -407,6 +407,7 @@ private void InitializeComponent()
//
this.bindingNavigatorPositionItem.AccessibleName = "";
this.bindingNavigatorPositionItem.AutoSize = false;
+ this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("Segoe UI", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 21);
this.bindingNavigatorPositionItem.Text = "0";
@@ -541,8 +542,8 @@ private void InitializeComponent()
this.navPanelNhapDuLieu.Controls.Add(this.lblBuffer);
this.navPanelNhapDuLieu.Controls.Add(this.dtpNgaySinh);
this.navPanelNhapDuLieu.Controls.Add(this.btnLuuVaoDS);
- this.navPanelNhapDuLieu.Controls.Add(this.btnThemNNMe);
- this.navPanelNhapDuLieu.Controls.Add(this.btnThemNNCha);
+ this.navPanelNhapDuLieu.Controls.Add(this.btnThemNgheMe);
+ this.navPanelNhapDuLieu.Controls.Add(this.btnThemNgheCha);
this.navPanelNhapDuLieu.Controls.Add(this.btnThemDanToc);
this.navPanelNhapDuLieu.Controls.Add(this.btnThemTonGiao);
this.navPanelNhapDuLieu.Controls.Add(this.label02);
@@ -713,27 +714,27 @@ private void InitializeComponent()
this.btnLuuVaoDS.Text = "Lưu vào danh sách";
this.btnLuuVaoDS.Click += new System.EventHandler(this.btnLuuVaoDS_Click);
//
- // btnThemNNMe
+ // btnThemNgheMe
//
- this.btnThemNNMe.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
- this.btnThemNNMe.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
- this.btnThemNNMe.Image = ((System.Drawing.Image)(resources.GetObject("btnThemNNMe.Image")));
- this.btnThemNNMe.Location = new System.Drawing.Point(218, 477);
- this.btnThemNNMe.Name = "btnThemNNMe";
- this.btnThemNNMe.Size = new System.Drawing.Size(20, 20);
- this.btnThemNNMe.TabIndex = 16;
- this.btnThemNNMe.Click += new System.EventHandler(this.btnThemNNMe_Click);
+ this.btnThemNgheMe.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnThemNgheMe.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnThemNgheMe.Image = ((System.Drawing.Image)(resources.GetObject("btnThemNgheMe.Image")));
+ this.btnThemNgheMe.Location = new System.Drawing.Point(218, 477);
+ this.btnThemNgheMe.Name = "btnThemNgheMe";
+ this.btnThemNgheMe.Size = new System.Drawing.Size(20, 20);
+ this.btnThemNgheMe.TabIndex = 16;
+ this.btnThemNgheMe.Click += new System.EventHandler(this.btnThemNgheMe_Click);
//
- // btnThemNNCha
+ // btnThemNgheCha
//
- this.btnThemNNCha.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
- this.btnThemNNCha.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
- this.btnThemNNCha.Image = ((System.Drawing.Image)(resources.GetObject("btnThemNNCha.Image")));
- this.btnThemNNCha.Location = new System.Drawing.Point(218, 387);
- this.btnThemNNCha.Name = "btnThemNNCha";
- this.btnThemNNCha.Size = new System.Drawing.Size(20, 20);
- this.btnThemNNCha.TabIndex = 13;
- this.btnThemNNCha.Click += new System.EventHandler(this.btnThemNNCha_Click);
+ this.btnThemNgheCha.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnThemNgheCha.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnThemNgheCha.Image = ((System.Drawing.Image)(resources.GetObject("btnThemNgheCha.Image")));
+ this.btnThemNgheCha.Location = new System.Drawing.Point(218, 387);
+ this.btnThemNgheCha.Name = "btnThemNgheCha";
+ this.btnThemNgheCha.Size = new System.Drawing.Size(20, 20);
+ this.btnThemNgheCha.TabIndex = 13;
+ this.btnThemNgheCha.Click += new System.EventHandler(this.btnThemNgheCha_Click);
//
// btnThemDanToc
//
@@ -995,7 +996,7 @@ private void InitializeComponent()
this.navPanelTimKiem.Location = new System.Drawing.Point(1, 1);
this.navPanelTimKiem.Name = "navPanelTimKiem";
this.navPanelTimKiem.ParentItem = this.buttonItemTimKiem;
- this.navPanelTimKiem.Size = new System.Drawing.Size(265, 534);
+ this.navPanelTimKiem.Size = new System.Drawing.Size(265, 448);
this.navPanelTimKiem.Style.Alignment = System.Drawing.StringAlignment.Center;
this.navPanelTimKiem.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.navPanelTimKiem.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2;
@@ -1086,8 +1087,8 @@ private void InitializeComponent()
// calendarColumn1
//
this.calendarColumn1.DataPropertyName = "NgaySinh";
- dataGridViewCellStyle3.Format = "dd/MM/yyyy";
- this.calendarColumn1.DefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle2.Format = "dd/MM/yyyy";
+ this.calendarColumn1.DefaultCellStyle = dataGridViewCellStyle2;
this.calendarColumn1.HeaderText = "Ngày sinh";
this.calendarColumn1.Name = "calendarColumn1";
this.calendarColumn1.Width = 85;
@@ -1172,9 +1173,9 @@ private void InitializeComponent()
private DevComponents.DotNetBar.ButtonItem buttonItemTimKiem;
private DevComponents.DotNetBar.ButtonX btnTimKiem;
private DevComponents.DotNetBar.ButtonItem btnRefesh;
- private DevComponents.DotNetBar.ButtonX btnThemNNCha;
+ private DevComponents.DotNetBar.ButtonX btnThemNgheCha;
private DevComponents.DotNetBar.ButtonX btnThemTonGiao;
- private DevComponents.DotNetBar.ButtonX btnThemNNMe;
+ private DevComponents.DotNetBar.ButtonX btnThemNgheMe;
private DevComponents.DotNetBar.ButtonX btnThemDanToc;
private DevComponents.DotNetBar.Controls.DataGridViewX dgvHocSinh;
private DevComponents.DotNetBar.Controls.TextBoxX txtMaHocSinh;
@@ -1241,9 +1242,9 @@ private void InitializeComponent()
private System.Windows.Forms.DataGridViewComboBoxColumn colMaDanToc;
private System.Windows.Forms.DataGridViewComboBoxColumn colMaTonGiao;
private System.Windows.Forms.DataGridViewTextBoxColumn colHoTenCha;
- private System.Windows.Forms.DataGridViewComboBoxColumn colMaNNghiepCha;
+ private System.Windows.Forms.DataGridViewComboBoxColumn colMaNgheCha;
private System.Windows.Forms.DataGridViewTextBoxColumn colHoTenMe;
- private System.Windows.Forms.DataGridViewComboBoxColumn colMaNNghiepMe;
+ private System.Windows.Forms.DataGridViewComboBoxColumn colMaNgheMe;
private System.Windows.Forms.DataGridViewTextBoxColumn colEmail;
}
}
\ No newline at end of file
diff --git a/QuanLyHocSinh/frmHocSinh.cs b/QuanLyHocSinh/frmHocSinh.cs
index 03d5dc7..5736690 100644
--- a/QuanLyHocSinh/frmHocSinh.cs
+++ b/QuanLyHocSinh/frmHocSinh.cs
@@ -23,8 +23,8 @@ private void frmHocSinh_Load(object sender, EventArgs e)
DanTocBUS.Instance.HienThiDgvCmbCol(colMaDanToc);
TonGiaoBUS.Instance.HienThiDgvCmbCol(colMaTonGiao);
- NgheNghiepBUS.Instance.HienThiDgvCmbColCha(colMaNNghiepCha);
- NgheNghiepBUS.Instance.HienThiDgvCmbColMe(colMaNNghiepMe);
+ NgheNghiepBUS.Instance.HienThiDgvCmbColCha(colMaNgheCha);
+ NgheNghiepBUS.Instance.HienThiDgvCmbColMe(colMaNgheMe);
bindingNavigatorRefreshItem_Click(sender, e);
}
@@ -137,16 +137,16 @@ private void btnThemTonGiao_Click(object sender, EventArgs e)
TonGiaoBUS.Instance.HienThiDgvCmbCol(colMaTonGiao);
}
- private void btnThemNNCha_Click(object sender, EventArgs e)
+ private void btnThemNgheCha_Click(object sender, EventArgs e)
{
Utilities.ShowForm("frmNgheNghiep");
- NgheNghiepBUS.Instance.HienThiDgvCmbColCha(colMaNNghiepCha);
+ NgheNghiepBUS.Instance.HienThiDgvCmbColCha(colMaNgheCha);
}
- private void btnThemNNMe_Click(object sender, EventArgs e)
+ private void btnThemNgheMe_Click(object sender, EventArgs e)
{
Utilities.ShowForm("frmNgheNghiep");
- NgheNghiepBUS.Instance.HienThiDgvCmbColMe(colMaNNghiepMe);
+ NgheNghiepBUS.Instance.HienThiDgvCmbColMe(colMaNgheMe);
}
private void btnLuuVaoDS_Click(object sender, EventArgs e)
diff --git a/QuanLyHocSinh/frmHocSinh.resx b/QuanLyHocSinh/frmHocSinh.resx
index 173f59b..d25609d 100644
--- a/QuanLyHocSinh/frmHocSinh.resx
+++ b/QuanLyHocSinh/frmHocSinh.resx
@@ -117,6 +117,9 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 17, 17
+
@@ -358,7 +361,7 @@
FrOBk0WatdM8rOt+w/8HVsKqGlePDwAAAABJRU5ErkJggg==
-
+
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFNSURBVDhPpZOxS0JRFMbvvyA4uDg5OQjiIC6ioAiC
@@ -370,7 +373,7 @@
A/UDjMglgx5kaA8AAAAASUVORK5CYII=
-
+
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29m
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFNSURBVDhPpZOxS0JRFMbvvyA4uDg5OQjiIC6ioAiC
diff --git a/QuanLyHocSinh/frmMain.Designer.cs b/QuanLyHocSinh/frmMain.Designer.cs
index b2305c6..9f6e30c 100644
--- a/QuanLyHocSinh/frmMain.Designer.cs
+++ b/QuanLyHocSinh/frmMain.Designer.cs
@@ -36,6 +36,7 @@ private void InitializeComponent()
this.btnPhanCong = new DevComponents.DotNetBar.ButtonItem();
this.ribbonBarHocSinh = new DevComponents.DotNetBar.RibbonBar();
this.btnHocSinh = new DevComponents.DotNetBar.ButtonItem();
+ this.btnPhanLop = new DevComponents.DotNetBar.ButtonItem();
this.itemContainerDanTocTonGiao = new DevComponents.DotNetBar.ItemContainer();
this.btnDanToc = new DevComponents.DotNetBar.ButtonItem();
this.btnTonGiao = new DevComponents.DotNetBar.ButtonItem();
@@ -174,7 +175,7 @@ private void InitializeComponent()
this.ribbonBarGiaoVien.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.btnGiaoVien,
this.btnPhanCong});
- this.ribbonBarGiaoVien.Location = new System.Drawing.Point(635, 0);
+ this.ribbonBarGiaoVien.Location = new System.Drawing.Point(689, 0);
this.ribbonBarGiaoVien.Name = "ribbonBarGiaoVien";
this.ribbonBarGiaoVien.Size = new System.Drawing.Size(122, 86);
this.ribbonBarGiaoVien.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
@@ -211,10 +212,11 @@ private void InitializeComponent()
this.ribbonBarHocSinh.Dock = System.Windows.Forms.DockStyle.Left;
this.ribbonBarHocSinh.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
this.btnHocSinh,
+ this.btnPhanLop,
this.itemContainerDanTocTonGiao});
this.ribbonBarHocSinh.Location = new System.Drawing.Point(488, 0);
this.ribbonBarHocSinh.Name = "ribbonBarHocSinh";
- this.ribbonBarHocSinh.Size = new System.Drawing.Size(147, 86);
+ this.ribbonBarHocSinh.Size = new System.Drawing.Size(201, 86);
this.ribbonBarHocSinh.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.ribbonBarHocSinh.TabIndex = 5;
this.ribbonBarHocSinh.Text = "Học Sinh";
@@ -231,6 +233,18 @@ private void InitializeComponent()
this.btnHocSinh.Tooltip = "Học sinh";
this.btnHocSinh.Click += new System.EventHandler(this.btnHocSinh_Click);
//
+ // btnPhanLop
+ //
+ this.btnPhanLop.Image = global::QuanLyHocSinh.Properties.Resources.phan_lop;
+ this.btnPhanLop.ImagePaddingHorizontal = 8;
+ this.btnPhanLop.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
+ this.btnPhanLop.Name = "btnPhanLop";
+ this.btnPhanLop.RibbonWordWrap = false;
+ this.btnPhanLop.SplitButton = true;
+ this.btnPhanLop.Text = "Phân lớp";
+ this.btnPhanLop.Tooltip = "Phân lớp";
+ this.btnPhanLop.Click += new System.EventHandler(this.btnPhanLop_Click);
+ //
// itemContainerDanTocTonGiao
//
this.itemContainerDanTocTonGiao.ItemSpacing = 0;
@@ -1070,5 +1084,6 @@ private void InitializeComponent()
private DevComponents.DotNetBar.ButtonItem btnDangXuatContext;
private DevComponents.DotNetBar.ButtonItem btnDoiMatKhauContext;
private DevComponents.DotNetBar.ButtonItem btnThoatContext;
+ private DevComponents.DotNetBar.ButtonItem btnPhanLop;
}
}
diff --git a/QuanLyHocSinh/frmMain.cs b/QuanLyHocSinh/frmMain.cs
index 4891c21..7476d35 100644
--- a/QuanLyHocSinh/frmMain.cs
+++ b/QuanLyHocSinh/frmMain.cs
@@ -60,17 +60,23 @@ private void frmMain_Load(object sender, EventArgs e)
private void btnLopHoc_Click(object sender, EventArgs e) { Utilities.ShowForm("frmLop"); }
private void btnKhoiLop_Click(object sender, EventArgs e) { Utilities.ShowForm("frmKhoiLop"); }
+
private void btnHocKy_Click(object sender, EventArgs e) { Utilities.ShowForm("frmHocKy"); }
private void btnNamHoc_Click(object sender, EventArgs e) { Utilities.ShowForm("frmNamHoc"); }
+
private void btnMonHoc_Click(object sender, EventArgs e) { Utilities.ShowForm("frmMonHoc"); }
private void btnDiem_Click(object sender, EventArgs e) { Utilities.ShowForm("frmDiem"); }
+
private void btnKetQua_Click(object sender, EventArgs e) { Utilities.ShowForm("frmKetQua"); }
private void btnHocLuc_Click(object sender, EventArgs e) { Utilities.ShowForm("frmHocLuc"); }
private void btnHanhKiem_Click(object sender, EventArgs e) { Utilities.ShowForm("frmHanhKiem"); }
+
private void btnHocSinh_Click(object sender, EventArgs e) { Utilities.ShowForm("frmHocSinh"); }
+ private void btnPhanLop_Click(object sender, EventArgs e) { Utilities.ShowForm("frmPhanLop"); }
private void btnDanToc_Click(object sender, EventArgs e) { Utilities.ShowForm("frmDanToc"); }
private void btnTonGiao_Click(object sender, EventArgs e) { Utilities.ShowForm("frmTonGiao"); }
private void btnNgheNghiep_Click(object sender, EventArgs e) { Utilities.ShowForm("frmNgheNghiep"); }
+
private void btnGiaoVien_Click(object sender, EventArgs e) { Utilities.ShowForm("frmGiaoVien"); }
private void btnPhanCong_Click(object sender, EventArgs e) { Utilities.ShowForm("frmPhanCong"); }
@@ -137,6 +143,8 @@ private void btnDangXuat_Click(object sender, EventArgs e)
frmLogin.txtUsername.Text = "";
frmLogin.txtPassword.Text = "";
lblTenNguoiDung.Text = "Không có";
+
+ foreach (Form form in MdiChildren) form.Close();
ShowGiaoDienMacDinh();
}
@@ -425,6 +433,5 @@ public void ShowGiaoDienGiaoVu()
btnDoTuoi.Enabled = false;
}
#endregion
-
}
}
diff --git a/QuanLyHocSinh/frmPhanLop.Designer.cs b/QuanLyHocSinh/frmPhanLop.Designer.cs
new file mode 100644
index 0000000..6d41a8b
--- /dev/null
+++ b/QuanLyHocSinh/frmPhanLop.Designer.cs
@@ -0,0 +1,495 @@
+namespace QuanLyHocSinh
+{
+ partial class frmPhanLop
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.splitContainerPhanLop = new System.Windows.Forms.SplitContainer();
+ this.panelChaTrai = new System.Windows.Forms.Panel();
+ this.lvLopCu = new DevComponents.DotNetBar.Controls.ListViewEx();
+ this.colMaHSCu = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.colHoTenCu = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.imageListPhanLop = new System.Windows.Forms.ImageList(this.components);
+ this.panelConTren = new System.Windows.Forms.Panel();
+ this.groupPanelLopCu = new DevComponents.DotNetBar.Controls.GroupPanel();
+ this.cmbLopCu = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.cmbKhoiLopCu = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.cmbNamHocCu = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.labelX3 = new DevComponents.DotNetBar.LabelX();
+ this.labelX2 = new DevComponents.DotNetBar.LabelX();
+ this.labelX1 = new DevComponents.DotNetBar.LabelX();
+ this.panelConPhai = new System.Windows.Forms.Panel();
+ this.btnThoat = new DevComponents.DotNetBar.ButtonX();
+ this.btnLuu = new DevComponents.DotNetBar.ButtonX();
+ this.btnXoa = new DevComponents.DotNetBar.ButtonX();
+ this.btnChuyen = new DevComponents.DotNetBar.ButtonX();
+ this.lvLopMoi = new DevComponents.DotNetBar.Controls.ListViewEx();
+ this.colMaHSMoi = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.colHoTenMoi = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.groupPanelLopMoi = new DevComponents.DotNetBar.Controls.GroupPanel();
+ this.cmbLopMoi = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.labelX5 = new DevComponents.DotNetBar.LabelX();
+ this.cmbKhoiLopMoi = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.labelX4 = new DevComponents.DotNetBar.LabelX();
+ this.cmbNamHocMoi = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.labelX6 = new DevComponents.DotNetBar.LabelX();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainerPhanLop)).BeginInit();
+ this.splitContainerPhanLop.Panel1.SuspendLayout();
+ this.splitContainerPhanLop.Panel2.SuspendLayout();
+ this.splitContainerPhanLop.SuspendLayout();
+ this.panelChaTrai.SuspendLayout();
+ this.panelConTren.SuspendLayout();
+ this.groupPanelLopCu.SuspendLayout();
+ this.panelConPhai.SuspendLayout();
+ this.groupPanelLopMoi.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // splitContainerPhanLop
+ //
+ this.splitContainerPhanLop.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainerPhanLop.Location = new System.Drawing.Point(0, 0);
+ this.splitContainerPhanLop.Name = "splitContainerPhanLop";
+ //
+ // splitContainerPhanLop.Panel1
+ //
+ this.splitContainerPhanLop.Panel1.Controls.Add(this.panelChaTrai);
+ //
+ // splitContainerPhanLop.Panel2
+ //
+ this.splitContainerPhanLop.Panel2.Controls.Add(this.lvLopMoi);
+ this.splitContainerPhanLop.Panel2.Controls.Add(this.groupPanelLopMoi);
+ this.splitContainerPhanLop.Size = new System.Drawing.Size(794, 468);
+ this.splitContainerPhanLop.SplitterDistance = 430;
+ this.splitContainerPhanLop.TabIndex = 0;
+ //
+ // panelChaTrai
+ //
+ this.panelChaTrai.Controls.Add(this.lvLopCu);
+ this.panelChaTrai.Controls.Add(this.panelConTren);
+ this.panelChaTrai.Controls.Add(this.panelConPhai);
+ this.panelChaTrai.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panelChaTrai.Location = new System.Drawing.Point(0, 0);
+ this.panelChaTrai.Name = "panelChaTrai";
+ this.panelChaTrai.Size = new System.Drawing.Size(430, 468);
+ this.panelChaTrai.TabIndex = 0;
+ //
+ // lvLopCu
+ //
+ //
+ //
+ //
+ this.lvLopCu.Border.Class = "ListViewBorder";
+ this.lvLopCu.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.colMaHSCu,
+ this.colHoTenCu});
+ this.lvLopCu.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lvLopCu.FullRowSelect = true;
+ this.lvLopCu.Location = new System.Drawing.Point(0, 120);
+ this.lvLopCu.Name = "lvLopCu";
+ this.lvLopCu.Size = new System.Drawing.Size(360, 348);
+ this.lvLopCu.SmallImageList = this.imageListPhanLop;
+ this.lvLopCu.TabIndex = 2;
+ this.lvLopCu.UseCompatibleStateImageBehavior = false;
+ this.lvLopCu.View = System.Windows.Forms.View.Details;
+ //
+ // colMaHSCu
+ //
+ this.colMaHSCu.Text = "Mã học sinh";
+ this.colMaHSCu.Width = 90;
+ //
+ // colHoTenCu
+ //
+ this.colHoTenCu.Text = "Họ và tên";
+ this.colHoTenCu.Width = 267;
+ //
+ // imageListPhanLop
+ //
+ this.imageListPhanLop.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
+ this.imageListPhanLop.ImageSize = new System.Drawing.Size(1, 18);
+ this.imageListPhanLop.TransparentColor = System.Drawing.Color.Transparent;
+ //
+ // panelConTren
+ //
+ this.panelConTren.Controls.Add(this.groupPanelLopCu);
+ this.panelConTren.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panelConTren.Location = new System.Drawing.Point(0, 0);
+ this.panelConTren.Name = "panelConTren";
+ this.panelConTren.Size = new System.Drawing.Size(360, 120);
+ this.panelConTren.TabIndex = 0;
+ //
+ // groupPanelLopCu
+ //
+ this.groupPanelLopCu.CanvasColor = System.Drawing.SystemColors.Control;
+ this.groupPanelLopCu.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
+ this.groupPanelLopCu.Controls.Add(this.cmbLopCu);
+ this.groupPanelLopCu.Controls.Add(this.cmbKhoiLopCu);
+ this.groupPanelLopCu.Controls.Add(this.cmbNamHocCu);
+ this.groupPanelLopCu.Controls.Add(this.labelX3);
+ this.groupPanelLopCu.Controls.Add(this.labelX2);
+ this.groupPanelLopCu.Controls.Add(this.labelX1);
+ this.groupPanelLopCu.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.groupPanelLopCu.Location = new System.Drawing.Point(0, 0);
+ this.groupPanelLopCu.Name = "groupPanelLopCu";
+ this.groupPanelLopCu.Size = new System.Drawing.Size(360, 120);
+ //
+ //
+ //
+ this.groupPanelLopCu.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
+ this.groupPanelLopCu.Style.BackColorGradientAngle = 90;
+ this.groupPanelLopCu.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
+ this.groupPanelLopCu.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopCu.Style.BorderBottomWidth = 1;
+ this.groupPanelLopCu.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.groupPanelLopCu.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopCu.Style.BorderLeftWidth = 1;
+ this.groupPanelLopCu.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopCu.Style.BorderRightWidth = 1;
+ this.groupPanelLopCu.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopCu.Style.BorderTopWidth = 1;
+ this.groupPanelLopCu.Style.CornerDiameter = 4;
+ this.groupPanelLopCu.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.groupPanelLopCu.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
+ this.groupPanelLopCu.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.groupPanelLopCu.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
+ this.groupPanelLopCu.TabIndex = 1;
+ this.groupPanelLopCu.Text = "Thông tin lớp cũ";
+ //
+ // cmbLopCu
+ //
+ this.cmbLopCu.DisplayMember = "Text";
+ this.cmbLopCu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbLopCu.FormattingEnabled = true;
+ this.cmbLopCu.ItemHeight = 14;
+ this.cmbLopCu.Location = new System.Drawing.Point(120, 70);
+ this.cmbLopCu.Name = "cmbLopCu";
+ this.cmbLopCu.Size = new System.Drawing.Size(121, 20);
+ this.cmbLopCu.TabIndex = 3;
+ this.cmbLopCu.SelectedIndexChanged += new System.EventHandler(this.cmbLopCu_SelectedIndexChanged);
+ //
+ // cmbKhoiLopCu
+ //
+ this.cmbKhoiLopCu.DisplayMember = "Text";
+ this.cmbKhoiLopCu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbKhoiLopCu.FormattingEnabled = true;
+ this.cmbKhoiLopCu.ItemHeight = 14;
+ this.cmbKhoiLopCu.Location = new System.Drawing.Point(120, 40);
+ this.cmbKhoiLopCu.Name = "cmbKhoiLopCu";
+ this.cmbKhoiLopCu.Size = new System.Drawing.Size(121, 20);
+ this.cmbKhoiLopCu.TabIndex = 2;
+ this.cmbKhoiLopCu.SelectedIndexChanged += new System.EventHandler(this.cmbKhoiLopCu_SelectedIndexChanged);
+ //
+ // cmbNamHocCu
+ //
+ this.cmbNamHocCu.DisplayMember = "Text";
+ this.cmbNamHocCu.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbNamHocCu.FormattingEnabled = true;
+ this.cmbNamHocCu.ItemHeight = 14;
+ this.cmbNamHocCu.Location = new System.Drawing.Point(120, 10);
+ this.cmbNamHocCu.Name = "cmbNamHocCu";
+ this.cmbNamHocCu.Size = new System.Drawing.Size(121, 20);
+ this.cmbNamHocCu.TabIndex = 1;
+ this.cmbNamHocCu.SelectedIndexChanged += new System.EventHandler(this.cmbNamHocCu_SelectedIndexChanged);
+ //
+ // labelX3
+ //
+ this.labelX3.BackColor = System.Drawing.Color.Transparent;
+ this.labelX3.Location = new System.Drawing.Point(50, 70);
+ this.labelX3.Name = "labelX3";
+ this.labelX3.Size = new System.Drawing.Size(57, 19);
+ this.labelX3.TabIndex = 0;
+ this.labelX3.Text = "Lớp:";
+ //
+ // labelX2
+ //
+ this.labelX2.BackColor = System.Drawing.Color.Transparent;
+ this.labelX2.Location = new System.Drawing.Point(50, 40);
+ this.labelX2.Name = "labelX2";
+ this.labelX2.Size = new System.Drawing.Size(57, 23);
+ this.labelX2.TabIndex = 0;
+ this.labelX2.Text = "Khối lớp:";
+ //
+ // labelX1
+ //
+ this.labelX1.BackColor = System.Drawing.Color.Transparent;
+ this.labelX1.Location = new System.Drawing.Point(50, 10);
+ this.labelX1.Name = "labelX1";
+ this.labelX1.Size = new System.Drawing.Size(57, 20);
+ this.labelX1.TabIndex = 0;
+ this.labelX1.Text = "Năm học:";
+ //
+ // panelConPhai
+ //
+ this.panelConPhai.Controls.Add(this.btnThoat);
+ this.panelConPhai.Controls.Add(this.btnLuu);
+ this.panelConPhai.Controls.Add(this.btnXoa);
+ this.panelConPhai.Controls.Add(this.btnChuyen);
+ this.panelConPhai.Dock = System.Windows.Forms.DockStyle.Right;
+ this.panelConPhai.Location = new System.Drawing.Point(360, 0);
+ this.panelConPhai.Name = "panelConPhai";
+ this.panelConPhai.Size = new System.Drawing.Size(70, 468);
+ this.panelConPhai.TabIndex = 3;
+ //
+ // btnThoat
+ //
+ this.btnThoat.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnThoat.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnThoat.Image = global::QuanLyHocSinh.Properties.Resources.thoat_phan_lop;
+ this.btnThoat.Location = new System.Drawing.Point(9, 370);
+ this.btnThoat.Name = "btnThoat";
+ this.btnThoat.Size = new System.Drawing.Size(55, 55);
+ this.btnThoat.TabIndex = 3;
+ this.btnThoat.Tooltip = "Đóng bảng phân lớp";
+ this.btnThoat.Click += new System.EventHandler(this.btnThoat_Click);
+ //
+ // btnLuu
+ //
+ this.btnLuu.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnLuu.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnLuu.Image = global::QuanLyHocSinh.Properties.Resources.luu_chuyen_lop;
+ this.btnLuu.Location = new System.Drawing.Point(9, 300);
+ this.btnLuu.Name = "btnLuu";
+ this.btnLuu.Size = new System.Drawing.Size(55, 55);
+ this.btnLuu.TabIndex = 3;
+ this.btnLuu.Tooltip = "Lưu bảng phân lớp";
+ this.btnLuu.Click += new System.EventHandler(this.btnLuu_Click);
+ //
+ // btnXoa
+ //
+ this.btnXoa.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnXoa.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnXoa.Image = global::QuanLyHocSinh.Properties.Resources.xoa_chuyen_lop;
+ this.btnXoa.Location = new System.Drawing.Point(9, 230);
+ this.btnXoa.Name = "btnXoa";
+ this.btnXoa.Size = new System.Drawing.Size(55, 55);
+ this.btnXoa.TabIndex = 2;
+ this.btnXoa.Tooltip = "Xóa học sinh khỏi lớp mới";
+ this.btnXoa.Click += new System.EventHandler(this.btnXoa_Click);
+ //
+ // btnChuyen
+ //
+ this.btnChuyen.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
+ this.btnChuyen.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
+ this.btnChuyen.Image = global::QuanLyHocSinh.Properties.Resources.chuyen_lop;
+ this.btnChuyen.Location = new System.Drawing.Point(9, 160);
+ this.btnChuyen.Name = "btnChuyen";
+ this.btnChuyen.Size = new System.Drawing.Size(55, 55);
+ this.btnChuyen.TabIndex = 1;
+ this.btnChuyen.Tooltip = "Chuyển lớp";
+ this.btnChuyen.Click += new System.EventHandler(this.btnChuyen_Click);
+ //
+ // lvLopMoi
+ //
+ //
+ //
+ //
+ this.lvLopMoi.Border.Class = "ListViewBorder";
+ this.lvLopMoi.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.colMaHSMoi,
+ this.colHoTenMoi});
+ this.lvLopMoi.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lvLopMoi.FullRowSelect = true;
+ this.lvLopMoi.Location = new System.Drawing.Point(0, 120);
+ this.lvLopMoi.Name = "lvLopMoi";
+ this.lvLopMoi.Size = new System.Drawing.Size(360, 348);
+ this.lvLopMoi.SmallImageList = this.imageListPhanLop;
+ this.lvLopMoi.TabIndex = 5;
+ this.lvLopMoi.UseCompatibleStateImageBehavior = false;
+ this.lvLopMoi.View = System.Windows.Forms.View.Details;
+ //
+ // colMaHSMoi
+ //
+ this.colMaHSMoi.Text = "Mã học sinh";
+ this.colMaHSMoi.Width = 90;
+ //
+ // colHoTenMoi
+ //
+ this.colHoTenMoi.Text = "Họ và tên";
+ this.colHoTenMoi.Width = 267;
+ //
+ // groupPanelLopMoi
+ //
+ this.groupPanelLopMoi.CanvasColor = System.Drawing.SystemColors.Control;
+ this.groupPanelLopMoi.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
+ this.groupPanelLopMoi.Controls.Add(this.cmbLopMoi);
+ this.groupPanelLopMoi.Controls.Add(this.labelX5);
+ this.groupPanelLopMoi.Controls.Add(this.cmbKhoiLopMoi);
+ this.groupPanelLopMoi.Controls.Add(this.labelX4);
+ this.groupPanelLopMoi.Controls.Add(this.cmbNamHocMoi);
+ this.groupPanelLopMoi.Controls.Add(this.labelX6);
+ this.groupPanelLopMoi.Dock = System.Windows.Forms.DockStyle.Top;
+ this.groupPanelLopMoi.Location = new System.Drawing.Point(0, 0);
+ this.groupPanelLopMoi.Name = "groupPanelLopMoi";
+ this.groupPanelLopMoi.Size = new System.Drawing.Size(360, 120);
+ //
+ //
+ //
+ this.groupPanelLopMoi.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
+ this.groupPanelLopMoi.Style.BackColorGradientAngle = 90;
+ this.groupPanelLopMoi.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
+ this.groupPanelLopMoi.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopMoi.Style.BorderBottomWidth = 1;
+ this.groupPanelLopMoi.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
+ this.groupPanelLopMoi.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopMoi.Style.BorderLeftWidth = 1;
+ this.groupPanelLopMoi.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopMoi.Style.BorderRightWidth = 1;
+ this.groupPanelLopMoi.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
+ this.groupPanelLopMoi.Style.BorderTopWidth = 1;
+ this.groupPanelLopMoi.Style.CornerDiameter = 4;
+ this.groupPanelLopMoi.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.groupPanelLopMoi.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
+ this.groupPanelLopMoi.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
+ this.groupPanelLopMoi.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
+ this.groupPanelLopMoi.TabIndex = 4;
+ this.groupPanelLopMoi.Text = "Thông tin lớp mới";
+ //
+ // cmbLopMoi
+ //
+ this.cmbLopMoi.DisplayMember = "Text";
+ this.cmbLopMoi.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbLopMoi.FormattingEnabled = true;
+ this.cmbLopMoi.ItemHeight = 14;
+ this.cmbLopMoi.Location = new System.Drawing.Point(120, 70);
+ this.cmbLopMoi.Name = "cmbLopMoi";
+ this.cmbLopMoi.Size = new System.Drawing.Size(121, 20);
+ this.cmbLopMoi.TabIndex = 3;
+ this.cmbLopMoi.SelectedIndexChanged += new System.EventHandler(this.cmbLopMoi_SelectedIndexChanged);
+ //
+ // labelX5
+ //
+ this.labelX5.BackColor = System.Drawing.Color.Transparent;
+ this.labelX5.Location = new System.Drawing.Point(50, 40);
+ this.labelX5.Name = "labelX5";
+ this.labelX5.Size = new System.Drawing.Size(57, 23);
+ this.labelX5.TabIndex = 0;
+ this.labelX5.Text = "Khối lớp:";
+ //
+ // cmbKhoiLopMoi
+ //
+ this.cmbKhoiLopMoi.DisplayMember = "Text";
+ this.cmbKhoiLopMoi.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbKhoiLopMoi.FormattingEnabled = true;
+ this.cmbKhoiLopMoi.ItemHeight = 14;
+ this.cmbKhoiLopMoi.Location = new System.Drawing.Point(120, 40);
+ this.cmbKhoiLopMoi.Name = "cmbKhoiLopMoi";
+ this.cmbKhoiLopMoi.Size = new System.Drawing.Size(121, 20);
+ this.cmbKhoiLopMoi.TabIndex = 2;
+ this.cmbKhoiLopMoi.SelectedIndexChanged += new System.EventHandler(this.cmbKhoiLopMoi_SelectedIndexChanged);
+ //
+ // labelX4
+ //
+ this.labelX4.BackColor = System.Drawing.Color.Transparent;
+ this.labelX4.Location = new System.Drawing.Point(50, 10);
+ this.labelX4.Name = "labelX4";
+ this.labelX4.Size = new System.Drawing.Size(57, 20);
+ this.labelX4.TabIndex = 0;
+ this.labelX4.Text = "Năm học:";
+ //
+ // cmbNamHocMoi
+ //
+ this.cmbNamHocMoi.DisplayMember = "Text";
+ this.cmbNamHocMoi.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.cmbNamHocMoi.FormattingEnabled = true;
+ this.cmbNamHocMoi.ItemHeight = 14;
+ this.cmbNamHocMoi.Location = new System.Drawing.Point(120, 10);
+ this.cmbNamHocMoi.Name = "cmbNamHocMoi";
+ this.cmbNamHocMoi.Size = new System.Drawing.Size(121, 20);
+ this.cmbNamHocMoi.TabIndex = 1;
+ this.cmbNamHocMoi.SelectedIndexChanged += new System.EventHandler(this.cmbNamHocMoi_SelectedIndexChanged);
+ //
+ // labelX6
+ //
+ this.labelX6.BackColor = System.Drawing.Color.Transparent;
+ this.labelX6.Location = new System.Drawing.Point(50, 70);
+ this.labelX6.Name = "labelX6";
+ this.labelX6.Size = new System.Drawing.Size(57, 19);
+ this.labelX6.TabIndex = 0;
+ this.labelX6.Text = "Lớp:";
+ //
+ // frmPhanLop
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(794, 468);
+ this.Controls.Add(this.splitContainerPhanLop);
+ this.DoubleBuffered = true;
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Name = "frmPhanLop";
+ this.ShowInTaskbar = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "PHÂN LỚP HỌC SINH";
+ this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+ this.Load += new System.EventHandler(this.frmPhanLop_Load);
+ this.splitContainerPhanLop.Panel1.ResumeLayout(false);
+ this.splitContainerPhanLop.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainerPhanLop)).EndInit();
+ this.splitContainerPhanLop.ResumeLayout(false);
+ this.panelChaTrai.ResumeLayout(false);
+ this.panelConTren.ResumeLayout(false);
+ this.groupPanelLopCu.ResumeLayout(false);
+ this.panelConPhai.ResumeLayout(false);
+ this.groupPanelLopMoi.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ #region Components
+ private System.Windows.Forms.SplitContainer splitContainerPhanLop;
+ private System.Windows.Forms.Panel panelChaTrai;
+ private System.Windows.Forms.Panel panelConPhai;
+ private System.Windows.Forms.Panel panelConTren;
+ private DevComponents.DotNetBar.Controls.GroupPanel groupPanelLopMoi;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cmbKhoiLopMoi;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cmbNamHocMoi;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLopMoi;
+ private DevComponents.DotNetBar.Controls.GroupPanel groupPanelLopCu;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cmbLopCu;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cmbKhoiLopCu;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx cmbNamHocCu;
+ private DevComponents.DotNetBar.Controls.ListViewEx lvLopCu;
+ private DevComponents.DotNetBar.Controls.ListViewEx lvLopMoi;
+ private DevComponents.DotNetBar.LabelX labelX3;
+ private DevComponents.DotNetBar.LabelX labelX2;
+ private DevComponents.DotNetBar.LabelX labelX1;
+ private DevComponents.DotNetBar.LabelX labelX5;
+ private DevComponents.DotNetBar.LabelX labelX4;
+ private DevComponents.DotNetBar.LabelX labelX6;
+ private DevComponents.DotNetBar.ButtonX btnLuu;
+ private DevComponents.DotNetBar.ButtonX btnXoa;
+ private DevComponents.DotNetBar.ButtonX btnChuyen;
+ private DevComponents.DotNetBar.ButtonX btnThoat;
+ private System.Windows.Forms.ColumnHeader colMaHSCu;
+ private System.Windows.Forms.ColumnHeader colHoTenCu;
+ private System.Windows.Forms.ColumnHeader colMaHSMoi;
+ private System.Windows.Forms.ColumnHeader colHoTenMoi;
+ private System.Windows.Forms.ImageList imageListPhanLop;
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/QuanLyHocSinh/frmPhanLop.cs b/QuanLyHocSinh/frmPhanLop.cs
new file mode 100644
index 0000000..a453fe3
--- /dev/null
+++ b/QuanLyHocSinh/frmPhanLop.cs
@@ -0,0 +1,180 @@
+using BUS;
+using DevComponents.DotNetBar;
+using System;
+using System.Collections;
+using System.Data;
+using System.Windows.Forms;
+
+namespace QuanLyHocSinh
+{
+ public partial class frmPhanLop : Office2007Form
+ {
+ public frmPhanLop()
+ {
+ InitializeComponent();
+ }
+
+ private void frmPhanLop_Load(object sender, EventArgs e)
+ {
+ NamHocBUS.Instance.HienThiComboBox(cmbNamHocCu);
+ NamHocBUS.Instance.HienThiComboBox(cmbNamHocMoi);
+ KhoiLopBUS.Instance.HienThiComboBox(cmbKhoiLopCu);
+
+ cmbKhoiLopCu_SelectedIndexChanged(sender, e);
+ cmbKhoiLopMoi_SelectedIndexChanged(sender, e);
+
+ cmbLopCu_SelectedIndexChanged(sender, e);
+ cmbLopMoi_SelectedIndexChanged(sender, e);
+ }
+
+ private void cmbNamHocCu_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ cmbKhoiLopCu.DataBindings.Clear();
+ cmbLopCu.DataBindings.Clear();
+ }
+
+ private void cmbNamHocMoi_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ cmbKhoiLopMoi.DataBindings.Clear();
+ cmbLopMoi.DataBindings.Clear();
+ }
+
+ private void cmbKhoiLopCu_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (cmbNamHocCu.SelectedValue != null && cmbKhoiLopCu.SelectedValue != null)
+ {
+ LopBUS.Instance.HienThiComboBox(cmbKhoiLopCu.SelectedValue.ToString(), cmbNamHocCu.SelectedValue.ToString(), cmbLopCu);
+ KhoiLopBUS.Instance.HienThiComboBox(cmbKhoiLopCu.SelectedValue.ToString(), cmbKhoiLopMoi);
+ cmbLopCu.DataBindings.Clear();
+ lvLopCu.Items.Clear();
+ }
+ }
+
+ private void cmbKhoiLopMoi_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (cmbNamHocMoi.SelectedValue != null && cmbKhoiLopMoi.SelectedValue != null)
+ {
+ LopBUS.Instance.HienThiComboBox(cmbKhoiLopMoi.SelectedValue.ToString(), cmbNamHocMoi.SelectedValue.ToString(), cmbLopMoi);
+ cmbLopMoi.DataBindings.Clear();
+ lvLopMoi.Items.Clear();
+ }
+ }
+
+ private void cmbLopCu_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (cmbLopCu.SelectedValue != null && cmbNamHocCu.SelectedValue != null && cmbKhoiLopCu.SelectedValue != null)
+ HocSinhBUS.Instance.HienThiHocSinhTheoLop(
+ cmbNamHocCu.SelectedValue.ToString(),
+ cmbKhoiLopCu.SelectedValue.ToString(),
+ cmbLopCu.SelectedValue.ToString(),
+ lvLopCu
+ );
+ }
+
+ private void cmbLopMoi_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (cmbLopMoi.SelectedValue != null && cmbNamHocMoi.SelectedValue != null && cmbKhoiLopMoi.SelectedValue != null)
+ HocSinhBUS.Instance.HienThiHocSinhTheoLop(
+ cmbNamHocMoi.SelectedValue.ToString(),
+ cmbKhoiLopMoi.SelectedValue.ToString(),
+ cmbLopMoi.SelectedValue.ToString(),
+ lvLopMoi
+ );
+ }
+
+ private void btnChuyen_Click(object sender, EventArgs e)
+ {
+ IEnumerator ie = lvLopCu.SelectedItems.GetEnumerator();
+ while (ie.MoveNext())
+ {
+ ListViewItem olditem = (ListViewItem)ie.Current;
+ ListViewItem newitem = new ListViewItem();
+
+ bool state = false;
+ foreach (ListViewItem item in lvLopMoi.Items)
+ {
+ if (item.SubItems[0].Text == olditem.SubItems[0].Text)
+ {
+ MessageBox.Show(
+ $"Học sinh {item.SubItems[1].Text} hiện đang học trong lớp {cmbLopMoi.Text}",
+ "ERROR",
+ MessageBoxButtons.OK,
+ MessageBoxIcon.Error
+ );
+ state = true;
+ break;
+ }
+ }
+ if (state == true) break;
+
+ DataTable dataTable = new DataTable();
+ if (cmbNamHocMoi.SelectedValue != null)
+ dataTable = HocSinhBUS.Instance.LayDanhSachHocSinhTheoNamHoc(cmbNamHocMoi.SelectedValue.ToString());
+
+ foreach (DataRow row in dataTable.Rows)
+ {
+ if (olditem.SubItems[0].Text.ToString() == row["MaHocSinh"].ToString())
+ {
+ MessageBox.Show(
+ $"Học sinh {row["HoTen"]} hiện đang học trong lớp {row["TenLop"]}",
+ "ERROR",
+ MessageBoxButtons.OK,
+ MessageBoxIcon.Error
+ );
+ state = true;
+ break;
+ }
+ }
+ if (state == true) break;
+
+ newitem.SubItems.Add(olditem.SubItems[1].Text);
+ newitem.Tag = olditem.Tag;
+
+ lvLopMoi.Items.Add(newitem);
+ lvLopMoi.Items[lvLopMoi.Items.IndexOf(newitem)].Text = olditem.SubItems[0].Text;
+ lvLopCu.Items.Remove(olditem);
+ }
+ }
+
+ private void btnXoa_Click(object sender, EventArgs e)
+ {
+ if (MessageBox.Show("Bạn có muốn xóa học sinh này khỏi lớp mới không ?", "DELETE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+ {
+ IEnumerator ie = lvLopMoi.SelectedItems.GetEnumerator();
+ while (ie.MoveNext())
+ {
+ ListViewItem item = (ListViewItem)ie.Current;
+ lvLopMoi.Items.Remove(item);
+ }
+ }
+ }
+
+ private void btnLuu_Click(object sender, EventArgs e)
+ {
+ if (cmbNamHocCu.SelectedValue != null && cmbKhoiLopCu.SelectedValue != null &&
+ cmbLopCu.SelectedValue != null && cmbNamHocMoi.SelectedValue != null &&
+ cmbKhoiLopMoi.SelectedValue != null && cmbLopMoi.SelectedValue != null)
+ {
+ PhanLopBUS.Instance.XoaHocSinhKhoiBangPhanLop(
+ cmbNamHocCu.SelectedValue.ToString(),
+ cmbKhoiLopCu.SelectedValue.ToString(),
+ cmbLopCu.SelectedValue.ToString(),
+ lvLopMoi
+ );
+ PhanLopBUS.Instance.LuuHocSinhVaoBangPhanLop(
+ cmbNamHocMoi.SelectedValue.ToString(),
+ cmbKhoiLopMoi.SelectedValue.ToString(),
+ cmbLopMoi.SelectedValue.ToString(),
+ lvLopMoi
+ );
+ MessageBox.Show("Đã lưu vào bảng phân lớp !", "COMPLETED", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else MessageBox.Show("Giá trị của các ô không được rỗng !", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+
+ private void btnThoat_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+ }
+}
diff --git a/QuanLyHocSinh/frmPhanLop.resx b/QuanLyHocSinh/frmPhanLop.resx
new file mode 100644
index 0000000..eba44b7
--- /dev/null
+++ b/QuanLyHocSinh/frmPhanLop.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/Releases/QuanLyHocSinh-1.0.2-full.nupkg b/Releases/QuanLyHocSinh-1.0.3-full.nupkg
similarity index 85%
rename from Releases/QuanLyHocSinh-1.0.2-full.nupkg
rename to Releases/QuanLyHocSinh-1.0.3-full.nupkg
index 52d7cd5..7899866 100644
Binary files a/Releases/QuanLyHocSinh-1.0.2-full.nupkg and b/Releases/QuanLyHocSinh-1.0.3-full.nupkg differ
diff --git a/Releases/RELEASES b/Releases/RELEASES
index f7b8c09..cbce2c7 100644
--- a/Releases/RELEASES
+++ b/Releases/RELEASES
@@ -1 +1 @@
-D63E13C3CF2D0D8F294AB2D8E5A1B01D3E81E77E QuanLyHocSinh-1.0.2-full.nupkg 20291192
\ No newline at end of file
+54344347C0D4C0F0473E287D8F4F25872A8AD31B QuanLyHocSinh-1.0.3-full.nupkg 20305700
\ No newline at end of file
diff --git a/Releases/Setup.exe b/Releases/Setup.exe
index 7047893..41f927c 100644
Binary files a/Releases/Setup.exe and b/Releases/Setup.exe differ
diff --git a/Releases/Setup.msi b/Releases/Setup.msi
index be6d630..6e049d3 100644
Binary files a/Releases/Setup.msi and b/Releases/Setup.msi differ