|
|
A:在视图列中,点击某个列-脚本,放如下脚本,
- (function(){
- var doc = getCurrentDocument();
- var docid = doc.getId();
- var value = doc.getItemValueAsString("activity_appno");
- var valuename="查看关联号码";
- var application = getApplication();
- var request = $WEB.getParamsTable().getHttpRequest();//获取当前request
- var user = getWebUser();
- request.getSession().setAttribute("act_no",value);
- var url1 = "http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
- var oldUrl=url1+"/portal/dynaform/view/displayViewWithPermission.action?_viewid=11e6-b092-18df4ce2-96db-a1e3457c09a6&clearTemp=true&application="+application+"&_resourceid=11e6-b092-ea052c5e-96db-a1e3457c09a6&act_no="+value+"&_backURL=../../../portal/cool/closeTab.jsp";
- if(user.getEquipment()==1){//用手机设备访问
- var wetchat=request.getContextPath()+"/portal/dynaform/view/displayViewWithPermission.action?_viewid=11e6-b092-18df4ce2-96db-a1e3457c09a6&clearTemp=true&application="+application+"&_resourceid=11e6-b092-ea052c5e-96db-a1e3457c09a6&act_no="+value+"&_backURL=../../../portal/cool/closeTab.jsp";
- oldUrl=url1+"/portal/phone/main.jsp?application="+application+"&action=null&jumpToUrl="+encodeURIComponent(wetchat);
- println("test11111111111111111111111="+oldUrl);
- }
- println("test======"+oldUrl);
- var rnt = "<a style='background-color:#ff8400;border:0px;color:white;height: 31px;width: 100px' onMouseOver="this.style.backgroundColor='blue';this.style.cursor='hand';this.style.color='#fff';" onMouseOut="this.style.backgroundColor='#ff8400';this.style.color='#fff';" onclick="event.stopPropagation();OBPM.dialog.show({width:1200,height:500,url:'" + oldUrl + "',title:'查看列表',maximization:false,maximized:true,position:'center'});;">"+value+"</a>";
- return rnt;
- })()
复制代码
|
|