public BOCls_User() { oDBUserController = new DBCls_Users(); ID = ""; FirstName = ""; LastName = ""; RoleName = ""; ReadPermission = ""; WritePermission = ""; EditPermission = ""; SearchPermission = ""; ObjectStatus = (int)UserStatus.New; }
public BOCls_User(String[] ArrUser) { oDBUserController = new DBCls_Users(); FillInUser(ArrUser); ObjectStatus = (int)UserStatus.NotModified; }
public BOCls_User(String UserID) { oDBUserController = new DBCls_Users(); GetUserByID(UserID); ObjectStatus = (int)UserStatus.NotModified; }
public bool GetUserByID(String UserID) { try { oDBUserController = new DBCls_Users(); String[,] ArrUser = oDBUserController.SearchUser(UserID); if (ArrUser != null) { ID = ArrUser[0, (int)UserCriteria.cID]; RoleName = ArrUser[0, (int)UserCriteria.cROLEDESCRIPTION]; ReadPermission = ArrUser[0, (int)UserCriteria.cREAD]; WritePermission = ArrUser[0, (int)UserCriteria.cWRITE]; EditPermission = ArrUser[0, (int)UserCriteria.cEDIT]; SearchPermission = ArrUser[0, (int)UserCriteria.cSEARCH]; } oDBUserController = null; } catch (Exception ex) { return false; } return true; }