MobileSetWindow.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * 流程节点手机支持设置
  3. {actDefId:actDefId,nodeId:activitiId,activityName:activityName}
  4. * @param conf
  5. */
  6. MobileSetWindow=function(conf){
  7. if(!conf) conf={};
  8. var url=__ctx + "/platform/bpm/bpmDefinition/mobileSet.ht?actDefId=" + conf.actDefId+"&nodeId=" + conf.nodeId;
  9. var dialogWidth=400;
  10. var dialogHeight=200;
  11. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  12. var winArgs="dialogWidth:"+conf.dialogWidth+"px;dialogHeight:"+conf.dialogHeight
  13. +"px;help:" + conf.help +";status:" + conf.status +";scroll:" + conf.scroll +";center:" +conf.center;
  14. url=url.getNewUrl();
  15. /*var rtn=window.showModalDialog(url,"",winArgs);
  16. if (conf.callback) {
  17. conf.callback.call(this,rtn);
  18. }*/
  19. var that =this;
  20. /*KILLDIALOG*/
  21. DialogUtil.open({
  22. height:conf.dialogHeight,
  23. width: conf.dialogWidth,
  24. title : '流程节点手机支持设置',
  25. url: url,
  26. isResize: true,
  27. //自定义参数
  28. sucCall:function(rtn){
  29. if (conf.callback) {
  30. conf.callback.call(this,rtn);
  31. }
  32. }
  33. });
  34. };