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

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

上级 8f8175e6
......@@ -91,26 +91,26 @@ export default class CountMoneyLogicBase {
}
/**
* 直接SQL并循环调用
* 统计金额
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeRAWSQLANDLOOPCALL1(context:any,params:any,isloading:boolean){
// RAWSQLANDLOOPCALL暂未支持
console.log("RAWSQLANDLOOPCALL暂未支持");
private async executeRawsqlcall1(context:any,params:any,isloading:boolean){
// RAWSQLCALL暂未支持
console.log("RAWSQLCALL暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
/**
* 统计金额
* 直接SQL并循环调用
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeRawsqlcall1(context:any,params:any,isloading:boolean){
// RAWSQLCALL暂未支持
console.log("RAWSQLCALL暂未支持");
private async executeRAWSQLANDLOOPCALL1(context:any,params:any,isloading:boolean){
// RAWSQLANDLOOPCALL暂未支持
console.log("RAWSQLANDLOOPCALL暂未支持");
return this.paramsMap.get(this.defaultParamName).data;
}
......
......@@ -719,7 +719,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: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -755,7 +755,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: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
<template>
<i-form :model="this.data" class='app-search-form' ref='searchform' style="">
<i-form :model="this.data" class='app-search-form' ref='quicksearchform' style="">
<input style="display:none;"/>
<row>
<i-col span="20" class="form-content">
......@@ -519,7 +519,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
* @memberof QUICKSEARCHFORMBase
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.searchform;
const form: any = this.$refs.quicksearchform;
let validatestate: boolean = true;
form.validate((valid: boolean) => {
validatestate = valid ? true : false;
......@@ -673,7 +673,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: 'IBIZBOOKUsrListView_plugin' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -709,7 +709,7 @@ export default class QUICKSEARCHFORMBase 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: 'IBIZBOOKUsrListView_plugin' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -851,7 +851,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
if(this.sortField !== field){
this.sortField = field;
this.sortDir = 'asc';
}else if(this.sortDir ==='asc'){
}else if(this.sortDir === 'asc'){
this.sortDir = 'desc';
}else if(this.sortDir === 'desc'){
this.sortDir = '';
......@@ -1308,7 +1308,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
public handleClick(args: any) {
args.isselected = !args.isselected;
if(this.isSingleSelect) {
j this.items.forEach((item:any) =>{
this.items.forEach((item:any) =>{
if(item.srfkey !== args.srfkey){
item.isselected =false;
}
......
......@@ -1011,7 +1011,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) {
this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
desc: "IBIZOrderDetailGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
});
return;
}
......@@ -1140,7 +1140,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) {
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
});
return;
}
......@@ -1254,7 +1254,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: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -2151,7 +2151,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: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2160,7 +2160,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: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2236,7 +2236,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
});
return;
}
......
......@@ -3799,31 +3799,6 @@
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/Begin",
"topPos" : 110,
"parallelOutput" : true
}, {
"codeName" : "RAWSQLANDLOOPCALL1",
"getDstPSDEAction" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos" : 230,
"logicNodeType" : "RAWSQLANDLOOPCALL",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"name" : "直接SQL并循环调用",
"getPSSysDBScheme" : {
"modelref" : true,
"path" : "PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"sql" : "select 1 as AMOUNT from dual",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 524
}, {
"codeName" : "Rawsqlcall1",
"getDstPSDELogicParam" : {
......@@ -3861,6 +3836,31 @@
"sql" : "select (?*?) as AMOUNT from dual",
"topPos" : 312,
"fillDstLogicParam" : true
}, {
"codeName" : "RAWSQLANDLOOPCALL1",
"getDstPSDEAction" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos" : 230,
"logicNodeType" : "RAWSQLANDLOOPCALL",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"name" : "直接SQL并循环调用",
"getPSSysDBScheme" : {
"modelref" : true,
"path" : "PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"sql" : "select 1 as AMOUNT from dual",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 524
}, {
"code" : "_default.amount = _default.quantity * _default.unitprice",
"codeName" : "RAWSFCODE1",
......
......@@ -25,31 +25,6 @@
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/Begin",
"topPos" : 110,
"parallelOutput" : true
}, {
"codeName" : "RAWSQLANDLOOPCALL1",
"getDstPSDEAction" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos" : 230,
"logicNodeType" : "RAWSQLANDLOOPCALL",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"name" : "直接SQL并循环调用",
"getPSSysDBScheme" : {
"modelref" : true,
"path" : "PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"sql" : "select 1 as AMOUNT from dual",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 524
}, {
"codeName" : "Rawsqlcall1",
"getDstPSDELogicParam" : {
......@@ -87,6 +62,31 @@
"sql" : "select (?*?) as AMOUNT from dual",
"topPos" : 312,
"fillDstLogicParam" : true
}, {
"codeName" : "RAWSQLANDLOOPCALL1",
"getDstPSDEAction" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos" : 230,
"logicNodeType" : "RAWSQLANDLOOPCALL",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"name" : "直接SQL并循环调用",
"getPSSysDBScheme" : {
"modelref" : true,
"path" : "PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdelogics/CountMoney/psdelogicnodes/RAWSQLANDLOOPCALL1",
"sql" : "select 1 as AMOUNT from dual",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 524
}, {
"code" : "_default.amount = _default.quantity * _default.unitprice",
"codeName" : "RAWSFCODE1",
......
......@@ -12,12 +12,12 @@
<tns:global identifier="ibizorderdetailcountmoneydefault" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" />
</extensionElements>
<startEvent id="begin" isInterrupting="true"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="ibizorderdetailcountmoneyrawsqlandloopcall1" id="rawsqlandloopcall1" implementation="http://www.jboss.org/drools/rule" name="直接SQL并循环调用"/>
<endEvent id="rawsqlandloopcall1_end" name="end"/>
<sequenceFlow id="rawsqlandloopcall1_end_line" sourceRef="rawsqlandloopcall1" targetRef="rawsqlandloopcall1_end"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="ibizorderdetailcountmoneyrawsqlcall1" id="rawsqlcall1" implementation="http://www.jboss.org/drools/rule" name="统计金额"/>
<endEvent id="rawsqlcall1_end" name="end"/>
<sequenceFlow id="rawsqlcall1_end_line" sourceRef="rawsqlcall1" targetRef="rawsqlcall1_end"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="ibizorderdetailcountmoneyrawsqlandloopcall1" id="rawsqlandloopcall1" implementation="http://www.jboss.org/drools/rule" name="直接SQL并循环调用"/>
<endEvent id="rawsqlandloopcall1_end" name="end"/>
<sequenceFlow id="rawsqlandloopcall1_end_line" sourceRef="rawsqlandloopcall1" targetRef="rawsqlandloopcall1_end"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="ibizorderdetailcountmoneyrawsfcode1" id="rawsfcode1" implementation="http://www.jboss.org/drools/rule" name="统计金额(脚本)"/>
<endEvent id="rawsfcode1_end" name="end"/>
<sequenceFlow id="rawsfcode1_end_line" sourceRef="rawsfcode1" targetRef="rawsfcode1_end"/>
......
......@@ -20,6 +20,25 @@ package cn.ibizlab.sample.logic.ibizorderdetaillogic.countmoney;
then
end
//逻辑处理节点[统计金额]
rule "rawsqlcall1"
ruleflow-group "ibizorderdetailcountmoneyrawsqlcall1"
when
then
Map param =new HashMap();
param.put("param0",ibizorderdetailcountmoneydefault.get("quantity"));
param.put("param1",ibizorderdetailcountmoneydefault.get("unitprice"));
String strSql="select (#{et.param0}*#{et.param1}) as AMOUNT from dual";
java.util.List<JSONObject> entities=iBzSysIbizorderdetailDefaultService.select(strSql,param);//SQL调用
if(entities.size()>0){
JSONObject entity=entities.get(0);
for (Map.Entry entry : entity.entrySet()) {
ibizorderdetailcountmoneydefault.set(String.valueOf(entry.getKey()),entry.getValue());
}
}
update(ibizorderdetailcountmoneydefault);//更新fact中变量值
end
//逻辑处理节点[直接sql并循环调用]
rule "rawsqlandloopcall1"
ruleflow-group "ibizorderdetailcountmoneyrawsqlandloopcall1"
......@@ -40,25 +59,6 @@ package cn.ibizlab.sample.logic.ibizorderdetaillogic.countmoney;
update(ibizorderdetailcountmoneydefault);//更新fact中变量值
end
//逻辑处理节点[统计金额]
rule "rawsqlcall1"
ruleflow-group "ibizorderdetailcountmoneyrawsqlcall1"
when
then
Map param =new HashMap();
param.put("param0",ibizorderdetailcountmoneydefault.get("quantity"));
param.put("param1",ibizorderdetailcountmoneydefault.get("unitprice"));
String strSql="select (#{et.param0}*#{et.param1}) as AMOUNT from dual";
java.util.List<JSONObject> entities=iBzSysIbizorderdetailDefaultService.select(strSql,param);//SQL调用
if(entities.size()>0){
JSONObject entity=entities.get(0);
for (Map.Entry entry : entity.entrySet()) {
ibizorderdetailcountmoneydefault.set(String.valueOf(entry.getKey()),entry.getValue());
}
}
update(ibizorderdetailcountmoneydefault);//更新fact中变量值
end
//逻辑处理节点[统计金额(脚本)]
rule "rawsfcode1"
ruleflow-group "ibizorderdetailcountmoneyrawsfcode1"
......
......@@ -2652,31 +2652,6 @@
"rTMOSFilePath" : "pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/Begin",
"topPos" : 110,
"parallelOutput" : true
}, {
"codeName" : "RAWSQLANDLOOPCALL1",
"getDstPSDEAction" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos" : 230,
"logicNodeType" : "RAWSQLANDLOOPCALL",
"mOSFilePath" : "pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1",
"name" : "直接SQL并循环调用",
"getPSSysDBScheme" : {
"modelref" : true,
"path" : "PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath" : "pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1",
"sql" : "select 1 as AMOUNT from dual",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 524
}, {
"codeName" : "Rawsqlcall1",
"getDstPSDELogicParam" : {
......@@ -2714,6 +2689,31 @@
"sql" : "select (?*?) as AMOUNT from dual",
"topPos" : 312,
"fillDstLogicParam" : true
}, {
"codeName" : "RAWSQLANDLOOPCALL1",
"getDstPSDEAction" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK/PSDEACTIONS/Get.json"
},
"getDstPSDataEntity" : {
"modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json"
},
"leftPos" : 230,
"logicNodeType" : "RAWSQLANDLOOPCALL",
"mOSFilePath" : "pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1",
"name" : "直接SQL并循环调用",
"getPSSysDBScheme" : {
"modelref" : true,
"path" : "PSSYSDBSCHEMES/DEFAULT.json"
},
"rTMOSFilePath" : "pssysapps/Web/psappdataentities/IBIZOrderDetail/psappdelogics/CountMoney/psappdelogicnodes/RAWSQLANDLOOPCALL1",
"sql" : "select 1 as AMOUNT from dual",
"getSrcPSDELogicParam" : {
"modelref" : true,
"id" : "Default"
},
"topPos" : 524
}, {
"code" : "_default.amount = _default.quantity * _default.unitprice",
"codeName" : "RAWSFCODE1",
......
......@@ -393,7 +393,7 @@
<!--输出实体[IBIZORDERDETAIL]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorderdetail-178-14">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorderdetail-180-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-178-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorderdetail-180-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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册