Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
fd29439d
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fd29439d
编写于
5月 27, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加表单组件的isEmpty 方法
上级
df9fc999
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
72 addition
and
1 deletion
+72
-1
o2web/source/x_component_process_Xform/$Input.js
o2web/source/x_component_process_Xform/$Input.js
+3
-0
o2web/source/x_component_process_Xform/Attachment.js
o2web/source/x_component_process_Xform/Attachment.js
+8
-0
o2web/source/x_component_process_Xform/Combox.js
o2web/source/x_component_process_Xform/Combox.js
+8
-0
o2web/source/x_component_process_Xform/DatagridMobile.js
o2web/source/x_component_process_Xform/DatagridMobile.js
+9
-0
o2web/source/x_component_process_Xform/DatagridPC.js
o2web/source/x_component_process_Xform/DatagridPC.js
+9
-0
o2web/source/x_component_process_Xform/Documenteditor.js
o2web/source/x_component_process_Xform/Documenteditor.js
+5
-0
o2web/source/x_component_process_Xform/Form.js
o2web/source/x_component_process_Xform/Form.js
+1
-1
o2web/source/x_component_process_Xform/Office.js
o2web/source/x_component_process_Xform/Office.js
+4
-0
o2web/source/x_component_process_Xform/Org.js
o2web/source/x_component_process_Xform/Org.js
+6
-0
o2web/source/x_component_process_Xform/Orgfield.js
o2web/source/x_component_process_Xform/Orgfield.js
+6
-0
o2web/source/x_component_process_Xform/Personfield.js
o2web/source/x_component_process_Xform/Personfield.js
+6
-0
o2web/source/x_component_process_Xform/Stat.js
o2web/source/x_component_process_Xform/Stat.js
+7
-0
未找到文件。
o2web/source/x_component_process_Xform/$Input.js
浏览文件 @
fd29439d
...
...
@@ -216,6 +216,9 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class({
var
text
=
(
this
.
node
.
getFirst
())
?
this
.
node
.
getFirst
().
get
(
"
text
"
)
:
this
.
node
.
get
(
"
text
"
);
return
{
"
value
"
:
[
value
||
""
]
,
"
text
"
:
[
text
||
value
||
""
]};
},
isEmpty
:
function
(){
return
!!
this
.
getData
();
},
getData
:
function
(
when
){
if
(
this
.
json
.
compute
==
"
save
"
)
this
.
_setValue
(
this
.
_computeValue
());
return
this
.
getInputData
();
...
...
o2web/source/x_component_process_Xform/Attachment.js
浏览文件 @
fd29439d
...
...
@@ -1104,6 +1104,14 @@ MWF.xApplication.process.Xform.Attachment = MWF.APPAttachment = new Class({
}.
bind
(
this
));
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
typeOf
(
data
)
===
"
array
"
){
return
data
.
length
!==
0
}
else
{
return
!!
data
;
}
},
getData
:
function
()
{
return
(
this
.
attachmentController
)
?
this
.
attachmentController
.
getAttachmentNames
()
:
null
;
},
...
...
o2web/source/x_component_process_Xform/Combox.js
浏览文件 @
fd29439d
...
...
@@ -179,6 +179,14 @@ MWF.xApplication.process.Xform.Combox = MWF.APPCombox = new Class({
this
.
combox
.
setOptions
({
"
list
"
:
list
});
}
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
typeOf
(
data
)
===
"
array
"
){
return
data
.
length
!==
0
;
}
else
{
return
!!
data
;
}
},
getInputData
:
function
(){
if
(
this
.
combox
)
return
this
.
combox
.
getData
();
return
this
.
_getBusinessData
();
...
...
o2web/source/x_component_process_Xform/DatagridMobile.js
浏览文件 @
fd29439d
...
...
@@ -1133,6 +1133,15 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
getTotal
:
function
(){
this
.
_loadTotal
();
return
this
.
totalResaults
;
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
!
data
)
return
true
;
if
(
typeOf
(
data
)
===
"
object
"
){
if
(
typeOf
(
data
.
data
)
!==
"
array
"
)
return
true
;
if
(
data
.
data
.
length
===
0
)
return
true
;
}
return
false
;
},
getData
:
function
(){
if
(
this
.
editable
!=
false
){
...
...
o2web/source/x_component_process_Xform/DatagridPC.js
浏览文件 @
fd29439d
...
...
@@ -983,6 +983,15 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
getTotal
:
function
(){
this
.
_loadTotal
();
return
this
.
totalResaults
;
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
!
data
)
return
true
;
if
(
typeOf
(
data
)
===
"
object
"
){
if
(
typeOf
(
data
.
data
)
!==
"
array
"
)
return
true
;
if
(
data
.
data
.
length
===
0
)
return
true
;
}
return
false
;
},
getData
:
function
(){
if
(
this
.
editable
!=
false
){
...
...
o2web/source/x_component_process_Xform/Documenteditor.js
浏览文件 @
fd29439d
...
...
@@ -1796,6 +1796,11 @@ debugger;
this
.
_repage
();
}.
bind
(
this
));
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
typeOf
(
data
)
!==
"
object
"
)
return
true
;
return
!!
data
.
filetext
;
},
getData
:
function
(){
//if (this.editMode){
if
(
this
.
layout_copies
)
this
.
data
.
copies
=
this
.
layout_copies
.
get
(
"
text
"
);
...
...
o2web/source/x_component_process_Xform/Form.js
浏览文件 @
fd29439d
...
...
@@ -1082,7 +1082,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
// this.setModifedData(data[i], pathList.push(i));
// }
//}
}
else
if
(
typeOf
(
data
)
!==
"
null
"
)
{
}
else
if
(
typeOf
(
data
)
!==
"
null
"
)
{
//后台对null是忽略处理的,认为值没有变化
var
od
=
this
.
getOrigianlPathData
(
pathList
);
if
(
typeOf
(
data
)
!==
typeOf
(
od
)
||
data
!==
od
)
{
this
.
setModifedDataByPathList
(
data
,
pathList
);
...
...
o2web/source/x_component_process_Xform/Office.js
浏览文件 @
fd29439d
...
...
@@ -1203,6 +1203,10 @@ MWF.xApplication.process.Xform.Office = MWF.APPOffice = new Class({
this
.
fileUploadNode
=
this
.
uploadFileAreaNode
.
getFirst
();
this
.
uploadFileAreaNode
.
inject
(
this
.
officeForm
);
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
return
!!
data
;
},
getData
:
function
(){
if
(
this
.
officeOCX
&&
(
this
.
officeOCX
.
DocType
==
1
||
this
.
officeOCX
.
DocType
==
6
)){
this
.
officeOCX
.
ActiveDocument
.
Application
.
Selection
.
WholeStory
();
...
...
o2web/source/x_component_process_Xform/Org.js
浏览文件 @
fd29439d
...
...
@@ -323,6 +323,12 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class({
//this.setData((v) ? v.join(", ") : "");
this
.
setData
(
v
);
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
typeOf
(
data
)
!==
"
array
"
)
return
true
;
if
(
data
.
length
===
0
)
return
true
;
return
false
;
},
getInputData
:
function
(){
if
(
this
.
json
.
isInput
){
if
(
this
.
combox
)
return
this
.
combox
.
getData
();
...
...
o2web/source/x_component_process_Xform/Orgfield.js
浏览文件 @
fd29439d
...
...
@@ -276,6 +276,12 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
value
=
this
.
_computeValue
();
}
return
value
||
""
;
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
typeOf
(
data
)
!==
"
array
"
)
return
true
;
if
(
data
.
length
===
0
)
return
true
;
return
false
;
},
getData
:
function
(
when
){
if
(
this
.
json
.
compute
==
"
save
"
)
this
.
_setValue
(
this
.
_computeValue
());
...
...
o2web/source/x_component_process_Xform/Personfield.js
浏览文件 @
fd29439d
...
...
@@ -394,6 +394,12 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({
//this.setData((v) ? v.join(", ") : "");
this
.
setData
(
v
);
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
if
(
typeOf
(
data
)
!==
"
array
"
)
return
true
;
if
(
data
.
length
===
0
)
return
true
;
return
false
;
},
getInputData
:
function
(){
if
(
this
.
json
.
isInput
){
if
(
this
.
combox
)
return
this
.
combox
.
getData
();
...
...
o2web/source/x_component_process_Xform/Stat.js
浏览文件 @
fd29439d
...
...
@@ -37,6 +37,13 @@ MWF.xApplication.process.Xform.Stat = MWF.APPStat = new Class({
});
}.
bind
(
this
));
},
isEmpty
:
function
(){
var
data
=
this
.
getData
();
debugger
;
if
(
typeOf
(
data
)
!==
"
array
"
)
return
true
;
if
(
data
.
length
===
0
)
return
true
;
return
false
;
},
getData
:
function
(){
if
(
!
this
.
stat
)
return
null
;
if
(
!
this
.
stat
.
stat
)
return
null
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录