use of com.netsteadfast.greenstep.po.hbm.TbSysProg in project bamboobsc by billchen198318.
the class MenuSupportUtils method loadSysProg.
public static TbSysProg loadSysProg(String progId) throws ServiceException, Exception {
TbSysProg tbSysProg = new TbSysProg();
tbSysProg.setProgId(progId);
tbSysProg = sysProgService.findByEntityUK(tbSysProg);
if (null == tbSysProg) {
throw new ServiceException(SysMessageUtil.get(GreenStepSysMsgConstants.DATA_ERRORS));
}
return tbSysProg;
}
use of com.netsteadfast.greenstep.po.hbm.TbSysProg in project bamboobsc by billchen198318.
the class MenuSupportUtils method loadSysProgData.
protected static List<TbSysProg> loadSysProgData(String system) throws ServiceException, Exception {
List<TbSysProg> progList = null;
TbSys sys = new TbSys();
sys.setSysId(system);
if (sysService.countByEntityUK(sys) != 1) {
// 必需要有 TB_SYS 資料
throw new ServiceException(SysMessageUtil.get(GreenStepSysMsgConstants.DATA_ERRORS));
}
Map<String, Object> params = new HashMap<String, Object>();
Map<String, String> oderParams = new HashMap<String, String>();
params.put("progSystem", system);
oderParams.put("name", "asc");
progList = sysProgService.findListByParams(params, null, oderParams);
if (progList == null) {
progList = new ArrayList<TbSysProg>();
}
return progList;
}
Aggregations