Esempio n. 1
0
        public LookupData LoadLookup(bool orderByKey)
        {
            IUserGroupDAO       dao  = DAOFactory.CreateUserGroupDAO(CommonLib.Common.CurrentDatabase);
            List <UserGroupDTO> dtos = dao.LoadAll(null, orderByKey);

            return(new LookupData(DTOUtility.ConvertListToDataTable(dtos),
                                  UserGroupDTO.eColumns.GROUP_NAME.ToString(),
                                  UserGroupDTO.eColumns.GROUP_CD.ToString()));
        }
Esempio n. 2
0
        public List <UserGroupDTO> LoadAllGroup()
        {
            IUserGroupDAO dao = DAOFactory.CreateUserGroupDAO(CommonLib.Common.CurrentDatabase);

            return(dao.LoadAll(null));
        }