diff --git a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm index 379d6995..213f8cc5 100755 --- a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm +++ b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm @@ -10,68 +10,68 @@ @@ -80,186 +80,178 @@ - - - + - - - - - + + + + - + @@ -274,31 +266,30 @@ <#js> - - - - - + + + + + - - + + - + - - - - - - - - <#processlink_ete_js> - <#batch-js> + + + + + + + + <#processlink_ete_js> + <#batch-js> @@ -361,199 +352,199 @@ $('li[ac=batchreplace]').remove(); } $("#upfile").on('click',openUpFile);//附件上传页面 - if(processOutput) { // 导出流程手册菜单控制 - outputProcess(); - } - if (moreShapeButton == '') {// 显示按钮 - $(window).resize(function(){ - updateShapePanel(); - }); - } - //流程版本对比 - var verArray = <#verArray>; - var verHtml = ""; - for (var i = 0; i < verArray.length; i++) { - var tmp = verArray[i]; - verHtml += ""; - verHtml += "
"; - } - $("#versionGroup").html(verHtml); - $("#dialog_version_compare .awsui-checkbox").check(); - //三员管理,密级回显 + if(processOutput) { // 导出流程手册菜单控制 + outputProcess(); + } + if (moreShapeButton == '') {// 显示按钮 + $(window).resize(function(){ + updateShapePanel(); + }); + } + //流程版本对比 + var verArray = <#verArray>; + var verHtml = ""; + for (var i = 0; i < verArray.length; i++) { + var tmp = verArray[i]; + verHtml += ""; + verHtml += "
"; + } + $("#versionGroup").html(verHtml); + $("#dialog_version_compare .awsui-checkbox").check(); + //三员管理,密级回显 if (isHighSecurity == "true") { $("#securityLevelName").show() } - }); - function openUpFile() { - var linkerIds = Utils.getSelectedLinkerIds(); - var linkerCount = linkerIds.length; - var shapeIds = Utils.getSelectedShapeIds(); - var shapeCount = shapeIds.length; - var type = "file"; - var shapeId = ""; - if (shapeCount > 1) { - return; - } - if (linkerCount > 0) { - return; - } - if (shapeCount == 0) { - type = "file"; - } else { - type = "shape"; - var shape = Utils.getSelected()[0]; - shapeId = shape.id; - } + }); + function openUpFile() { + var linkerIds = Utils.getSelectedLinkerIds(); + var linkerCount = linkerIds.length; + var shapeIds = Utils.getSelectedShapeIds(); + var shapeCount = shapeIds.length; + var type = "file"; + var shapeId = ""; + if (shapeCount > 1) { + return; + } + if (linkerCount > 0) { + return; + } + if (shapeCount == 0) { + type = "file"; + } else { + type = "shape"; + var shape = Utils.getSelected()[0]; + shapeId = shape.id; + } + + var upfileUrl = "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_processlevel_upfile_portal_page"; + var upfileDlg=FrmDialog.open({ + title: "附件管理", + width: 570, + height: 380, + url: upfileUrl, + data:{"pl_uuid": ruuid, "shape_uuid": shapeId, "type": type}, + id:"upfileDlg" + }); + + setTimeout(function(){ + if (editable == false) { + window.frames["id-awsui-win-frm-2013-frmupfileDlg"].$(".button").attr("disabled", "true").addClass("disable"); + window.frames["id-awsui-win-frm-2013-frmupfileDlg"].$(".del").hide(); + } + }, 1000); + + } + + // 导出流程手册 + function outputProcess() { + $('li[data-name="processOutput"]').show(); + } + + // 控制更多图形按钮 + function updateShapePanel() { + if (moreShapeButton == '') {// 显示按钮 + $('#shape_panel_more_shape').show(); + var panelHeight=$('#designer_viewport').height(); + $('#shape_panel').height(panelHeight - 40); + $('#shape_panel_more_shape').css('margin-top',panelHeight - 40); + } + //计算页面渲染效率 + //var t = window.performance.timing; + //var completeTime = t.domComplete - t.domLoading; + //console.log("打开流程页面的渲染时间:", completeTime/1000 + "秒"); + } - var upfileUrl = "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_processlevel_upfile_portal_page"; - var upfileDlg=FrmDialog.open({ - title: "附件管理", - width: 570, - height: 380, - url: upfileUrl, - data:{"pl_uuid": ruuid, "shape_uuid": shapeId, "type": type}, - id:"upfileDlg" - }); - - setTimeout(function(){ - if (editable == false) { - window.frames["id-awsui-win-frm-2013-frmupfileDlg"].$(".button").attr("disabled", "true").addClass("disable"); - window.frames["id-awsui-win-frm-2013-frmupfileDlg"].$(".del").hide(); - } - }, 1000); - - } - - // 导出流程手册 - function outputProcess() { - $('li[data-name="processOutput"]').show(); - } - - // 控制更多图形按钮 - function updateShapePanel() { - if (moreShapeButton == '') {// 显示按钮 - $('#shape_panel_more_shape').show(); - var panelHeight=$('#designer_viewport').height(); - $('#shape_panel').height(panelHeight - 40); - $('#shape_panel_more_shape').css('margin-top',panelHeight - 40); - } - //计算页面渲染效率 - //var t = window.performance.timing; - //var completeTime = t.domComplete - t.domLoading; - //console.log("打开流程页面的渲染时间:", completeTime/1000 + "秒"); - } - - //形状的特殊配置 - function showShapeConfig() { - var shape = Utils.getSelected()[0]; - if (shape == undefined) { - return; - } else if(shape == undefined || shape.name == "linker") { - $.simpleAlert("不可选择连线"); //提示被designer.ui.debug.js中的update方法覆盖--“请选择形状” - return; - } - var commonShapeConfig = Model.define.commonShapeConfig; - var specialShapeConfig; - var dataAttributes = shape.dataAttributes; - var temp; - for (var i = 0; i < dataAttributes.length; i++) { - temp = dataAttributes[i]; - if (temp.hasOwnProperty("attributesJsonArray")) { - if (!temp.dataShowConfig) { - temp.dataShowConfig = {}; - } - specialShapeConfig = temp.dataShowConfig.config; - break; - } - } - var sid = $("#sid").val(); - var wsId = "<#wsId>"; - var shapeId = shape.name; - var shapeKey = shape.id; - var category = shape.category; - var defaultCategory = '<#methodId>'; - if (commonShapeConfig != undefined) { - //复制commonShapeConfig - commonShapeConfig = JSON.stringify(commonShapeConfig); - commonShapeConfig = JSON.parse(commonShapeConfig); - commonShapeConfig = commonShapeConfig[shapeId]; - if (commonShapeConfig != undefined) { - for (var i = 0; i < commonShapeConfig.length; i++) { + //形状的特殊配置 + function showShapeConfig() { + var shape = Utils.getSelected()[0]; + if (shape == undefined) { + return; + } else if(shape == undefined || shape.name == "linker") { + $.simpleAlert("不可选择连线"); //提示被designer.ui.debug.js中的update方法覆盖--“请选择形状” + return; + } + var commonShapeConfig = Model.define.commonShapeConfig; + var specialShapeConfig; + var dataAttributes = shape.dataAttributes; + var temp; + for (var i = 0; i < dataAttributes.length; i++) { + temp = dataAttributes[i]; + if (temp.hasOwnProperty("attributesJsonArray")) { + if (!temp.dataShowConfig) { + temp.dataShowConfig = {}; + } + specialShapeConfig = temp.dataShowConfig.config; + break; + } + } + var sid = $("#sid").val(); + var wsId = "<#wsId>"; + var shapeId = shape.name; + var shapeKey = shape.id; + var category = shape.category; + var defaultCategory = '<#methodId>'; + if (commonShapeConfig != undefined) { + //复制commonShapeConfig + commonShapeConfig = JSON.stringify(commonShapeConfig); + commonShapeConfig = JSON.parse(commonShapeConfig); + commonShapeConfig = commonShapeConfig[shapeId]; + if (commonShapeConfig != undefined) { + for (var i = 0; i < commonShapeConfig.length; i++) { var config = commonShapeConfig[i]; if (config.showType === "icon" && config.iconContent.indexOf("=") < 0) { config.iconContent = config.iconContent.replace("&", "&="); } - } - } - } - //处理传给后端iconfont的问题 - if (specialShapeConfig != undefined) { - //复制specialShapeConfig - specialShapeConfig = JSON.stringify(specialShapeConfig); - specialShapeConfig = JSON.parse(specialShapeConfig); - for (var i = 0; i < specialShapeConfig.length; i++) { + } + } + } + //处理传给后端iconfont的问题 + if (specialShapeConfig != undefined) { + //复制specialShapeConfig + specialShapeConfig = JSON.stringify(specialShapeConfig); + specialShapeConfig = JSON.parse(specialShapeConfig); + for (var i = 0; i < specialShapeConfig.length; i++) { var config = specialShapeConfig[i]; if (config.showType === "icon" && config.iconContent.indexOf("=") < 0) { config.iconContent = config.iconContent.replace("&", "&="); } - } - } + } + } - var dlg = FrmDialog.open({ - title : "形状数据显示规则", - width : 810, - height : 487.6, - url : "./w", - data : { - sid : sid, - cmd : 'com.actionsoft.apps.coe.pal_pl_manage_shape_config_dialog_page', - wsId : wsId, - type : "specialShapeConfig", - shapeId : shapeId, - shapeKey : shapeKey, - category : category, - defaultCategory : defaultCategory, - commonShapeConfig : JSON.stringify(commonShapeConfig), - specialShapeConfig : JSON.stringify(specialShapeConfig), - attributesJsonArray : JSON.stringify(temp.attributesJsonArray), - relationData : JSON.stringify(relationShapeModelObject) - }, - id : "specialShapeConfig", - buttons : [{ - text : '确定', - cls : "blue", - handler : function() { - var dataArray = dlg.win().getConfigData(); - if (dataArray.length < 0) { - dlg.close(); - return; - } - //保存特殊配置 - temp["dataShowConfig"].config = dataArray; - //渲染配置信息 - Designer.painter.renderShape(shape); - dlg.close(); - } - }, { - text : '取消', - handler : function() { - dlg.close(); - } - }] + var dlg = FrmDialog.open({ + title : "形状数据显示规则", + width : 810, + height : 487.6, + url : "./w", + data : { + sid : sid, + cmd : 'com.actionsoft.apps.coe.pal_pl_manage_shape_config_dialog_page', + wsId : wsId, + type : "specialShapeConfig", + shapeId : shapeId, + shapeKey : shapeKey, + category : category, + defaultCategory : defaultCategory, + commonShapeConfig : JSON.stringify(commonShapeConfig), + specialShapeConfig : JSON.stringify(specialShapeConfig), + attributesJsonArray : JSON.stringify(temp.attributesJsonArray), + relationData : JSON.stringify(relationShapeModelObject) + }, + id : "specialShapeConfig", + buttons : [{ + text : '确定', + cls : "blue", + handler : function() { + var dataArray = dlg.win().getConfigData(); + if (dataArray.length < 0) { + dlg.close(); + return; + } + //保存特殊配置 + temp["dataShowConfig"].config = dataArray; + //渲染配置信息 + Designer.painter.renderShape(shape); + dlg.close(); + } + }, { + text : '取消', + handler : function() { + dlg.close(); + } + }] }); - } - //渲染形状配置信息 - /*function painterShapeConfig(dataArray, shapeId, key) { - for (var i = 0; i < dataArray.length; i++) { - var temp = dataArray[i]; - var showType = temp.showType; - var horizontal = temp.horizontal; - horizontal = horizontal.toLowerCase(); - var verity = temp.verity; - verity = verity.toLowerCase(); - if (verity == "center") {verity = "middle";} - if (showType == "text") { - var cfgContent = temp.cfgContent; + } + //渲染形状配置信息 + /*function painterShapeConfig(dataArray, shapeId, key) { + for (var i = 0; i < dataArray.length; i++) { + var temp = dataArray[i]; + var showType = temp.showType; + var horizontal = temp.horizontal; + horizontal = horizontal.toLowerCase(); + var verity = temp.verity; + verity = verity.toLowerCase(); + if (verity == "center") {verity = "middle";} + if (showType == "text") { + var cfgContent = temp.cfgContent; var params = { "w":30, "h":30, @@ -573,397 +564,397 @@ "title":"" }; var shape = Model.getShapeById(shapeId); - if(!shape.dataAttributes){ - shape.dataAttributes = []; - } - params.id = Utils.newId(); - params.category = "custom"; - shape.dataAttributes.push(params); - Model.update(shape); - Designer.painter.renderShape(shape); - } - } - }*/ + if(!shape.dataAttributes){ + shape.dataAttributes = []; + } + params.id = Utils.newId(); + params.category = "custom"; + shape.dataAttributes.push(params); + Model.update(shape); + Designer.painter.renderShape(shape); + } + } + }*/ - -
+ +
-
-
- <#fileName> - -
-
- <#versionNum> +
+
+ <#fileName> + +
+
+ <#versionNum> +
+
-
-
- -
- <#saveUI> - -
-
+ -
-
-
-
-
-
-
+
+ <#saveUI> + +
+
+
+
+
+
+
+
+
+
- -
-
Arial
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
Arial
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- -
-
-
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
+
+
+ +
-
-
-
- 您的浏览器不支持HTML5,请使用IE9及以上版本,或Chrome、Firefox等浏览器 - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- - <#dock_btn_validate> - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - <#processlink_ete_analysis> -
-
-