import { IPSAppDEACModeDataItem } from '../../app/dataentity/ipsapp-deacmode-data-item'; import { IPSAppDEField } from '../../app/dataentity/ipsapp-defield'; import { PSDataItemImpl } from '../../data/psdata-item-impl'; import { IPSDEACModeDataItem } from './ipsdeacmode-data-item'; export class PSDEACModeDataItemImpl extends PSDataItemImpl implements IPSDEACModeDataItem, IPSAppDEACModeDataItem { get format(): string { return this.M.format; } protected psappdefield: IPSAppDEField | null = null; getPSAppDEField(): IPSAppDEField | null { if (this.psappdefield != null) return this.psappdefield; const value = this.M.getPSAppDEField; if (value == null) { return null; } this.psappdefield = this.getPSModel4('app.dataentity.IPSAppDEField', value, 'getPSAppDEField') as IPSAppDEField; return this.psappdefield; } get psAppDEField(): IPSAppDEField | null { return this.getPSAppDEField(); } getPSAppDEFieldMust(): IPSAppDEField { const value = this.getPSAppDEField(); if (value == null) { throw new Error('未指定应用实体属性'); } return value; } get scriptCode(): string { return this.M.scriptCode; } get customCode(): boolean { return this.M.customCode != null ? this.M.customCode : false; } get cls(): string { return 'PSDEACModeDataItemImpl'; } instanceof(cls: string): boolean { if (cls == 'app.dataentity.IPSAppDEACModeDataItem' || cls == 'dataentity.ac.IPSDEACModeDataItem') return true; return super.instanceof(cls); } }