diff --git a/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js b/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js index 6d0d6e19707f14a5f30241673c58fbd36a04984a..4ea6025df63c792f3b5e7de4011fd2d60afc60c8 100644 --- a/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js +++ b/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js @@ -782,6 +782,13 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.Category = new Class({ this.app.notice( MWF.xApplication.cms.ColumnManager.LP.setSendNotifySuccess ); }.bind(this)) }, + setBlankToAllNotify: function( value ){ + var d = this.data; + d.blankToAllNotify = value; + this.app.restActions.saveCategory( d, function( json ){ + this.app.notice( MWF.xApplication.cms.ColumnManager.LP.setBlankToAllNotifySuccess ); + }.bind(this)) + }, setEditForm : function( formId, formName ){ var d = this.data; d.formId = formId; @@ -2665,6 +2672,7 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.CategoryProperty = new Class // html += ""+this.app.lp.application.icon+""; html += ""+this.app.lp.category.excelImportView +"
"; //(this.category.data.documentType || "" )+ html += ""+this.app.lp.category.sendNotify +""; //"+this.category.data.categoryAlias+" + html += ""+this.app.lp.category.blankToAllNotify +""; //"+this.category.data.categoryAlias+" html += ""; this.propertyContentNode.set("html", html); this.propertyContentNode.getElements("td.formTitle").setStyles(this.app.css.propertyBaseContentTdTitle); @@ -2707,6 +2715,22 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.CategoryProperty = new Class }); this.sendNotify.load(); + var blankToAllNotifyValue = o2.typeOf(this.category.data.blankToAllNotify) === "boolean" ? this.category.data.blankToAllNotify : true; + this.blankToAllNotify = new MDomItem( this.propertyContentNode.getElement("#formCategoryBlankToAllNotify"), { + type : "select", + style: this.app.css.processSelect, + value : blankToAllNotifyValue.toString(), + selectValue : lp.blankToAllNotifySelectValue, + selectText: lp.blankToAllNotifySelectText, + event : { + change : function( item ){ + this.category.setBlankToAllNotify( item.getValue() !== "false" ); + }.bind(this) + } + }); + this.blankToAllNotify.load(); + + var value = this.category.data.importViewId ? [{ id : this.category.data.importViewId, name : this.category.data.importViewName, diff --git a/o2web/source/x_component_cms_ColumnManager/lp/en.js b/o2web/source/x_component_cms_ColumnManager/lp/en.js index 772f2816fb223ae786ea823923896316ad2c2906..db7edd0b45f0e944c588c64045e2c50a1317099d 100644 --- a/o2web/source/x_component_cms_ColumnManager/lp/en.js +++ b/o2web/source/x_component_cms_ColumnManager/lp/en.js @@ -62,6 +62,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "nameLabel": "Category Name", "aliasLabel": "Category Alias", "sendNotify": "Send Message", + "blankToAllNotify": "Notify all when the release range is empty", "descriptionLabel": "Category description", "sortLabel": "Queue Number", "columnLabel": "AppInfo", @@ -235,6 +236,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "setCategoryAliasSuccess": "Set category alias successfully", "setDocumentTypeSuccess": "Set the document type successfully", "setSendNotifySuccess": "Set Send Messsage successfully", + "setBlankToAllNotifySuccess": "Whether the message is sent successfully when the release range is empty", "setEditFormSuccess": "Set Edit Form Success", "setReadFormSuccess": "Set Read Form Success", "setProjectionSuccess": "Set data mapping success", @@ -262,6 +264,8 @@ MWF.xApplication.cms.ColumnManager.LP = { "documentTypeSelectText": ["Information","Data"], "sendNotifySelectText": ["yes","no"], "sendNotifySelectValue": ["true","false"], + "blankToAllNotifySelectText": ["yes","no"], + "blankToAllNotifySelectValue": ["true","false"], "infor": "Information", "data": "Data", "type": "Type", diff --git a/o2web/source/x_component_cms_ColumnManager/lp/zh-cn.js b/o2web/source/x_component_cms_ColumnManager/lp/zh-cn.js index 2b6ec3acbf736e1b020bb8c5071152918893225a..d7ee42c167d4d5edbae27363265395eae9474bca 100644 --- a/o2web/source/x_component_cms_ColumnManager/lp/zh-cn.js +++ b/o2web/source/x_component_cms_ColumnManager/lp/zh-cn.js @@ -62,6 +62,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "nameLabel" : "分类名称", "aliasLabel" : "分类别名", "sendNotify" : "发布时是否发送消息", + "blankToAllNotify": "发布范围为空时是否全员通知", "descriptionLabel" : "分类描述", "sortLabel" : "分类排序", "columnLabel" : "所属栏目", @@ -236,6 +237,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "setCategoryAliasSuccess": "设置分类别名成功", "setDocumentTypeSuccess": "设置文档类型成功", "setSendNotifySuccess": "设置是否发送消息成功", + "setBlankToAllNotifySuccess": "设置发布范围为空是否发送消息成功", "setEditFormSuccess": "设置编辑表单成功", "setReadFormSuccess": "设置阅读表单成功", "setProjectionSuccess": "设置数据映射成功", @@ -263,6 +265,8 @@ MWF.xApplication.cms.ColumnManager.LP = { "documentTypeSelectText": ["信息","数据"], "sendNotifySelectText": ["是","否"], "sendNotifySelectValue": ["true","false"], + "blankToAllNotifySelectText": ["是","否"], + "blankToAllNotifySelectValue": ["true","false"], "infor": "信息", "data": "数据", "type": "类型",