|
|
【myApps/OBPM版本号】:4.4stable sp21
【浏览器类型】:Chrome
【技术QQ群】:182378297
【场景】:根据部门名称跟企业域ID获取部门ID
【解决方法】:
- //根据部门名称跟企业域ID获取部门ID
- (function(){
- var val="";
- var process = getDepartmentProcess();
- var depts= process.getDepartmentByName("资讯部",getDomainid());
- for(var it=depts.iterator();depts!=null && it.hasNext();){
- var dept = it.next();
- println("dept------>"+dept.getId());
- val=dept.getId();
- }
- return val;
- })();
复制代码 |
|