    /**
     * ${item.getCaption()}
     *
     * @param {any[]} args
     * @param {*} [params]
     * @param {*} [$event]
     * @param {*} [xData]
     * @memberof ${srfclassname('${view.name}')}
     */
    public ${item.getFullCodeName()}(args: any[], params?: any, $event?: any, xData?: any) {
        <#if item.getFrontPSAppView(view)??>
        <#assign frontview = item.getFrontPSAppView(view)>

        const data: any = { srfparentdata: {} };
        const _this: any = this;
        if (_this.srfparentdata) {
            Object.assign(data.srfparentdata, _this.srfparentdata);
        }
        
        if (args.length === 0) {
            return;
        }
        Object.assign(data, { srfkey: args[0].srfkey });

        <#--  打开模态  -->
        const openPopupModal = (view: any, data: any) => {
            let container: Subject<any> = this.$appmodal.openModal(view, data);
            container.subscribe((result: any) => {
                if (!result || !Object.is(result.ret, 'OK')) {
                    return;
                }
                const _this: any = this;
            });
        }
        const view: any = {
            viewname: '${srffilepath2(frontview.getCodeName())}', 
            height: ${frontview.getHeight()?c}, 
            width: ${frontview.getWidth()?c},  
            title: '${frontview.title}', 
        };
        openPopupModal(view, data);
        </#if>
    }