public void LoadStudentByBaseHouseRoomId(Guid roomId) { List <User> userList = RHP.UserManagement.User.SelectUserByHouseId("BaseHouseRoomId", roomId, "RoleName", "student"); DataListStudentList.DataSource = userList; DataListStudentList.DataBind(); }
public void LoadStudent() { if (HouseId.HasValue) { // HouseId = Guid.Parse("8313D02D-FA75-474A-A93B-0EFD3B817A88"); List <User> userList = User.SelectUserByHouseId("HouseId", HouseId.Value, "RoleName", "student"); DataListStudentList.DataSource = userList; DataListStudentList.DataBind(); } }
public void LoadStudentData(User user_) { if (user_.HouseId.HasValue) { List <User> userList = RHP.UserManagement.User.SelectUserByHouseId("HouseId", user_.HouseId.Value, "RoleName", "student"); DataListStudentList.DataSource = userList; DataListStudentList.DataBind(); } else if (user_.BaseHouseRoomId.HasValue) { List <User> userList = RHP.UserManagement.User.SelectUserByBaseHouseRoomId("BaseHouseRoomId", user_.BaseHouseRoomId.Value, "RoleName", "student"); DataListStudentList.DataSource = userList; DataListStudentList.DataBind(); } }
public void LoadStudent() { if (user != null) { if (user.HouseId.HasValue) { //user.HouseId = Guid.Parse("8313D02D-FA75-474A-A93B-0EFD3B817A83"); List <User> userList = User.SelectUserByHouseId("HouseId", user.HouseId.Value, "RoleName", "student"); DataListStudentList.DataSource = userList; DataListStudentList.DataBind(); if (userList.Count > 0) { currentHomeStudentData.Visible = true; } } } }
public void LoadStudent(Guid AccessCode) { user = User.Select(AccessCode); if (user != null) { if (user.HouseId.HasValue) { List <User> userList = User.SelectUserByHouseId("HouseId", user.HouseId.Value, "RoleName", "student"); DataListStudentList.DataSource = userList; DataListStudentList.DataBind(); if (userList.Count > 0) { currentHomeStudentData.Visible = true; } } } }