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

zhujiamin 发布系统代码 [TrainSys,网页端]

上级 599220cf
import { IParams } from "./i-params";
export interface IRedirectResult {
/**
* 原始数据
*
* @type {IParams}
* @memberof IRedirectResult
*/
srfdata?: IParams;
/**
* 重定向类型
*
* @type {string}
* @memberof IRedirectResult
*/
srfstate?: 'inwf' | 'multiform' | 'indextype' | 'redirectitem' | 'funcview';
/**
* 重定向计算目标值
*
* @type {string}
* @memberof IRedirectResult
*/
param?: string;
}
...@@ -6,3 +6,4 @@ export * from './i-params'; ...@@ -6,3 +6,4 @@ export * from './i-params';
export * from './layout-state'; export * from './layout-state';
export * from './i-loading-service'; export * from './i-loading-service';
export * from './i-runtime-data'; export * from './i-runtime-data';
export * from './i-redirect-result';
\ No newline at end of file
...@@ -22,6 +22,8 @@ export class AppDeLogicBeginNode extends AppDeLogicNodeBase { ...@@ -22,6 +22,8 @@ export class AppDeLogicBeginNode extends AppDeLogicNodeBase {
* @memberof AppDeLogicBeginNode * @memberof AppDeLogicBeginNode
*/ */
public async executeNode(logicNode: IPSDELogicNode, actionContext: ActionContext) { public async executeNode(logicNode: IPSDELogicNode, actionContext: ActionContext) {
// 默认设置当前逻辑返回结果为当前默认输入参数
actionContext.setResult(actionContext.defaultParam.getReal());
return this.computeNextNodes(logicNode, actionContext); return this.computeNextNodes(logicNode, actionContext);
} }
} }
\ No newline at end of file
import { IPSAppDataEntity, IPSAppDEField, IPSAppDEView, IPSAppView, IPSAppWF, IPSAppWFDE, IPSDEMainState, IPSDEMainStateOPPriv, IPSDEOPPriv } from '@ibiz/dynamic-model-api'; import { IPSAppDataEntity, IPSAppDEField, IPSAppDEView, IPSAppView, IPSAppWF, IPSAppWFDE, IPSDEMainState, IPSDEMainStateOPPriv, IPSDEOPPriv } from '@ibiz/dynamic-model-api';
import { IRunTimeData } from '../../interface'; import { IContext, IParams, IRedirectResult, IRunTimeData } from '../../interface';
import { LogUtil, ModelTool } from '../../utils'; import { LogUtil, ModelTool } from '../../utils';
import { AppServiceBase } from '../app-service/app-base.service'; import { AppServiceBase } from '../app-service/app-base.service';
import { AuthServiceHelp } from '../auth-service'; import { AuthServiceHelp } from '../auth-service';
...@@ -340,27 +340,36 @@ export class UIServiceBase { ...@@ -340,27 +340,36 @@ export class UIServiceBase {
* 获取指定数据的重定向页面 * 获取指定数据的重定向页面
* *
* @param context 应用上下文 * @param context 应用上下文
* @param srfkey 数据主键 * @param viewparam 视图参数
* @param enableWorkflowParam 重定向视图需要处理流程中的数据 * @param data 业务数据
* @param redirectParam 重定向视图参数 (获取数据行为和数据识别参数) * @param redirectParam 重定向视图参数 (获取数据行为和数据识别参数)
* @memberof UIServiceBase * @memberof UIServiceBase
*/ */
protected async getRDAppView(context: any, srfkey: string, enableWorkflowParam: any, redirectParam: any = {}) { protected async getRDAppView(context: IContext, viewParam: IParams, data: IParams = {}, redirectParam: IParams = {}): Promise<IRedirectResult> {
// 进行数据查询 // 进行数据查询
let returnData: any = {}; let returnData: IRedirectResult = {};
Object.assign(context, { [this.appDataEntity.codeName.toLowerCase()]: srfkey }); const key: string = this.appDataEntity.codeName.toLowerCase();
let srfkey: string | null = null;
if (data && data.hasOwnProperty(key)) {
srfkey = data[key];
} else if (context && context[key]) {
srfkey = context[key];
} else if (viewParam && viewParam[key]) {
srfkey = viewParam[key];
}
Object.assign(context, { [key]: srfkey });
let result: any = {}; let result: any = {};
try { try {
if ( if (
redirectParam && redirectParam.action && this.dataService redirectParam && redirectParam.action && this.dataService
) { ) {
result = await this.dataService.execute(redirectParam.action, context); result = await this.dataService.execute(redirectParam.action, context, viewParam);
} else { } else {
result = await this.dataService.execute('Get', context); result = await this.dataService.execute('Get', context, viewParam);
} }
} catch (error: any) { } catch (error: any) {
AppServiceBase.getInstance().getNotification().error(error?.message ? error.message : '获取数据异常'); AppServiceBase.getInstance().getNotification().error(error?.message ? error.message : '获取数据异常');
return; throw new Error(error?.message ? error.message : '获取数据异常');
} }
const curData: any = result.data; const curData: any = result.data;
// 设置原始数据 // 设置原始数据
...@@ -370,18 +379,12 @@ export class UIServiceBase { ...@@ -370,18 +379,12 @@ export class UIServiceBase {
let bDataInWF: boolean = false; let bDataInWF: boolean = false;
// 计算数据模式 // 计算数据模式
if ( if (
(enableWorkflowParam && (viewParam &&
enableWorkflowParam.srfwf && viewParam.srfwf &&
this.InWorkflowArray.indexOf(enableWorkflowParam.srfwf) !== -1) this.InWorkflowArray.indexOf(viewParam.srfwf) !== -1)
) { ) {
bDataInWF = true; bDataInWF = true;
} }
if (bDataInWF) {
// 设置临时组织标识(用于工作流获取多实例)
if (this.tempOrgIdDEField && curData && curData[this.tempOrgIdDEField]) {
Object.assign(returnData, { 'srfsandboxtag': curData[this.tempOrgIdDEField] });
}
}
let strPDTViewParam: string = await this.getDESDDEViewPDTParam(bDataInWF, curData, redirectParam); let strPDTViewParam: string = await this.getDESDDEViewPDTParam(bDataInWF, curData, redirectParam);
// 工作流 // 工作流
if (bDataInWF) { if (bDataInWF) {
...@@ -480,10 +483,10 @@ export class UIServiceBase { ...@@ -480,10 +483,10 @@ export class UIServiceBase {
const typeValue = curData[redirectParam.type.toLowerCase()]; const typeValue = curData[redirectParam.type.toLowerCase()];
if (typeValue) { if (typeValue) {
if (!Environment.isAppMode) { if (!Environment.isAppMode) {
let tempParam = 'MOBEDITVIEW:' + typeValue; let tempParam = typeValue;
return tempParam; return tempParam;
} }
let tempParam = 'EDITVIEW:' + typeValue; let tempParam = typeValue;
return tempParam; return tempParam;
} }
} }
......
import { IPSAppDERedirectView, IPSAppViewRef } from '@ibiz/dynamic-model-api'; import { IPSAppDERedirectView, IPSAppViewRef } from '@ibiz/dynamic-model-api';
import qs from 'qs'; import qs from 'qs';
import { IParams } from '../../interface'; import { IContext, IParams } from '../../interface';
import { AppServiceBase } from '../../service'; import { AppServiceBase } from '../../service';
import { getSessionStorage, Util } from '../util/util'; import { getSessionStorage, Util } from '../util/util';
...@@ -508,4 +508,33 @@ export class ViewTool { ...@@ -508,4 +508,33 @@ export class ViewTool {
return targetViewRef; return targetViewRef;
} }
/**
* 清除父数据
*
* @static
* @param {IContext} context
* @param {IParams} viewParam
* @memberof ViewTool
*/
public static clearParentParams(context: IContext, viewParam: IParams) {
if(context && context.srfparentkey){
delete context.srfparentkey;
}
if(context && context.srfparentdename){
delete context.srfparentdename;
}
if(context && context.srfparentdemapname){
delete context.srfparentdemapname;
}
if(viewParam && viewParam.srfparentkey){
delete viewParam.srfparentkey;
}
if(viewParam && viewParam.srfparentdename){
delete viewParam.srfparentdename;
}
if(viewParam && viewParam.srfparentdemapname){
delete viewParam.srfparentdemapname;
}
}
} }
\ No newline at end of file
...@@ -2,7 +2,6 @@ import { ...@@ -2,7 +2,6 @@ import {
getPSUIActionByModelObject, getPSUIActionByModelObject,
IPSAppDataEntity, IPSAppDataEntity,
IPSAppDEField, IPSAppDEField,
IPSAppDERedirectView,
IPSAppDEUIAction, IPSAppDEUIAction,
IPSAppDEView, IPSAppDEView,
IPSAppView, IPSAppView,
...@@ -10,7 +9,7 @@ import { ...@@ -10,7 +9,7 @@ import {
IPSNavigateContext, IPSNavigateContext,
IPSNavigateParam IPSNavigateParam
} from '@ibiz/dynamic-model-api'; } from '@ibiz/dynamic-model-api';
import { Http, IContext, IParams, LogUtil, ModelTool, StringUtil, UIActionTool, Util } from 'ibiz-core'; import { Http, IContext, IParams, LogUtil, ModelTool, StringUtil, UIActionTool, UIServiceHelp, Util, ViewTool } from 'ibiz-core';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { AppGlobalService } from '../app-service'; import { AppGlobalService } from '../app-service';
import { appPopup } from '../utils'; import { appPopup } from '../utils';
...@@ -297,25 +296,52 @@ export class AppFrontAction extends AppDEUIAction { ...@@ -297,25 +296,52 @@ export class AppFrontAction extends AppDEUIAction {
} }
// 打开重定向视图 // 打开重定向视图
if (frontPSAppView.redirectView) { if (frontPSAppView.redirectView) {
const data = args[0]; const redirectUIService: any = await UIServiceHelp.getInstance().getService(frontPSAppView.getPSAppDataEntity(), { context });
const field: IPSAppDEField | null = (frontPSAppView as IPSAppDERedirectView).getTypePSAppDEField(); await redirectUIService.loaded();
if (field) { const redirectAppEntity: IPSAppDataEntity | null = frontPSAppView.getPSAppDataEntity();
const type = data[field.codeName.toLocaleLowerCase()]; await ViewTool.calcRedirectContext(context, args[0], redirectAppEntity);
const appViewRefs = (frontPSAppView as IPSAppDERedirectView).getRedirectPSAppViewRefs()!; redirectUIService.getRDAppView(
let appViewRef: IPSAppViewRef | undefined = appViewRefs?.find( context,
(appViewRef: IPSAppViewRef) => data,
appViewRef.name === type || appViewRef.name === `EDITVIEW:${type}`, args[0],
{ action: frontPSAppView.getGetDataPSAppDEAction()?.codeName, type: frontPSAppView.getTypePSAppDEField()?.codeName }
).then(async (result: any) => {
if (!result) {
return;
}
let targetOpenViewRef:
| IPSAppViewRef
| undefined = ViewTool.computeRedirectViewRef(frontPSAppView, params, result);
if (!targetOpenViewRef) {
return;
}
let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView();
if (!targetOpenView) {
return;
}
await targetOpenView.fill(true);
if (result && result.indextype) {
const indexContext: any = Util.formatNavParam(
[{ key: targetOpenView?.getPSAppDataEntity()?.codeName, rawValue: false, value: ModelTool.getContainerAppEntityCodeName(frontPSAppView) }],
true,
); );
if (!appViewRef) { const _context: any = Util.computedNavData(args[0], context, data, indexContext);
appViewRef = appViewRefs?.find((appViewRef: IPSAppViewRef) => { Object.assign(context, _context);
const entityName = frontPSAppView.getPSAppDataEntity()?.name;
return appViewRef.name === type || appViewRef.name === `${entityName}:EDITVIEW:${type}`;
});
} }
if (appViewRef) { if (
const appView: any = await appViewRef.getRefPSAppView()?.fill(); targetOpenViewRef.getPSNavigateContexts() &&
(targetOpenViewRef.getPSNavigateContexts() as IPSNavigateContext[]).length > 0
) {
let localContextRef: any = Util.formatNavParam(
targetOpenViewRef.getPSNavigateContexts(),
true,
);
let _context: any = Util.computedNavData(args[0], context, data, localContextRef);
Object.assign(context, _context);
}
ViewTool.clearParentParams(context,params);
return this.oPenView( return this.oPenView(
appView, targetOpenView,
actionContext, actionContext,
context, context,
args, args,
...@@ -326,8 +352,8 @@ export class AppFrontAction extends AppDEUIAction { ...@@ -326,8 +352,8 @@ export class AppFrontAction extends AppDEUIAction {
xData, xData,
_args, _args,
); );
}
} })
} else if (!frontPSAppView.openMode || frontPSAppView.openMode == 'INDEXVIEWTAB') { } else if (!frontPSAppView.openMode || frontPSAppView.openMode == 'INDEXVIEWTAB') {
const routePath = actionContext.$viewTool.buildUpRoutePath( const routePath = actionContext.$viewTool.buildUpRoutePath(
actionContext.$route, actionContext.$route,
...@@ -487,11 +513,11 @@ export class AppFrontAction extends AppDEUIAction { ...@@ -487,11 +513,11 @@ export class AppFrontAction extends AppDEUIAction {
if (actionContext.context && actionContext.context.srfparentdename && actionContext.context.srfparentkey) { if (actionContext.context && actionContext.context.srfparentdename && actionContext.context.srfparentkey) {
Object.assign(tempContext, { srfparentdename: actionContext.context.srfparentdename }); Object.assign(tempContext, { srfparentdename: actionContext.context.srfparentdename });
Object.assign(tempContext, { srfparentkey: actionContext.context.srfparentkey }); Object.assign(tempContext, { srfparentkey: actionContext.context.srfparentkey });
}else{ } else {
if(tempContext.srfparentdename){ if (tempContext.srfparentdename) {
delete tempContext.srfparentdename; delete tempContext.srfparentdename;
} }
if(tempContext.srfparentkey){ if (tempContext.srfparentkey) {
delete tempContext.srfparentkey; delete tempContext.srfparentkey;
} }
} }
......
...@@ -21,6 +21,8 @@ export class AppUILogicBeginNode extends AppUILogicNodeBase { ...@@ -21,6 +21,8 @@ export class AppUILogicBeginNode extends AppUILogicNodeBase {
* @memberof AppUILogicBeginNode * @memberof AppUILogicBeginNode
*/ */
public async executeNode(logicNode: IPSAppUILogic, actionContext: UIActionContext) { public async executeNode(logicNode: IPSAppUILogic, actionContext: UIActionContext) {
// 默认设置当前逻辑返回结果为当前默认输入参数
actionContext.setResult(actionContext.defaultParam.getReal());
return this.computeNextNodes(logicNode, actionContext); return this.computeNextNodes(logicNode, actionContext);
} }
} }
\ No newline at end of file
...@@ -250,8 +250,8 @@ export default class AppColumnLink extends Vue { ...@@ -250,8 +250,8 @@ export default class AppColumnLink extends Vue {
await ViewTool.calcRedirectContext(context, this.data, redirectAppEntity); await ViewTool.calcRedirectContext(context, this.data, redirectAppEntity);
let result = await redirectUIService.getRDAppView( let result = await redirectUIService.getRDAppView(
context, context,
this.data[this.deKeyField] ? this.data[this.deKeyField] : this.data[this.valueitem as string],
params, params,
this.data,
{ action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName } { action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName }
); );
if (!result) { if (!result) {
...@@ -269,15 +269,12 @@ export default class AppColumnLink extends Vue { ...@@ -269,15 +269,12 @@ export default class AppColumnLink extends Vue {
let _context: any = Util.computedNavData(this.data, context, params, localContextRef); let _context: any = Util.computedNavData(this.data, context, params, localContextRef);
Object.assign(context, _context); Object.assign(context, _context);
} }
if (result && result.hasOwnProperty('srfsandboxtag')) {
Object.assign(context, { srfsandboxtag: result['srfsandboxtag'] });
Object.assign(params, { srfsandboxtag: result['srfsandboxtag'] });
}
let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView(); let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView();
if (!targetOpenView) { if (!targetOpenView) {
return; return;
} }
await targetOpenView.fill(true); await targetOpenView.fill(true);
ViewTool.clearParentParams(context,params);
const view: any = { const view: any = {
viewname: 'app-view-shell', viewname: 'app-view-shell',
height: targetOpenView.height, height: targetOpenView.height,
......
...@@ -773,7 +773,7 @@ export default class AppPicker extends Vue { ...@@ -773,7 +773,7 @@ export default class AppPicker extends Vue {
await redirectUIService.loaded(); await redirectUIService.loaded();
const redirectAppEntity: IPSAppDataEntity | null = targetRedirectView.getPSAppDataEntity(); const redirectAppEntity: IPSAppDataEntity | null = targetRedirectView.getPSAppDataEntity();
await ViewTool.calcRedirectContext(context, this.data, redirectAppEntity); await ViewTool.calcRedirectContext(context, this.data, redirectAppEntity);
let result = await redirectUIService.getRDAppView(context, this.data['srfkey'], params, { let result = await redirectUIService.getRDAppView(context, params,this.data, {
action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, action: targetRedirectView.getGetDataPSAppDEAction()?.codeName,
type: targetRedirectView.getTypePSAppDEField()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName,
}); });
...@@ -796,15 +796,12 @@ export default class AppPicker extends Vue { ...@@ -796,15 +796,12 @@ export default class AppPicker extends Vue {
let _context: any = Util.computedNavData(this.data, context, params, localContextRef); let _context: any = Util.computedNavData(this.data, context, params, localContextRef);
Object.assign(context, _context); Object.assign(context, _context);
} }
if (result && result.hasOwnProperty('srfsandboxtag')) {
Object.assign(context, { srfsandboxtag: result['srfsandboxtag'] });
Object.assign(params, { srfsandboxtag: result['srfsandboxtag'] });
}
let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView(); let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView();
if (!targetOpenView) { if (!targetOpenView) {
return; return;
} }
await targetOpenView.fill(true); await targetOpenView.fill(true);
ViewTool.clearParentParams(context,params);
const view: any = { const view: any = {
viewname: 'app-view-shell', viewname: 'app-view-shell',
height: targetOpenView.height, height: targetOpenView.height,
......
...@@ -985,15 +985,19 @@ export class ControlContainer extends Vue { ...@@ -985,15 +985,19 @@ export class ControlContainer extends Vue {
) { ) {
return; return;
} }
Object.assign(params, this.viewparams); const targetViewparams: IParams = {};
if (params && Object.keys(params).length > 0) {
Object.assign(targetViewparams, params);
}
Object.assign(targetViewparams, data);
const redirectUIService: any = await UIServiceHelp.getInstance().getService(targetRedirectView.getPSAppDataEntity(), { context: this.context }); const redirectUIService: any = await UIServiceHelp.getInstance().getService(targetRedirectView.getPSAppDataEntity(), { context: this.context });
await redirectUIService.loaded(); await redirectUIService.loaded();
const redirectAppEntity: IPSAppDataEntity | null = targetRedirectView.getPSAppDataEntity(); const redirectAppEntity: IPSAppDataEntity | null = targetRedirectView.getPSAppDataEntity();
await ViewTool.calcRedirectContext(tempContext, fullargs[0], redirectAppEntity); await ViewTool.calcRedirectContext(tempContext, fullargs[0], redirectAppEntity);
redirectUIService.getRDAppView( redirectUIService.getRDAppView(
tempContext, tempContext,
args[0][(ModelTool.getContainerAppEntityCodeName(this.containerModel) as string)?.toLowerCase()], targetViewparams,
params, args[0],
{ action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName } { action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName }
) )
.then(async (result: any) => { .then(async (result: any) => {
...@@ -1002,7 +1006,7 @@ export class ControlContainer extends Vue { ...@@ -1002,7 +1006,7 @@ export class ControlContainer extends Vue {
} }
let targetOpenViewRef: let targetOpenViewRef:
| IPSAppViewRef | IPSAppViewRef
| undefined = ViewTool.computeRedirectViewRef(targetRedirectView,params,result); | undefined = ViewTool.computeRedirectViewRef(targetRedirectView, params, result);
if (!targetOpenViewRef) { if (!targetOpenViewRef) {
return; return;
} }
...@@ -1030,10 +1034,7 @@ export class ControlContainer extends Vue { ...@@ -1030,10 +1034,7 @@ export class ControlContainer extends Vue {
let _context: any = Util.computedNavData(fullargs[0], tempContext, data, localContextRef); let _context: any = Util.computedNavData(fullargs[0], tempContext, data, localContextRef);
Object.assign(tempContext, _context); Object.assign(tempContext, _context);
} }
if (result && result.hasOwnProperty('srfsandboxtag')) { ViewTool.clearParentParams(tempContext,data);
Object.assign(tempContext, { 'srfsandboxtag': result['srfsandboxtag'] });
Object.assign(data, { 'srfsandboxtag': result['srfsandboxtag'] });
}
const view: any = { const view: any = {
viewname: 'app-view-shell', viewname: 'app-view-shell',
height: targetOpenView.height, height: targetOpenView.height,
...@@ -1360,7 +1361,7 @@ export class ControlContainer extends Vue { ...@@ -1360,7 +1361,7 @@ export class ControlContainer extends Vue {
if (this.viewparams && Object.keys(this.viewparams).length) { if (this.viewparams && Object.keys(this.viewparams).length) {
Object.assign(param, this.viewparams); Object.assign(param, this.viewparams);
} }
promiseArr.push(this.appEntityService.execute('Create',_context, param)); promiseArr.push(this.appEntityService.execute('Create', _context, param));
}); });
promises = Promise.all(promiseArr); promises = Promise.all(promiseArr);
} }
......
...@@ -97,7 +97,7 @@ export class DeRedirectViewBase extends MainViewBase implements RedirectViewInte ...@@ -97,7 +97,7 @@ export class DeRedirectViewBase extends MainViewBase implements RedirectViewInte
}); });
} }
} }
this.appUIService.getRDAppView(this.context, this.context[this.appDeCodeName.toLowerCase()], localParams, dataSetParams).then(async (result: any) => { this.appUIService.getRDAppView(this.context, localParams, {}, dataSetParams).then(async (result: any) => {
if (!result) { if (!result) {
return; return;
} }
...@@ -143,16 +143,13 @@ export class DeRedirectViewBase extends MainViewBase implements RedirectViewInte ...@@ -143,16 +143,13 @@ export class DeRedirectViewBase extends MainViewBase implements RedirectViewInte
Object.assign(tempContext, { srfdynainstid: curDynaInst.id }); Object.assign(tempContext, { srfdynainstid: curDynaInst.id });
} }
} }
if (result && result.hasOwnProperty('srfsandboxtag')) {
Object.assign(tempContext, { 'srfsandboxtag': result['srfsandboxtag'] });
Object.assign(tempViewParams, { 'srfsandboxtag': result['srfsandboxtag'] });
}
if (targetOpenViewRef.getRefPSAppView()) { if (targetOpenViewRef.getRefPSAppView()) {
let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView(); let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView();
if (!targetOpenView) { if (!targetOpenView) {
return; return;
} }
await targetOpenView.fill(true); await targetOpenView.fill(true);
ViewTool.clearParentParams(tempContext,tempViewParams);
const view: any = { const view: any = {
viewname: 'app-view-shell', viewname: 'app-view-shell',
height: targetOpenView.height, height: targetOpenView.height,
......
...@@ -547,8 +547,8 @@ export class GanttControlBase extends MDControlBase implements GanttControlInter ...@@ -547,8 +547,8 @@ export class GanttControlBase extends MDControlBase implements GanttControlInter
await ViewTool.calcRedirectContext(tempContext, fullargs[0], redirectAppEntity); await ViewTool.calcRedirectContext(tempContext, fullargs[0], redirectAppEntity);
redirectUIService.getRDAppView( redirectUIService.getRDAppView(
tempContext, tempContext,
args[0][this.appDeCodeName.toLowerCase()],
params, params,
args[0],
{ action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName } { action: targetRedirectView.getGetDataPSAppDEAction()?.codeName, type: targetRedirectView.getTypePSAppDEField()?.codeName }
) )
.then(async (result: any) => { .then(async (result: any) => {
...@@ -572,15 +572,12 @@ export class GanttControlBase extends MDControlBase implements GanttControlInter ...@@ -572,15 +572,12 @@ export class GanttControlBase extends MDControlBase implements GanttControlInter
let _context: any = Util.computedNavData(fullargs[0], tempContext, data, localContextRef); let _context: any = Util.computedNavData(fullargs[0], tempContext, data, localContextRef);
Object.assign(tempContext, _context); Object.assign(tempContext, _context);
} }
if (result && result.hasOwnProperty('srfsandboxtag')) {
Object.assign(tempContext, { 'srfsandboxtag': result['srfsandboxtag'] });
Object.assign(data, { 'srfsandboxtag': result['srfsandboxtag'] });
}
let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView(); let targetOpenView: IPSAppView | null = targetOpenViewRef.getRefPSAppView();
if (!targetOpenView) { if (!targetOpenView) {
return; return;
} }
await targetOpenView.fill(); await targetOpenView.fill();
ViewTool.clearParentParams(tempContext,data);
const view: any = { const view: any = {
viewname: 'app-view-shell', viewname: 'app-view-shell',
height: targetOpenView.height, height: targetOpenView.height,
......
...@@ -15,6 +15,14 @@ ...@@ -15,6 +15,14 @@
</column> </column>
<column name="DEPTID" remarks="组织部门标识" type="VARCHAR(60)"> <column name="DEPTID" remarks="组织部门标识" type="VARCHAR(60)">
</column> </column>
<column name="FIELD" remarks="属性" type="VARCHAR(100)">
</column>
<column name="FIELD2" remarks="属性2" type="VARCHAR(100)">
</column>
<column name="FIELD3" remarks="属性3" type="VARCHAR(100)">
</column>
<column name="FIELD4" remarks="属性4" type="VARCHAR(100)">
</column>
<column name="ORGID" remarks="组织机构标识" type="VARCHAR(60)"> <column name="ORGID" remarks="组织机构标识" type="VARCHAR(60)">
</column> </column>
<column name="TYPE" remarks="类型" type="VARCHAR(100)"> <column name="TYPE" remarks="类型" type="VARCHAR(100)">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<!--输出实体[BOOK]数据结构 --> <!--输出实体[BOOK]数据结构 -->
<changeSet author="root" id="tab-book-19-1"> <changeSet author="root" id="tab-book-30-1">
<createTable tableName="T_BOOK"> <createTable tableName="T_BOOK">
<column name="BOOKNAME" remarks="" type="VARCHAR(200)"> <column name="BOOKNAME" remarks="" type="VARCHAR(200)">
</column> </column>
...@@ -23,6 +23,14 @@ ...@@ -23,6 +23,14 @@
</column> </column>
<column name="TYPE" remarks="" type="VARCHAR(100)"> <column name="TYPE" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="FIELD" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD2" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD3" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD4" remarks="" type="VARCHAR(100)">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
......
...@@ -16,6 +16,18 @@ ...@@ -16,6 +16,18 @@
}, { }, {
"expression" : "t1.`DEPTID`", "expression" : "t1.`DEPTID`",
"name" : "DEPTID" "name" : "DEPTID"
}, {
"expression" : "t1.`FIELD`",
"name" : "FIELD"
}, {
"expression" : "t1.`FIELD2`",
"name" : "FIELD2"
}, {
"expression" : "t1.`FIELD3`",
"name" : "FIELD3"
}, {
"expression" : "t1.`FIELD4`",
"name" : "FIELD4"
}, { }, {
"expression" : "t1.`ORGID`", "expression" : "t1.`ORGID`",
"name" : "ORGID" "name" : "ORGID"
...@@ -29,6 +41,6 @@ ...@@ -29,6 +41,6 @@
"expression" : "t1.`UPDATEMAN`", "expression" : "t1.`UPDATEMAN`",
"name" : "UPDATEMAN" "name" : "UPDATEMAN"
} ], } ],
"queryCode" : "SELECT\nt1.`BOOKID`,\nt1.`BOOKNAME`,\nt1.`CREATEDATE`,\nt1.`CREATEMAN`,\nt1.`DEPTID`,\nt1.`ORGID`,\nt1.`TYPE`,\nt1.`UPDATEDATE`,\nt1.`UPDATEMAN`\nFROM `T_BOOK` t1 \n", "queryCode" : "SELECT\nt1.`BOOKID`,\nt1.`BOOKNAME`,\nt1.`CREATEDATE`,\nt1.`CREATEMAN`,\nt1.`DEPTID`,\nt1.`FIELD`,\nt1.`FIELD2`,\nt1.`FIELD3`,\nt1.`FIELD4`,\nt1.`ORGID`,\nt1.`TYPE`,\nt1.`UPDATEDATE`,\nt1.`UPDATEMAN`\nFROM `T_BOOK` t1 \n",
"id" : "PSMODULES/common/PSDATAENTITIES/Book/PSDEDATAQUERIES/Default/PSDEDQCODES/MYSQL5.json" "id" : "PSMODULES/common/PSDATAENTITIES/Book/PSDEDATAQUERIES/Default/PSDEDQCODES/MYSQL5.json"
} }
\ No newline at end of file
...@@ -16,6 +16,18 @@ ...@@ -16,6 +16,18 @@
}, { }, {
"expression" : "t1.`DEPTID`", "expression" : "t1.`DEPTID`",
"name" : "DEPTID" "name" : "DEPTID"
}, {
"expression" : "t1.`FIELD`",
"name" : "FIELD"
}, {
"expression" : "t1.`FIELD2`",
"name" : "FIELD2"
}, {
"expression" : "t1.`FIELD3`",
"name" : "FIELD3"
}, {
"expression" : "t1.`FIELD4`",
"name" : "FIELD4"
}, { }, {
"expression" : "t1.`ORGID`", "expression" : "t1.`ORGID`",
"name" : "ORGID" "name" : "ORGID"
...@@ -29,6 +41,6 @@ ...@@ -29,6 +41,6 @@
"expression" : "t1.`UPDATEMAN`", "expression" : "t1.`UPDATEMAN`",
"name" : "UPDATEMAN" "name" : "UPDATEMAN"
} ], } ],
"queryCode" : "SELECT\nt1.`BOOKID`,\nt1.`BOOKNAME`,\nt1.`CREATEDATE`,\nt1.`CREATEMAN`,\nt1.`DEPTID`,\nt1.`ORGID`,\nt1.`TYPE`,\nt1.`UPDATEDATE`,\nt1.`UPDATEMAN`\nFROM `T_BOOK` t1 \n", "queryCode" : "SELECT\nt1.`BOOKID`,\nt1.`BOOKNAME`,\nt1.`CREATEDATE`,\nt1.`CREATEMAN`,\nt1.`DEPTID`,\nt1.`FIELD`,\nt1.`FIELD2`,\nt1.`FIELD3`,\nt1.`FIELD4`,\nt1.`ORGID`,\nt1.`TYPE`,\nt1.`UPDATEDATE`,\nt1.`UPDATEMAN`\nFROM `T_BOOK` t1 \n",
"id" : "PSMODULES/common/PSDATAENTITIES/Book/PSDEDATAQUERIES/View/PSDEDQCODES/MYSQL5.json" "id" : "PSMODULES/common/PSDATAENTITIES/Book/PSDEDATAQUERIES/View/PSDEDQCODES/MYSQL5.json"
} }
\ No newline at end of file
...@@ -283,6 +283,30 @@ ...@@ -283,6 +283,30 @@
"name" : "TYPE", "name" : "TYPE",
"stdDataType" : 25, "stdDataType" : 25,
"stringLength" : 100 "stringLength" : 100
}, {
"codeName" : "Field",
"logicName" : "属性",
"name" : "FIELD",
"stdDataType" : 25,
"stringLength" : 100
}, {
"codeName" : "Field2",
"logicName" : "属性2",
"name" : "FIELD2",
"stdDataType" : 25,
"stringLength" : 100
}, {
"codeName" : "Field3",
"logicName" : "属性3",
"name" : "FIELD3",
"stdDataType" : 25,
"stringLength" : 100
}, {
"codeName" : "Field4",
"logicName" : "属性4",
"name" : "FIELD4",
"stdDataType" : 25,
"stringLength" : 100
} ], } ],
"getAllPSAppDEMethodDTOs" : [ { "getAllPSAppDEMethodDTOs" : [ {
"codeName" : "BookDTO", "codeName" : "BookDTO",
...@@ -350,6 +374,54 @@ ...@@ -350,6 +374,54 @@
"sourceType" : "DEFIELD", "sourceType" : "DEFIELD",
"stdDataType" : 25, "stdDataType" : 25,
"type" : "SIMPLE" "type" : "SIMPLE"
}, {
"codeName" : "Field",
"logicName" : "属性",
"name" : "Field",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD",
"codeName" : "Field"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "Field2",
"logicName" : "属性2",
"name" : "Field2",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD2",
"codeName" : "Field2"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "Field3",
"logicName" : "属性3",
"name" : "Field3",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD3",
"codeName" : "Field3"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "Field4",
"logicName" : "属性4",
"name" : "Field4",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD4",
"codeName" : "Field4"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, { }, {
"codeName" : "OrgId", "codeName" : "OrgId",
"logicName" : "组织机构标识", "logicName" : "组织机构标识",
......
...@@ -93,17 +93,33 @@ ...@@ -93,17 +93,33 @@
"codeName" : "Type" "codeName" : "Type"
} }
}, { }, {
"id" : "formitem", "id" : "field",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD",
"codeName" : "Field"
}
}, { }, {
"id" : "formitem1", "id" : "field2",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD2",
"codeName" : "Field2"
}
}, { }, {
"id" : "formitem3", "id" : "field3",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD3",
"codeName" : "Field3"
}
}, { }, {
"id" : "formitem2", "id" : "field4",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD4",
"codeName" : "Field4"
}
}, { }, {
"id" : "createman", "id" : "createman",
"dataType" : 25, "dataType" : 25,
...@@ -249,7 +265,8 @@ ...@@ -249,7 +265,8 @@
"detailType" : "TABPAGE", "detailType" : "TABPAGE",
"name" : "tabpage1", "name" : "tabpage1",
"getPSDEFormDetails" : [ { "getPSDEFormDetails" : [ {
"codeName" : "formitem", "caption" : "属性",
"codeName" : "field",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -257,21 +274,27 @@ ...@@ -257,21 +274,27 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem", "name" : "field",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD",
"codeName" : "Field"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "TEXTBOX", "editorType" : "TEXTBOX",
"name" : "formitem" "maxLength" : 100,
"name" : "field"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"colLG" : 12, "colLG" : 8,
"colMD" : 24, "colMD" : 8,
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"allowEmpty" : true, "allowEmpty" : true,
"showCaption" : true "showCaption" : true
}, { }, {
"codeName" : "formitem1", "caption" : "属性2",
"codeName" : "field2",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -279,15 +302,20 @@ ...@@ -279,15 +302,20 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem1", "name" : "field2",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD2",
"codeName" : "Field2"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "NUMBER", "editorType" : "TEXTBOX",
"name" : "formitem1" "maxLength" : 100,
"name" : "field2"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"colLG" : 12, "colLG" : 8,
"colMD" : 24, "colMD" : 8,
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"allowEmpty" : true, "allowEmpty" : true,
...@@ -306,7 +334,8 @@ ...@@ -306,7 +334,8 @@
"detailType" : "TABPAGE", "detailType" : "TABPAGE",
"name" : "tabpage2", "name" : "tabpage2",
"getPSDEFormDetails" : [ { "getPSDEFormDetails" : [ {
"codeName" : "formitem3", "caption" : "属性3",
"codeName" : "field3",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -314,11 +343,16 @@ ...@@ -314,11 +343,16 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem3", "name" : "field3",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD3",
"codeName" : "Field3"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "PASSWORD", "editorType" : "TEXTBOX",
"name" : "formitem3" "maxLength" : 100,
"name" : "field3"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : -1,
...@@ -327,7 +361,8 @@ ...@@ -327,7 +361,8 @@
"allowEmpty" : true, "allowEmpty" : true,
"showCaption" : true "showCaption" : true
}, { }, {
"codeName" : "formitem2", "caption" : "属性4",
"codeName" : "field4",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -335,11 +370,16 @@ ...@@ -335,11 +370,16 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem2", "name" : "field4",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD4",
"codeName" : "Field4"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "TEXTBOX", "editorType" : "TEXTBOX",
"name" : "formitem2" "maxLength" : 100,
"name" : "field4"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : -1,
...@@ -349,6 +389,8 @@ ...@@ -349,6 +389,8 @@
"showCaption" : true "showCaption" : true
} ], } ],
"getPSLayout" : { "getPSLayout" : {
"align" : "center",
"dir" : "row",
"layout" : "FLEX" "layout" : "FLEX"
}, },
"infoGroupMode" : false, "infoGroupMode" : false,
......
...@@ -1079,17 +1079,33 @@ ...@@ -1079,17 +1079,33 @@
"codeName" : "Type" "codeName" : "Type"
} }
}, { }, {
"id" : "formitem", "id" : "field",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD",
"codeName" : "Field"
}
}, { }, {
"id" : "formitem1", "id" : "field2",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD2",
"codeName" : "Field2"
}
}, { }, {
"id" : "formitem3", "id" : "field3",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD3",
"codeName" : "Field3"
}
}, { }, {
"id" : "formitem2", "id" : "field4",
"dataType" : 25 "dataType" : 25,
"getPSAppDEField" : {
"name" : "FIELD4",
"codeName" : "Field4"
}
}, { }, {
"id" : "createman", "id" : "createman",
"dataType" : 25, "dataType" : 25,
...@@ -1235,7 +1251,8 @@ ...@@ -1235,7 +1251,8 @@
"detailType" : "TABPAGE", "detailType" : "TABPAGE",
"name" : "tabpage1", "name" : "tabpage1",
"getPSDEFormDetails" : [ { "getPSDEFormDetails" : [ {
"codeName" : "formitem", "caption" : "属性",
"codeName" : "field",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -1243,21 +1260,27 @@ ...@@ -1243,21 +1260,27 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem", "name" : "field",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD",
"codeName" : "Field"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "TEXTBOX", "editorType" : "TEXTBOX",
"name" : "formitem" "maxLength" : 100,
"name" : "field"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"colLG" : 12, "colLG" : 8,
"colMD" : 24, "colMD" : 8,
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"allowEmpty" : true, "allowEmpty" : true,
"showCaption" : true "showCaption" : true
}, { }, {
"codeName" : "formitem1", "caption" : "属性2",
"codeName" : "field2",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -1265,15 +1288,20 @@ ...@@ -1265,15 +1288,20 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem1", "name" : "field2",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD2",
"codeName" : "Field2"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "NUMBER", "editorType" : "TEXTBOX",
"name" : "formitem1" "maxLength" : 100,
"name" : "field2"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"colLG" : 12, "colLG" : 8,
"colMD" : 24, "colMD" : 8,
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"allowEmpty" : true, "allowEmpty" : true,
...@@ -1292,7 +1320,8 @@ ...@@ -1292,7 +1320,8 @@
"detailType" : "TABPAGE", "detailType" : "TABPAGE",
"name" : "tabpage2", "name" : "tabpage2",
"getPSDEFormDetails" : [ { "getPSDEFormDetails" : [ {
"codeName" : "formitem3", "caption" : "属性3",
"codeName" : "field3",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -1300,11 +1329,16 @@ ...@@ -1300,11 +1329,16 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem3", "name" : "field3",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD3",
"codeName" : "Field3"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "PASSWORD", "editorType" : "TEXTBOX",
"name" : "formitem3" "maxLength" : 100,
"name" : "field3"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : -1,
...@@ -1313,7 +1347,8 @@ ...@@ -1313,7 +1347,8 @@
"allowEmpty" : true, "allowEmpty" : true,
"showCaption" : true "showCaption" : true
}, { }, {
"codeName" : "formitem2", "caption" : "属性4",
"codeName" : "field4",
"dataType" : 25, "dataType" : 25,
"detailStyle" : "DEFAULT", "detailStyle" : "DEFAULT",
"detailType" : "FORMITEM", "detailType" : "FORMITEM",
...@@ -1321,11 +1356,16 @@ ...@@ -1321,11 +1356,16 @@
"ignoreInput" : 0, "ignoreInput" : 0,
"labelPos" : "LEFT", "labelPos" : "LEFT",
"labelWidth" : 130, "labelWidth" : 130,
"name" : "formitem2", "name" : "field4",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "FIELD4",
"codeName" : "Field4"
},
"getPSEditor" : { "getPSEditor" : {
"editorType" : "TEXTBOX", "editorType" : "TEXTBOX",
"name" : "formitem2" "maxLength" : 100,
"name" : "field4"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : -1,
...@@ -1335,6 +1375,8 @@ ...@@ -1335,6 +1375,8 @@
"showCaption" : true "showCaption" : true
} ], } ],
"getPSLayout" : { "getPSLayout" : {
"align" : "center",
"dir" : "row",
"layout" : "FLEX" "layout" : "FLEX"
}, },
"infoGroupMode" : false, "infoGroupMode" : false,
......
...@@ -8621,6 +8621,30 @@ ...@@ -8621,6 +8621,30 @@
"name" : "TYPE", "name" : "TYPE",
"stdDataType" : 25, "stdDataType" : 25,
"stringLength" : 100 "stringLength" : 100
}, {
"codeName" : "Field",
"logicName" : "属性",
"name" : "FIELD",
"stdDataType" : 25,
"stringLength" : 100
}, {
"codeName" : "Field2",
"logicName" : "属性2",
"name" : "FIELD2",
"stdDataType" : 25,
"stringLength" : 100
}, {
"codeName" : "Field3",
"logicName" : "属性3",
"name" : "FIELD3",
"stdDataType" : 25,
"stringLength" : 100
}, {
"codeName" : "Field4",
"logicName" : "属性4",
"name" : "FIELD4",
"stdDataType" : 25,
"stringLength" : 100
} ], } ],
"getAllPSAppDEMethodDTOs" : [ { "getAllPSAppDEMethodDTOs" : [ {
"codeName" : "BookDTO", "codeName" : "BookDTO",
...@@ -8688,6 +8712,54 @@ ...@@ -8688,6 +8712,54 @@
"sourceType" : "DEFIELD", "sourceType" : "DEFIELD",
"stdDataType" : 25, "stdDataType" : 25,
"type" : "SIMPLE" "type" : "SIMPLE"
}, {
"codeName" : "Field",
"logicName" : "属性",
"name" : "Field",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD",
"codeName" : "Field"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "Field2",
"logicName" : "属性2",
"name" : "Field2",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD2",
"codeName" : "Field2"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "Field3",
"logicName" : "属性3",
"name" : "Field3",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD3",
"codeName" : "Field3"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "Field4",
"logicName" : "属性4",
"name" : "Field4",
"orderValue" : 1000,
"getPSAppDEField" : {
"name" : "FIELD4",
"codeName" : "Field4"
},
"sourceType" : "DEFIELD",
"stdDataType" : 25,
"type" : "SIMPLE"
}, { }, {
"codeName" : "OrgId", "codeName" : "OrgId",
"logicName" : "组织机构标识", "logicName" : "组织机构标识",
......
...@@ -35,6 +35,34 @@ ...@@ -35,6 +35,34 @@
"name" : "DEPTID", "name" : "DEPTID",
"stdDataType" : 25, "stdDataType" : 25,
"nullable" : true "nullable" : true
}, {
"codeName" : "FIELD",
"length" : 100,
"logicName" : "属性",
"name" : "FIELD",
"stdDataType" : 25,
"nullable" : true
}, {
"codeName" : "FIELD2",
"length" : 100,
"logicName" : "属性2",
"name" : "FIELD2",
"stdDataType" : 25,
"nullable" : true
}, {
"codeName" : "FIELD3",
"length" : 100,
"logicName" : "属性3",
"name" : "FIELD3",
"stdDataType" : 25,
"nullable" : true
}, {
"codeName" : "FIELD4",
"length" : 100,
"logicName" : "属性4",
"name" : "FIELD4",
"stdDataType" : 25,
"nullable" : true
}, { }, {
"codeName" : "ORGID", "codeName" : "ORGID",
"length" : 60, "length" : 60,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册