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

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

上级 0f931ed3
......@@ -57,6 +57,7 @@ export default class GetUnitAndPriceLogicBase {
public initParams(opts:any){
this.paramsMap.set('Product',{});
this.paramsMap.set('Default',opts);
this.paramsMap.set('Order',{});
}
......@@ -87,6 +88,24 @@ export default class GetUnitAndPriceLogicBase {
return true;
}
/**
* 计算3节点结果
*
* @param params 传入参数
*/
public compute3Cond(params:any):boolean{
return true;
}
/**
* 计算4节点结果
*
* @param params 传入参数
*/
public compute4Cond(params:any):boolean{
return true;
}
/**
* 执行逻辑
*
......@@ -110,27 +129,6 @@ export default class GetUnitAndPriceLogicBase {
}
}
/**
* 填充单位和单价
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executePrepareparam2(context:any,params:any,isloading:boolean){
// 准备参数节点
let tempDstParam0Context:any = this.paramsMap.get('Default').context?this.paramsMap.get('Default').context:{};
let tempDstParam0Data:any = this.paramsMap.get('Default').data?this.paramsMap.get('Default').data:{};
let tempSrcParam0Data:any = this.paramsMap.get('Product').data?this.paramsMap.get('Product').data:{};
Object.assign(tempDstParam0Data,{unitprice:tempSrcParam0Data['unitprice']});
this.paramsMap.set('Default',{data:tempDstParam0Data,context:tempDstParam0Context});
let tempDstParam1Context:any = this.paramsMap.get('Default').context?this.paramsMap.get('Default').context:{};
let tempDstParam1Data:any = this.paramsMap.get('Default').data?this.paramsMap.get('Default').data:{};
let tempSrcParam1Data:any = this.paramsMap.get('Product').data?this.paramsMap.get('Product').data:{};
Object.assign(tempDstParam1Data,{unit:tempSrcParam1Data['unit']});
this.paramsMap.set('Default',{data:tempDstParam1Data,context:tempDstParam1Context});
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 获取商品信息
*
......@@ -150,6 +148,138 @@ export default class GetUnitAndPriceLogicBase {
if(this.compute1Cond(params)){
return this.executePrepareparam2(context,params,isloading);
}
if(this.compute2Cond(params)){
return this.executeThrowexception(context,params,isloading);
}
}
}
/**
* 实体数据集
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeDEDATASET1(context:any,params:any,isloading:boolean){
// DEDATASET暂未支持
console.log("DEDATASET暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 实体处理逻辑
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeDELOGIC1(context:any,params:any,isloading:boolean){
// DELOGIC暂未支持
console.log("DELOGIC暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 实体数据查询
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeDEDATAQUERY1(context:any,params:any,isloading:boolean){
// DEDATAQUERY暂未支持
console.log("DEDATAQUERY暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 启动流程
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeSTARTWF1(context:any,params:any,isloading:boolean){
// 开始流程节点
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 外部接口调用
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeSUBSYSSAMETHOD1(context:any,params:any,isloading:boolean){
// SUBSYSSAMETHOD暂未支持
console.log("SUBSYSSAMETHOD暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 获取产品价格异常
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeThrowexception(context:any,params:any,isloading:boolean){
// 异常捕获节点
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 系统逻辑处理
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeSYSLOGIC1(context:any,params:any,isloading:boolean){
// SYSLOGIC暂未支持
console.log("SYSLOGIC暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 执行脚本代码
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeRAWSFCODE1(context:any,params:any,isloading:boolean){
// RAWSFCODE暂未支持
console.log("RAWSFCODE暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 系统数据库表操作
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeSYSDBTABLEACTION1(context:any,params:any,isloading:boolean){
// SYSDBTABLEACTION暂未支持
console.log("SYSDBTABLEACTION暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 填充单位和单价
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executePrepareparam2(context:any,params:any,isloading:boolean){
// 准备参数节点
let tempDstParam0Context:any = this.paramsMap.get('Default').context?this.paramsMap.get('Default').context:{};
let tempDstParam0Data:any = this.paramsMap.get('Default').data?this.paramsMap.get('Default').data:{};
let tempSrcParam0Data:any = this.paramsMap.get('Product').data?this.paramsMap.get('Product').data:{};
Object.assign(tempDstParam0Data,{unit:tempSrcParam0Data['unit']});
this.paramsMap.set('Default',{data:tempDstParam0Data,context:tempDstParam0Context});
let tempDstParam1Context:any = this.paramsMap.get('Default').context?this.paramsMap.get('Default').context:{};
let tempDstParam1Data:any = this.paramsMap.get('Default').data?this.paramsMap.get('Default').data:{};
let tempSrcParam1Data:any = this.paramsMap.get('Product').data?this.paramsMap.get('Product').data:{};
Object.assign(tempDstParam1Data,{unitprice:tempSrcParam1Data['unitprice']});
this.paramsMap.set('Default',{data:tempDstParam1Data,context:tempDstParam1Context});
if(this.compute3Cond(params)){
return this.executeEnd(context,params,isloading);
}
}
......@@ -167,10 +297,82 @@ export default class GetUnitAndPriceLogicBase {
Object.assign(tempDstParam0Context,{ibizuniproduct:tempSrcParam0Data['ibizuniproductid']});
Object.assign(tempDstParam0Data,{ibizuniproductid:tempSrcParam0Data['ibizuniproductid']});
this.paramsMap.set('Product',{data:tempDstParam0Data,context:tempDstParam0Context});
if(this.compute2Cond(params)){
if(this.compute4Cond(params)){
return this.executeDeaction1(context,params,isloading);
}
}
/**
* 结束返回
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeEnd(context:any,params:any,isloading:boolean){
// END暂未支持
console.log("END暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 服务插件
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeSFPLUGIN1(context:any,params:any,isloading:boolean){
// SFPLUGIN暂未支持
console.log("SFPLUGIN暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 取消流程
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeCANCELWF1(context:any,params:any,isloading:boolean){
// CANCELWF暂未支持
console.log("CANCELWF暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 直接Web调用
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeRAWWEBCALL1(context:any,params:any,isloading:boolean){
// RAWWEBCALL暂未支持
console.log("RAWWEBCALL暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 实体通知
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeDENOTIFY1(context:any,params:any,isloading:boolean){
// DENOTIFY暂未支持
console.log("DENOTIFY暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 调试逻辑参数
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeDEBUGPARAM1(context:any,params:any,isloading:boolean){
// DEBUGPARAM暂未支持
console.log("DEBUGPARAM暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
}
\ No newline at end of file
......@@ -712,7 +712,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCustomView_layout' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -748,7 +748,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCustomView_layout' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -964,7 +964,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;
}
......@@ -1123,7 +1123,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;
}
......@@ -1237,7 +1237,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){
......@@ -2132,7 +2132,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);
......@@ -2141,7 +2141,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);
......@@ -2217,7 +2217,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;
}
......
......@@ -12,30 +12,6 @@
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSDETreeColumns" : [ {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"mOSFilePath" : "psdetreecols/ibizbookname",
"name" : "ibizbookname",
"rTMOSFilePath" : "psdetreecols/ibizbookname",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "归还日期",
"codeName" : "returntime",
"columnType" : "DEFGRIDCOLUMN",
......@@ -71,6 +47,30 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"mOSFilePath" : "psdetreecols/ibizbookname",
"name" : "ibizbookname",
"rTMOSFilePath" : "psdetreecols/ibizbookname",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
} ],
"getPSDETreeNodeRSs" : [ {
"getChildPSDETreeNode" : {
......
......@@ -20,13 +20,13 @@
}
} ],
"getPSDETreeColumns" : [ {
"caption" : "图书描述",
"codeName" : "subtext",
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "subtext",
"mOSFilePath" : "psdetreecols/subtext",
"name" : "subtext",
"rTMOSFilePath" : "psdetreecols/subtext",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......@@ -44,13 +44,13 @@
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"caption" : "图书描述",
"codeName" : "subtext",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"dataItemName" : "subtext",
"mOSFilePath" : "psdetreecols/subtext",
"name" : "subtext",
"rTMOSFilePath" : "psdetreecols/subtext",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......
......@@ -46,30 +46,6 @@
"id" : "GANTT"
},
"getPSDETreeColumns" : [ {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"mOSFilePath" : "psdetreecols/ibizbookname",
"name" : "ibizbookname",
"rTMOSFilePath" : "psdetreecols/ibizbookname",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "归还日期",
"codeName" : "returntime",
"columnType" : "DEFGRIDCOLUMN",
......@@ -105,6 +81,30 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"mOSFilePath" : "psdetreecols/ibizbookname",
"name" : "ibizbookname",
"rTMOSFilePath" : "psdetreecols/ibizbookname",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
} ],
"getPSDETreeNodeRSs" : [ {
"getChildPSDETreeNode" : {
......
......@@ -100,13 +100,13 @@
"id" : "TREEGRIDEX"
},
"getPSDETreeColumns" : [ {
"caption" : "图书描述",
"codeName" : "subtext",
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "subtext",
"mOSFilePath" : "psdetreecols/subtext",
"name" : "subtext",
"rTMOSFilePath" : "psdetreecols/subtext",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......@@ -124,13 +124,13 @@
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"caption" : "图书描述",
"codeName" : "subtext",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"dataItemName" : "subtext",
"mOSFilePath" : "psdetreecols/subtext",
"name" : "subtext",
"rTMOSFilePath" : "psdetreecols/subtext",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......
......@@ -393,7 +393,7 @@
<!--输出实体[IBIZORDERDETAIL]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorderdetail-26-14">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorderdetail-49-14">
<createTable tableName="T_IBIZORDERDETAIL">
<column name="IBIZORDERDETAILNAME" remarks="" type="VARCHAR(200)">
</column>
......
......@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDERDETAIL]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorderdetail-26-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorderdetail-49-8" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDERDETAIL">
<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID ]]>
</createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册