Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
aa3abd5f
提交
aa3abd5f
编写于
11月 08, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
63c5445e
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
325 行增加
和
325 行删除
+325
-325
grid-load-ui-logic-base.ts
app_Web/src/uiservice/ibizbook/grid-load-ui-logic-base.ts
+154
-154
main-form-base.vue
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
+5
-5
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+2
-2
list-exp-list-base.vue
...rc/widgets/ibizorder/list-exp-list/list-exp-list-base.vue
+4
-4
IBIZBOOK.json
...remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json
+117
-117
Usr.json
...SSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSGANTTS/Usr.json
+10
-10
TreeTable.json
.../PSAPPDATAENTITIES/IBIZBOOK/PSTREEGRIDICES/TreeTable.json
+10
-10
IBIZBOOKGanttView.json
...temodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKGanttView.json
+10
-10
IBIZBOOKTreeGridExView.json
...el/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json
+10
-10
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+2
-2
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
未找到文件。
app_Web/src/uiservice/ibizbook/grid-load-ui-logic-base.ts
浏览文件 @
aa3abd5f
...
...
@@ -27,8 +27,8 @@ export default class GridLoadUILogicBase {
*/
protected
logicParams
:
any
[]
=
[
{
name
:
'当前
表格
'
,
codeName
:
'
grid
'
,
name
:
'当前
搜索表单
'
,
codeName
:
'
searchForm
'
,
ctrlParam
:
true
,
},
{
...
...
@@ -36,6 +36,16 @@ export default class GridLoadUILogicBase {
codeName
:
'viewParam'
,
viewNavDataParam
:
true
,
},
{
name
:
'当前表格'
,
codeName
:
'grid'
,
ctrlParam
:
true
,
},
{
name
:
'额外参数'
,
codeName
:
'otherParam'
,
entityParam
:
true
,
},
{
name
:
'当前视图'
,
codeName
:
'view'
,
...
...
@@ -47,16 +57,6 @@ export default class GridLoadUILogicBase {
default
:
true
,
entityParam
:
true
,
},
{
name
:
'当前搜索表单'
,
codeName
:
'searchForm'
,
ctrlParam
:
true
,
},
{
name
:
'额外参数'
,
codeName
:
'otherParam'
,
entityParam
:
true
,
},
];
/**
...
...
@@ -112,19 +112,82 @@ export default class GridLoadUILogicBase {
}
/**
*
绑定搜索表单
*
搜索表单loadDraft
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_bindparam1_node
(
actionContext
:
UIActionContext
)
{
protected
async
execute_viewctrlinvoke1_node
(
actionContext
:
UIActionContext
)
{
const
invokeCtrl
=
'searchForm'
;
const
invokeMethod
=
'loadDraft'
;
const
invokeParam
=
'viewParam'
;
if
(
!
invokeCtrl
||
!
invokeMethod
)
{
throw
new
Error
(
`界面对象或者调用方法缺失`
);
}
const
invokeUICtrl
=
actionContext
.
getParam
(
invokeCtrl
).
getReal
();
if
(
invokeUICtrl
[
invokeMethod
]
&&
invokeUICtrl
[
invokeMethod
]
instanceof
Function
)
{
try
{
const
result
=
await
invokeUICtrl
[
invokeMethod
]();
if
(
invokeParam
)
{
actionContext
.
getParam
(
invokeParam
).
bind
(
result
);
}
actionContext
.
bindLastReturnParam
(
result
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象调用
${
invokeMethod
}
方法发生异常`
);
}
}
else
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象不存在
${
invokeMethod
}
方法`
);
}
console
.
log
(
'已完成执行 搜索表单loadDraft 节点'
);
await
this
.
execute_viewctrlinvoke2_node
(
actionContext
);
}
/**
* 实体处理逻辑
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_delogic1_node
(
actionContext
:
UIActionContext
)
{
const
dstParam
=
actionContext
.
getParam
(
'viewParam'
);
const
retParam
=
actionContext
.
getParam
(
'viewParam'
);
if
(
dstParam
)
{
try
{
const
service
:
any
=
new
IBIZBOOKService
();
const
result
=
await
service
[
'executeAppDELogic'
](
'initData'
,
actionContext
.
context
,
dstParam
.
getReal
()
?
dstParam
.
getReal
()
:
{});
if
(
result
)
{
if
(
retParam
){
retParam
.
bind
(
result
);
}
actionContext
.
bindLastReturnParam
(
result
);
}
else
{
throw
new
Error
(
`调用实体处理逻辑异常`
);
}
}
catch
(
error
:
any
)
{
throw
new
Error
(
`调用实体处理逻辑异常
${
error
&&
error
.
message
?
error
.
message
:
''
}
`
);
}
}
else
{
throw
new
Error
(
`操作参数缺失!`
);
}
console
.
log
(
'已完成执行 实体处理逻辑 节点'
);
await
this
.
execute_msgbox1_node
(
actionContext
);
await
this
.
execute_preparejsparam1_node
(
actionContext
);
}
/**
* 绑定表格
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_bindparam2_node
(
actionContext
:
UIActionContext
)
{
try
{
// 源数据
const
srcParam
=
actionContext
.
getParam
(
'view'
);
// 目标数据
const
dstParam
=
actionContext
.
getParam
(
'
searchForm
'
);
const
dstParam
=
actionContext
.
getParam
(
'
grid
'
);
// 源属性
const
srcFieldName
:
string
=
'
searchform
'
;
const
srcFieldName
:
string
=
'
grid
'
;
if
(
srcFieldName
)
{
dstParam
.
bind
(
srcParam
.
get
(
srcFieldName
));
}
else
{
...
...
@@ -132,10 +195,10 @@ export default class GridLoadUILogicBase {
}
actionContext
.
bindLastReturnParam
(
null
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`逻辑参数当前
搜索表单
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
throw
new
Error
(
`逻辑参数当前
表格
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
console
.
log
(
'已完成执行 绑定
搜索表单
节点'
);
await
this
.
execute_
bindparam2
_node
(
actionContext
);
console
.
log
(
'已完成执行 绑定
表格
节点'
);
await
this
.
execute_
viewctrlinvoke1
_node
(
actionContext
);
}
/**
...
...
@@ -215,6 +278,65 @@ export default class GridLoadUILogicBase {
await
this
.
execute_end1_node
(
actionContext
);
}
/**
* 消息弹窗
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_msgbox1_node
(
actionContext
:
UIActionContext
)
{
// TODO 等待补充
return
new
Promise
<
void
>
((
resolve
:
any
)
=>
{
const
msgBoxParam
:
any
=
actionContext
.
getParam
(
''
);
const
data
=
msgBoxParam
?
msgBoxParam
.
getReal
()
:
{};
const
options
=
{
type
:
'INFO'
,
title
:
data
&&
data
.
title
?
data
.
title
:
'触发'
,
content
:
data
&&
data
.
message
?
data
.
message
:
'我被触发啦'
,
buttonType
:
'ok'
,
showMode
:
'center'
,
showClose
:
false
,
mask
:
true
,
maskClosable
:
true
};
// TODO 支持具体弹窗
// const subject: Subject<any> | null = AppMessageBoxService.getInstance().open(options);
// const subscription = subject?.subscribe((result: any) => {
// resolve(this.handleResponse(logicNode, actionContext, options, result));
// subscription!.unsubscribe();
// subject.complete();
// })
});
console
.
log
(
'已完成执行 消息弹窗 节点'
);
}
/**
* 绑定搜索表单
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_bindparam1_node
(
actionContext
:
UIActionContext
)
{
try
{
// 源数据
const
srcParam
=
actionContext
.
getParam
(
'view'
);
// 目标数据
const
dstParam
=
actionContext
.
getParam
(
'searchForm'
);
// 源属性
const
srcFieldName
:
string
=
'searchform'
;
if
(
srcFieldName
)
{
dstParam
.
bind
(
srcParam
.
get
(
srcFieldName
));
}
else
{
dstParam
.
bind
(
srcParam
.
getReal
());
}
actionContext
.
bindLastReturnParam
(
null
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`逻辑参数当前搜索表单
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
console
.
log
(
'已完成执行 绑定搜索表单 节点'
);
await
this
.
execute_bindparam2_node
(
actionContext
);
}
/**
* 表格加载
*
...
...
@@ -247,35 +369,24 @@ export default class GridLoadUILogicBase {
}
/**
*
实体处理逻辑
*
准备参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_delogic1_node
(
actionContext
:
UIActionContext
)
{
const
dstParam
=
actionContext
.
getParam
(
'searchForm'
);
const
retParam
=
actionContext
.
getParam
(
'searchForm'
);
if
(
dstParam
)
{
try
{
const
service
:
any
=
new
IBIZBOOKService
();
const
result
=
await
service
[
'executeAppDELogic'
](
'initData'
,
actionContext
.
context
,
dstParam
.
getReal
()
?
dstParam
.
getReal
()
:
{});
if
(
result
)
{
if
(
retParam
){
retParam
.
bind
(
result
);
}
actionContext
.
bindLastReturnParam
(
result
);
}
else
{
throw
new
Error
(
`调用实体处理逻辑异常`
);
}
}
catch
(
error
:
any
)
{
throw
new
Error
(
`调用实体处理逻辑异常
${
error
&&
error
.
message
?
error
.
message
:
''
}
`
);
}
}
else
{
throw
new
Error
(
`操作参数缺失!`
);
protected
async
execute_preparejsparam1_node
(
actionContext
:
UIActionContext
)
{
try
{
// 目标数据
const
dstParam_1
:
any
=
actionContext
.
getParam
(
'otherParam'
);
// 无值类型
// 直接值
const
result_1
=
'12'
;
dstParam_1
.
set
(
'book'
,
result_1
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`逻辑节点 准备参数
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
console
.
log
(
'已完成执行 实体处理逻辑 节点'
);
await
this
.
execute_msgbox1_node
(
actionContext
);
await
this
.
execute_preparejsparam1_node
(
actionContext
);
console
.
log
(
'已完成执行 准备参数 节点'
);
await
this
.
execute_deaction1_node
(
actionContext
);
}
/**
...
...
@@ -305,116 +416,5 @@ export default class GridLoadUILogicBase {
console
.
log
(
'已完成执行 结束 节点'
);
}
/**
* 准备参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_preparejsparam1_node
(
actionContext
:
UIActionContext
)
{
try
{
// 目标数据
const
dstParam_1
:
any
=
actionContext
.
getParam
(
'otherParam'
);
// 无值类型
// 直接值
const
result_1
=
'12'
;
dstParam_1
.
set
(
'book'
,
result_1
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`逻辑节点 准备参数
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
console
.
log
(
'已完成执行 准备参数 节点'
);
await
this
.
execute_deaction1_node
(
actionContext
);
}
/**
* 绑定表格
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_bindparam2_node
(
actionContext
:
UIActionContext
)
{
try
{
// 源数据
const
srcParam
=
actionContext
.
getParam
(
'view'
);
// 目标数据
const
dstParam
=
actionContext
.
getParam
(
'grid'
);
// 源属性
const
srcFieldName
:
string
=
'grid'
;
if
(
srcFieldName
)
{
dstParam
.
bind
(
srcParam
.
get
(
srcFieldName
));
}
else
{
dstParam
.
bind
(
srcParam
.
getReal
());
}
actionContext
.
bindLastReturnParam
(
null
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`逻辑参数当前表格
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
console
.
log
(
'已完成执行 绑定表格 节点'
);
await
this
.
execute_viewctrlinvoke1_node
(
actionContext
);
}
/**
* 搜索表单loadDraft
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_viewctrlinvoke1_node
(
actionContext
:
UIActionContext
)
{
const
invokeCtrl
=
'searchForm'
;
const
invokeMethod
=
'loadDraft'
;
const
invokeParam
=
'viewParam'
;
if
(
!
invokeCtrl
||
!
invokeMethod
)
{
throw
new
Error
(
`界面对象或者调用方法缺失`
);
}
const
invokeUICtrl
=
actionContext
.
getParam
(
invokeCtrl
).
getReal
();
if
(
invokeUICtrl
[
invokeMethod
]
&&
invokeUICtrl
[
invokeMethod
]
instanceof
Function
)
{
try
{
const
result
=
await
invokeUICtrl
[
invokeMethod
]();
if
(
invokeParam
)
{
actionContext
.
getParam
(
invokeParam
).
bind
(
result
);
}
actionContext
.
bindLastReturnParam
(
result
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象调用
${
invokeMethod
}
方法发生异常`
);
}
}
else
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象不存在
${
invokeMethod
}
方法`
);
}
console
.
log
(
'已完成执行 搜索表单loadDraft 节点'
);
await
this
.
execute_viewctrlinvoke2_node
(
actionContext
);
}
/**
* 消息弹窗
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected
async
execute_msgbox1_node
(
actionContext
:
UIActionContext
)
{
// TODO 等待补充
return
new
Promise
<
void
>
((
resolve
:
any
)
=>
{
const
msgBoxParam
:
any
=
actionContext
.
getParam
(
''
);
const
data
=
msgBoxParam
?
msgBoxParam
.
getReal
()
:
{};
const
options
=
{
type
:
'INFO'
,
title
:
data
&&
data
.
title
?
data
.
title
:
'触发'
,
content
:
data
&&
data
.
message
?
data
.
message
:
'我被触发啦'
,
buttonType
:
'ok'
,
showMode
:
'center'
,
showClose
:
false
,
mask
:
true
,
maskClosable
:
true
};
// TODO 支持具体弹窗
// const subject: Subject<any> | null = AppMessageBoxService.getInstance().open(options);
// const subscription = subject?.subscribe((result: any) => {
// resolve(this.handleResponse(logicNode, actionContext, options, result));
// subscription!.unsubscribe();
// subject.complete();
// })
});
console
.
log
(
'已完成执行 消息弹窗 节点'
);
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
浏览文件 @
aa3abd5f
...
...
@@ -1800,7 +1800,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -1835,7 +1835,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
@@ -1897,7 +1897,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -2005,7 +2005,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
public
remove
(
opt
:
Array
<
any
>
=
[],
showResultInfo
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
opt
[
0
];
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
aa3abd5f
...
...
@@ -621,7 +621,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -657,7 +657,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizorder/list-exp-list/list-exp-list-base.vue
浏览文件 @
aa3abd5f
...
...
@@ -522,7 +522,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{...
opt
};
...
...
@@ -638,7 +638,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.removeAction'
)
as
string
)
});
return
;
}
if
(
datas
.
length
===
0
)
{
...
...
@@ -733,7 +733,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -741,7 +741,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json
浏览文件 @
aa3abd5f
...
...
@@ -2076,85 +2076,28 @@
}
],
"parallelOutput"
:
true
},
{
"codeName"
:
"BINDPARAM1"
,
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"searchForm"
},
"logicNodeType"
:
"BINDPARAM"
,
"name"
:
"绑定搜索表单"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"BINDPARAM2"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"BINDPARAM1"
}
}
],
"srcFieldName"
:
"searchform"
,
"getSrcPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"view"
}
},
{
"codeName"
:
"DEACTION1"
,
"getDstPSAppDEAction"
:
{
"modelref"
:
true
,
"id"
:
"Get"
},
"getDstPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"otherParam"
},
"logicNodeType"
:
"DEACTION"
,
"name"
:
"实体行为"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"END1"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"DEACTION1"
}
}
],
"getRetPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
}
},
{
"codeName"
:
"VIEWCTRLINVOKE2"
,
"codeName"
:
"VIEWCTRLINVOKE1"
,
"getInvokeCtrl"
:
{
"modelref"
:
true
,
"id"
:
"
grid
"
"id"
:
"
searchForm
"
},
"invokeMethod"
:
"load"
,
"invokeMethod"
:
"load
Draft
"
,
"getInvokeParam"
:
{
"modelref"
:
true
,
"id"
:
"viewParam"
},
"logicNodeType"
:
"VIEWCTRLINVOKE"
,
"name"
:
"
表格加载
"
,
"name"
:
"
搜索表单loadDraft
"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"
DELOGIC1
"
"id"
:
"
VIEWCTRLINVOKE2
"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"VIEWCTRLINVOKE
2
"
"id"
:
"VIEWCTRLINVOKE
1
"
}
}
]
},
{
...
...
@@ -2169,7 +2112,7 @@
},
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"
searchFor
m"
"id"
:
"
viewPara
m"
},
"logicNodeType"
:
"DELOGIC"
,
"name"
:
"实体处理逻辑"
,
...
...
@@ -2197,111 +2140,178 @@
}
}
]
},
{
"codeName"
:
"END1"
,
"logicNodeType"
:
"END"
,
"name"
:
"结束"
,
"getReturnParam"
:
{
"codeName"
:
"BINDPARAM2"
,
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"
Default
"
"id"
:
"
grid
"
},
"returnType"
:
"LOGICPARAM"
},
{
"codeName"
:
"PREPAREJSPARAM1"
,
"logicNodeType"
:
"PREPAREJSPARAM"
,
"name"
:
"准备参数"
,
"logicNodeType"
:
"BINDPARAM"
,
"name"
:
"绑定表格"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"
DEACTION
1"
"id"
:
"
VIEWCTRLINVOKE
1"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"
PREPAREJSPARAM1
"
"id"
:
"
BINDPARAM2
"
}
}
],
"getPSDEUILogicNodeParams"
:
[
{
"dstFieldName"
:
"book"
,
"getDstPSDEUILogicParam"
:
{
"srcFieldName"
:
"grid"
,
"getSrcPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"view"
}
},
{
"codeName"
:
"DEACTION1"
,
"getDstPSAppDEAction"
:
{
"modelref"
:
true
,
"id"
:
"Get"
},
"getDstPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"otherParam"
},
"logicNodeType"
:
"DEACTION"
,
"name"
:
"实体行为"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"
otherParam
"
"id"
:
"
END1
"
},
"name"
:
"直接值[12] ==> otherParam[book]"
,
"paramAction"
:
"SETPARAMVALUE"
,
"srcValue"
:
"12"
,
"srcValueType"
:
"SRCVALUE"
}
]
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"DEACTION1"
}
}
],
"getRetPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
}
},
{
"codeName"
:
"BINDPARAM2"
,
"buttonsType"
:
"OK"
,
"codeName"
:
"MSGBOX1"
,
"logicNodeType"
:
"MSGBOX"
,
"message"
:
"我被触发啦"
,
"msgBoxType"
:
"INFO"
,
"name"
:
"消息弹窗"
,
"showMode"
:
"CENTER"
,
"title"
:
"触发"
},
{
"codeName"
:
"BINDPARAM1"
,
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"
grid
"
"id"
:
"
searchForm
"
},
"logicNodeType"
:
"BINDPARAM"
,
"name"
:
"绑定
表格
"
,
"name"
:
"绑定
搜索表单
"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"
VIEWCTRLINVOKE1
"
"id"
:
"
BINDPARAM2
"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"BINDPARAM
2
"
"id"
:
"BINDPARAM
1
"
}
}
],
"srcFieldName"
:
"
grid
"
,
"srcFieldName"
:
"
searchform
"
,
"getSrcPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"view"
}
},
{
"codeName"
:
"VIEWCTRLINVOKE
1
"
,
"codeName"
:
"VIEWCTRLINVOKE
2
"
,
"getInvokeCtrl"
:
{
"modelref"
:
true
,
"id"
:
"
searchForm
"
"id"
:
"
grid
"
},
"invokeMethod"
:
"load
Draft
"
,
"invokeMethod"
:
"load"
,
"getInvokeParam"
:
{
"modelref"
:
true
,
"id"
:
"viewParam"
},
"logicNodeType"
:
"VIEWCTRLINVOKE"
,
"name"
:
"
搜索表单loadDraft
"
,
"name"
:
"
表格加载
"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"DELOGIC1"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"VIEWCTRLINVOKE2"
}
}
]
},
{
"codeName"
:
"PREPAREJSPARAM1"
,
"logicNodeType"
:
"PREPAREJSPARAM"
,
"name"
:
"准备参数"
,
"getPSDEUILogicLinks"
:
[
{
"getDstPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"DEACTION1"
},
"linkMode"
:
0
,
"name"
:
"连接名称"
,
"getSrcPSDEUILogicNode"
:
{
"modelref"
:
true
,
"id"
:
"
VIEWCTRLINVOKE
1"
"id"
:
"
PREPAREJSPARAM
1"
}
}
],
"getPSDEUILogicNodeParams"
:
[
{
"dstFieldName"
:
"book"
,
"getDstPSDEUILogicParam"
:
{
"modelref"
:
true
,
"id"
:
"otherParam"
},
"name"
:
"直接值[12] ==> otherParam[book]"
,
"paramAction"
:
"SETPARAMVALUE"
,
"srcValue"
:
"12"
,
"srcValueType"
:
"SRCVALUE"
}
]
},
{
"
buttonsType"
:
"OK
"
,
"
codeName"
:
"MSGBOX1
"
,
"
logicNodeType"
:
"MSGBOX
"
,
"
message"
:
"我被触发啦"
,
"msgBoxType"
:
"INFO"
,
"name"
:
"消息弹窗"
,
"showMode"
:
"CENTER"
,
"
title"
:
"触发
"
"
codeName"
:
"END1
"
,
"
logicNodeType"
:
"END
"
,
"
name"
:
"结束
"
,
"
getReturnParam"
:
{
"modelref"
:
true
,
"id"
:
"Default"
}
,
"
returnType"
:
"LOGICPARAM
"
}
],
"getPSDEUILogicParams"
:
[
{
"codeName"
:
"
grid
"
,
"logicName"
:
"当前
表格
"
,
"name"
:
"当前
表格
"
,
"codeName"
:
"
searchForm
"
,
"logicName"
:
"当前
搜索表单
"
,
"name"
:
"当前
搜索表单
"
,
"ctrlParam"
:
true
},
{
"codeName"
:
"viewParam"
,
"logicName"
:
"当前视图参数"
,
"name"
:
"当前视图参数"
,
"viewNavDataParam"
:
true
},
{
"codeName"
:
"grid"
,
"logicName"
:
"当前表格"
,
"name"
:
"当前表格"
,
"ctrlParam"
:
true
},
{
"codeName"
:
"otherParam"
,
"logicName"
:
"额外参数"
,
"name"
:
"额外参数"
,
"entityParam"
:
true
},
{
"codeName"
:
"view"
,
"logicName"
:
"当前视图"
,
...
...
@@ -2313,16 +2323,6 @@
"name"
:
"传入变量"
,
"default"
:
true
,
"entityParam"
:
true
},
{
"codeName"
:
"searchForm"
,
"logicName"
:
"当前搜索表单"
,
"name"
:
"当前搜索表单"
,
"ctrlParam"
:
true
},
{
"codeName"
:
"otherParam"
,
"logicName"
:
"额外参数"
,
"name"
:
"额外参数"
,
"entityParam"
:
true
}
],
"getStartPSDEUILogicNode"
:
{
"modelref"
:
true
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSGANTTS/Usr.json
浏览文件 @
aa3abd5f
...
...
@@ -11,6 +11,16 @@
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSDETreeColumns"
:
[
{
"caption"
:
"归还日期"
,
"codeName"
:
"returntime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"returntime"
,
"name"
:
"returntime"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"出版社"
,
"codeName"
:
"press"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
...
@@ -50,16 +60,6 @@
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"归还日期"
,
"codeName"
:
"returntime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"returntime"
,
"name"
:
"returntime"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSTREEGRIDICES/TreeTable.json
浏览文件 @
aa3abd5f
...
...
@@ -19,6 +19,16 @@
}
}
],
"getPSDETreeColumns"
:
[
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"name"
:
"ibizbookname"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"作者"
,
"codeName"
:
"author"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
...
@@ -38,16 +48,6 @@
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"name"
:
"ibizbookname"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKGanttView.json
浏览文件 @
aa3abd5f
...
...
@@ -34,6 +34,16 @@
"id"
:
"GANTT"
},
"getPSDETreeColumns"
:
[
{
"caption"
:
"归还日期"
,
"codeName"
:
"returntime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"returntime"
,
"name"
:
"returntime"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"出版社"
,
"codeName"
:
"press"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
...
@@ -73,16 +83,6 @@
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"归还日期"
,
"codeName"
:
"returntime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"returntime"
,
"name"
:
"returntime"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json
浏览文件 @
aa3abd5f
...
...
@@ -75,6 +75,16 @@
"id"
:
"TREEGRIDEX"
},
"getPSDETreeColumns"
:
[
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"name"
:
"ibizbookname"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"作者"
,
"codeName"
:
"author"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
...
@@ -94,16 +104,6 @@
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"name"
:
"ibizbookname"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
aa3abd5f
...
...
@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-2
77
-7"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-2
81
-7"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -340,7 +340,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-41
6
-14"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-41
7
-14"
>
<createTable
tableName=
"T_IBIZORDER"
>
<column
name=
"TP"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
aa3abd5f
...
...
@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-41
6
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-41
7
-8"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDER"
>
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录