Load menu detailΒΆ


You can find these scripts inside the folder pmis/STND_PMIS/test/console/example.
If you want to execute them, you can use the Jython Console from the devtool menu.

filename => ex09.py

from java.util import *
from java.lang import *
from pmis.common.util import *

coreDao = ApplicationContext.get('coreDao')
print coreDao
print '-----------------------------'
param = HashMap()

param.put('pjt_cd', 'STND_PMIS')
param.put('user_no', 'masterpmis')
param.put('menu_cd', 'DOC0000')

menu = coreDao.getView('sangah.main.sql.getUserLeftMenuDetail', param)

for info in menu:
    val = menu.get(info)
    if val is not None:
        print (info + " > " + val).encode('utf-8')