Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
bea1b49c
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,发现更多精彩内容 >>
提交
bea1b49c
编写于
7月 28, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表单增加数据字典和脚本的选择
上级
2482137e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1 addition
and
82 deletion
+1
-82
o2web/source/x_component_process_FormDesigner/widget/ScriptIncluder.js
...x_component_process_FormDesigner/widget/ScriptIncluder.js
+1
-82
未找到文件。
o2web/source/x_component_process_FormDesigner/widget/ScriptIncluder.js
浏览文件 @
bea1b49c
...
...
@@ -28,92 +28,11 @@ MWF.xApplication.process.FormDesigner.widget.ScriptIncluder = new Class({
this
.
loadListNode
(
data
);
},
loadEditorNode
:
function
(){
//this.statusNode = new Element("div", {"styles": this.css.statusNode}).inject(this.editorNode);
//this.conditionNode = new Element("div", {"styles": this.css.conditionNode}).inject(this.editorNode);
//this.valueNode = new Element("div", {"styles": this.css.valueNode}).inject(this.editorNode);
//this.promptNode = new Element("div", {"styles": this.css.promptNode}).inject(this.editorNode);
var
html
=
"
<table width='100%' border='0' cellpadding='5' cellspacing='0' class='editTable'>
"
+
"
<tr><td></td><
/tr><tr><td></td></tr><tr
><td></td></tr></table>
"
;
"
<tr><td></td><
td></td></tr><tr><td></td
><td></td></tr></table>
"
;
this
.
editorNode
.
set
(
"
html
"
,
html
);
var
tds
=
this
.
editorNode
.
getElements
(
"
td
"
).
setStyles
(
this
.
css
.
editTableTdValue
);
this
.
loadStatus
(
tds
);
this
.
loadConditions
(
tds
);
this
.
loadPrompt
(
tds
);
},
loadStatus
:
function
(
tds
){
var
html
=
"
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
"
+
"
<td width='140px'>
"
+
"
<input type='radio' value='all' checked />
"
+
this
.
designer
.
lp
.
validation
.
anytime
+
"
<input type='radio' value='decision' />
"
+
this
.
designer
.
lp
.
validation
.
decision
+
"
</td>
"
+
"
<td><input type='text' value='
"
+
this
.
designer
.
lp
.
validation
.
decisionName
+
"
'></td>
"
+
"
</tr></table>
"
;
tds
[
0
].
set
(
"
html
"
,
html
);
var
inputs
=
tds
[
0
].
getElements
(
"
input
"
);
var
randomId
=
new
MWF
.
widget
.
UUID
().
toString
();
inputs
[
0
].
set
(
"
name
"
,
"
condition
"
+
randomId
);
inputs
[
1
].
set
(
"
name
"
,
"
condition
"
+
randomId
);
inputs
[
2
].
setStyles
(
this
.
css
.
decisionNameInput
);
this
.
decisionInputNode
=
inputs
[
2
];
this
.
statusRadioNodes
=
inputs
;
this
.
statusRadioNodes
.
pop
();
this
.
decisionInputNode
.
addEvents
({
"
focus
"
:
function
(){
if
(
this
.
decisionInputNode
.
get
(
"
value
"
)
==
this
.
designer
.
lp
.
validation
.
decisionName
)
this
.
decisionInputNode
.
set
(
"
value
"
,
""
);
}.
bind
(
this
),
"
blur
"
:
function
(){
if
(
!
this
.
decisionInputNode
.
get
(
"
value
"
))
this
.
decisionInputNode
.
set
(
"
value
"
,
this
.
designer
.
lp
.
validation
.
decisionName
);
}.
bind
(
this
)
});
},
loadConditions
:
function
(
tds
){
var
html
=
"
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
"
+
"
<td width='140px'>
"
+
"
<select><option value='value'>
"
+
this
.
designer
.
lp
.
validation
.
value
+
"
</option>
"
+
"
<option value='length'>
"
+
this
.
designer
.
lp
.
validation
.
length
+
"
</option></select>
"
+
"
<select><option value='isnull'>
"
+
this
.
designer
.
lp
.
validation
.
isnull
+
"
</option>
"
+
"
<option value='notnull'>
"
+
this
.
designer
.
lp
.
validation
.
notnull
+
"
</option>
"
+
"
<option value='gt'>
"
+
this
.
designer
.
lp
.
validation
.
gt
+
"
</option>
"
+
"
<option value='lt'>
"
+
this
.
designer
.
lp
.
validation
.
lt
+
"
</option>
"
+
"
<option value='equal'>
"
+
this
.
designer
.
lp
.
validation
.
equal
+
"
</option>
"
+
"
<option value='neq'>
"
+
this
.
designer
.
lp
.
validation
.
neq
+
"
</option>
"
+
"
<option value='contain'>
"
+
this
.
designer
.
lp
.
validation
.
contain
+
"
</option>
"
+
"
<option value='notcontain'>
"
+
this
.
designer
.
lp
.
validation
.
notcontain
+
"
</option>
"
+
"
</select>
"
+
"
</td>
"
+
"
<td><input style='display: none' type='text' value='
"
+
this
.
designer
.
lp
.
validation
.
valueInput
+
"
'/></td>
"
+
"
</tr></table>
"
;
tds
[
1
].
set
(
"
html
"
,
html
);
var
selects
=
tds
[
1
].
getElements
(
"
select
"
);
selects
.
setStyles
(
this
.
css
.
valueSelect
);
this
.
valueTypeSelectNode
=
selects
[
0
];
this
.
operateorSelectNode
=
selects
[
1
];
this
.
valueInputNode
=
tds
[
1
].
getElement
(
"
input
"
).
setStyles
(
this
.
css
.
valueInput
);
this
.
operateorSelectNode
.
addEvent
(
"
change
"
,
function
(){
var
v
=
this
.
operateorSelectNode
.
options
[
this
.
operateorSelectNode
.
selectedIndex
].
value
;
if
(
v
&&
(
v
!=
"
isnull
"
)
&&
(
v
!=
"
notnull
"
)){
this
.
valueInputNode
.
setStyle
(
"
display
"
,
"
inline
"
);
}
else
{
this
.
valueInputNode
.
setStyle
(
"
display
"
,
"
none
"
);
}
}.
bind
(
this
));
this
.
valueInputNode
.
addEvents
({
"
focus
"
:
function
(){
if
(
this
.
valueInputNode
.
get
(
"
value
"
)
==
this
.
designer
.
lp
.
validation
.
valueInput
)
this
.
valueInputNode
.
set
(
"
value
"
,
""
);
}.
bind
(
this
),
"
blur
"
:
function
(){
if
(
!
this
.
valueInputNode
.
get
(
"
value
"
))
this
.
valueInputNode
.
set
(
"
value
"
,
this
.
designer
.
lp
.
validation
.
valueInput
);
}.
bind
(
this
)
});
},
loadPrompt
:
function
(
tds
){
var
html
=
"
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td width='60px'>
"
+
this
.
designer
.
lp
.
validation
.
prompt
+
"
</td><td><input type='text' /></td></tr></table>
"
;
tds
[
2
].
set
(
"
html
"
,
html
);
tds
[
2
].
getElements
(
"
td
"
)[
0
].
setStyles
(
this
.
css
.
titleTd
);
this
.
promptInputNode
=
tds
[
2
].
getElement
(
"
input
"
).
setStyles
(
this
.
css
.
promptInput
);
},
loadActionNode
:
function
(){
this
.
actionAreaNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
actionAreaNode
}).
inject
(
this
.
actionNode
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录