Exemplo n.º 1
0
 private void Populate(DataRow dr)
 {
     this.UserGroupId          = Convert.ToInt32(dr[cn_fUserGroupId].ToString());
     this.UserGroupCode        = dr[cn_fUserGroupCode].ToString();
     this.UserGroupName        = dr[cn_fUserGroupName].ToString();
     this.UserGroupPermissions = UserGroupPermissions.GetUserGroupPermissions(miLoggedUserId, this.UserGroupId, true);
     this.UserGroupMenu        = UserGroupMenuItems.List(miLoggedUserId, this.UserGroupId);
     // Reset the state to unchanged
     this.SetEntityState(EntityStateType.Unchanged);
 }
Exemplo n.º 2
0
 public static UserGroupMenuItems List(int iLoggedUserId, int iUserGroupId)
 {
     mGroupMenuInstance = new UserGroupMenuItems(iLoggedUserId, iUserGroupId);
     Load(iUserGroupId);
     return(mGroupMenuInstance);
 }