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

Merge branch 'wrdp' into 'develop'

Wrdp

See merge request o2oa/o2oa!2539
......@@ -1637,6 +1637,8 @@ MWF.xApplication.Selector.Identity.Include = new Class({
this.selector.items.push(item);
if( category && category.subItems ){
category.subItems.push( item );
}else if(this.selector.subItems){
this.selector.subItems.push( item )
}
}
}.bind(this));
......@@ -1657,6 +1659,8 @@ MWF.xApplication.Selector.Identity.Include = new Class({
this.selector.items.push(item);
if( category && category.subItems ){
category.subItems.push( item );
}else if(this.selector.subItems){
this.selector.subItems.push( item )
}
}
}.bind(this));
......
......@@ -1457,15 +1457,19 @@ MWF.xApplication.Selector.Person = new Class({
}
},
_selectSingleItem : function(){
var _self = this;
var checkItem = function () {
if(this.items.length === 1 || this.subItems.length === 1 ){
if( this.items.length === 1 && this.subItems.length === 0 ){
if( !this.items[0].isSelected )this.items[0].clickItem();
this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
}else if( this.items.length === 0 && this.subItems.length === 1 ){
if( !this.items[0].isSelected )this.subItems[0].clickItem();
this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
}else if( this.items.length === 1 && this.subItems.length === 1 ){
if( this.items[0] === this.subItems[0] ){
if( !this.items[0].isSelected )this.items[0].clickItem();
this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
}
}
}
......@@ -1475,11 +1479,13 @@ MWF.xApplication.Selector.Person = new Class({
if( !category.subCategorys || category.subCategorys.length === 0 ){
if( category.subItems && category.subItems.length === 1 ){
if( !category.subItems[0].isSelected )category.subItems[0].clickItem();
_self.fireEvent("afterSelectSingleItem",[_self, category.subItems[0]])
}
}else if(category.subCategorys.length === 1){
if( category.subItems && category.subItems.length > 0 ){
}else if( !category.subCategorys[0]._hasChild || !category.subCategorys[0]._hasChild() ){ //category.subCategorys[0].isItem &&
if( !category.subItems[0].isSelected )category.subItems[0].clickItem();
_self.fireEvent("afterSelectSingleItem",[_self, category.subItems[0]])
}else{
checkCategory( category.subCategorys[0] )
}
......@@ -1498,6 +1504,7 @@ MWF.xApplication.Selector.Person = new Class({
if( list.length === 0 ){
if( category.subItems && category.subItems.length === 1 ){
if( !category.subItems[0].isSelected )category.subItems[0].clickItem();
_self.fireEvent("afterSelectSingleItem",[_self, category.subItems[0]])
}
}
}
......
MWF.xDesktop.requireApp("process.Xform", "Textfield", null, false);
/** @class cms.Textfield 文本输入框。
* @extends MWF.xApplication.process.Xform.Textfield
* @hideconstructor
*/
MWF.xApplication.cms.Xform.Textfield = MWF.CMSTextfield = new Class({
Extends: MWF.APPTextfield
});
\ No newline at end of file
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.$Input 组件类,此类为所有输入组件的父类
/** @class $Input 组件类,此类为所有输入组件的父类
* @hideconstructor
* @extends MWF.xApplication.process.Xform.$Module
* @abstract
......
MWF.require("MWF.widget.Common", null, false);
/** @classdesc process.$Module 组件类,此类为所有组件的父类。
/** @classdesc $Module 组件类,此类为所有组件的父类。
* @class
* @hideconstructor
* */
......
......@@ -2,7 +2,7 @@ MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
//MWF.require("MWF.widget.Tree", null, false);
//MWF.require("MWF.widget.Toolbar", null, false);
/** @class process.Actionbar 操作条组件。
/** @class Actionbar 操作条组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
......@@ -1052,7 +1052,7 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({
* @property {String} updateTime - 修改时间.
* @property {String} extension - 附件扩展名.
*/
/** @class process.Actionbar 附件组件。
/** @class Actionbar 附件组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.Button 按钮组件。
/** @class Button 按钮组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Input", null, false);
/** @class process.Calendar 日期组件。
/** @class Calendar 日期组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Input", null, false);
MWF.require("MWF.widget.UUID", null, false);
/** @class process.Calendar 多选按钮组件。
/** @class Calendar 多选按钮组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.Common 通用组件。
/** @class Common 通用组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.DatagridMobile 数据网格组件(移动端)。
/** @class DatagridMobile 数据网格组件(移动端)。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
......@@ -47,7 +47,7 @@
}
*/
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.DatagridPC 数据网格组件(PC端)。
/** @class DatagridPC 数据网格组件(PC端)。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.Div 容器组件。
/** @class Div 容器组件。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
/** @class process.Documenteditor 公文编辑器。
/** @class Documenteditor 公文编辑器。
* @example
* //可以在脚本中获取该组件
* //方法1:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册