起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3009|回复: 2

[结贴] 如何获取人员选择页面的返回信息?

[复制链接]

97

主题

267

帖子

627

积分

高级会员

Rank: 4

积分
627
QQ
发表于 2017-3-15 19:18:15 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
本帖最后由 changda 于 2017-3-15 19:43 编辑

4.png 5.png

我在页面上放了一个orgDialog组件,然后在list中放了一个按钮打开这个orgDialog,点击时弹出选择人员的页面。
请问:
1、如何设置人员的过滤条件,需要和别的表关联作为过滤条件?比如我的过滤条件需要SA_oporg是关联tableA的personID,列出tableA的人员信息。
2、人员信息页面我可以继承或者扩展吗?比如我希望把人员的电话号码也返回呢?怎么做比较好?


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36064
发表于 2017-3-16 11:04:06 | 显示全部楼层
1.http://docs.wex5.com/bex5-ui-question-list-10169/
2.orgDialog返回人员电话号码需要修改如下
/BIZ/system/logic/code/dsrc/OPMProcedure.java中
  1. select = select + ",SA_OPPerson.sPhotoLastModified as sPhotoLastModified,SA_OPPerson.sNumb as sNumb";
复制代码

改为
  1. select = select + ",SA_OPPerson.sPhotoLastModified as sPhotoLastModified,SA_OPPerson.sNumb as sNumb,SA_OPPerson.sMobilePhone as personPhone";
复制代码


/UI2/system/components/justep/org/server/dsrc/GetOrgs.java中的
  1. String postData = !"true".equalsIgnoreCase(includePersonPhotoLastModified) ? "{"contentType":"json","accept":"application/json","process":"/SA/OPM/system/systemProcess","activity":"mainActivity","action":"queryOrgAction","parameters":{"variables":{},"filter":"(SA_OPOrg.sValidState=1)","offset":0,"limit":-1,"columns":"SA_OPOrg,sAddress,sCode,sDescription,sFCode,sFID,sFName,sFax,sLevel,sLongName,sName,sNodeKind,sOrgKindID,sParent,sPersonID,sPhone,sSequence,sValidState,sWxDeptID,sZip,version","cacheFilter":null},"translateParameter":{"dataType":"row-tree","transformIdcolumn":true,"includeState":true,"useNamespace":true,"cellnameByRelation":false,"rowsConfig":{"concept":"SA_OPOrg","sequence":"SA_OPOrg,sAddress,sCode,sDescription,sFCode,sFID,sFName,sFax,sLevel,sLongName,sName,sNodeKind,sOrgKindID,sParent,sPersonID,sPhone,sSequence,sValidState,sWxDeptID,sZip,version","treeOption":{"tree-parent-relation":"sParent"}}}}"
  2.                                         : "{"contentType":"application/json","accept":"application/json","process":"/SA/OPM/system/systemProcess","activity":"mainActivity","action":"queryOrgAction","parameters":{"columns":"SA_OPOrg,sName,sCode,sLongName,sFName,sFCode,sFID,sOrgKindID,sPersonID,sValidState,sSequence,sPhotoLastModified,sNumb","limit":-1,"offset":0,"includePersonPhotoLastModified":true},"translateParameter":{"dataType":"row-list","transformIdcolumn":false,"includeState":false,"useNamespace":true,"cellnameByRelation":false,"rowsConfig":{"concept":"SA_OPOrg","sequence":"SA_OPOrg,sName,sCode,sLongName,sFName,sFCode,sFID,sOrgKindID,sPersonID,sValidState,sSequence,sPhotoLastModified,sNumb"}}}";
复制代码

改为
  1. String postData = !"true".equalsIgnoreCase(includePersonPhotoLastModified) ? "{"contentType":"json","accept":"application/json","process":"/SA/OPM/system/systemProcess","activity":"mainActivity","action":"queryOrgAction","parameters":{"variables":{},"filter":"(SA_OPOrg.sValidState=1)","offset":0,"limit":-1,"columns":"SA_OPOrg,sAddress,sCode,sDescription,sFCode,sFID,sFName,sFax,sLevel,sLongName,sName,sNodeKind,sOrgKindID,sParent,sPersonID,sPhone,sSequence,sValidState,sWxDeptID,sZip,version,personPhone","cacheFilter":null},"translateParameter":{"dataType":"row-tree","transformIdcolumn":true,"includeState":true,"useNamespace":true,"cellnameByRelation":false,"rowsConfig":{"concept":"SA_OPOrg","sequence":"SA_OPOrg,sAddress,sCode,sDescription,sFCode,sFID,sFName,sFax,sLevel,sLongName,sName,sNodeKind,sOrgKindID,sParent,sPersonID,sPhone,sSequence,sValidState,sWxDeptID,sZip,version,personPhone","treeOption":{"tree-parent-relation":"sParent"}}}}"
  2.                                         : "{"contentType":"application/json","accept":"application/json","process":"/SA/OPM/system/systemProcess","activity":"mainActivity","action":"queryOrgAction","parameters":{"columns":"SA_OPOrg,sName,sCode,sLongName,sFName,sFCode,sFID,sOrgKindID,sPersonID,sValidState,sSequence,sPhotoLastModified,sNumb,personPhone","limit":-1,"offset":0,"includePersonPhotoLastModified":true},"translateParameter":{"dataType":"row-list","transformIdcolumn":false,"includeState":false,"useNamespace":true,"cellnameByRelation":false,"rowsConfig":{"concept":"SA_OPOrg","sequence":"SA_OPOrg,sName,sCode,sLongName,sFName,sFCode,sFID,sOrgKindID,sPersonID,sValidState,sSequence,sPhotoLastModified,sNumb,personPhone"}}}";
复制代码
然后在windowDialog的onReceive事件中就可以获取到
personPhone电话号码

远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

97

主题

267

帖子

627

积分

高级会员

Rank: 4

积分
627
QQ
 楼主| 发表于 2017-3-17 14:41:39 | 显示全部楼层
太过麻烦了,我还是自己重写一个dialog页面了。谢谢,请结贴。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-22 01:21 , Processed in 0.059050 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表