|
@@ -0,0 +1,200 @@
|
|
|
|
|
+<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
|
|
|
|
|
+<%@ taglib uri="/ssTag" prefix="ss"%>
|
|
|
|
|
+<%pageContext.setAttribute("wdpageinformation","{'hastab':'0'}");%>
|
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
|
+<html>
|
|
|
|
|
+<head>
|
|
|
|
|
+<meta http-equiv="pragma" content="no-cache">
|
|
|
|
|
+<meta http-equiv="cache-control" content="no-cache">
|
|
|
|
|
+<meta http-equiv="expires" content="0">
|
|
|
|
|
+<script>window.loginStatus="${empty sessionScope['ssUser']?'0':'1'}"</script>
|
|
|
|
|
+<ss:skin file='main.css'/>
|
|
|
|
|
+<script type="text/javascript" src="/ss/jquery/jquery.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/artdialog/artDialogUtil.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/base.js"></script>
|
|
|
|
|
+<script> if(!window.wd) var wd={}; if(!wd.display) wd.display={}; wd.display.wdDialogId="objPlay"; if(!wd.app) wd.app={}; wd.app.name='pms';</script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/masklayer.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/wdDialogInit.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/common.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/display.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/edit.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.iframehelper.min.js"></script>
|
|
|
|
|
+<link rel="stylesheet" type="text/css" href="/ss/window/theme/dhtmlxwindows.css">
|
|
|
|
|
+<link rel="stylesheet" type="text/css" href="/ss/window/theme/dhx_blue/dhtmlxwindows_dhx_blue.css">
|
|
|
|
|
+<script type="text/javascript" src="/ss/window/dhtmlxcommon.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/window/dhtmlxwindows.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/window/dhtmlxcontainer.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/common.js"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/display.js"></script>
|
|
|
|
|
+ <%
|
|
|
|
|
+ String f= (String)request.getAttribute("shid");
|
|
|
|
|
+ if(f!=null&&f.length()>0){
|
|
|
|
|
+ request.setAttribute("hasAuthorize",true);
|
|
|
|
|
+ }
|
|
|
|
|
+ pageContext.setAttribute("dataType","play");
|
|
|
|
|
+ %>
|
|
|
|
|
+
|
|
|
|
|
+ <ss:equal val='${hasAuthorize}' val2='true'>
|
|
|
|
|
+ </ss:equal>
|
|
|
|
|
+ <ss:equal val='${ydsq_sh_ck}' val2='1'>
|
|
|
|
|
+ <style>
|
|
|
|
|
+ .authorize{display:none;}
|
|
|
|
|
+
|
|
|
|
|
+ </style>
|
|
|
|
|
+ <script>setTimeout(function(){$(".authorize").remove();},500);</script>
|
|
|
|
|
+ </ss:equal>
|
|
|
|
|
+ <style>
|
|
|
|
|
+ #iframe{
|
|
|
|
|
+ height: 100% !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ </style>
|
|
|
|
|
+
|
|
|
|
|
+</head>
|
|
|
|
|
+<body>
|
|
|
|
|
+<%-- 改为 <data@ss name="info"/>。Lin
|
|
|
|
|
+<tab@ss name="info"/> --%>
|
|
|
|
|
+<ss:data name='info'/>
|
|
|
|
|
+
|
|
|
|
|
+<iframe width="100%" height="100%" param='${info.param}' id="iframe" frameborder="0"
|
|
|
|
|
+ src="<ss:serv name='${info.service}' dest='${info.dest}' parm='${info.param}'/>">
|
|
|
|
|
+</iframe>
|
|
|
|
|
+<!--
|
|
|
|
|
+<div class='bottom-div'>
|
|
|
|
|
+ <div class="bottom-down-div border-top">
|
|
|
|
|
+ <input type="button" value="关闭" onclick="wd.display.closeDialog();" class="bottom-button">
|
|
|
|
|
+ </div>
|
|
|
|
|
+<div> -->
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+ function authorize(){
|
|
|
|
|
+ <ss:equal val='${hasAuthorize}' val2='true'>
|
|
|
|
|
+<%-- 再改为 WebC.REQ_objName、WebC.REQ_objId,避免与数据表里的 对象名、对象ID 字段重名。用到再确认。Lin
|
|
|
|
|
+ eval('<serv@ss dlg="true" name="dxsq_djlsq" dest="djlsq" parm="{fromWdService:"${wdService}",dxm:"${dxm}",dxid:"${dxid}"}"/>') --%>
|
|
|
|
|
+ eval('wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='dxsq_djlsq' parm='{"wdConfirmationCaptchaService":"0","ssObjId":"${ssObjId}","ssObjName":"${ssObjName}","fromWdService":"${wdService}"}' dest='rowAuth'/>",title:"记录授权",width:800,height:590,minHeight:271,maxHeight:541});')
|
|
|
|
|
+<%-- //'@service{name:"djlsq",dest:"djlsq",show:"wdDialog",param:{fromWdService:"${wdService}",dxm:"${dxm}",dxid:"${dxid}"}}@' 应该用错注释了吧?Lin --%>
|
|
|
|
|
+ </ss:equal>
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function agree(){
|
|
|
|
|
+ var wdDialogId=wd.display.getwdDialogId();
|
|
|
|
|
+ var mark=wd.topWindow.mark[wdDialogId];
|
|
|
|
|
+ var param=[]
|
|
|
|
|
+ for(var key in mark){
|
|
|
|
|
+ var obj={}
|
|
|
|
|
+ if(mark[key].type=="childObject"){
|
|
|
|
|
+ if(mark[key].checked==mark[key].checkStatue){
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ obj.type=mark[key].type;
|
|
|
|
|
+ obj.checked=mark[key].checked;
|
|
|
|
|
+ obj.object=mark[key].object;
|
|
|
|
|
+ obj.id=mark[key].id;
|
|
|
|
|
+ param.push(obj)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ var submitFunction=function(){
|
|
|
|
|
+ <ss:equal val='${empty shid}' val2='false'> <%-- 改 equal:val1="true" val2="${not empty shid}"。Lin --%>
|
|
|
|
|
+<%-- 去掉 check < wd.completeTask < wd.core.service.BpmService.completeTask() + sfty:"1",直接用 ss.agrTask。Lin
|
|
|
|
|
+ $.post("@service{name:'check',dest:'sys_info',param:{shid:"${shid}",sfty:'1'}}@", --%>
|
|
|
|
|
+ $.post("<ss:serv name='ss.agrTask' parm='{"wdConfirmationCaptchaService":"0","shid":"${shid}"}' dest='info'/>",
|
|
|
|
|
+ function(data){
|
|
|
|
|
+ wd.display.refreshOpener();
|
|
|
|
|
+ wd.display.closeDialog();
|
|
|
|
|
+ })
|
|
|
|
|
+ </ss:equal>
|
|
|
|
|
+ <ss:equal val='${empty shid}' val2='true'> <%-- 改 equal:val1="false" val2="${not empty shid}"。Lin --%>
|
|
|
|
|
+ //wd.display.refreshOpener();
|
|
|
|
|
+ wd.display.closeDialog();
|
|
|
|
|
+ </ss:equal>
|
|
|
|
|
+ }
|
|
|
|
|
+ if(param.length>0){
|
|
|
|
|
+/* 再改,规范命名。Lin
|
|
|
|
|
+ * 去掉 ?wdApplication=,不支持多个应用 -- 服务名可以写 ss.xxx
|
|
|
|
|
+ * &wdService= 改为 ssServ
|
|
|
|
|
+ $.post("/service?wdApplication=wd&wdService=updateObjectState",{'objectList':JSON.stringify(param)},function(data){
|
|
|
|
|
+*/ $.post("/service?ssServ=updateObjectState",{'objectList':JSON.stringify(param)},function(data){
|
|
|
|
|
+ console.log(data);
|
|
|
|
|
+ wd.topWindow.mark[wdDialogId]={};
|
|
|
|
|
+ submitFunction();
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ alert("归档失败");
|
|
|
|
|
+ //submitFunction();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ //${info}
|
|
|
|
|
+</script>
|
|
|
|
|
+<script>
|
|
|
|
|
+ function addWdFitHeight(selecter,param){
|
|
|
|
|
+ console.log(selecter);
|
|
|
|
|
+ console.log(param);
|
|
|
|
|
+ var aa="";
|
|
|
|
|
+ if(param.minHeight){
|
|
|
|
|
+ aa+="min:"+param.minHeight+",";
|
|
|
|
|
+ }
|
|
|
|
|
+ if(param.maxHeight){
|
|
|
|
|
+ aa+="max:"+param.maxHeight+",";
|
|
|
|
|
+ }
|
|
|
|
|
+ if(param&&aa){
|
|
|
|
|
+ aa=aa.substr(0,aa.length-1)
|
|
|
|
|
+ document.querySelector(selecter).setAttribute("ssFith",aa); // ("wdFitHeight",。Lin
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+</script>
|
|
|
|
|
+<script>
|
|
|
|
|
+ var tabHeight={minHeight:${info.minHeight},maxHeight:${info.maxHeight}};
|
|
|
|
|
+ addWdFitHeight("iframe",tabHeight);
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<%-- 改为 <data@ss name="prt"/>。Lin
|
|
|
|
|
+<tab@ss name="print" enable="viewobject.funcMap.play.print"/> --%>
|
|
|
|
|
+<ss:data name='prt'/>
|
|
|
|
|
+<%-- 去掉,改为 <jsp@ss file="/ss/prtIcon.jsp"/>。Lin
|
|
|
|
|
+<equal@ss val="${empty prt}" val2="false">
|
|
|
|
|
+ <script>
|
|
|
|
|
+ (function(){
|
|
|
|
|
+ try{
|
|
|
|
|
+ var wdDialogId=wd.display.getwdDialogId();
|
|
|
|
|
+ var win=wd.topWindow.dhxWins.window(wdDialogId);
|
|
|
|
|
+ console.log(win.button("wdPrint"));
|
|
|
|
|
+ win.button("wdPrint").show();
|
|
|
|
|
+ win.button("wdPrint").onclick=function(){
|
|
|
|
|
+ <varServ@ss dlg="true" name="${prt.service}" dest="${prt.dest}" parm="${prt.param}" title="${prt.title}" width="${prt.width}" height="${prt.height}" minHeight="${prt.minHeight}" maxHeight="${prt.maxHeight}"/>
|
|
|
|
|
+ }
|
|
|
|
|
+ }catch(e){
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ })()
|
|
|
|
|
+ </script>
|
|
|
|
|
+</equal@ss>
|
|
|
|
|
+--%>
|
|
|
|
|
+<%@include file="/ss/clip/prtIcon.jsp"%>
|
|
|
|
|
+<script type="text/javascript">var wdRecordValue='${wdRecordValue}';</script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/wdRecord.js"></script>
|
|
|
|
|
+<script type="text/javascript">(function(){wdRecord("objPlay");})();</script>
|
|
|
|
|
+<script type="text/javascript" src="/ss/js/wdFitHeight.js"></script>
|
|
|
|
|
+<script type="text/javascript">initWdFitHeight(62)</script>
|
|
|
|
|
+<script type="text/javascript">initWdFitHeightFunction=function(){initWdFitHeight(62);};</script>
|
|
|
|
|
+<ss:equal val="${empty resizeComponent}" val2="false">
|
|
|
|
|
+<script>{var iframe=wd.display.getFrameOfWindow();
|
|
|
|
|
+if(iframe&&iframe.contentWindow==window)
|
|
|
|
|
+wd.display.resizeComponent(${resizeComponent.width}, ${resizeComponent.height}, ${empty resizeComponent.minHeight?'null':resizeComponent.minHeight}, ${empty resizeComponent.maxHeight?'null':resizeComponent.maxHeight});}</script>
|
|
|
|
|
+</ss:equal>
|
|
|
|
|
+<ss:help/>
|
|
|
|
|
+</body>
|
|
|
|
|
+<script type="text/javascript">
|
|
|
|
|
+try{wd.display.showMsgPopup('${msg}');
|
|
|
|
|
+}catch(err){console.error(err);}
|
|
|
|
|
+</script>
|
|
|
|
|
+<ss:equal val="${empty wdclosewindowparam}" val2="false">
|
|
|
|
|
+<script type="text/javascript">
|
|
|
|
|
+try{wd.display.setCloseWindowParam('${wdclosewindowparam}');
|
|
|
|
|
+}catch(err){console.error(err);}
|
|
|
|
|
+</script>
|
|
|
|
|
+</ss:equal>
|
|
|
|
|
+</html>
|
|
|
|
|
+<script type="text/javascript">
|
|
|
|
|
+tokenCleanser("<ss:serv name='ss.clearPageToken'/>", {tokenList:"<%= pageContext.getAttribute(ss.page.PageC.PAGE_tokenList)%>"});
|
|
|
|
|
+</script>
|