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

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

上级 a7542faa
......@@ -350,6 +350,7 @@ function getAppLocale(){
menuitem167: commonLogic.appcommonhandle("实体选项操作视图",null),
menuitem141: commonLogic.appcommonhandle("多数据视图",null),
menuitem79: commonLogic.appcommonhandle("实体表格视图",null),
menuitem249: commonLogic.appcommonhandle("多编辑视图",null),
menuitem168: commonLogic.appcommonhandle("实体多表单编辑视图",null),
menuitem169: commonLogic.appcommonhandle("实体甘特视图",null),
menuitem9: commonLogic.appcommonhandle("实体列表视图",null),
......
......@@ -350,6 +350,7 @@ function getAppLocale(){
menuitem167: commonLogic.appcommonhandle("Entity Options Operations View",null),
menuitem141: commonLogic.appcommonhandle("Multi Data View",null),
menuitem79: commonLogic.appcommonhandle("Entity Grid View",null),
menuitem249: commonLogic.appcommonhandle("多编辑视图",null),
menuitem168: commonLogic.appcommonhandle("Entity Multi Form Edit View",null),
menuitem169: commonLogic.appcommonhandle("Entity Gantt View",null),
menuitem9: commonLogic.appcommonhandle("Entity List View",null),
......
......@@ -350,6 +350,7 @@ function getAppLocale(){
menuitem167: commonLogic.appcommonhandle("实体选项操作视图",null),
menuitem141: commonLogic.appcommonhandle("多数据视图",null),
menuitem79: commonLogic.appcommonhandle("实体表格视图",null),
menuitem249: commonLogic.appcommonhandle("多编辑视图",null),
menuitem168: commonLogic.appcommonhandle("实体多表单编辑视图",null),
menuitem169: commonLogic.appcommonhandle("实体甘特视图",null),
menuitem9: commonLogic.appcommonhandle("实体列表视图",null),
......
......@@ -172,6 +172,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("实体选项操作视图",null),
title: commonLogic.appcommonhandle("实体选项操作视图",null),
},
usr3meditview9: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书多表单编辑视图",null),
},
treegridexview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书树表格视图",null),
......
......@@ -172,6 +172,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("Entity Options Operations View",null),
title: commonLogic.appcommonhandle("实体选项操作视图",null),
},
usr3meditview9: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书多表单编辑视图",null),
},
treegridexview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书树表格视图",null),
......
......@@ -172,6 +172,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("实体选项操作视图",null),
title: commonLogic.appcommonhandle("实体选项操作视图",null),
},
usr3meditview9: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书多表单编辑视图",null),
},
treegridexview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书树表格视图",null),
......
......@@ -2027,6 +2027,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto299',
resourcetag: '',
},
{
id: 'D5265D1A-D146-4AE5-B9CC-140DBF8C7C08',
name: 'menuitem249',
text: '多编辑视图',
type: 'MENUITEM',
counterid: '',
tooltip: '多编辑视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc134',
resourcetag: '',
},
{
id: 'CFCA26B1-14B7-4D10-BC34-2AE79F073061',
......
......@@ -1596,6 +1596,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr3meditview9/:usr3meditview9?',
meta: {
caption: 'entities.ibizbook.views.usr3meditview9.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3meditview9', parameterName: 'usr3meditview9' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-medit-view9/ibizbookusr3-medit-view9.vue'),
},
{
path: '/ibizbooks/:ibizbook?/roweditgridview/:roweditgridview?',
meta: {
......
<template>
<app-medit-view-layout class="demeditview9 ibizbookusr3-medit-view9 view-no-toolbar">
<template #headerTop>
</template>
<template #headerLeft>
<app-caption caption="图书"></app-caption>
</template>
<template #headerRight>
</template>
<template #contentTop>
</template>
<template #default>
<view_meditviewpanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:pViewCtx="viewCtx"
:showBusyIndicator="true"
:saveRefView="saveRefView"
@viewdatadirty="onViewDataDirty"
@drdatasaved="onDRDataSaved"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
fetchAction="FetchDefault"
name="meditviewpanel"
ref='meditviewpanel'
@onselectionchange="meditviewpanel_onselectionchange($event)"
@closeview="closeView($event)">
</view_meditviewpanel>
</template>
<template #contentBottom>
</template>
</app-medit-view-layout>
</template>
// 基于 @VIEW/实体多表单编辑视图(部件视图)/VIEW-BASE.vue.ftl 生成
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch,Inject } from 'vue-property-decorator';
import { UIActionTool, Util } from '@/utils';
import axios from 'axios';
import { AppMessageBox } from '@/utils/app-message-box/app-message-box';
import NavDataService from '@/service/app/navdata-service';
import { Subject,Subscription } from 'rxjs';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import IBIZBOOKAuthService from '@/authservice/ibizbook/ibizbook-auth-service';
import IBIZBOOKUIService from '@/uiservice/ibizbook/ibizbook-ui-service';
@Component({
components: {
},
})
export default class IBIZBOOKUsr3MEditView9Base extends Vue {
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService();
/**
* 实体UI服务对象
*
* @type IBIZBOOKUIService
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public appUIService: IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Emit()
public viewDatasChange(val: any):any {
return val;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Prop() public viewdata!: string;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Prop() public viewparam!: string;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Prop({ default: true }) public viewDefaultUsage!: boolean;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public viewtag: string = '64c82729110883d3b30f24cf33608e3a';
/**
* 视图类型
*
* @type {string}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public viewType: string = 'DEMEDITVIEW9';
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public customViewNavContexts:any ={
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public customViewParams:any ={
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public model: any = {
srfCaption: 'entities.ibizbook.views.usr3meditview9.caption',
srfTitle: 'entities.ibizbook.views.usr3meditview9.title',
srfSubTitle: 'entities.ibizbook.views.usr3meditview9.subtitle',
dataInfo: ''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Watch('viewparam',{immediate: true, deep: true})
onParamData(newVal: any, oldVal: any) {
if(newVal){
this.viewparams = {};
if(typeof newVal == 'string') {
Object.assign(this.viewparams, JSON.parse(this.viewparam));
}else{
this.viewparams = Util.deepCopy(this.viewparam);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Watch('viewdata')
onViewData(newVal: any, oldVal: any) {
const _this: any = this;
if(!Object.is(newVal, oldVal) ){
_this.parseViewParam();
return;
}
if (!Object.is(newVal, oldVal) && _this.engine) {
this.$nextTick(()=>{
_this.parseViewParam();
_this.engine.load();
});
} else if(!Object.is(newVal, oldVal) && _this.refresh && _this.refresh instanceof Function) {
_this.refresh();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public containerModel: any = {
view_meditviewpanel: { name: 'meditviewpanel', type: 'MULTIEDITVIEWPANEL' },
};
/**
* 视图操作参数
*
* @type {*}
* @readonly
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public viewCtx: any = {};
/**
* 计数器刷新
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 引擎初始化
*
* @public
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public engineInit(): void {
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public navDataService = NavDataService.getInstance();
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public serviceStateEvent: Subscription | undefined;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Prop() public portletState?: any;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public portletStateEvent: Subscription | undefined;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public formDruipartEvent: Subscription | undefined;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public context:any = {};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public viewparams:any = {};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public viewCacheData:any;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public counterServiceArray:Array<any> = [];
/**
* 解析视图参数
*
* @public
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public parseViewParam(inputvalue:any = null): void {
for(let key in this.context){
delete this.context[key];
}
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
if(typeof this.viewdata == 'string') {
Object.assign(this.context, JSON.parse(this.viewdata));
}
if(this.context && this.context.srfparentdename){
Object.assign(this.viewparams,{srfparentdename:this.context.srfparentdename});
}
if(this.context && this.context.srfparentkey){
Object.assign(this.viewparams,{srfparentkey:this.context.srfparentkey});
}
this.handleCustomViewData();
return;
}
const path = (this.$route.matched[this.$route.matched.length - 1]).path;
const keys: Array<any> = [];
const curReg = this.$pathToRegExp.pathToRegexp(path, keys);
const matchArray = curReg.exec(this.$route.path);
let tempValue: Object = {};
keys.forEach((item: any, index: number) => {
if(matchArray[index + 1]){
Object.defineProperty(tempValue, item.name, {
enumerable: true,
value: decodeURIComponent(matchArray[index + 1])
});
}
});
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(inputvalue){
Object.assign(this.context,{'ibizbook':inputvalue});
}
//初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
this.handleCustomViewData();
//初始化导航数据
this.initNavDataWithRoute();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public handleCustomViewData(){
if(Object.keys(this.customViewNavContexts).length > 0){
Object.keys(this.customViewNavContexts).forEach((item:any) =>{
let tempContext:any = {};
let curNavContext:any = this.customViewNavContexts[item];
this.handleCustomDataLogic(curNavContext,tempContext,item);
Object.assign(this.context,tempContext);
})
}
if(Object.keys(this.customViewParams).length > 0){
Object.keys(this.customViewParams).forEach((item:any) =>{
let tempParam:any = {};
let curNavParam:any = this.customViewParams[item];
this.handleCustomDataLogic(curNavParam,tempParam,item);
Object.assign(this.viewparams,tempParam);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public handleCustomDataLogic(curNavData:any,tempData:any,item:string){
// 直接值直接赋值
if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value,
writable : true,
enumerable : true,
configurable : true
});
}
}else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(this.context[(curNavData.value).toLowerCase()] != null){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.context[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
if(this.viewparams[(curNavData.value).toLowerCase()] != null){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.viewparams[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){
this.navDataService.addNavData({id:'ibizbookusr3-medit-view9',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizbook,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){
this.navDataService.addNavDataByOnly({id:'ibizbookusr3-medit-view9',tag:this.viewtag,srfkey:this.context.ibizbook,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd);
}
}
/**
* Vue声明周期
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public afterCreated(){
let _this:any = this;
const secondtag = _this.$util.createUUID();
_this.$store.commit('viewaction/createdView', { viewtag: _this.viewtag, secondtag: secondtag });
_this.viewtag = secondtag;
_this.parseViewParam();
_this.serviceStateEvent = _this.navDataService.serviceState.subscribe(({ action,name, data }:{ action:string,name:any,data:any }) => {
if(!Object.is(name,'ibizbookusr3-medit-view9')){
return;
}
if (Object.is(action, 'viewrefresh')) {
_this.$nextTick(()=>{
_this.parseViewParam(data);
if(_this.engine){
_this.engine.load();
}
});
}
});
if(_this.portletState){
_this.portletStateEvent = _this.portletState.subscribe((res:any) =>{
if(!Object.is(res.name,'IBIZBOOKUsr3MEditView9')){
return;
}
if(Object.is(res.action,'refresh') && _this.refresh && _this.refresh instanceof Function){
_this.refresh();
}
})
}
_this.initViewCtx();
}
/**
* 初始化视图操作参数
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
initViewCtx() {
Object.assign(this.viewCtx, {
app: this.$root,
view: this,
viewGlobal: {},
viewNavData: {},
viewNavContext: this.context,
viewNavParam: this.viewparams,
messagebox: AppMessageBox.getInstance(),
});
Object.assign(this.viewCtx, { appGlobal: this.$store.getters.getAppGlobal() });
if (this.$store.getters.getRouteViewGlobal(this.context.srfsessionid)) {
Object.assign(this.viewCtx, { routeViewGlobal: this.$store.getters.getRouteViewGlobal(this.context.srfsessionid) });
} else {
this.$store.commit('addRouteViewGlobal', { tag: this.context.srfsessionid, param: {} });
Object.assign(this.viewCtx, { routeViewGlobal: this.$store.getters.getRouteViewGlobal(this.context.srfsessionid) });
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
// 嵌入视图
Object.assign(this.viewCtx, {
topview: this.$store.getters.getView(this.context.srfsessionid)
});
} else {
// 顶层视图
this.$store.commit('addView', { tag: this.context.srfsessionid, param: this });
Object.assign(this.viewCtx, { topview: this });
}
}
/**
* 销毁之前
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag);
let _this: any = this
if (_this.serviceStateEvent) {
_this.serviceStateEvent.unsubscribe();
}
if (_this.portletStateEvent) {
_this.portletStateEvent.unsubscribe();
}
if (_this.formDruipartEvent) {
_this.formDruipartEvent.unsubscribe();
}
if (_this.engine) {
_this.engine.destroy();
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public mounted() {
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public afterMounted(){
const _this: any = this;
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
if(this.formDruipart){
this.formDruipart.subscribe((res) =>{
if(Object.is(res.action,'save')){
this.viewState.next({ tag:'meditviewpanel', action: 'save', data: this.viewparams });
}
if(Object.is(res.action,'remove')){
this.viewState.next({ tag:'meditviewpanel', action: 'remove', data: this.viewparams });
}
if(Object.is(res.action,'load')){
this.viewState.next({ tag: 'meditviewpanel', action: 'load', data: this.viewparams });
}
});
}else{
this.viewState.next({ tag: 'meditviewpanel', action: 'load', data: this.viewparams });
}
}
/**
* meditviewpanel 部件 onselectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public meditviewpanel_onselectionchange($event: any, $event2?: any) {
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZBOOKUsr3MEditView9
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZBOOKUsr3MEditView9
*/
public opendata(args: any[],fullargs?:any,params?: any, $event?: any, xData?: any) {
if(!this.viewDefaultUsage){
if(Object.is(this.navModel,"route")){
this.initNavDataWithRoute(this.viewCacheData, false, true);
}else{
this.initNavDataWithTab(this.viewCacheData, false, true);
}
}
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public closeView(args: any[]): void {
let _view: any = this;
if (_view.viewdata) {
_view.$emit('viewdataschange', Array.isArray(args)?args:[args]);
_view.$emit('close', Array.isArray(args)?args:[args]);
} else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}else{
_view.$router.back();
}
}
/**
* 销毁视图回调
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public afterDestroyed(){
if (this.viewDefaultUsage) {
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
if(Object.is(this.navModel,"tab")){
this.navDataService.removeNavDataByTag(this.viewtag);
}
}
// 销毁计数器定时器
if(this.counterServiceArray && this.counterServiceArray.length >0){
this.counterServiceArray.forEach((item:any) =>{
if(item.destroyCounter && item.destroyCounter instanceof Function){
item.destroyCounter();
}
})
}
}
/**
* 界面关系通讯对象
*
* @type {Subject<ViewState>}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Prop() public formDruipart!: Subject<ViewState>;
/**
* 刷新数据参数
*
* @type {number}
* @memberof IBIZBOOKUsr3MEditView9Base
*/
@Prop() public saveRefView?: number;
/**
* 关系数据变化
*
* @param {*} $event
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public onViewDataDirty($event: any) {
this.$emit('drdatachange', $event);
}
/**
* 关系数据保存执行完成
*
* @param {*} $event
* @memberof IBIZBOOKUsr3MEditView9Base
*/
public onDRDataSaved($event: any) {
this.$emit('drdatasaved', $event);
}
}
</script>
<style lang='scss'>
@import './ibizbookusr3-medit-view9.scss';
</style>
\ No newline at end of file
// 基于 @VIEW/实体多表单编辑视图(部件视图))/VIEW.scss.ftl 生成
.ibizbookusr3-medit-view9{
position: relative;
}
.ibizbookusr3-medit-view9{
display: block;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr3MEditView9Base from './ibizbookusr3-medit-view9-base.vue';
import view_meditviewpanel from '@widgets/ibizbook/main-multieditviewpanel/main-multieditviewpanel.vue';
// 基于 @VIEW/实体多表单编辑视图(部件视图)/VIEW.vue.ftl 生成
@Component({
components: {
view_meditviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZBOOKUsr3MEditView9 extends IBIZBOOKUsr3MEditView9Base {
}
</script>
\ No newline at end of file
......@@ -85,6 +85,7 @@ export const PageComponents = {
Vue.component('ibizbookdashboard-view', () => import('@pages/sample/ibizbookdashboard-view/ibizbookdashboard-view.vue'));
Vue.component('ibizbookusr6-grid-view', () => import('@pages/sample/ibizbookusr6-grid-view/ibizbookusr6-grid-view.vue'));
Vue.component('ibizorder-sgrid-view', () => import('@pages/sample/ibizorder-sgrid-view/ibizorder-sgrid-view.vue'));
Vue.component('ibizbookusr3-medit-view9', () => import('@pages/sample/ibizbookusr3-medit-view9/ibizbookusr3-medit-view9.vue'));
Vue.component('ibizbookusr4-list-view', () => import('@pages/sample/ibizbookusr4-list-view/ibizbookusr4-list-view.vue'));
Vue.component('ibizbookusr2-tree-view', () => import('@pages/sample/ibizbookusr2-tree-view/ibizbookusr2-tree-view.vue'));
Vue.component('ibizorder-usr2-chart-view', () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'));
......
......@@ -1299,6 +1299,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-sgrid-view/ibizorder-sgrid-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr3meditview9/:usr3meditview9?',
meta: {
caption: 'entities.ibizbook.views.usr3meditview9.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3meditview9', parameterName: 'usr3meditview9' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-medit-view9/ibizbookusr3-medit-view9.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr4listview/:usr4listview?',
meta: {
......@@ -5149,6 +5163,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr3meditview9/:usr3meditview9?',
meta: {
caption: 'entities.ibizbook.views.usr3meditview9.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3meditview9', parameterName: 'usr3meditview9' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-medit-view9/ibizbookusr3-medit-view9.vue'),
},
{
path: '/ibizbooks/:ibizbook?/roweditgridview/:roweditgridview?',
meta: {
......
......@@ -1414,6 +1414,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr3meditview9/:usr3meditview9?',
meta: {
caption: 'entities.ibizbook.views.usr3meditview9.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3meditview9', parameterName: 'usr3meditview9' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-medit-view9/ibizbookusr3-medit-view9.vue'),
},
{
path: '/ibizbooks/:ibizbook?/roweditgridview/:roweditgridview?',
meta: {
......
......@@ -984,6 +984,7 @@ export const viewstate: any = {
'0df3680d38ec121a94fde0389354a892',
'56b214615acdba5ae643d4d951cc8c74',
'1a7578c0b5f8a1107d0fe9c2dc51f314',
'64c82729110883d3b30f24cf33608e3a',
'a9bf3ff5d065c8b7fd383b4d0d4dbcfe',
'979100eb38d3859933d5e0b2c5931d00',
'61178fd42446ff34ea3263088ac2a3f8',
......@@ -1212,6 +1213,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '64c82729110883d3b30f24cf33608e3a',
viewmodule: 'Sample',
viewname: 'IBIZBOOKUsr3MEditView9',
viewaction: '',
viewdatachange: false,
refviews: [
'c547bc4885f57d117461a64387c6e966',
],
},
{
viewtag: '66ec326d0b2e789e37fdabdb41353db2',
viewmodule: 'Sample',
......
......@@ -133,6 +133,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'usrgridview_colplugin',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookusr-grid-view-col-plugin'});
this.allViewMap.set(':',{viewname:'usr3calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-calendar-view'});
this.allViewMap.set(':',{viewname:'optionview',viewType:'DEOPTVIEW',srfappde:'ibizbooks',component:'ibizbookoption-view'});
this.allViewMap.set(':',{viewname:'usr3meditview9',viewType:'DEMEDITVIEW9',srfappde:'ibizbooks',component:'ibizbookusr3-medit-view9'});
this.allViewMap.set(':',{viewname:'treegridexview',viewType:'DETREEGRIDEXVIEW',srfappde:'ibizbooks',component:'ibizbooktree-grid-ex-view'});
this.allViewMap.set(':',{viewname:'roweditgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookrow-edit-grid-view'});
this.allViewMap.set(':',{viewname:'optionview_layout',viewType:'DEOPTVIEW',srfappde:'ibizbooks',component:'ibizbookoption-view-layout'});
......
......@@ -894,6 +894,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto299':
this.clickAuto299(item);
return;
case 'AppFunc134':
this.clickAppFunc134(item);
return;
case 'AppFunc90':
this.clickAppFunc90(item);
return;
......@@ -3072,6 +3075,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 多编辑视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc134(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3meditview9', parameterName: 'usr3meditview9' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 列表视图
*
......
......@@ -2142,6 +2142,25 @@ export default class MainMenuModel {
appfunctag: 'Auto299',
resourcetag: '',
authtag:'Web-MainMenu-menuitem79',
},
{
id: 'D5265D1A-D146-4AE5-B9CC-140DBF8C7C08',
name: 'menuitem249',
text: '多编辑视图',
type: 'MENUITEM',
counterid: '',
tooltip: '多编辑视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc134',
resourcetag: '',
authtag:'Web-MainMenu-menuitem249',
},
{
id: 'CFCA26B1-14B7-4D10-BC34-2AE79F073061',
......@@ -5510,6 +5529,18 @@ export default class MainMenuModel {
{ pathName: 'sgridview', parameterName: 'sgridview' },
],
},
{
appfunctag: 'AppFunc134',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibizbookusr3meditview9',
deResParameters: [],
routepath: '/index/:index?/ibizbooks/:ibizbook?/usr3meditview9/:usr3meditview9?',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3meditview9', parameterName: 'usr3meditview9' },
],
},
{
appfunctag: 'AppFunc90',
appfuncyype: 'APPVIEW',
......
......@@ -639,7 +639,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: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -675,7 +675,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -698,7 +698,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -792,7 +792,7 @@ export default class Usr4Base 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: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -908,7 +908,7 @@ export default class Usr4Base 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: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (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);
......@@ -916,7 +916,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
......@@ -70,6 +70,11 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
......
......@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) {
this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailSGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
desc: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
});
return;
}
......@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) {
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
});
return;
}
......@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if (Object.is(item.rowDataState, 'create')) {
if (!this.createAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
});
return;
}
......
......@@ -97,6 +97,7 @@ export default class MainModel {
name: 'ibizorderdetail',
prop: 'ibizorderdetailid',
},
{
name:'size',
prop:'size',
......
......@@ -288,7 +288,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSF1GridViewBase
* @memberof IBIZOrderPickupGridViewBase
*/
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
......@@ -431,20 +431,6 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0];
}
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/**
* 是否嵌入关系界面
......@@ -979,7 +965,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) {
this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderSF1GridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
desc: "IBIZOrderPickupGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
});
return;
}
......@@ -1119,7 +1105,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) {
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
});
return;
}
......@@ -1233,7 +1219,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -2166,7 +2152,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if (Object.is(item.rowDataState, 'create')) {
if (!this.createAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2175,7 +2161,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2251,7 +2237,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
});
return;
}
......
......@@ -105,21 +105,6 @@ export default class MainModel {
prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_orderstate_eq',
prop: 'n_orderstate_eq',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_gt',
prop: 'n_ordertime_gt',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_lt',
prop: 'n_ordertime_lt',
dataType: 'QUERYPARAM'
},
{
name:'size',
......
......@@ -5326,6 +5326,14 @@
"rTMOSFilePath" : "psmodeldata$psdataentities/Usr2ListView",
"realModelSubType" : "DELISTVIEW",
"realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "Usr3MEditView9",
"logicName" : "图书实体多表单编辑视图(部件视图)",
"mOSFilePath" : "psmodeldata$psdataentities/Usr3MEditView9",
"name" : "图书实体多表单编辑视图(部件视图)",
"rTMOSFilePath" : "psmodeldata$psdataentities/Usr3MEditView9",
"realModelSubType" : "DEMEDITVIEW9",
"realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "RowEditGridView",
"logicName" : "表格行编辑",
......
......@@ -6516,6 +6516,10 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKOptionView.json",
"viewType" : "DEOPTVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr3MEditView9.json",
"viewType" : "DEMEDITVIEW9"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json",
......
{
"accUserMode" : 2,
"getCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZBOOK",
"mOSFilePath" : "pslanguageres/Auto395",
"rTMOSFilePath" : "pslanguageres/Auto395"
},
"caption" : "图书",
"codeName" : "IBIZBOOKUsr3MEditView9",
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr3MEditView9.json",
"mOSFilePath" : "pssysapps/Web/psappdeviews/IBIZBOOKUsr3MEditView9",
"name" : "IBIZBOOKUsr3MEditView9",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSAppModule" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPMODULES/Sample.json"
},
"getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM",
"logicType" : "SYSUILOGIC",
"name" : "newdata",
"getPSAppUILogic" : {
"actionAfterWizard" : "DEFAULT",
"logicType" : "PREDEFINED",
"name" : "新建数据",
"viewLogicType" : "APP_NEWDATA",
"batchAddOnly" : false,
"enableBatchAdd" : false,
"enableWizardAdd" : false
}
}, {
"logicTrigger" : "CUSTOM",
"logicType" : "SYSUILOGIC",
"name" : "opendata",
"getPSAppUILogic" : {
"logicType" : "PREDEFINED",
"name" : "打开数据",
"viewLogicType" : "APP_OPENDATA",
"editMode" : true
}
} ],
"getPSControls" : [ {
"aggMode" : "NONE",
"codeName" : "Main",
"columnEnableLink" : 2,
"controlType" : "MULTIEDITVIEWPANEL",
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSMULTIEDITVIEWPANELS/Main.json",
"getEmbeddedPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr5EditView.json",
"viewType" : "DEEDITVIEW"
},
"getFetchPSControlAction" : {
"modelref" : true,
"id" : "fetch"
},
"groupMode" : "NONE",
"hookEventNames" : [ "ONSELECTIONCHANGE" ],
"logicName" : "主表格",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZBOOK/psdegrids/Main",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSControlHandler" : {
"getPSHandlerActions" : [ {
"actionName" : "Get",
"actionType" : "DEACTION",
"dataAccessAction" : "READ",
"name" : "load",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Get"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}, {
"actionName" : "Create",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "create",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Create"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}, {
"actionName" : "Update",
"actionType" : "DEACTION",
"dataAccessAction" : "UPDATE",
"name" : "update",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Update"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}, {
"actionName" : "Remove",
"actionType" : "DEACTION",
"dataAccessAction" : "DELETE",
"name" : "remove",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Remove"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}, {
"actionName" : "GetDraft",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "loaddraft",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "GetDraft"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}, {
"actionType" : "DEDATASET",
"name" : "fetch",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "FetchDefault"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
} ],
"userDRAction" : "READ",
"enableDEFieldPrivilege" : false,
"id" : "数据表格处理器"
},
"getPSControlLogics" : [ {
"eventNames" : "onSelectionChange",
"logicTag" : "meditviewpanel",
"logicType" : "SCRIPT",
"name" : "printSelection",
"scriptCode" : "console.log(data);"
}, {
"eventNames" : "onSelectionChange",
"logicTag" : "meditviewpanel",
"logicType" : "DEUILOGIC",
"name" : "cancelSelect",
"getPSAppDEUILogic" : {
"modelref" : true,
"id" : "cancelSelect"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}, {
"logicTag" : "meditviewpanel",
"logicType" : "SCRIPT",
"name" : "timerLogic",
"scriptCode" : "console.log('表格逻辑触发,定时器打印输出...');",
"triggerType" : "TIMER"
} ],
"getPSControlParam" : {
"autoLoad" : true,
"showBusyIndicator" : true,
"id" : "MEDITVIEWPANEL"
},
"getPSDEDataImport" : {
"modelref" : true,
"id" : "DataImport"
},
"getPSDEGridColumns" : [ {
"align" : "LEFT",
"cLConvertMode" : "NONE",
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.IBIZBOOKNAME",
"mOSFilePath" : "pslanguageres/Auto1983",
"rTMOSFilePath" : "pslanguageres/Auto1983"
},
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname",
"excelCaption" : "图书名称",
"mOSFilePath" : "psdegridcols/ibizbookname",
"name" : "ibizbookname",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "IBIZBOOKNAME",
"codeName" : "IBIZBOOKName"
},
"rTMOSFilePath" : "psdegridcols/ibizbookname",
"width" : 150,
"widthUnit" : "PX",
"enableSort" : true
}, {
"align" : "LEFT",
"cLConvertMode" : "FRONT",
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.UPDATEMAN",
"mOSFilePath" : "pslanguageres/Auto202",
"rTMOSFilePath" : "pslanguageres/Auto202"
},
"caption" : "更新人",
"codeName" : "updateman",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "updateman",
"excelCaption" : "更新人",
"mOSFilePath" : "psdegridcols/updateman",
"name" : "updateman",
"noPrivDisplayMode" : 1,
"getPSAppCodeList" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPCODELISTS/SysOperator.json"
},
"getPSAppDEField" : {
"name" : "UPDATEMAN",
"codeName" : "UpdateMan"
},
"rTMOSFilePath" : "psdegridcols/updateman",
"width" : 150,
"widthUnit" : "PX",
"enableSort" : true
}, {
"align" : "LEFT",
"cLConvertMode" : "NONE",
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.UPDATEDATE",
"mOSFilePath" : "pslanguageres/Auto1074",
"rTMOSFilePath" : "pslanguageres/Auto1074"
},
"caption" : "更新时间",
"codeName" : "updatedate",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "updatedate",
"excelCaption" : "更新时间",
"mOSFilePath" : "psdegridcols/updatedate",
"name" : "updatedate",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"rTMOSFilePath" : "psdegridcols/updatedate",
"valueFormat" : "YYYY-MM-DD HH:mm:ss",
"width" : 150,
"widthUnit" : "PX",
"enableSort" : true
} ],
"getPSDEGridDataItems" : [ {
"dataType" : 25,
"name" : "ibizbookname",
"getPSAppDEField" : {
"name" : "IBIZBOOKNAME",
"codeName" : "IBIZBOOKName"
}
}, {
"dataType" : 25,
"name" : "updateman",
"getPSAppDEField" : {
"name" : "UPDATEMAN",
"codeName" : "UpdateMan"
}
}, {
"format" : "YYYY-MM-DD HH:mm:ss",
"dataType" : 5,
"name" : "updatedate",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
}
}, {
"dataType" : 25,
"name" : "ibizbookid",
"getPSAppDEField" : {
"name" : "IBIZBOOKID",
"codeName" : "IBIZBOOKId"
}
}, {
"dataType" : 25,
"name" : "srfkey",
"getPSAppDEField" : {
"name" : "IBIZBOOKID",
"codeName" : "IBIZBOOKId"
}
}, {
"dataType" : 25,
"name" : "srfdataaccaction",
"getPSAppDEField" : {
"name" : "IBIZBOOKID",
"codeName" : "IBIZBOOKId"
},
"dataAccessAction" : true
}, {
"dataType" : 25,
"name" : "srfmajortext",
"getPSAppDEField" : {
"name" : "IBIZBOOKNAME",
"codeName" : "IBIZBOOKName"
}
}, {
"dataType" : 25,
"name" : "srfmstag"
} ],
"getPSDEGridEditItems" : [ {
"caption" : "图书标识",
"codeName" : "srfkey",
"enableCond" : 3,
"ignoreInput" : 0,
"mOSFilePath" : "psdegridcols/srfkey",
"name" : "srfkey",
"getPSAppDEField" : {
"name" : "IBIZBOOKID",
"codeName" : "IBIZBOOKId"
},
"getPSEditor" : {
"editorType" : "HIDDEN",
"name" : "srfkey"
},
"rTMOSFilePath" : "psdegridcols/srfkey",
"allowEmpty" : true
} ],
"pagingSize" : 20,
"panelStyle" : "ROW",
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZBOOKUsr3MEditView9/psappviewctrls/meditviewpanel",
"getRemovePSControlAction" : {
"actionName" : "Remove",
"actionType" : "DEACTION",
"dataAccessAction" : "DELETE",
"name" : "remove",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Remove"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
},
"sortMode" : "REMOTE",
"hasWFDataItems" : false,
"enableColFilter" : false,
"enableCustomized" : true,
"enableGroup" : false,
"enablePagingBar" : true,
"enableRowEdit" : false,
"enableRowEditOrder" : false,
"enableRowNew" : false,
"forceFit" : false,
"hideHeader" : false,
"noSort" : false,
"singleSelect" : false,
"name" : "meditviewpanel",
"modelid" : "6cd11a010cbbb4d2bad5e1aad7e8020a",
"modeltype" : "PSDEGRID"
} ],
"getPSDEViewCodeName" : "Usr3MEditView9",
"getPSDEViewId" : "8FC39245-8FF3-4E86-BF20-BA92666AFC06",
"getPSViewLayoutPanel" : {
"codeName" : "Layoutpanel",
"controlStyle" : "APPDEMEDITVIEW9",
"controlType" : "VIEWLAYOUTPANEL",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZBOOK/pssysviewlayoutpanels/Layoutpanel",
"name" : "layoutpanel",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSControlParam" : { },
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZBOOKUsr3MEditView9/psappviewctrls/layoutpanel",
"layoutBodyOnly" : true,
"layoutPanel" : true,
"useDefaultLayout" : true
},
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZBOOKUsr3MEditView9",
"title" : "图书多表单编辑视图",
"viewStyle" : "DEFAULT",
"viewType" : "DEMEDITVIEW9",
"enableDP" : true,
"enableFilter" : false,
"enableQuickSearch" : true,
"modelid" : "64c82729110883d3b30f24cf33608e3a",
"modeltype" : "PSAPPDEVIEW"
}
\ No newline at end of file
......@@ -2923,6 +2923,28 @@
"layout" : "TABLE_24COL"
},
"tooltip" : "实体表格视图"
}, {
"accUserMode" : 2,
"caption" : "多编辑视图",
"itemType" : "MENUITEM",
"name" : "menuitem249",
"getPSAppFunc" : {
"modelref" : true,
"id" : "AppFunc134"
},
"getPSLayout" : {
"childColLG" : -1,
"childColMD" : 24,
"childColSM" : -1,
"childColXS" : -1,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"tooltip" : "多编辑视图"
}, {
"accUserMode" : 2,
"getCapPSLanguageRes" : {
......
......@@ -1602,6 +1602,16 @@
"id" : "Auto299"
},
"tooltip" : "实体表格视图"
}, {
"accUserMode" : 2,
"caption" : "多编辑视图",
"itemType" : "MENUITEM",
"name" : "menuitem249",
"getPSAppFunc" : {
"modelref" : true,
"id" : "AppFunc134"
},
"tooltip" : "多编辑视图"
}, {
"accUserMode" : 2,
"getCapPSLanguageRes" : {
......
......@@ -3513,6 +3513,18 @@
"viewType" : "DEGRIDVIEW"
},
"rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc34"
}, {
"appFuncType" : "APPVIEW",
"codeName" : "AppFunc134",
"mOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc134",
"name" : "多编辑视图",
"openMode" : "INDEXVIEWTAB",
"getPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr3MEditView9.json",
"viewType" : "DEMEDITVIEW9"
},
"rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc134"
}, {
"appFuncType" : "APPVIEW",
"codeName" : "AppFunc94",
......@@ -16779,6 +16791,12 @@
"viewType" : "DEOPTVIEW",
"resource" : "IBIZBOOK",
"view" : "OptionView"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr3MEditView9.json",
"viewType" : "DEMEDITVIEW9",
"resource" : "IBIZBOOK",
"view" : "Usr3MEditView9"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json",
......@@ -21015,6 +21033,28 @@
"layout" : "TABLE_24COL"
},
"tooltip" : "实体表格视图"
}, {
"accUserMode" : 2,
"caption" : "多编辑视图",
"itemType" : "MENUITEM",
"name" : "menuitem249",
"getPSAppFunc" : {
"modelref" : true,
"id" : "AppFunc134"
},
"getPSLayout" : {
"childColLG" : -1,
"childColMD" : 24,
"childColSM" : -1,
"childColXS" : -1,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"tooltip" : "多编辑视图"
}, {
"accUserMode" : 2,
"getCapPSLanguageRes" : {
......@@ -36072,6 +36112,10 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKOptionView.json",
"viewType" : "DEOPTVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr3MEditView9.json",
"viewType" : "DEMEDITVIEW9"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json",
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册