예제 #1
0
        private void hienThiGrdLichHoc()
        {
            List <LichHocDTO> lstLichHocs = lichHocBLL.getLichHoc(currentlopHoc.id_LH);

            currentListLichHoc = lstLichHocs;

            grdLichHoc.Rows.Clear();

            int index = 0;

            foreach (LichHocDTO dto in lstLichHocs)
            {
                grdLichHoc.Rows.Add();
                grdLichHoc.Rows[index].Cells[0].Value = currentlopHoc.ngayBatDau.Day + "/" + currentlopHoc.ngayBatDau.Month + "/" + currentlopHoc.ngayBatDau.Year;
                grdLichHoc.Rows[index].Cells[1].Value = currentlopHoc.ngayKetThuc.Day + "/" + currentlopHoc.ngayKetThuc.Month + "/" + currentlopHoc.ngayKetThuc.Year;
                grdLichHoc.Rows[index].Cells[2].Value = dto.thu.ToString();
                grdLichHoc.Rows[index].Cells[3].Value = dto.tiet.Split(',')[0] + " -> " + dto.tiet.Split(',')[1];
                index++;
            }
        }
예제 #2
0
 private void updateLstLichHocs()
 {
     currentLstLichHocs = lichHocBLL.getLichHoc(currentLopHoc.id_LH);
 }