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

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

上级 b71f4915
......@@ -62,7 +62,7 @@ function getLocaleResourceBase(){
uiactions: {
},
},
customeditviewusr1109559507toolbar_toolbar: {
customeditviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
......@@ -76,7 +76,7 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
},
customgridviewusr1109253798toolbar_toolbar: {
customgridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
......
......@@ -62,7 +62,7 @@ function getLocaleResourceBase(){
uiactions: {
},
},
customeditviewusr1109559507toolbar_toolbar: {
customeditviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
......@@ -76,7 +76,7 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Save And Close Window",null),
},
},
customgridviewusr1109253798toolbar_toolbar: {
customgridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
......
......@@ -62,7 +62,7 @@ function getLocaleResourceBase(){
uiactions: {
},
},
customeditviewusr1109559507toolbar_toolbar: {
customeditviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
......@@ -76,7 +76,7 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
},
customgridviewusr1109253798toolbar_toolbar: {
customgridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
......
......@@ -13,29 +13,29 @@
</template>
<template #container2>
<app-simpleflex-container name="container2" :layoutModelDetails="layoutModelDetails">
<template #usr1109559507toolbar>
<app-ctrl-pos name="usr1109559507toolbar" :layoutModelDetails="layoutModelDetails">
<template #toolbar>
<app-ctrl-pos name="toolbar" :layoutModelDetails="layoutModelDetails">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customeditviewusr1109559507toolbarModels.deuiaction1.visabled" :disabled="customeditviewusr1109559507toolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="usr1109559507toolbar_click({ tag: 'deuiaction1' }, $event)">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizcustom.customeditviewusr1109559507toolbar_toolbar.deuiaction1.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customeditviewtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customeditviewusr1109559507toolbar_toolbar.deuiaction1.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customeditviewtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customeditviewusr1109559507toolbarModels.tbitem3.visabled" :disabled="customeditviewusr1109559507toolbarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-button-loading:i-button @click="usr1109559507toolbar_click({ tag: 'tbitem3' }, $event)">
<i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizcustom.customeditviewusr1109559507toolbar_toolbar.tbitem3.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customeditviewtoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customeditviewusr1109559507toolbar_toolbar.tbitem3.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customeditviewtoolbar_toolbar.tbitem3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customeditviewusr1109559507toolbarModels.tbitem5.visabled" :disabled="customeditviewusr1109559507toolbarModels.tbitem5.disabled" class='' v-button-loading:i-button @click="usr1109559507toolbar_click({ tag: 'tbitem5' }, $event)">
<i-button v-show="toolBarModels.tbitem5.visabled" :disabled="toolBarModels.tbitem5.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem5' }, $event)">
<i class='sx-tb-saveandclose'></i>
<span class='caption'>{{$t('entities.ibizcustom.customeditviewusr1109559507toolbar_toolbar.tbitem5.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customeditviewtoolbar_toolbar.tbitem5.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customeditviewusr1109559507toolbar_toolbar.tbitem5.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customeditviewtoolbar_toolbar.tbitem5.tip')}}</div>
</tooltip>
</div>
</app-ctrl-pos>
......@@ -44,9 +44,9 @@
</template>
</app-simpleflex-container>
</template>
<template #usr1109034916form>
<app-ctrl-pos name="usr1109034916form" :layoutModelDetails="layoutModelDetails">
<view_usr1109034916form
<template #form>
<app-ctrl-pos name="form" :layoutModelDetails="layoutModelDetails">
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
......@@ -62,10 +62,10 @@
WFSubmitAction=""
WFStartAction=""
style=''
name="usr1109034916form"
ref='usr1109034916form'
name="form"
ref='form'
@closeview="closeView($event)">
</view_usr1109034916form>
</view_form>
</app-ctrl-pos>
</template>
</app-standard-container>
......@@ -249,8 +249,8 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @memberof IBIZCustomCustomEditViewBase
*/
public containerModel: any = {
view_usr1109559507toolbar: { name: 'usr1109559507toolbar', type: 'TOOLBAR' },
view_usr1109034916form: { name: 'usr1109034916form', type: 'FORM' },
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
......@@ -286,6 +286,21 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @memberof IBIZCustomCustomEditViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZCustomCustomEditView
*/
public toolBarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem5: { name: 'tbitem5', actiontarget: 'NONE', caption: '保存并关闭', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' } },
};
/**
* 视图布局顶级成员名称
......@@ -304,11 +319,11 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
public layoutItems:any = {
view_pagecaption:{ name: 'view_pagecaption', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' },
usr1109559507toolbar:{ name: 'usr1109559507toolbar', type: 'VIEWLAYOUT', caption: '工具栏', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this },
container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['usr1109559507toolbar'] , dataRegionType: 'INHERIT' },
toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: '工具栏', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this },
container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' },
container_grid1:{ name: 'container_grid1', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this , details:['container1','container2'] , dataRegionType: 'INHERIT' },
usr1109034916form:{ name: 'usr1109034916form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this },
page_container:{ name: 'page_container', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['container_grid1','usr1109034916form'] , dataRegionType: 'INHERIT' }
form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this },
page_container:{ name: 'page_container', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['container_grid1','form'] , dataRegionType: 'INHERIT' }
};
/**
......@@ -840,35 +855,40 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('CustomViewFormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZCustom').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
}
/**
* usr1109559507toolbar 部件 click 事件
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomCustomEditViewBase
*/
public usr1109559507toolbar_click($event: any, $event2?: any) {
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction1')) {
this.usr1109559507toolbar_deuiaction1_click(null, '', $event2);
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem3')) {
this.usr1109559507toolbar_tbitem3_click(null, '', $event2);
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.usr1109559507toolbar_tbitem5_click(null, '', $event2);
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.usr1109559507toolbar_tbitem9_click(null, '', $event2);
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem15')) {
this.usr1109559507toolbar_tbitem15_click(null, '', $event2);
this.toolbar_tbitem15_click(null, '', $event2);
}
}
......@@ -881,7 +901,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109559507toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -908,7 +928,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109559507toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -935,7 +955,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109559507toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -962,7 +982,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109559507toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -989,7 +1009,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109559507toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......
......@@ -2,10 +2,10 @@
import { Component } from 'vue-property-decorator';
import IBIZCustomCustomEditViewBase from './ibizcustom-custom-edit-view-base.vue';
import view_usr1109034916form from '@widgets/ibizcustom/main-form/main-form.vue';
import view_form from '@widgets/ibizcustom/main-form/main-form.vue';
@Component({
components: {
view_usr1109034916form,
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
......@@ -13,86 +13,86 @@
</template>
<template #container2>
<app-simpleflex-container name="container2" :layoutModelDetails="layoutModelDetails">
<template #usr1109253798toolbar>
<app-ctrl-pos name="usr1109253798toolbar" :layoutModelDetails="layoutModelDetails">
<template #toolbar>
<app-ctrl-pos name="toolbar" :layoutModelDetails="layoutModelDetails">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.tbitem3.visabled" :disabled="customgridviewusr1109253798toolbarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'tbitem3' }, $event)">
<i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem3.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem3.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.deuiaction2.visabled" :disabled="customgridviewusr1109253798toolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'deuiaction2' }, $event)">
<i-button v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.deuiaction2.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.deuiaction2.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.tbitem4.visabled" :disabled="customgridviewusr1109253798toolbarModels.tbitem4.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'tbitem4' }, $event)">
<i-button v-show="toolBarModels.tbitem4.visabled" :disabled="toolBarModels.tbitem4.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem4' }, $event)">
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem4.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem4.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem4.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem4.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.tbitem6.visabled" :disabled="customgridviewusr1109253798toolbarModels.tbitem6.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'tbitem6' }, $event)">
<i-button v-show="toolBarModels.tbitem6.visabled" :disabled="toolBarModels.tbitem6.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem6' }, $event)">
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem6.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem6.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem6.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem6.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.tbitem8.visabled" :disabled="customgridviewusr1109253798toolbarModels.tbitem8.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'tbitem8' }, $event)">
<i-button v-show="toolBarModels.tbitem8.visabled" :disabled="toolBarModels.tbitem8.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem8' }, $event)">
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem8.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem8.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem8.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem8.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<app-export-excel :item="customgridviewusr1109253798toolbarModels.tbitem13" :caption="$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem13.caption')" @exportexcel="usr1109253798toolbar_click({ tag: 'tbitem13' }, $event)"></app-export-excel>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem13.tip')}}</div>
<app-export-excel :item="toolBarModels.tbitem13" :caption="$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem13.caption')" @exportexcel="toolbar_click({ tag: 'tbitem13' }, $event)"></app-export-excel>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem13.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.deuiaction1.visabled" :disabled="customgridviewusr1109253798toolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'deuiaction1' }, $event)">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-upload'></i>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.deuiaction1.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.deuiaction1.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<dropdown v-show="customgridviewusr1109253798toolbarModels.tbitem16.visabled" trigger='click'>
<dropdown v-show="toolBarModels.tbitem16.visabled" trigger='click'>
<tooltip :transfer="true" :max-width="600">
<i-button class=''>
<i class=''></i>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem16.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem16.caption')}}</span>
<icon type="ios-arrow-down"></icon>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem16.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem16.tip')}}</div>
</tooltip>
<dropdown-menu slot='list'>
<dropdown-item>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.tbitem21.visabled" :disabled="customgridviewusr1109253798toolbarModels.tbitem21.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'tbitem21' }, $event)">
<i-button v-show="toolBarModels.tbitem21.visabled" :disabled="toolBarModels.tbitem21.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem21' }, $event)">
<i class='fa fa-download'></i>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem21.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem21.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem21.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem21.tip')}}</div>
</tooltip>
</dropdown-item>
<dropdown-item>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="customgridviewusr1109253798toolbarModels.tbitem23.visabled" :disabled="customgridviewusr1109253798toolbarModels.tbitem23.disabled" class='' v-button-loading:i-button @click="usr1109253798toolbar_click({ tag: 'tbitem23' }, $event)">
<i-button v-show="toolBarModels.tbitem23.visabled" :disabled="toolBarModels.tbitem23.disabled" class='' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem23' }, $event)">
<i class='fa fa-upload'></i>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem23.caption')}}</span>
<span class='caption'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem23.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewusr1109253798toolbar_toolbar.tbitem23.tip')}}</div>
<div slot='content'>{{$t('entities.ibizcustom.customgridviewtoolbar_toolbar.tbitem23.tip')}}</div>
</tooltip>
......@@ -106,9 +106,9 @@
</template>
</app-simpleflex-container>
</template>
<template #usr1109960278searchform>
<app-ctrl-pos name="usr1109960278searchform" :layoutModelDetails="layoutModelDetails">
<view_usr1109960278searchform
<template #searchform>
<app-ctrl-pos name="searchform" :layoutModelDetails="layoutModelDetails">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
......@@ -117,15 +117,15 @@
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="usr1109960278searchform"
ref='usr1109960278searchform'
name="searchform"
ref='searchform'
@closeview="closeView($event)">
</view_usr1109960278searchform>
</view_searchform>
</app-ctrl-pos>
</template>
<template #usr1109459025grid>
<app-ctrl-pos name="usr1109459025grid" :layoutModelDetails="layoutModelDetails">
<view_usr1109459025grid
<template #grid>
<app-ctrl-pos name="grid" :layoutModelDetails="layoutModelDetails">
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
......@@ -137,10 +137,10 @@
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="usr1109459025grid"
ref='usr1109459025grid'
name="grid"
ref='grid'
@closeview="closeView($event)">
</view_usr1109459025grid>
</view_grid>
</app-ctrl-pos>
</template>
</app-standard-container>
......@@ -324,9 +324,9 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @memberof IBIZCustomCustomGridViewBase
*/
public containerModel: any = {
view_usr1109960278searchform: { name: 'usr1109960278searchform', type: 'SEARCHFORM' },
view_usr1109459025grid: { name: 'usr1109459025grid', type: 'GRID' },
view_usr1109253798toolbar: { name: 'usr1109253798toolbar', type: 'TOOLBAR' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
view_grid: { name: 'grid', type: 'GRID' },
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
};
/**
......@@ -362,6 +362,38 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @memberof IBIZCustomCustomGridViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZCustomCustomGridView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem4: { name: 'tbitem4', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
tbitem6: { name: 'tbitem6', actiontarget: 'NONE', caption: '拷贝', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' } },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem13: { name: 'tbitem13', actiontarget: 'NONE', caption: '导出', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000 },
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '导入', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ImportExcel', target: 'NONE' } },
tbitem10: { name: 'tbitem10', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem16: { name: 'tbitem16', caption: '其它', disabled: false, type: 'ITEMS', visabled: true, dataaccaction: '', uiaction: { } },
tbitem21: { name: 'tbitem21', actiontarget: 'NONE', caption: '导出数据模型', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ExportModel', target: '' } },
tbitem23: { name: 'tbitem23', actiontarget: 'NONE', caption: '数据导入', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Import', target: '' } },
};
/**
* 视图布局顶级成员名称
......@@ -380,12 +412,12 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
public layoutItems:any = {
view_pagecaption:{ name: 'view_pagecaption', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' },
usr1109253798toolbar:{ name: 'usr1109253798toolbar', type: 'VIEWLAYOUT', caption: '工具栏', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this },
container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['usr1109253798toolbar'] , dataRegionType: 'INHERIT' },
toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: '工具栏', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this },
container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' },
container_grid1:{ name: 'container_grid1', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this , details:['container1','container2'] , dataRegionType: 'INHERIT' },
usr1109960278searchform:{ name: 'usr1109960278searchform', type: 'VIEWLAYOUT', caption: '搜索表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this },
usr1109459025grid:{ name: 'usr1109459025grid', type: 'VIEWLAYOUT', caption: '表格', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this },
page_container:{ name: 'page_container', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['container_grid1','usr1109960278searchform','usr1109459025grid'] , dataRegionType: 'INHERIT' }
searchform:{ name: 'searchform', type: 'VIEWLAYOUT', caption: '搜索表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this },
grid:{ name: 'grid', type: 'VIEWLAYOUT', caption: '表格', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this },
page_container:{ name: 'page_container', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['container_grid1','searchform','grid'] , dataRegionType: 'INHERIT' }
};
/**
......@@ -917,59 +949,64 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('CustomViewGridLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZCustom').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
}
/**
* usr1109253798toolbar 部件 click 事件
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomCustomGridViewBase
*/
public usr1109253798toolbar_click($event: any, $event2?: any) {
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.usr1109253798toolbar_tbitem3_click(null, '', $event2);
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.usr1109253798toolbar_deuiaction2_click(null, '', $event2);
this.toolbar_deuiaction2_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.usr1109253798toolbar_tbitem4_click(null, '', $event2);
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.usr1109253798toolbar_tbitem6_click(null, '', $event2);
this.toolbar_tbitem6_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction3')) {
this.usr1109253798toolbar_deuiaction3_click(null, '', $event2);
this.toolbar_deuiaction3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.usr1109253798toolbar_tbitem24_click(null, '', $event2);
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.usr1109253798toolbar_tbitem25_click(null, '', $event2);
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.usr1109253798toolbar_tbitem8_click(null, '', $event2);
this.toolbar_tbitem8_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem13')) {
this.usr1109253798toolbar_tbitem13_click(null, '', $event2);
this.toolbar_tbitem13_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.usr1109253798toolbar_deuiaction1_click(null, '', $event2);
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem11')) {
this.usr1109253798toolbar_tbitem11_click(null, '', $event2);
this.toolbar_tbitem11_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem21')) {
this.usr1109253798toolbar_tbitem21_click(null, '', $event2);
this.toolbar_tbitem21_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem23')) {
this.usr1109253798toolbar_tbitem23_click(null, '', $event2);
this.toolbar_tbitem23_click(null, '', $event2);
}
}
......@@ -982,7 +1019,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1009,7 +1046,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1036,7 +1073,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1063,7 +1100,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem6_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem6_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1090,7 +1127,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1117,7 +1154,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem24_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem24_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1144,7 +1181,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem25_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem25_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1171,7 +1208,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem8_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem8_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1198,7 +1235,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem13_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem13_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1225,7 +1262,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1252,7 +1289,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem11_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem11_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1279,7 +1316,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem21_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem21_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -1306,7 +1343,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public usr1109253798toolbar_tbitem23_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem23_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......
......@@ -2,12 +2,12 @@
import { Component } from 'vue-property-decorator';
import IBIZCustomCustomGridViewBase from './ibizcustom-custom-grid-view-base.vue';
import view_usr1109960278searchform from '@widgets/ibizcustom/default-searchform/default-searchform.vue';
import view_usr1109459025grid from '@widgets/ibizcustom/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibizcustom/default-searchform/default-searchform.vue';
import view_grid from '@widgets/ibizcustom/main-grid/main-grid.vue';
@Component({
components: {
view_usr1109960278searchform,
view_usr1109459025grid,
view_searchform,
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
......@@ -29,12 +29,6 @@ export default class CustomViewGridLoadUILogicBase {
* @memberof CustomViewGridLoadUILogicBase
*/
protected logicParams: any[] = [
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
{
name: '表格部件',
codeName: 'grid',
......@@ -45,16 +39,22 @@ export default class CustomViewGridLoadUILogicBase {
codeName: 'searchForm',
ctrlParam: true,
},
{
name: '视图参数',
codeName: 'viewParam',
viewNavDataParam: true,
},
{
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
{
name: '视图参数',
codeName: 'viewParam',
viewNavDataParam: true,
},
];
/**
......@@ -130,37 +130,6 @@ export default class CustomViewGridLoadUILogicBase {
await this.execute_bindparam1_node(actionContext);
}
/**
* 表格加载
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
const invokeCtrl = 'grid';
const invokeMethod = 'load';
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('已完成执行 表格加载 节点');
await this.execute_end1_node(actionContext);
}
/**
* 绑定表格
*
......@@ -247,6 +216,37 @@ export default class CustomViewGridLoadUILogicBase {
console.log('已完成执行 结束 节点');
}
/**
* 表格加载
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
const invokeCtrl = 'grid';
const invokeMethod = 'load';
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('已完成执行 表格加载 节点');
await this.execute_end1_node(actionContext);
}
/**
* 搜索表单加载草稿
*
......
import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type";
import { UILogicParamType } from "@/logic/const/ui-logic-param-type";
import { Util, Verify } from "@/utils";
import { AppMessageBox } from "@/utils/app-message-box/app-message-box";
import { Subject } from "rxjs";
import { Environment } from "@/environments/environment";
/**
* Custom表单加载
*
* @export
* @class CustomViewFormLoadUILogicBase
*/
export default class CustomViewFormLoadUILogicBase {
/**
* Creates an instance of CustomViewFormLoadBase.
*
* @param {*} [opts={}]
* @memberof CustomViewFormLoadUILogicBase
*/
constructor(opts: any = {}) { }
/**
* 逻辑参数
*
* @protected
* @type {any[]}
* @memberof CustomViewFormLoadUILogicBase
*/
protected logicParams: any[] = [
{
name: '当前视图参数',
codeName: 'viewParam',
viewNavDataParam: true,
},
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
{
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{
name: '表单部件',
codeName: 'form',
ctrlParam: true,
},
{
name: '上下文',
codeName: 'context',
navContextParam: true,
},
];
/**
* 执行前
*
* @param {*} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actioncontext]
* @param {string} [srfParentDeName]
* @return {*}
* @memberof CustomViewFormLoadUILogicBase
*/
public beforeExecute(args: any, context: any = {}, params: any = {},
$event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
return new UIActionContext(this.logicParams, args, context, params, $event, xData, actioncontext, srfParentDeName)
}
/**
* 执行
*
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof CustomViewFormLoadUILogicBase
*/
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
}
}
/**
* 获取条件参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {string} param 节点参数
* @param {string} property 参数属性
* @return {*}
* @memberof CustomViewFormLoadUILogicBase
*/
public getCondParam(actionContext: UIActionContext, param: string, property: string) {
const resultParam = actionContext.getParam(param).getReal();
// 当不存在参数属性时,返回直接值
if (property === '') {
return resultParam;
}
if (resultParam && resultParam.hasOwnProperty(property)) {
return resultParam[property];
}
return null;
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewFormLoadUILogicBase
*/
protected async execute_begin_node(actionContext: UIActionContext) {
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
await this.execute_bindparam1_node(actionContext);
}
/**
* 调用加载草稿
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewFormLoadUILogicBase
*/
protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) {
const invokeCtrl = 'form';
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('已完成执行 调用加载草稿 节点');
await this.execute_end1_node(actionContext);
}
/**
* 调用load
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewFormLoadUILogicBase
*/
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
const invokeCtrl = 'form';
const invokeMethod = 'load';
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('已完成执行 调用load 节点');
await this.execute_end1_node(actionContext);
}
/**
* 绑定表单
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewFormLoadUILogicBase
*/
protected async execute_bindparam1_node(actionContext: UIActionContext) {
try {
// 源数据
const srcParam = actionContext.getParam('view');
// 目标数据
const dstParam = actionContext.getParam('form');
// 源属性
const srcFieldName: string = 'form';
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('已完成执行 绑定表单 节点');
if(Verify.testCond(this.getCondParam(actionContext, 'context', 'ibizbook'), 'ISNOTNULL', '')) {
await this.execute_viewctrlinvoke1_node(actionContext);
}
if(Verify.testCond(this.getCondParam(actionContext, 'context', 'ibizbook'), 'EQ', '')) {
await this.execute_viewctrlinvoke2_node(actionContext);
}
}
/**
* 结束
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewFormLoadUILogicBase
*/
protected async execute_end1_node(actionContext: UIActionContext) {
const strReturnType: string = 'NONEVALUE';
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('已完成执行 结束 节点');
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import CustomViewFormLoadUILogicBase from './custom-view-form-load-ui-logic-base';
/**
* Custom表单加载
*
* @export
* @class CustomViewFormLoadUILogic
*/
export default class CustomViewFormLoadUILogic extends CustomViewFormLoadUILogicBase {
/**
* Custom表单加载 逻辑实例对象
*
* @private
* @static
* @type {CustomViewFormLoadUILogic}
* @memberof CustomViewFormLoadUILogic
*/
private static instance: CustomViewFormLoadUILogic;
/**
* 获取 Custom表单加载 逻辑实例对象
*
* @static
* @return {*} {CustomViewFormLoadUILogic}
* @memberof CustomViewFormLoadUILogic
*/
static getInstance(): CustomViewFormLoadUILogic {
if (!this.instance) {
this.instance = new CustomViewFormLoadUILogic();
}
return this.instance;
}
/**
* Creates an instance of CustomViewFormLoadUILogic
*
* @param {*} [opts={}]
* @memberof CustomViewFormLoadUILogic
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type";
import { UILogicParamType } from "@/logic/const/ui-logic-param-type";
import { Util, Verify } from "@/utils";
import { AppMessageBox } from "@/utils/app-message-box/app-message-box";
import { Subject } from "rxjs";
import { Environment } from "@/environments/environment";
/**
* Custom表格加载
*
* @export
* @class CustomViewGridLoadUILogicBase
*/
export default class CustomViewGridLoadUILogicBase {
/**
* Creates an instance of CustomViewGridLoadBase.
*
* @param {*} [opts={}]
* @memberof CustomViewGridLoadUILogicBase
*/
constructor(opts: any = {}) { }
/**
* 逻辑参数
*
* @protected
* @type {any[]}
* @memberof CustomViewGridLoadUILogicBase
*/
protected logicParams: any[] = [
{
name: '视图参数',
codeName: 'viewParam',
viewNavDataParam: true,
},
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
{
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{
name: '搜索表单部件',
codeName: 'searchForm',
ctrlParam: true,
},
{
name: '表格部件',
codeName: 'grid',
ctrlParam: true,
},
];
/**
* 执行前
*
* @param {*} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actioncontext]
* @param {string} [srfParentDeName]
* @return {*}
* @memberof CustomViewGridLoadUILogicBase
*/
public beforeExecute(args: any, context: any = {}, params: any = {},
$event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
return new UIActionContext(this.logicParams, args, context, params, $event, xData, actioncontext, srfParentDeName)
}
/**
* 执行
*
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof CustomViewGridLoadUILogicBase
*/
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
}
}
/**
* 获取条件参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {string} param 节点参数
* @param {string} property 参数属性
* @return {*}
* @memberof CustomViewGridLoadUILogicBase
*/
public getCondParam(actionContext: UIActionContext, param: string, property: string) {
const resultParam = actionContext.getParam(param).getReal();
// 当不存在参数属性时,返回直接值
if (property === '') {
return resultParam;
}
if (resultParam && resultParam.hasOwnProperty(property)) {
return resultParam[property];
}
return null;
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_begin_node(actionContext: UIActionContext) {
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
await this.execute_bindparam1_node(actionContext);
}
/**
* 绑定表格
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
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('已完成执行 绑定表格 节点');
if(Verify.testCond(this.getCondParam(actionContext, 'searchForm', ''), 'ISNOTNULL', '')) {
await this.execute_viewctrlinvoke2_node(actionContext);
}
if(Verify.testCond(this.getCondParam(actionContext, 'searchForm', ''), 'ISNULL', '')) {
await this.execute_viewctrlinvoke1_node(actionContext);
}
}
/**
* 搜索表单加载草稿
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_viewctrlinvoke2_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('已完成执行 搜索表单加载草稿 节点');
await this.execute_viewctrlinvoke1_node(actionContext);
}
/**
* 绑定搜索表单
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
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);
}
/**
* 表格加载
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
const invokeCtrl = 'grid';
const invokeMethod = 'load';
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('已完成执行 表格加载 节点');
await this.execute_end1_node(actionContext);
}
/**
* 结束
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_end1_node(actionContext: UIActionContext) {
const strReturnType: string = 'NONEVALUE';
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('已完成执行 结束 节点');
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import CustomViewGridLoadUILogicBase from './custom-view-grid-load-ui-logic-base';
/**
* Custom表格加载
*
* @export
* @class CustomViewGridLoadUILogic
*/
export default class CustomViewGridLoadUILogic extends CustomViewGridLoadUILogicBase {
/**
* Custom表格加载 逻辑实例对象
*
* @private
* @static
* @type {CustomViewGridLoadUILogic}
* @memberof CustomViewGridLoadUILogic
*/
private static instance: CustomViewGridLoadUILogic;
/**
* 获取 Custom表格加载 逻辑实例对象
*
* @static
* @return {*} {CustomViewGridLoadUILogic}
* @memberof CustomViewGridLoadUILogic
*/
static getInstance(): CustomViewGridLoadUILogic {
if (!this.instance) {
this.instance = new CustomViewGridLoadUILogic();
}
return this.instance;
}
/**
* Creates an instance of CustomViewGridLoadUILogic
*
* @param {*} [opts={}]
* @memberof CustomViewGridLoadUILogic
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -4,6 +4,8 @@ import UIService from '../ui-service';
import { Subject } from 'rxjs';
import IBIZCustomService from '@/service/ibizcustom/ibizcustom-service';
import IBIZCustomAuthService from '@/authservice/ibizcustom/ibizcustom-auth-service';
import CustomViewFormLoadUILogic from './custom-view-form-load-ui-logic';
import CustomViewGridLoadUILogic from './custom-view-grid-load-ui-logic';
/**
* 自定义UI服务对象基类
......@@ -269,6 +271,12 @@ export default class IBIZCustomUIServiceBase extends UIService {
* @memberof UIService
*/
public async executeUILogic(name: string, args: any[], context?: any, params?: any, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string | undefined): Promise<any> {
if (name === 'CustomViewFormLoad') {
return await CustomViewFormLoadUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
}
if (name === 'CustomViewGridLoad') {
return await CustomViewGridLoadUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
}
}
}
\ No newline at end of file
......@@ -701,7 +701,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: 'IBIZBOOKUsr3GridView' + (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 };
......@@ -737,7 +737,7 @@ export default class DefaultBase 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: 'IBIZBOOKUsr3GridView' + (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 } ;
......
......@@ -1352,7 +1352,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1387,7 +1387,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1448,7 +1448,7 @@ export default class GuideBorrowFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1556,7 +1556,7 @@ export default class GuideBorrowFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1630,7 +1630,7 @@ export default class GuideBorrowFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1318,7 +1318,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1353,7 +1353,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1414,7 +1414,7 @@ export default class GuideReturnFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1522,7 +1522,7 @@ export default class GuideReturnFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1596,7 +1596,7 @@ export default class GuideReturnFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1421,7 +1421,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1456,7 +1456,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1517,7 +1517,7 @@ export default class GuideViewFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1625,7 +1625,7 @@ export default class GuideViewFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1699,7 +1699,7 @@ export default class GuideViewFormBase 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: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
<template>
<i-form :model="this.data" class='app-search-form' ref='usr1109960278searchform' style="">
<i-form :model="this.data" class='app-search-form' ref='searchform' style="">
<input style="display:none;"/>
<row>
<i-col span="20" class="form-content">
......@@ -496,7 +496,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.usr1109960278searchform;
const form: any = this.$refs.searchform;
let validatestate: boolean = true;
form.validate((valid: boolean) => {
validatestate = valid ? true : false;
......
<template>
<i-form :model="this.data" class='app-form' ref='usr1109034916form' id='ibizcustom_main' style="" @on-validate="formItemValidate">
<i-form :model="this.data" class='app-form' ref='form' id='ibizcustom_main' style="" @on-validate="formItemValidate">
<input style="display:none;" />
<row >
<tabs :animated="false" name='main' :value="detailsModel.usr1109034916form.activiedPage"
@on-click="detailsModel.usr1109034916form.clickPage($event)">
<tabs :animated="false" name='main' :value="detailsModel.form.activiedPage"
@on-click="detailsModel.form.clickPage($event)">
<tab-pane v-show="detailsModel.formpage1.visible" name='formpage1' :index="0" tab='main' class=''
:label="(h) =>{
return h('span',{
......@@ -743,7 +743,7 @@ export default class MainBase extends Vue implements ControlInterface {
,
ibizcustomid: new FormItemModel({ caption: '自定义标识', detailType: 'FORMITEM', name: 'ibizcustomid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
usr1109034916form: new FormTabPanelModel({ caption: 'usr1109034916form', detailType: 'TABPANEL', name: 'usr1109034916form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
};
/**
......@@ -1143,7 +1143,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.usr1109034916form;
const form: any = this.$refs.form;
let validatestate: boolean = true;
form.validate((valid: boolean) => {
validatestate = valid ? true : false;
......
......@@ -1821,7 +1821,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public setColState() {
const _data: any = localStorage.getItem('ibizcustom_main_usr1109459025grid');
const _data: any = localStorage.getItem('ibizcustom_main_grid');
if (_data) {
let columns = JSON.parse(_data);
columns.forEach((col: any) => {
......@@ -1839,7 +1839,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public onColChange() {
localStorage.setItem('ibizcustom_main_usr1109459025grid', JSON.stringify(this.allColumns));
localStorage.setItem('ibizcustom_main_grid', JSON.stringify(this.allColumns));
}
/**
......
......@@ -10,7 +10,7 @@ export default class MainModel {
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainUsr1109459025gridMode
* @memberof MainGridMode
*/
public isDEExport: boolean = false;
......@@ -18,7 +18,7 @@ export default class MainModel {
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainUsr1109459025gridMode
* @memberof MainGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
......@@ -66,6 +66,12 @@ export default class MainModel {
name: 'ibizcustom',
prop: 'ibizcustomid',
},
{
name: 'n_ibizcustomname_like',
prop: 'n_ibizcustomname_like',
dataType: 'QUERYPARAM'
},
{
name:'size',
prop:'size',
......
......@@ -574,7 +574,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_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -690,7 +690,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_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.removeAction') as string) });
return;
}
if (datas.length === 0) {
......@@ -785,7 +785,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_layout' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (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);
......@@ -793,7 +793,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_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){
......
......@@ -2449,31 +2449,6 @@
}
} ],
"parallelOutput" : true
}, {
"codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "grid"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "表格加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
}
} ]
}, {
"codeName" : "BINDPARAM2",
"getDstPSDEUILogicParam" : {
......@@ -2566,6 +2541,31 @@
"logicNodeType" : "END",
"name" : "结束",
"returnType" : "NONEVALUE"
}, {
"codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "grid"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "表格加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
}
} ]
}, {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
......@@ -2593,12 +2593,6 @@
} ]
} ],
"getPSDEUILogicParams" : [ {
"codeName" : "Default",
"logicName" : "传入变量",
"name" : "传入变量",
"default" : true,
"entityParam" : true
}, {
"codeName" : "grid",
"logicName" : "表格部件",
"name" : "表格部件",
......@@ -2608,16 +2602,22 @@
"logicName" : "搜索表单部件",
"name" : "搜索表单部件",
"ctrlParam" : true
}, {
"codeName" : "viewParam",
"logicName" : "视图参数",
"name" : "视图参数",
"viewNavDataParam" : true
}, {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "Default",
"logicName" : "传入变量",
"name" : "传入变量",
"default" : true,
"entityParam" : true
}, {
"codeName" : "viewParam",
"logicName" : "视图参数",
"name" : "视图参数",
"viewNavDataParam" : true
} ],
"getStartPSDEUILogicNode" : {
"modelref" : true,
......
......@@ -19,21 +19,21 @@
}
} ],
"getPSDETreeColumns" : [ {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"name" : "ibizbookname",
"dataItemName" : "author",
"name" : "author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"dataItemName" : "ibizbookname",
"name" : "ibizbookname",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......
......@@ -652,6 +652,376 @@
"requestPath" : "/select",
"builtinMethod" : false
} ],
"getAllPSAppDEUILogics" : [ {
"codeName" : "CustomViewFormLoad",
"defaultParamName" : "Default",
"logicName" : "Custom表单加载",
"name" : "Custom表单加载",
"getPSDEUILogicNodes" : [ {
"codeName" : "Begin",
"logicNodeType" : "BEGIN",
"name" : "开始",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
} ],
"parallelOutput" : true
}, {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "form"
},
"invokeMethod" : "loadDraft",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "调用加载草稿",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
}
} ]
}, {
"codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "form"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "调用load",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
}
} ]
}, {
"codeName" : "BINDPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "form"
},
"logicNodeType" : "BINDPARAM",
"name" : "绑定表单",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
},
"linkMode" : 0,
"name" : "存在主键",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNOTNULL",
"dstFieldName" : "ibizbook",
"getDstLogicParam" : {
"modelref" : true,
"id" : "context"
},
"logicType" : "SINGLE",
"name" : "context[ibizbook] 值不为空(NotNil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
}, {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
},
"linkMode" : 0,
"name" : "不存在主键",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "EQ",
"dstFieldName" : "ibizbook",
"getDstLogicParam" : {
"modelref" : true,
"id" : "context"
},
"logicType" : "SINGLE",
"name" : "context[ibizbook]"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
} ],
"srcFieldName" : "form",
"getSrcPSDEUILogicParam" : {
"modelref" : true,
"id" : "view"
}
}, {
"codeName" : "END1",
"logicNodeType" : "END",
"name" : "结束",
"returnType" : "NONEVALUE"
} ],
"getPSDEUILogicParams" : [ {
"codeName" : "viewParam",
"logicName" : "当前视图参数",
"name" : "当前视图参数",
"viewNavDataParam" : true
}, {
"codeName" : "Default",
"logicName" : "传入变量",
"name" : "传入变量",
"default" : true,
"entityParam" : true
}, {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "form",
"logicName" : "表单部件",
"name" : "表单部件",
"ctrlParam" : true
}, {
"codeName" : "context",
"logicName" : "上下文",
"name" : "上下文",
"navContextParam" : true
} ],
"getStartPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
}, {
"codeName" : "CustomViewGridLoad",
"defaultParamName" : "Default",
"logicName" : "Custom表格加载",
"name" : "Custom表格加载",
"getPSDEUILogicNodes" : [ {
"codeName" : "Begin",
"logicNodeType" : "BEGIN",
"name" : "开始",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
} ],
"parallelOutput" : true
}, {
"codeName" : "BINDPARAM2",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "grid"
},
"logicNodeType" : "BINDPARAM",
"name" : "绑定表格",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
},
"linkMode" : 0,
"name" : "存在搜索表单",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNOTNULL",
"getDstLogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicType" : "SINGLE",
"name" : "searchForm 值不为空(NotNil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM2"
}
}, {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
},
"linkMode" : 0,
"name" : "不存在搜索表单",
"getPSDEUILogicLinkGroupCond" : {
"groupOP" : "AND",
"logicType" : "GROUP",
"getPSDEUILogicLinkConds" : [ {
"condOP" : "ISNULL",
"getDstLogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicType" : "SINGLE",
"name" : "searchForm 值为空(Nil)"
} ]
},
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM2"
}
} ],
"srcFieldName" : "grid",
"getSrcPSDEUILogicParam" : {
"modelref" : true,
"id" : "view"
}
}, {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "searchForm"
},
"invokeMethod" : "loadDraft",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "搜索表单加载草稿",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
}
} ]
}, {
"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" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "grid"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "表格加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE1"
}
} ]
}, {
"codeName" : "END1",
"logicNodeType" : "END",
"name" : "结束",
"returnType" : "NONEVALUE"
} ],
"getPSDEUILogicParams" : [ {
"codeName" : "viewParam",
"logicName" : "视图参数",
"name" : "视图参数",
"viewNavDataParam" : true
}, {
"codeName" : "Default",
"logicName" : "传入变量",
"name" : "传入变量",
"default" : true,
"entityParam" : true
}, {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "searchForm",
"logicName" : "搜索表单部件",
"name" : "搜索表单部件",
"ctrlParam" : true
}, {
"codeName" : "grid",
"logicName" : "表格部件",
"name" : "表格部件",
"ctrlParam" : true
} ],
"getStartPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
} ],
"getAllPSDEOPPrivs" : [ {
"logicName" : "建立",
"name" : "CREATE"
......
......@@ -75,21 +75,21 @@
"id" : "TREEGRIDEX"
},
"getPSDETreeColumns" : [ {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"name" : "ibizbookname",
"dataItemName" : "author",
"name" : "author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"dataItemName" : "ibizbookname",
"name" : "ibizbookname",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......
......@@ -101,7 +101,7 @@
"caption" : "工具栏",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "usr1109559507toolbar",
"name" : "toolbar",
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "SIMPLEFLEX"
......@@ -113,7 +113,7 @@
"caption" : "表单",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "usr1109034916form",
"name" : "form",
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "FLEX"
......@@ -132,83 +132,96 @@
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109559507toolbar_deuiaction1_click",
"name" : "toolbar_deuiaction1_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_deuiaction1"
"id" : "toolbar_deuiaction1"
},
"getPSViewCtrlName" : "usr1109559507toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem3",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109559507toolbar_tbitem3_click",
"name" : "toolbar_tbitem3_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem3"
"id" : "toolbar_tbitem3"
},
"getPSViewCtrlName" : "usr1109559507toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem5",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109559507toolbar_tbitem5_click",
"name" : "toolbar_tbitem5_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem5"
"id" : "toolbar_tbitem5"
},
"getPSViewCtrlName" : "usr1109559507toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem9",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109559507toolbar_tbitem9_click",
"name" : "toolbar_tbitem9_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem9"
"id" : "toolbar_tbitem9"
},
"getPSViewCtrlName" : "usr1109559507toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem15",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109559507toolbar_tbitem15_click",
"name" : "toolbar_tbitem15_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem15"
"id" : "toolbar_tbitem15"
},
"getPSViewCtrlName" : "usr1109559507toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventNames" : "onViewMounted",
"logicTrigger" : "VIEWEVENT",
"logicType" : "DEUILOGIC",
"name" : "FORMLOAD",
"getPSAppDEUILogic" : {
"modelref" : true,
"id" : "CustomViewFormLoad"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZCustom.json"
}
} ],
"getPSAppViewUIActions" : [ {
"name" : "usr1109559507toolbar_deuiaction1",
"name" : "toolbar_deuiaction1",
"getPSUIAction" : {
"modelref" : true,
"id" : "New"
}
}, {
"name" : "usr1109559507toolbar_tbitem3",
"name" : "toolbar_tbitem3",
"getPSUIAction" : {
"modelref" : true,
"id" : "Save"
}
}, {
"name" : "usr1109559507toolbar_tbitem5",
"name" : "toolbar_tbitem5",
"getPSUIAction" : {
"modelref" : true,
"id" : "SaveAndExit"
}
}, {
"name" : "usr1109559507toolbar_tbitem9",
"name" : "toolbar_tbitem9",
"getPSUIAction" : {
"modelref" : true,
"id" : "SaveAndStart"
}
}, {
"name" : "usr1109559507toolbar_tbitem15",
"name" : "toolbar_tbitem15",
"getPSUIAction" : {
"modelref" : true,
"id" : "Print"
......@@ -216,11 +229,11 @@
"uIActionTarget" : "SINGLEKEY"
} ],
"getPSControls" : [ {
"codeName" : "CustomEditViewusr1109559507toolbar",
"codeName" : "CustomEditViewtoolbar",
"controlType" : "TOOLBAR",
"hookEventNames" : [ "CLICK" ],
"logicName" : "工具栏模板(默认编辑界面)",
"name" : "usr1109559507toolbar",
"name" : "toolbar",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZCustom.json"
......@@ -228,56 +241,56 @@
"getPSControlLogics" : [ {
"eventArg" : "deuiaction1",
"eventNames" : "CLICK",
"logicTag" : "usr1109559507toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109559507toolbar_deuiaction1_click",
"name" : "toolbar_deuiaction1_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109559507toolbar_deuiaction1_click"
"id" : "toolbar_deuiaction1_click"
}
}, {
"eventArg" : "tbitem3",
"eventNames" : "CLICK",
"logicTag" : "usr1109559507toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109559507toolbar_tbitem3_click",
"name" : "toolbar_tbitem3_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem3_click"
"id" : "toolbar_tbitem3_click"
}
}, {
"eventArg" : "tbitem5",
"eventNames" : "CLICK",
"logicTag" : "usr1109559507toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109559507toolbar_tbitem5_click",
"name" : "toolbar_tbitem5_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem5_click"
"id" : "toolbar_tbitem5_click"
}
}, {
"eventArg" : "tbitem9",
"eventNames" : "CLICK",
"logicTag" : "usr1109559507toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109559507toolbar_tbitem9_click",
"name" : "toolbar_tbitem9_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem9_click"
"id" : "toolbar_tbitem9_click"
}
}, {
"eventArg" : "tbitem15",
"eventNames" : "CLICK",
"logicTag" : "usr1109559507toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109559507toolbar_tbitem15_click",
"name" : "toolbar_tbitem15_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem15_click"
"id" : "toolbar_tbitem15_click"
}
} ],
"getPSControlParam" : {
"id" : "USR1109559507TOOLBAR"
"id" : "TOOLBAR"
},
"getPSDEToolbarItems" : [ {
"getCapPSLanguageRes" : {
......@@ -290,7 +303,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_deuiaction1"
"id" : "toolbar_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf0f6@FontAwesome",
......@@ -334,7 +347,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem3"
"id" : "toolbar_tbitem3"
},
"getPSSysCss" : {
"cssName" : "deepskyblueToolBar"
......@@ -381,7 +394,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109559507toolbar_tbitem5"
"id" : "toolbar_tbitem5"
},
"getPSSysImage" : {
"cssClass" : "sx-tb-saveandclose"
......@@ -522,7 +535,7 @@
"getPSControlParam" : {
"autoLoad" : true,
"showBusyIndicator" : true,
"id" : "USR1109034916FORM"
"id" : "FORM"
},
"getPSDEFormItems" : [ {
"id" : "srfupdatedate",
......@@ -861,7 +874,7 @@
"id" : "update"
},
"noTabHeader" : false,
"name" : "usr1109034916form",
"name" : "form",
"modelid" : "78d1d0ab3c6c8ae8be349968d12f7054",
"modeltype" : "PSDEFORM_EDITFORM"
} ]
......
......@@ -16,147 +16,160 @@
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem3_click",
"name" : "toolbar_tbitem3_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem3"
"id" : "toolbar_tbitem3"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "deuiaction2",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_deuiaction2_click",
"name" : "toolbar_deuiaction2_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction2"
"id" : "toolbar_deuiaction2"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem4",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem4_click",
"name" : "toolbar_tbitem4_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem4"
"id" : "toolbar_tbitem4"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem6",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem6_click",
"name" : "toolbar_tbitem6_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem6"
"id" : "toolbar_tbitem6"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "deuiaction3",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_deuiaction3_click",
"name" : "toolbar_deuiaction3_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction3"
"id" : "toolbar_deuiaction3"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem24",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem24_click",
"name" : "toolbar_tbitem24_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem24"
"id" : "toolbar_tbitem24"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem25",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem25_click",
"name" : "toolbar_tbitem25_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem25"
"id" : "toolbar_tbitem25"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem8",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem8_click",
"name" : "toolbar_tbitem8_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem8"
"id" : "toolbar_tbitem8"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem13",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem13_click",
"name" : "toolbar_tbitem13_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem13"
"id" : "toolbar_tbitem13"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "deuiaction1",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_deuiaction1_click",
"name" : "toolbar_deuiaction1_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction1"
"id" : "toolbar_deuiaction1"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem11",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem11_click",
"name" : "toolbar_tbitem11_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem11"
"id" : "toolbar_tbitem11"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem21",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem21_click",
"name" : "toolbar_tbitem21_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem21"
"id" : "toolbar_tbitem21"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem23",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "usr1109253798toolbar_tbitem23_click",
"name" : "toolbar_tbitem23_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem23"
"id" : "toolbar_tbitem23"
},
"getPSViewCtrlName" : "usr1109253798toolbar"
"getPSViewCtrlName" : "toolbar"
}, {
"eventNames" : "onViewMounted",
"logicTrigger" : "VIEWEVENT",
"logicType" : "DEUILOGIC",
"name" : "LOADGRID",
"getPSAppDEUILogic" : {
"modelref" : true,
"id" : "CustomViewGridLoad"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZCustom.json"
}
} ],
"getPSAppViewRefs" : [ {
"name" : "NEWDATA",
"name" : "EDITDATA",
"realTitle" : "自定义实现编辑视图",
"getRefPSAppView" : {
"modelref" : true,
......@@ -164,7 +177,7 @@
"viewType" : "DECUSTOMVIEW"
}
}, {
"name" : "EDITDATA",
"name" : "NEWDATA",
"realTitle" : "自定义实现编辑视图",
"getRefPSAppView" : {
"modelref" : true,
......@@ -173,84 +186,84 @@
}
} ],
"getPSAppViewUIActions" : [ {
"name" : "usr1109253798toolbar_tbitem3",
"name" : "toolbar_tbitem3",
"getPSUIAction" : {
"modelref" : true,
"id" : "New"
}
}, {
"name" : "usr1109253798toolbar_deuiaction2",
"name" : "toolbar_deuiaction2",
"getPSUIAction" : {
"modelref" : true,
"id" : "Save"
}
}, {
"name" : "usr1109253798toolbar_tbitem4",
"name" : "toolbar_tbitem4",
"getPSUIAction" : {
"modelref" : true,
"id" : "Edit"
},
"uIActionTarget" : "SINGLEKEY"
}, {
"name" : "usr1109253798toolbar_tbitem6",
"name" : "toolbar_tbitem6",
"getPSUIAction" : {
"modelref" : true,
"id" : "Copy"
},
"uIActionTarget" : "SINGLEKEY"
}, {
"name" : "usr1109253798toolbar_deuiaction3",
"name" : "toolbar_deuiaction3",
"getPSUIAction" : {
"modelref" : true,
"id" : "ToggleFilter"
}
}, {
"name" : "usr1109253798toolbar_tbitem24",
"name" : "toolbar_tbitem24",
"getPSUIAction" : {
"modelref" : true,
"id" : "ToggleRowEdit"
}
}, {
"name" : "usr1109253798toolbar_tbitem25",
"name" : "toolbar_tbitem25",
"getPSUIAction" : {
"modelref" : true,
"id" : "NewRow"
}
}, {
"name" : "usr1109253798toolbar_tbitem8",
"name" : "toolbar_tbitem8",
"getPSUIAction" : {
"modelref" : true,
"id" : "Remove"
},
"uIActionTarget" : "MULTIKEY"
}, {
"name" : "usr1109253798toolbar_tbitem13",
"name" : "toolbar_tbitem13",
"getPSUIAction" : {
"modelref" : true,
"id" : "ExportExcel"
}
}, {
"name" : "usr1109253798toolbar_deuiaction1",
"name" : "toolbar_deuiaction1",
"getPSUIAction" : {
"modelref" : true,
"id" : "ImportExcel"
},
"uIActionTarget" : "NONE"
}, {
"name" : "usr1109253798toolbar_tbitem11",
"name" : "toolbar_tbitem11",
"getPSUIAction" : {
"modelref" : true,
"id" : "Print"
},
"uIActionTarget" : "MULTIKEY"
}, {
"name" : "usr1109253798toolbar_tbitem21",
"name" : "toolbar_tbitem21",
"getPSUIAction" : {
"modelref" : true,
"id" : "ExportModel"
}
}, {
"name" : "usr1109253798toolbar_tbitem23",
"name" : "toolbar_tbitem23",
"getPSUIAction" : {
"modelref" : true,
"id" : "Import"
......@@ -306,7 +319,7 @@
"getPSControlParam" : {
"autoLoad" : true,
"showBusyIndicator" : true,
"id" : "USR1109960278SEARCHFORM"
"id" : "SEARCHFORM"
},
"getPSDEFormItems" : [ {
"id" : "n_ibizcustomname_like",
......@@ -372,7 +385,7 @@
"enableAutoSearch" : false,
"enableFilterSave" : false,
"noTabHeader" : true,
"name" : "usr1109960278searchform",
"name" : "searchform",
"modelid" : "3e4cbaeeebc4f73a46c16a7c015ad679",
"modeltype" : "PSDEFORM_SEARCHFORM"
}, {
......@@ -476,7 +489,7 @@
"getPSControlParam" : {
"autoLoad" : true,
"showBusyIndicator" : true,
"id" : "USR1109459025GRID"
"id" : "GRID"
},
"getPSDEGridColumns" : [ {
"align" : "LEFT",
......@@ -640,15 +653,15 @@
"hideHeader" : false,
"noSort" : false,
"singleSelect" : false,
"name" : "usr1109459025grid",
"name" : "grid",
"modelid" : "78d1d0ab3c6c8ae8be349968d12f7054",
"modeltype" : "PSDEGRID"
}, {
"codeName" : "CustomGridViewusr1109253798toolbar",
"codeName" : "CustomGridViewtoolbar",
"controlType" : "TOOLBAR",
"hookEventNames" : [ "CLICK" ],
"logicName" : "工具栏模板(默认表格界面)",
"name" : "usr1109253798toolbar",
"name" : "toolbar",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZCustom.json"
......@@ -656,136 +669,136 @@
"getPSControlLogics" : [ {
"eventArg" : "tbitem3",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem3_click",
"name" : "toolbar_tbitem3_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem3_click"
"id" : "toolbar_tbitem3_click"
}
}, {
"eventArg" : "deuiaction2",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_deuiaction2_click",
"name" : "toolbar_deuiaction2_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction2_click"
"id" : "toolbar_deuiaction2_click"
}
}, {
"eventArg" : "tbitem4",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem4_click",
"name" : "toolbar_tbitem4_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem4_click"
"id" : "toolbar_tbitem4_click"
}
}, {
"eventArg" : "tbitem6",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem6_click",
"name" : "toolbar_tbitem6_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem6_click"
"id" : "toolbar_tbitem6_click"
}
}, {
"eventArg" : "deuiaction3",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_deuiaction3_click",
"name" : "toolbar_deuiaction3_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction3_click"
"id" : "toolbar_deuiaction3_click"
}
}, {
"eventArg" : "tbitem24",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem24_click",
"name" : "toolbar_tbitem24_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem24_click"
"id" : "toolbar_tbitem24_click"
}
}, {
"eventArg" : "tbitem25",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem25_click",
"name" : "toolbar_tbitem25_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem25_click"
"id" : "toolbar_tbitem25_click"
}
}, {
"eventArg" : "tbitem8",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem8_click",
"name" : "toolbar_tbitem8_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem8_click"
"id" : "toolbar_tbitem8_click"
}
}, {
"eventArg" : "tbitem13",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem13_click",
"name" : "toolbar_tbitem13_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem13_click"
"id" : "toolbar_tbitem13_click"
}
}, {
"eventArg" : "deuiaction1",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_deuiaction1_click",
"name" : "toolbar_deuiaction1_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction1_click"
"id" : "toolbar_deuiaction1_click"
}
}, {
"eventArg" : "tbitem11",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem11_click",
"name" : "toolbar_tbitem11_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem11_click"
"id" : "toolbar_tbitem11_click"
}
}, {
"eventArg" : "tbitem21",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem21_click",
"name" : "toolbar_tbitem21_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem21_click"
"id" : "toolbar_tbitem21_click"
}
}, {
"eventArg" : "tbitem23",
"eventNames" : "CLICK",
"logicTag" : "usr1109253798toolbar",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "usr1109253798toolbar_tbitem23_click",
"name" : "toolbar_tbitem23_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem23_click"
"id" : "toolbar_tbitem23_click"
}
} ],
"getPSControlParam" : {
"id" : "USR1109253798TOOLBAR"
"id" : "TOOLBAR"
},
"getPSDEToolbarItems" : [ {
"getCapPSLanguageRes" : {
......@@ -798,7 +811,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem3"
"id" : "toolbar_tbitem3"
},
"getPSSysCss" : {
"cssName" : "deepskyblueToolBar"
......@@ -845,7 +858,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction2"
"id" : "toolbar_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf0c7@FontAwesome",
......@@ -889,7 +902,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem4"
"id" : "toolbar_tbitem4"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -934,7 +947,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem6"
"id" : "toolbar_tbitem6"
},
"getPSSysImage" : {
"glyph" : "xf0c5@FontAwesome",
......@@ -983,7 +996,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem8"
"id" : "toolbar_tbitem8"
},
"getPSSysImage" : {
"glyph" : "xf00d@FontAwesome",
......@@ -1032,7 +1045,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem13"
"id" : "toolbar_tbitem13"
},
"getPSSysImage" : {
"glyph" : "xf1c3@FontAwesome",
......@@ -1073,7 +1086,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_deuiaction1"
"id" : "toolbar_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf093@FontAwesome",
......@@ -1118,7 +1131,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem21"
"id" : "toolbar_tbitem21"
},
"getPSSysImage" : {
"glyph" : "xf019@FontAwesome",
......@@ -1153,7 +1166,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "usr1109253798toolbar_tbitem23"
"id" : "toolbar_tbitem23"
},
"getPSSysImage" : {
"glyph" : "xf093@FontAwesome",
......@@ -1276,7 +1289,7 @@
"caption" : "工具栏",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "usr1109253798toolbar",
"name" : "toolbar",
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "SIMPLEFLEX"
......@@ -1288,7 +1301,7 @@
"caption" : "搜索表单",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "usr1109960278searchform",
"name" : "searchform",
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "FLEX"
......@@ -1298,7 +1311,7 @@
"caption" : "表格",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "usr1109459025grid",
"name" : "grid",
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "FLEX"
......
......@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-644-7">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-646-7">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -258,7 +258,7 @@
<!--输出实体[IBIZCUSTOM]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustom-25-9">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustom-53-9">
<createTable tableName="T_IBIZCUSTOM">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......
......@@ -13,7 +13,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZCUSTOM]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustom-25-3" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustom-53-3" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZCUSTOM">
<![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.IBIZCUSTOMID, t1.IBIZCUSTOMNAME, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZCUSTOM t1 ]]>
</createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册