s-HR页面配置- 增加预警表格

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:16

s-HR页面配置- 增加预警表格

  1. 开发平台->数据集管理->数据集配置菜单:新增数据集预警消息数据集),类型选择-这里以自定义SQL为例

    修改方法:

自定义SQL如下:{@CURRENT_USER_ID}为右下角变量,当前用户ID,T_BAS_Message 为消息表,预警通知数据来自此表。


SELECT 

"BMCMESSAGE".FTitle_l2 AS "TITLE", 

"BMCMESSAGE".FSender_l2 AS "SENDER", 

"BMCMESSAGE".FSendTime AS "SENDTIME", 

"BMCMESSAGE".FReceiveTime AS "RECEIVETIME"

FROM T_BAS_Message AS "BMCMESSAGE"  where FBizType= 10 and ftype = 0  and FReceiver = {@CURRENT_USER_ID}


      image.webp


 

 (2)点击运行SQL进行数据查询测试,确保SQL运行正常后保存自定义SQL

image.webp

与流程中心数据一致

image.webp

(4)维护配置字段别名image.webp

(5)数据预览查看数据,无误后保存数据集image.webp

(6)数据集列表进行权限分配


image.webp


2.进入页面配置菜单:编辑修改员工自助页面->

(1)选择基础表格组件

image.webp

(2)配置卡片属性-维护必填项与列字段

image.webp


image.webp

(3)预览查看,会自动保存此页面

image.webp



若需增加操作列,参考如下:


增加通知跳转SQL,将URL字段在数据中展示,在页面配置中表格卡片中开启操作列,并将URL作为操作列,为URL


SQL参考:其FReceiver 为接收人,地址参考:IP:port/plt_wfpc/pages/noticeDetail.jsp?msgId=


SELECT 


select * from(SELECT 

'address/plt_wfpc/pages/noticeDetail.jsp?msgId=' || "BMCMESSAGE".FID AS "URL",

 "BMCMESSAGE".FTitle_l2 AS "TITLE",

"BMCMESSAGE".FSender_l2 AS "SENDER", 

"BMCMESSAGE".FSendTime AS "SENDTIME", 

"BMCMESSAGE".FReceiveTime AS "RECEIVETIME" 

FROM T_BAS_Message AS "BMCMESSAGE"  

where  FReceiver = {@CURRENT_USER_ID}  AND FURL is null


union


SELECT 

'address'|| "BMCMESSAGE".FURL || '&msgId=' || "BMCMESSAGE".FID AS "URL",

"BMCMESSAGE".FTitle_l2 AS "TITLE", 

"BMCMESSAGE".FSender_l2 AS "SENDER", 

"BMCMESSAGE".FSendTime AS "SENDTIME", 

"BMCMESSAGE".FReceiveTime AS "RECEIVETIME"

FROM T_BAS_Message AS "BMCMESSAGE"  where  FReceiver = {@CURRENT_USER_ID} and FBizType = 70 and FURL is not null) temp 

order by RECEIVETIME desc


image.webp



附录:


如果需要按类型过滤,可以按下图所需类型进行过滤,FType(类型),FBizType(业务类型)image.webpimage.webpimage.webp

s-HR页面配置- 增加预警表格

开发平台->数据集管理->数据集配置菜单:新增数据集(预警消息数据集),类型选择-这里以自定义SQL为例修改方法:自定义SQL如下:{@CURRENT...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息