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

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

上级 794a0cf3
...@@ -2287,6 +2287,14 @@ ...@@ -2287,6 +2287,14 @@
"viewname": "IBIZBOOKEditView3", "viewname": "IBIZBOOKEditView3",
"viewtag": "f1a9551d0bc6e13732ec8a471c74fe2b" "viewtag": "f1a9551d0bc6e13732ec8a471c74fe2b"
}, },
"ibizcustomcustomgridview": {
"title": "自定义实现表格视图",
"caption": "自定义实现表格视图",
"viewtype": "DECUSTOMVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomCustomGridView",
"viewtag": "F25AC36D-6D69-43FA-89B4-BE7552CE99E2"
},
"ibizorderdetailf7gridview": { "ibizorderdetailf7gridview": {
"title": "订单明细表格视图", "title": "订单明细表格视图",
"caption": "订单明细", "caption": "订单明细",
......
...@@ -181,6 +181,9 @@ export default class AppScrollContainer extends Vue { ...@@ -181,6 +181,9 @@ export default class AppScrollContainer extends Vue {
if (!boxSizeStyle.height) { if (!boxSizeStyle.height) {
Object.assign(boxSizeStyle, { 'height': '100%' }); Object.assign(boxSizeStyle, { 'height': '100%' });
} }
if (!layoutModel.visible) {
Object.assign(boxSizeStyle, { display: 'none' })
}
return boxSizeStyle; return boxSizeStyle;
} }
} }
......
...@@ -15,6 +15,10 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("自定义实现编辑视图",null), caption: commonLogic.appcommonhandle("自定义实现编辑视图",null),
title: commonLogic.appcommonhandle("自定义实现编辑视图",null), title: commonLogic.appcommonhandle("自定义实现编辑视图",null),
}, },
customgridview: {
caption: commonLogic.appcommonhandle("自定义实现表格视图",null),
title: commonLogic.appcommonhandle("自定义实现表格视图",null),
},
}, },
main_form: { main_form: {
details: { details: {
......
...@@ -15,6 +15,10 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("自定义实现编辑视图",null), caption: commonLogic.appcommonhandle("自定义实现编辑视图",null),
title: commonLogic.appcommonhandle("自定义实现编辑视图",null), title: commonLogic.appcommonhandle("自定义实现编辑视图",null),
}, },
customgridview: {
caption: commonLogic.appcommonhandle("自定义实现表格视图",null),
title: commonLogic.appcommonhandle("自定义实现表格视图",null),
},
}, },
main_form: { main_form: {
details: { details: {
......
...@@ -15,6 +15,10 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("自定义实现编辑视图",null), caption: commonLogic.appcommonhandle("自定义实现编辑视图",null),
title: commonLogic.appcommonhandle("自定义实现编辑视图",null), title: commonLogic.appcommonhandle("自定义实现编辑视图",null),
}, },
customgridview: {
caption: commonLogic.appcommonhandle("自定义实现表格视图",null),
title: commonLogic.appcommonhandle("自定义实现表格视图",null),
},
}, },
main_form: { main_form: {
details: { details: {
......
...@@ -2295,6 +2295,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -2295,6 +2295,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZBOOKEditView3", "viewname": "IBIZBOOKEditView3",
"viewtag": "f1a9551d0bc6e13732ec8a471c74fe2b" "viewtag": "f1a9551d0bc6e13732ec8a471c74fe2b"
}, },
"ibizcustomcustomgridview": {
"title": "自定义实现表格视图",
"caption": "自定义实现表格视图",
"viewtype": "DECUSTOMVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomCustomGridView",
"viewtag": "F25AC36D-6D69-43FA-89B4-BE7552CE99E2"
},
"ibizorderdetailf7gridview": { "ibizorderdetailf7gridview": {
"title": "订单明细表格视图", "title": "订单明细表格视图",
"caption": "订单明细", "caption": "订单明细",
......
...@@ -97,6 +97,7 @@ export default class IBIZCustomUIServiceBase extends UIService { ...@@ -97,6 +97,7 @@ export default class IBIZCustomUIServiceBase extends UIService {
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'customeditview',srfappde:'ibizcustoms',component:'ibizcustom-custom-edit-view'}); this.allViewMap.set(':',{viewname:'customeditview',srfappde:'ibizcustoms',component:'ibizcustom-custom-edit-view'});
this.allViewMap.set(':',{viewname:'customgridview',srfappde:'ibizcustoms',component:'ibizcustom-custom-grid-view'});
} }
/** /**
......
...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKGroupByCodelistListView' + (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; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKGroupByCodelistListView' + (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; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -1274,7 +1274,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1274,7 +1274,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ 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; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1309,7 +1309,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1309,7 +1309,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public loadDraft(opt: any = {}): void { public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){ 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; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1370,7 +1370,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1370,7 +1370,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; 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; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1478,7 +1478,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1478,7 +1478,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; 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; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1552,7 +1552,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1552,7 +1552,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ 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; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -530,7 +530,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -530,7 +530,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -646,7 +646,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -646,7 +646,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
return; return;
} }
if (datas.length === 0) { if (datas.length === 0) {
...@@ -741,7 +741,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -741,7 +741,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -749,7 +749,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -749,7 +749,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){ if(item.ibizorder){
......
...@@ -895,6 +895,12 @@ ...@@ -895,6 +895,12 @@
"name" : "自定义实体编辑视图(左右关系)", "name" : "自定义实体编辑视图(左右关系)",
"realModelSubType" : "DEEDITVIEW2", "realModelSubType" : "DEEDITVIEW2",
"realModelType" : "PSDEVIEWBASE" "realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "CustomGridView",
"logicName" : "自定义实现表格视图",
"name" : "自定义实现表格视图",
"realModelSubType" : "DECUSTOMVIEW",
"realModelType" : "PSDEVIEWBASE"
}, { }, {
"codeName" : "RedirectView", "codeName" : "RedirectView",
"logicName" : "自定义实体数据重定向视图", "logicName" : "自定义实体数据重定向视图",
......
{
"accUserMode" : 2,
"getCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZCUSTOM"
},
"caption" : "自定义实现表格视图",
"codeName" : "IBIZCustomCustomGridView",
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZCustomCustomGridView.json",
"name" : "IBIZCustomCustomGridView",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZCustom.json"
},
"getPSDEViewCodeName" : "CustomGridView",
"getPSDEViewId" : "92840C8A-86AC-484E-A776-83CFF1CECF67",
"getPSViewLayoutPanel" : {
"codeName" : "Usr1109255772",
"controlType" : "VIEWLAYOUTPANEL",
"layoutMode" : "TABLE_24COL",
"logicName" : "自定义实现表格视图布局面板",
"name" : "layoutpanel",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZCustom.json"
},
"getPSControlParam" : { },
"getPSLayout" : {
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getRootPSPanelItems" : [ {
"itemStyle" : "DEFAULT",
"itemType" : "CONTAINER",
"name" : "page_container",
"getPSLayout" : {
"dir" : "column",
"layout" : "FLEX"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
}
} ],
"layoutBodyOnly" : false,
"layoutPanel" : true,
"useDefaultLayout" : false,
"modelid" : "A3E3B28B-4B8B-4FAE-AFF8-81A9289A4E08",
"modeltype" : "PSSYSVIEWLAYOUTPANEL"
},
"title" : "自定义实现表格视图",
"viewStyle" : "DEFAULT",
"viewType" : "DECUSTOMVIEW",
"enableDP" : true,
"modelid" : "F25AC36D-6D69-43FA-89B4-BE7552CE99E2",
"modeltype" : "PSAPPDEVIEW"
}
\ No newline at end of file
...@@ -14872,6 +14872,12 @@ ...@@ -14872,6 +14872,12 @@
"viewType" : "DEEDITVIEW3", "viewType" : "DEEDITVIEW3",
"resource" : "IBIZBOOK", "resource" : "IBIZBOOK",
"view" : "EditView3" "view" : "EditView3"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZCustomCustomGridView.json",
"viewType" : "DECUSTOMVIEW",
"resource" : "IBIZCustom",
"view" : "CustomGridView"
}, { }, {
"modelref" : true, "modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderDetailF7GridView.json", "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderDetailF7GridView.json",
......
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
<!--输出实体[IBIZCUSTOM]数据结构 --> <!--输出实体[IBIZCUSTOM]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustom-12-9"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustom-19-9">
<createTable tableName="T_IBIZCUSTOM"> <createTable tableName="T_IBIZCUSTOM">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)"> <column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column> </column>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</createView> </createView>
</changeSet> </changeSet>
<!--输出实体[IBIZCUSTOM]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步--> <!--输出实体[IBIZCUSTOM]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustom-12-3" runOnChange="true"> <changeSet author="a_LAB01_df847bdfd" id="view-ibizcustom-19-3" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZCUSTOM"> <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 ]]> <![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.IBIZCUSTOMID, t1.IBIZCUSTOMNAME, t1.UPDATEDATE, t1.UPDATEMAN FROM T_IBIZCUSTOM t1 ]]>
</createView> </createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册