diff --git a/o2web/source/x_component_cms_Column/lp/en.js b/o2web/source/x_component_cms_Column/lp/en.js index 6b9a33cf90ddf90bc48c952fc8c0c8c81d7097df..37857fd1dcbc741f234290bde0b75862de47b6c3 100644 --- a/o2web/source/x_component_cms_Column/lp/en.js +++ b/o2web/source/x_component_cms_Column/lp/en.js @@ -53,6 +53,7 @@ MWF.xApplication.cms.Column.LP = { "create": "Create a new category", "nameLabel": "Category Name", "aliasLabel": "Category Alias", + "sendNotify": "Send Message", "descriptionLabel": "Category description", "sortLabel": "Queue number", "columnLabel": "AppInfo", diff --git a/o2web/source/x_component_cms_Column/lp/zh-cn.js b/o2web/source/x_component_cms_Column/lp/zh-cn.js index 047ce2a730783362f9d68951c33f670bc2b3226f..bb324e5d75e45bf63a3d84027a043df3b40b84f8 100644 --- a/o2web/source/x_component_cms_Column/lp/zh-cn.js +++ b/o2web/source/x_component_cms_Column/lp/zh-cn.js @@ -53,6 +53,7 @@ MWF.xApplication.cms.Column.LP = { "create" : "新建分类", "nameLabel" : "分类名称", "aliasLabel" : "分类别名", + "sendNotify" : "发布时是否发送消息", "descriptionLabel" : "分类描述", "sortLabel" : "分类排序", "columnLabel" : "所属栏目", diff --git a/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js b/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js index 67e8f11d67fb440388ef25a647850b5c91bd0d1d..0cc03c29e33a3c2cd64cebdde69935d09d1d77d7 100644 --- a/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js +++ b/o2web/source/x_component_cms_ColumnManager/CategoryExplorer.js @@ -775,6 +775,13 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.Category = new Class({ this.app.notice( MWF.xApplication.cms.ColumnManager.LP.setDocumentTypeSuccess ); }.bind(this)) }, + setSendNotify: function( isSend ){ + var d = this.data; + d.sendNotify = isSend; + this.app.restActions.saveCategory( d, function( json ){ + this.app.notice( MWF.xApplication.cms.ColumnManager.LP.setSendNotifySuccess ); + }.bind(this)) + }, setEditForm : function( formId, formName ){ var d = this.data; d.formId = formId; @@ -2647,6 +2654,7 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.CategoryProperty = new Class html += ""+this.app.lp.category.documentType +""+""; //(this.category.data.documentType || "" )+ // 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.propertyContentNode.set("html", html); this.propertyContentNode.getElements("td.formTitle").setStyles(this.app.css.propertyBaseContentTdTitle); @@ -2673,6 +2681,20 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.CategoryProperty = new Class }); this.typeSelect.load(); + var sendNotifyValue = o2.typeOf(this.category.data.sendNotify) === "boolean" ? this.category.data.sendNotify : true; + this.sendNotify = new MDomItem( this.propertyContentNode.getElement("#formCategorySendNotify"), { + type : "select", + value : sendNotifyValue.toString(), + selectValue : lp.sendNotifySelectValue, + selectText: lp.sendNotifySelectText, + event : { + change : function( item ){ + this.category.setSendNotify( item.getValue() !== "false" ); + }.bind(this) + } + }); + this.sendNotify.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 9f5ee309844d9c700efc5cb593bbc0edbe6e093f..a6f2f8617af97884d9ce769cc86546d1f5c7bf74 100644 --- a/o2web/source/x_component_cms_ColumnManager/lp/en.js +++ b/o2web/source/x_component_cms_ColumnManager/lp/en.js @@ -60,6 +60,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "idLabel": "Category Label", "nameLabel": "Category Name", "aliasLabel": "Category Alias", + "sendNotify": "Send Message", "descriptionLabel": "Category description", "sortLabel": "Queue Number", "columnLabel": "AppInfo", @@ -228,6 +229,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "setImpExpViewSuccess": "Set the category import and export view successfully", "setCategoryAliasSuccess": "Set category alias successfully", "setDocumentTypeSuccess": "Set the document type successfully", + "setSendNotifySuccess": "Set Send Messsage successfully", "setEditFormSuccess": "Set Edit Form Success", "setReadFormSuccess": "Set Read Form Success", "inputCategoryNotice": "Please enter the category name", @@ -252,6 +254,8 @@ MWF.xApplication.cms.ColumnManager.LP = { "disableProcess": "Disable the approval process", "documentTypeSelectValue": ["信息","数据"], "documentTypeSelectText": ["Information","Data"], + "sendNotifySelectText": ["yes","no"], + "sendNotifySelectValue": ["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 76eeff4c1ad5fea798be457a6d0a2c8b12ffdc1b..f8ba72643c738e2b99c91ae506dcb1edcc8cfcde 100644 --- a/o2web/source/x_component_cms_ColumnManager/lp/zh-cn.js +++ b/o2web/source/x_component_cms_ColumnManager/lp/zh-cn.js @@ -60,6 +60,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "idLabel" : "分类标识", "nameLabel" : "分类名称", "aliasLabel" : "分类别名", + "sendNotify" : "发布时是否发送消息", "descriptionLabel" : "分类描述", "sortLabel" : "分类排序", "columnLabel" : "所属栏目", @@ -229,6 +230,7 @@ MWF.xApplication.cms.ColumnManager.LP = { "setImpExpViewSuccess" : "设置分类导入导出视图成功", "setCategoryAliasSuccess": "设置分类别名成功", "setDocumentTypeSuccess": "设置文档类型成功", + "setSendNotifySuccess": "设置是否发送消息成功", "setEditFormSuccess": "设置编辑表单成功", "setReadFormSuccess": "设置阅读表单成功", "inputCategoryNotice": "请输入分类名称", @@ -253,6 +255,8 @@ MWF.xApplication.cms.ColumnManager.LP = { "disableProcess": "禁用审批流", "documentTypeSelectValue": ["信息","数据"], "documentTypeSelectText": ["信息","数据"], + "sendNotifySelectText": ["是","否"], + "sendNotifySelectValue": ["true","false"], "infor": "信息", "data": "数据", "type": "类型",