private void LoadDataObj(Guid id) { objLoaiThietBi = PTB.Entities.LoaiThietBi.getById(id); if (objLoaiThietBi != null) { Label_ThongTin.Text = string.Format("Thông tin {0}", objLoaiThietBi.ten); ucLoaiThietBi_BreadCrumb.Label_TenLoaiThietBi.Text = Label_TenLoai.Text = objLoaiThietBi.ten; Label_KieuQuanLy.Text = objLoaiThietBi.loaichung == true ? "Theo số lượng" : "Theo cá thể"; Label_MoTa.Text = objLoaiThietBi.mota; Label_Thuoc.Text = objLoaiThietBi.parent_id.Equals(null) ? "[Không thuộc loại nào]" : objLoaiThietBi.parent.ten; } else { Response.Redirect(Request.Url.AbsolutePath); } }