Options
All
  • Public
  • Public/Protected
  • All
Menu

默认常规Entity实体辅助类

Hierarchy

  • SimpleEntity

Index

Constructors

constructor

Properties

Private Readonly _entity

_entity: any

Private Readonly _shortTitle

_shortTitle: string

Methods

getGridConfig

  • getGridConfig(dataStore: any, gridColumns: [], gridButtons: [], config: any): any
  • 获取Entity显示列表的Grid常规默认配置信息

    Parameters

    • dataStore: any

      数据源

    • gridColumns: []

      列数组

    • gridButtons: []

      按钮数组

    • config: any

      getList方法中的config参数

    Returns any

    grid配置对象信息

getRecords

  • getRecords(where: any): any
  • 获取数据Record对象

    Parameters

    • where: any

      getList方法中的where配置

    Returns any

showAdd

  • showAdd(obj: any, addItems: []): ExtPromise
  • 弹出添加窗口

    Parameters

    • obj: any

      按钮对象

    • addItems: []

      添加的字段配置对象数组

    Returns ExtPromise

showDetails

  • showDetails(obj: any, where: any): void
  • 弹窗显示数据详情

    Parameters

    • obj: any

      按钮对象

    • where: any

      getList方法中的where配置

    Returns void

showSelect

  • showSelect(obj: any, title: string, where: any, multi: boolean, config: any, container: any): any
  • 弹窗选择数据

    Parameters

    • obj: any

      按钮对象

    • title: string

      弹窗标题

    • where: any

      getList方法中的where配置

    • multi: boolean

      是否允许多选

    • config: any

      getList方法中的config参数

    • container: any

      配置弹窗的父级容器

    Returns any

showWinList

  • showWinList(obj: any, title: string, where: any, modal: boolean, config: any): void
  • 弹窗显示数据列表

    Parameters

    • obj: any

      按钮对象

    • title: string

      弹窗标题

    • where: any

      getList方法中的where配置

    • modal: boolean

      是否模式窗口

    • config: any

      getList方法中的config参数

    Returns void