import { IPSAppDEACMode } from '../../app/dataentity/ipsapp-deacmode'; import { IPSAppDEDataSet } from '../../app/dataentity/ipsapp-dedata-set'; import { IPSAppDataEntity } from '../../app/dataentity/ipsapp-data-entity'; import { IPSAppView } from '../../app/view/ipsapp-view'; import { IPSAutoComplete } from './ipsauto-complete'; import { IPSPickerEditor } from './ipspicker-editor'; import { PSValueItemEditorImpl } from './psvalue-item-editor-impl'; import { IPSUIActionGroup } from '../../view/ipsuiaction-group'; export class PSPickerEditorImpl extends PSValueItemEditorImpl implements IPSPickerEditor, IPSAutoComplete { get aCMinChars(): number { return this.M.aCMinChars != null ? this.M.aCMinChars : 0; } get contextJOString(): string { return this.M.contextJOString; } get handlerType(): string { return this.M.handlerType; } get itemParamJO(): IModel { return this.M.itemParamJO; } protected psappdeacmode: IPSAppDEACMode | null = null; getPSAppDEACMode(): IPSAppDEACMode | null { if (this.psappdeacmode != null) return this.psappdeacmode; const value = this.M.getPSAppDEACMode; if (value == null) { return null; } const ipsappdataentity = this.getPSAppDataEntity(); if (ipsappdataentity != null) { this.psappdeacmode = ipsappdataentity.findPSAppDEACMode(value); } return this.psappdeacmode; } get psAppDEACMode(): IPSAppDEACMode | null { return this.getPSAppDEACMode(); } getPSAppDEACModeMust(): IPSAppDEACMode { const value = this.getPSAppDEACMode(); if (value == null) { throw new Error('未指定应用实体自填模式对象'); } return value; } protected psappdedataset: IPSAppDEDataSet | null = null; getPSAppDEDataSet(): IPSAppDEDataSet | null { if (this.psappdedataset != null) return this.psappdedataset; const value = this.M.getPSAppDEDataSet; if (value == null) { return null; } const ipsappdataentity = this.getPSAppDataEntity(); if (ipsappdataentity != null) { this.psappdedataset = ipsappdataentity.findPSAppDEDataSet(value); } return this.psappdedataset; } get psAppDEDataSet(): IPSAppDEDataSet | null { return this.getPSAppDEDataSet(); } getPSAppDEDataSetMust(): IPSAppDEDataSet { const value = this.getPSAppDEDataSet(); if (value == null) { throw new Error('未指定应用实体结果集对象'); } return value; } protected psappdataentity: IPSAppDataEntity | null = null; getPSAppDataEntity(): IPSAppDataEntity | null { if (this.psappdataentity != null) return this.psappdataentity; const value = this.M.getPSAppDataEntity; if (value == null) { return null; } this.psappdataentity = this.getPSModel4('app.dataentity.IPSAppDataEntity', value, 'getPSAppDataEntity') as IPSAppDataEntity; return this.psappdataentity; } get psAppDataEntity(): IPSAppDataEntity | null { return this.getPSAppDataEntity(); } getPSAppDataEntityMust(): IPSAppDataEntity { const value = this.getPSAppDataEntity(); if (value == null) { throw new Error('未指定应用实体对象'); } return value; } protected psuiactiongroup: IPSUIActionGroup | null = null; getPSUIActionGroup(): IPSUIActionGroup | null { if (this.psuiactiongroup != null) return this.psuiactiongroup; const value = this.M.getPSUIActionGroup; if (value == null) { return null; } this.psuiactiongroup = this.getPSModel4('view.IPSUIActionGroup', value, 'getPSUIActionGroup') as IPSUIActionGroup; return this.psuiactiongroup; } get psUIActionGroup(): IPSUIActionGroup | null { return this.getPSUIActionGroup(); } getPSUIActionGroupMust(): IPSUIActionGroup { const value = this.getPSUIActionGroup(); if (value == null) { throw new Error('未指定相关界面行为组'); } return value; } get paramJOString(): string { return this.M.paramJOString; } protected pickuppsappview: IPSAppView | null = null; getPickupPSAppView(): IPSAppView | null { if (this.pickuppsappview != null) return this.pickuppsappview; const value = this.M.getPickupPSAppView; if (value == null) { return null; } this.pickuppsappview = this.getPSModel4('app.view.IPSAppView', value, 'getPickupPSAppView') as IPSAppView; return this.pickuppsappview; } get pickupPSAppView(): IPSAppView | null { return this.getPickupPSAppView(); } getPickupPSAppViewMust(): IPSAppView { const value = this.getPickupPSAppView(); if (value == null) { throw new Error('未指定选择视图'); } return value; } get enableAC(): boolean { return this.M.enableAC; } get enablePickupView(): boolean { return this.M.enablePickupView; } get forceSelection(): boolean { return this.M.forceSelection; } get showTrigger(): boolean { return this.M.showTrigger; } get cls(): string { return 'PSPickerEditorImpl'; } instanceof(cls: string): boolean { if (cls == 'control.IPSAjaxEditor' || cls == 'control.IPSNavigateParamContainer' || cls == 'control.editor.IPSAutoComplete' || cls == 'control.editor.IPSPickerEditor') return true; return super.instanceof(cls); } }