提交 a923dc1f 编写于 作者: 蔡祥熠

Merge branch 'fix/CMS_addSendNotify' into 'wrdp'

Merge of fix/CMS_addSendNotify 内容管理分类增加是否发送消息的配置 to wrdp

See merge request o2oa/o2oa!4523
......@@ -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",
......
......@@ -53,6 +53,7 @@ MWF.xApplication.cms.Column.LP = {
"create" : "新建分类",
"nameLabel" : "分类名称",
"aliasLabel" : "分类别名",
"sendNotify" : "发布时是否发送消息",
"descriptionLabel" : "分类描述",
"sortLabel" : "分类排序",
"columnLabel" : "所属栏目",
......
......@@ -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 += "<tr><td class='formTitle'>"+this.app.lp.category.documentType +"</td><td id='formCategoryType' class='formValue'>"+"</td></tr>"; //(this.category.data.documentType || "" )+
// html += "<tr><td class='formTitle'>"+this.app.lp.application.icon+"</td><td id='formApplicationIcon'></td></tr>";
html += "<tr><td class='formTitle'>"+this.app.lp.category.excelImportView +"</td><td class='formValue'><div id='formImportViewId' style='cursor:pointer;width:90%;min-height:22px;overflow:hidden;border:1px solid #ccc;border-radius: 3px;'></div></td></td></tr>"; //(this.category.data.documentType || "" )+
html += "<tr><td class='formTitle'>"+this.app.lp.category.sendNotify +"</td><td id='formCategorySendNotify' class='formValue'></td></tr>"; //"+this.category.data.categoryAlias+"
html += "</table>";
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,
......
......@@ -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",
......
......@@ -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": "类型",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册