Beispiel #1
0
        public static void ThemLopThamGia(string maDV, string maLop)
        {
            DichVuSucKhoeDAL.ThemLopThamGia(maDV, maLop);

            //Them ket qua suc khoe mac dinh cho lop nay
            DataTable listTre = TreDAL.GetListTreTheoLop(maLop);

            foreach (DataRow row in listTre.Rows)
            {
                DichVuSucKhoeDAL.ThemThongTinSucKhoe(maDV, row["MaTre"].ToString());
            }
        }
Beispiel #2
0
        public static void ThemLopThamGia(string maHD, string maLop)
        {
            HoatDongNgoaiKhoaDAL.ThemLopThamGia(maHD, maLop);

            //Them ket qua hoat dong mac dinh cho lop nay
            DataTable listTre = TreDAL.GetListTreTheoLop(maLop);

            foreach (DataRow row in listTre.Rows)
            {
                HoatDongNgoaiKhoaDAL.ThemKetQuaHoatDong(maHD, row["MaTre"].ToString());
            }
        }
Beispiel #3
0
        public static void XoaLopThamGia(string maDV, string maLop)
        {
            //Xoa ket qua mac dinh da tao cho lop nay
            DataTable listTre = TreDAL.GetListTreTheoLop(maLop);

            foreach (DataRow row in listTre.Rows)
            {
                DichVuSucKhoeDAL.XoaThongTinSucKhoe(maDV, row["MaTre"].ToString());
            }

            //Tien hanh xoa lop nay trong danh sach lop tham gia
            DichVuSucKhoeDAL.XoaLopThamGia(maDV, maLop);
        }
Beispiel #4
0
        public static void XoaLopThamGia(string maHD, string maLop)
        {
            //Xoa ket qua mac dinh da tao cho lop nay
            DataTable listTre = TreDAL.GetListTreTheoLop(maLop);

            foreach (DataRow row in listTre.Rows)
            {
                HoatDongNgoaiKhoaDAL.XoaKetQuaHoatDong(maHD, row["MaTre"].ToString());
            }

            //Tien hanh xoa lop nay trong danh sach lop tham gia
            HoatDongNgoaiKhoaDAL.XoaLopThamGia(maHD, maLop);
        }
Beispiel #5
0
 public static DataTable GetListTreTheoLop(String maLop)
 {
     return(TreDAL.GetListTreTheoLop(maLop));
 }