Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
5ed0a454
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
339
Star
10
Fork
6
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
5ed0a454
编写于
8月 31, 2021
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数字组件允许使用空字符串
上级
9e4e6272
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
38 addition
and
20 deletion
+38
-20
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+4
-4
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+4
-4
o2web/source/x_component_process_Xform/DatagridMobile.js
o2web/source/x_component_process_Xform/DatagridMobile.js
+1
-1
o2web/source/x_component_process_Xform/DatagridPC.js
o2web/source/x_component_process_Xform/DatagridPC.js
+1
-1
o2web/source/x_component_process_Xform/Number.js
o2web/source/x_component_process_Xform/Number.js
+28
-10
未找到文件。
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
5ed0a454
...
...
@@ -1067,6 +1067,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"
showOptions
"
:
"
Show Options
"
,
"
onInput
"
:
"
When inputting
"
,
"
onFocus
"
:
"
On Click
"
,
"
emptyValue
"
:
"
Empty Value
"
,
"
showZero
"
:
"
Show Zero
"
,
"
showNullString
"
:
"
Show an empty string
"
,
"
wps
"
:
{
"
config
"
:
"
Config
"
,
"
options
"
:
"
options
"
,
...
...
@@ -1141,10 +1144,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
www
"
:
"
www
"
,
"
feedbackUrl
"
:
"
feedbackUrl
"
,
"
logoImg
"
:
"
left logo(172x40)
"
,
"
logoUrl
"
:
"
logo link
"
,
"
emptyValue
"
:
"
Empty Value
"
,
"
showZero
"
:
"
Show Zero
"
,
"
showNullString
"
:
"
Show an empty string
"
"
logoUrl
"
:
"
logo link
"
}
},
"
actionBar
"
:
{
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
5ed0a454
...
...
@@ -1086,6 +1086,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"
showOptions
"
:
"
显示选项
"
,
"
onInput
"
:
"
输入时
"
,
"
onFocus
"
:
"
点击时
"
,
"
emptyValue
"
:
"
空值
"
,
"
showZero
"
:
"
显示零
"
,
"
showNullString
"
:
"
显示空字符串
"
,
"
wps
"
:
{
"
config
"
:
"
配置
"
,
"
options
"
:
"
通用选项
"
,
...
...
@@ -1160,10 +1163,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
www
"
:
"
网址
"
,
"
feedbackUrl
"
:
"
反馈地址
"
,
"
logoImg
"
:
"
左上角logo(172x40)
"
,
"
logoUrl
"
:
"
logo链接
"
,
"
emptyValue
"
:
"
空值
"
,
"
showZero
"
:
"
显示零
"
,
"
showNullString
"
:
"
显示空字符串
"
"
logoUrl
"
:
"
logo链接
"
}
},
"
actionBar
"
:
{
...
...
o2web/source/x_component_process_Xform/DatagridMobile.js
浏览文件 @
5ed0a454
...
...
@@ -1288,7 +1288,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class(
var
tmpV
=
new
Decimal
(
totalResaults
[
idx
]);
if
(
m
.
type
==
"
number
"
){
var
cell
=
cells
[
m
.
index
];
var
addv
=
cell
.
get
(
"
text
"
).
toFloat
();
var
addv
=
(
cell
.
get
(
"
text
"
)
||
"
0
"
).
toFloat
();
tmpV
=
tmpV
.
plus
(
addv
||
0
);
//tmpV = tmpV + addv;
}
...
...
o2web/source/x_component_process_Xform/DatagridPC.js
浏览文件 @
5ed0a454
...
...
@@ -1324,7 +1324,7 @@ MWF.xApplication.process.Xform.DatagridPC = new Class(
var
tmpV
=
new
Decimal
(
totalResaults
[
i
]);
if
(
m
.
type
==
"
number
"
){
var
cell
=
cells
[
m
.
index
];
var
addv
=
cell
.
get
(
"
text
"
).
toFloat
();
var
addv
=
(
cell
.
get
(
"
text
"
)
||
"
0
"
).
toFloat
();
tmpV
=
tmpV
.
plus
(
addv
||
0
);
//tmpV = tmpV + addv;
}
...
...
o2web/source/x_component_process_Xform/Number.js
浏览文件 @
5ed0a454
...
...
@@ -22,7 +22,8 @@ MWF.xApplication.process.Xform.Number = MWF.APPNumber = new Class({
if
(
this
.
node
.
getFirst
()){
var
v
=
this
.
node
.
getElement
(
"
input
"
).
get
(
"
value
"
);
var
n
=
v
.
toFloat
();
return
(
isNaN
(
n
))
?
0
:
n
;
return
(
isNaN
(
n
))
?
(
this
.
json
.
emptyValue
===
"
string
"
?
""
:
0
)
:
n
;
//return (isNaN(n)) ? 0 : n;
}
else
{
return
this
.
_getBusinessData
();
}
...
...
@@ -67,12 +68,15 @@ debugger;
if
(
!
this
.
node
.
getElement
(
"
input
"
)
)
return
true
;
var
n
=
this
.
node
.
getElement
(
"
input
"
).
get
(
"
value
"
);
if
(
isNaN
(
n
))
{
this
.
notValidationMode
(
MWF
.
xApplication
.
process
.
Xform
.
LP
.
notValidation_number
);
return
false
;
if
(
n
===
""
&&
this
.
json
.
emptyValue
===
"
string
"
){
return
true
;
}
else
{
this
.
notValidationMode
(
MWF
.
xApplication
.
process
.
Xform
.
LP
.
notValidation_number
);
return
false
;
}
}
else
{
this
.
node
.
getFirst
().
set
(
"
value
"
,
this
.
formatNumber
(
n
));
}
this
.
node
.
getFirst
().
set
(
"
value
"
,
this
.
formatNumber
(
n
));
// var v = n.toFloat();
// if (v){
// if (this.json.decimals && (this.json.decimals!="*")){
...
...
@@ -106,6 +110,7 @@ debugger;
var
flag
=
(
data
.
status
==
"
all
"
)
?
true
:
(
routeName
==
data
.
decision
);
if
(
flag
){
var
n
=
this
.
getInputData
();
if
(
n
===
""
&&
this
.
json
.
emptyValue
===
"
string
"
)
n
=
0
;
var
v
=
(
data
.
valueType
==
"
value
"
)
?
n
:
n
.
length
;
switch
(
data
.
operateor
){
case
"
isnull
"
:
...
...
@@ -249,18 +254,31 @@ debugger;
}.
bind
(
this
));
},
_computeValue
:
function
(
value
){
return
(
this
.
json
.
defaultValue
&&
this
.
json
.
defaultValue
.
code
)
?
this
.
form
.
Macro
.
exec
(
this
.
json
.
defaultValue
.
code
,
this
):
(
value
||
"
0
"
);
if
(
this
.
json
.
defaultValue
&&
this
.
json
.
defaultValue
.
code
){
return
this
.
form
.
Macro
.
exec
(
this
.
json
.
defaultValue
.
code
,
this
)
}
else
{
if
(
value
){
return
value
;
}
else
{
return
this
.
json
.
emptyValue
===
"
string
"
?
""
:
"
0
"
;
}
}
},
getValue
:
function
(){
debugger
;
if
(
this
.
moduleValueAG
)
return
this
.
moduleValueAG
;
var
value
=
this
.
_getBusinessData
();
if
(
!
value
)
value
=
this
.
_computeValue
();
value
=
this
.
formatNumber
(
value
);
return
value
||
"
0
"
;
if
(
!
value
&&
this
.
json
.
emptyValue
===
"
string
"
){
return
""
;
}
else
{
value
=
this
.
formatNumber
(
value
);
return
value
||
"
0
"
;
}
},
__setValue
:
function
(
value
){
this
.
_setBusinessData
(
value
);
if
(
this
.
node
.
getFirst
())
this
.
node
.
getFirst
().
set
(
"
value
"
,
value
||
"
0
"
);
if
(
this
.
node
.
getFirst
())
this
.
node
.
getFirst
().
set
(
"
value
"
,
value
||
(
this
.
json
.
emptyValue
===
"
string
"
?
""
:
"
0
"
)
);
if
(
this
.
readonly
||
this
.
json
.
isReadonly
)
this
.
node
.
set
(
"
text
"
,
value
);
this
.
moduleValueAG
=
null
;
this
.
fieldModuleLoaded
=
true
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录