- (function(){
- var doc = getCurrentDocument();
- var docid = doc.getId();
- var formid = doc.getFormid();
- var touser = "";
- var title = doc.getItemValueAsString("title");
- var domainId = getWebUser().getDomainid();
- var applicationId = getApplication();
- var lastApprovedTime = getToday();
- var curDate = format(lastApprovedTime,"yyyy-MM-dd HH:mm");
- // var content = "景德镇高新区智慧政务平台提醒您,您于" + curDate + "收到来自" + deptName + "发布的通知(公告)(《" + title + "》),请查看。" ;
- var content = "景德镇高新区智慧政务平台提醒您,您于" + curDate + "收到来自单位账号待处理通知(《" + title + "》),请查看。" ;
- var sql = "select * from T_ACTORRT where DOC_ID='"+docid+"'";
- var datas = queryByDSName("O_DS",sql);
- if(datas!=null){
- for(var iterator = datas.iterator();iterator.hasNext();){
- var map1 = iterator.next();//取值
- var userid= map1.get("ACTORID");
- touser+=getUserById(userid).getField1()+"|";
- }
- var url1="actionContent="+formid+"&docId="+docid+"&openType=from_weixin_message";
- url1 = sys_function.WEIXIN_URL+ "obpm/mobile/index.html?application=__4svxZB6wTFsmrRt1bch#/open?linkType=00&" + url1;
- url1 = encodeURIComponent(url1);
- var url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwd1314fd58d639528&redirect_uri="+url1+"&response_type=code&scope=snsapi_base&agentid=1000002&state="+domainId+"#wechat_redirect";
-
- var picUrl="http://www.flxoa.cn/obpm/resource/image/tz_bg.png";
- touser=touser.substring(0,touser.length-1);
- sendWeixinRichTextMessage("yinxuewen",title,content,url,picUrl,domainId,applicationId);
- }
- })()
复制代码 |