/** * Description:通过字典ID获取字典内容 * @author qingl2 * @version 2013-07-04 */ @Override public List<Item> getDictItemsById(String did) throws Exception { List<Item> datas = executor.queryList(Item.class, "getDictItemsById", did); return datas; } /**
@Override public List<App> getAllPendingApp() throws Exception { return executor.queryList(App.class, "getAllPendingApp"); } @Override
@Override public List<Template> queryTempleList(String templateType) throws Exception { List<Template> templeList = executor.queryList(Template.class, "selectMessTemplateListByType", templateType); return templeList; }
@Override public List<App> getAllPendingAppByUserId(String userId) throws Exception { return executor.queryList(App.class, "getAllPendingAppByUserId",userId); } @Override
/** * 根据委托ID加载委托流程关联关系 * @param wfEntrustId * @return * @throws Exception */ public List<WfEntrustProcRelation> queryRelationByEntrustId(String wfEntrustId) throws Exception{ return executor.queryList(WfEntrustProcRelation.class, "queryRelationByEntrustId", wfEntrustId); }
@Override public List<BusinessType> getSonNodes(String parentID) { try { return executor.queryList(BusinessType.class, "selectSonBusinessList", parentID); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
@Override public List<BusinessType> getTopNodes() { try { return executor.queryList(BusinessType.class, "selectTopBusinessList"); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
@Override public List<Org> queryOrgList(String areaId) throws Exception { List<Org> list = new ArrayList<Org>(); list = executor.queryList(Org.class, "queryOrgList",areaId); return list; }
@Override public List<WorkDate> queryWorkDateList(String areaId) throws Exception { List<WorkDate> list = new ArrayList<WorkDate>(); list = executor.queryList(WorkDate.class, "queryWorkDateList",areaId); return list; } @Override
@Override public List<TreeNode> queryBusinessNode(String parentId){ try { return executor.queryList(TreeNode.class, "queryBusinessNode", parentId); } catch (Exception e) { e.printStackTrace(); return null; } }
@Override public List<Arrange> getSingleArrange(String year, String areaId, String week) throws Exception { List<Arrange> list = new ArrayList<Arrange>(); list = executor.queryList(Arrange.class, "getSingleArrange",areaId,year,week); return list; } @Override
@Override public List<WorkTime> queryWorkTimeList(String pid) throws Exception { List<WorkTime> list = new ArrayList<WorkTime>(); list = executor.queryList(WorkTime.class, "queryWorkTimeList",pid); return list; } @Override
public List<OrganizationDTO> getOrgsByParentId(String parentId) { try { List<OrganizationDTO> orgList = executor.queryList( OrganizationDTO.class, "selectOrgByParentId", parentId); return orgList; } catch (Exception e) { e.printStackTrace(); return null; } }
@Override public String getDefaultAreaId() throws Exception { List<String> list = executor.queryList(String.class, "getDefaultAreaId"); return (null != list && list.size()>0)?list.get(0):null; }
@Override public SysTitle getSysTitleById(String id) throws Exception { List<SysTitle> list = executor.queryList(SysTitle.class, "getSysTitleById", id); return (null != list && list.size()>0)?list.get(0):null; }
@Override public List<String> queryAreaIds() throws Exception { List<String> list = new ArrayList<String> (); try{ list = executor.queryList(String.class, "queryAreaIds"); }catch(Exception e){ e.printStackTrace(); } return list; } @Override
@Override public List<ActivitiVariable> getInstVariableInfoById(String processInstId) { try { // 根据流程实例id获取流程实例参数信息 List<ActivitiVariable> list = executor.queryList( ActivitiVariable.class, "getInstVariableInfoById_wf", processInstId); return list; } catch (SQLException e) { throw new ProcessException(e); } }
/** (non-Javadoc) * @see com.frameworkset.platform.admin.service.SmOrganizationService#getOrgmanagers(java.lang.String) */ @Override public List<SmUser> getOrgmanagers(String orgId) throws SmOrganizationException { // TODO Auto-generated method stub try { return this.executor.queryList(SmUser.class, "getOrgmanagers", orgId); } catch (SQLException e) { throw new SmOrganizationException("getOrgmanagers failed:", e); } } /** (non-Javadoc)
public List<LogStatic> logstatic()throws LogException{ try { return this.executor.queryList(LogStatic.class, "logstatic"); } catch (SQLException e) { throw new LogException(e); } }
@Override public List<WfEntrust> getEntrustInfo() { try { String currentAccount = AccessControl.getAccessControl() .getUserAccount(); return executor.queryList(WfEntrust.class, "getEntrustInfo_wf", currentAccount, currentAccount); } catch (Exception e) { throw new ProcessException(e); } }