app-reportpanel-service.ts 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
import { IPSDEReportPanel } from '@ibiz/dynamic-model-api';
import { ControlServiceBase, DataServiceHelp } from 'ibiz-core';


/**
 * 表格部件服务对象
 *
 * @export
 * @class AppReportPanelService
 */
export class AppReportPanelService extends ControlServiceBase {


    /**
    * 表格实例对象
    *
    * @memberof AppReportPanelService
    */
    public declare controlInstance: IPSDEReportPanel;

    /**
     * 数据服务对象
     *
     * @type {any}
     * @memberof AppReportPanelService
     */
    public appEntityService!: any;

    /**
     * Creates an instance of AppReportPanelService.
     * 
     * @param {*} [opts={}]
     * @memberof AppReportPanelService
     */
    constructor(opts: any = {}, context?: any, args?: any) {
        super(opts, context, args);
        this.initServiceParam(opts);
    }

    /**
     * 初始化服务参数
     *
     * @type {boolean}
     * @memberof AppReportPanelService
     */
    public async initServiceParam(opts: any) {
        this.controlInstance = opts;
        if (this.appDeCodeName) {
            this.appEntityService = await DataServiceHelp.getInstance().getService(this.controlInstance?.getPSAppDataEntity(), { context: this.context });
        }
        // this.model = new AppReportPanelModel(opts);
    }


}