예제 #1
0
 def getManagerNames(self, num):
     query = "select fullname from managers order by fullname asc"
     if (num == 1):
         return DBUtils.getAsList(self._conn, query)
     else:
         return DBUtils.getAsList2(self._conn, query)
예제 #2
0
 def getRoleNames(self, num):
     query = "select rolename from roles order by rolename asc"
     if (num == 1):
         return DBUtils.getAsList(self._conn, query)
     else:
         return DBUtils.getAsList2(self._conn, query)