提交 0707b413 编写于 作者: ibizdev's avatar ibizdev

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 5667c690
......@@ -121,38 +121,6 @@ export default class ActiontestUILogicBase {
await this.execute_msgbox1_node(actionContext);
}
/**
* 结束
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof ActiontestUILogicBase
*/
protected async execute_end1_node(actionContext: UIActionContext) {
const strReturnType: string = '';
if (Object.is(strReturnType, LogicReturnType.NONEVALUE) || Object.is(strReturnType, LogicReturnType.NULLVALUE)) {
actionContext.setResult(null);
} else if (Object.is(strReturnType, LogicReturnType.SRCVALUE)) {
actionContext.setResult('');
} else if (Object.is(strReturnType, LogicReturnType.BREAK)) {
actionContext.setResult(LogicReturnType.BREAK);
} else if (Object.is(strReturnType, LogicReturnType.LOGICPARAM) || Object.is(strReturnType, LogicReturnType.LOGICPARAMFIELD)) {
const returnParam = actionContext.getParam('');
if (Object.is(strReturnType, LogicReturnType.LOGICPARAM)) {
actionContext.setResult(returnParam.getReal());
} else {
actionContext.setResult(returnParam.get(''));
}
} else {
throw new Error(`无法识别的返回值类型${strReturnType}`);
}
console.log(`已完成执行结束节点,操作参数数据如下:`);
if (actionContext.paramsMap && (actionContext.paramsMap.size > 0)) {
for (let [key, value] of actionContext.paramsMap) {
console.log(key, Util.deepCopy(value.getReal()));
}
}
}
/**
* 消息弹窗
*
......@@ -198,6 +166,38 @@ export default class ActiontestUILogicBase {
});
}
/**
* 结束
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof ActiontestUILogicBase
*/
protected async execute_end1_node(actionContext: UIActionContext) {
const strReturnType: string = '';
if (Object.is(strReturnType, LogicReturnType.NONEVALUE) || Object.is(strReturnType, LogicReturnType.NULLVALUE)) {
actionContext.setResult(null);
} else if (Object.is(strReturnType, LogicReturnType.SRCVALUE)) {
actionContext.setResult('');
} else if (Object.is(strReturnType, LogicReturnType.BREAK)) {
actionContext.setResult(LogicReturnType.BREAK);
} else if (Object.is(strReturnType, LogicReturnType.LOGICPARAM) || Object.is(strReturnType, LogicReturnType.LOGICPARAMFIELD)) {
const returnParam = actionContext.getParam('');
if (Object.is(strReturnType, LogicReturnType.LOGICPARAM)) {
actionContext.setResult(returnParam.getReal());
} else {
actionContext.setResult(returnParam.get(''));
}
} else {
throw new Error(`无法识别的返回值类型${strReturnType}`);
}
console.log(`已完成执行结束节点,操作参数数据如下:`);
if (actionContext.paramsMap && (actionContext.paramsMap.size > 0)) {
for (let [key, value] of actionContext.paramsMap) {
console.log(key, Util.deepCopy(value.getReal()));
}
}
}
/**
* 界面行为
*
......@@ -242,7 +242,7 @@ export default class ActiontestUILogicBase {
* @memberof ActiontestUILogicBase
*/
protected async execute_deaction1_node(actionContext: UIActionContext) {
const dstParam = actionContext.getParam('Default');
const dstParam = actionContext.getParam('');
if (!Object.is(dstParam.logicParamType, UILogicParamType.entityListParam) && !Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) {
throw new Error(`实体行为操作参数只能为数据对象变量类型或者数据对象列表类型`);
}
......
......@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) {
this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailSGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
desc: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
});
return;
}
......@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) {
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
});
return;
}
......@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -2082,7 +2082,7 @@ export default class MainBase 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: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
});
return;
}
......
......@@ -6347,14 +6347,6 @@
"rTMOSFilePath" : "psappdeuilogicnodes/Begin",
"topPos" : 200,
"parallelOutput" : true
}, {
"codeName" : "END1",
"leftPos" : 220,
"logicNodeType" : "END",
"mOSFilePath" : "psappdeuilogicnodes/END1",
"name" : "结束",
"rTMOSFilePath" : "psappdeuilogicnodes/END1",
"topPos" : 660
}, {
"buttonsType" : "YESNO",
"codeName" : "MSGBOX1",
......@@ -6423,6 +6415,14 @@
"rTMOSFilePath" : "psappdeuilogicnodes/MSGBOX1",
"title" : "是否执行实体行为",
"topPos" : 356
}, {
"codeName" : "END1",
"leftPos" : 220,
"logicNodeType" : "END",
"mOSFilePath" : "psappdeuilogicnodes/END1",
"name" : "结束",
"rTMOSFilePath" : "psappdeuilogicnodes/END1",
"topPos" : 660
}, {
"codeName" : "DEUIACTION1",
"getDstPSAppDEUIAction" : {
......@@ -6469,10 +6469,6 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "Default"
},
"logicNodeType" : "DEACTION",
"mOSFilePath" : "psappdeuilogicnodes/DEACTION1",
"name" : "实体行为",
......
......@@ -36058,14 +36058,6 @@
"rTMOSFilePath" : "psappdeuilogicnodes/Begin",
"topPos" : 200,
"parallelOutput" : true
}, {
"codeName" : "END1",
"leftPos" : 220,
"logicNodeType" : "END",
"mOSFilePath" : "psappdeuilogicnodes/END1",
"name" : "结束",
"rTMOSFilePath" : "psappdeuilogicnodes/END1",
"topPos" : 660
}, {
"buttonsType" : "YESNO",
"codeName" : "MSGBOX1",
......@@ -36134,6 +36126,14 @@
"rTMOSFilePath" : "psappdeuilogicnodes/MSGBOX1",
"title" : "是否执行实体行为",
"topPos" : 356
}, {
"codeName" : "END1",
"leftPos" : 220,
"logicNodeType" : "END",
"mOSFilePath" : "psappdeuilogicnodes/END1",
"name" : "结束",
"rTMOSFilePath" : "psappdeuilogicnodes/END1",
"topPos" : 660
}, {
"codeName" : "DEUIACTION1",
"getDstPSAppDEUIAction" : {
......@@ -36180,10 +36180,6 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "Default"
},
"logicNodeType" : "DEACTION",
"mOSFilePath" : "psappdeuilogicnodes/DEACTION1",
"name" : "实体行为",
......@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-1284-7">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-1286-7">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册