public LoaiTietKiemInfo LayLoaiTK(String idMaLoaiTK) { LoaiTietKiemData ltk = new LoaiTietKiemData(); DataTable tbl = ltk.LayLoaiTietKiem(idMaLoaiTK); LoaiTietKiemInfo tk = null; LoaiTietKiemCtrl ctrlltk = new LoaiTietKiemCtrl(); DMTaiKhoanCtrl ctrldmtk = new DMTaiKhoanCtrl(); if (tbl.Rows.Count > 0) { tk = new LoaiTietKiemInfo(); tk.MaLoaiTietKiem = Convert.ToString(tbl.Rows[0]["MaLoaiTietKiem"]); tk.TenLoaiTietKiem = Convert.ToString(tbl.Rows[0]["TenLoaiTietKiem"]); tk.KyHan = Convert.ToInt32(tbl.Rows[0]["KyHan"]); tk.DangHuuDong = Convert.ToBoolean(tbl.Rows[0]["DangHuyDong"]); } return(tk); }