<#-- ctrl document  -->
<view_${ctrl.getName()} 
    viewState={this.viewState} 
    name='${ctrl.name}' 
    ref='${ctrl.name}' 
    <#if ctrl.getHookEventNames()??>
    <#list ctrl.getHookEventNames() as eventName>
    on-${eventName?lower_case}={($event: any) => this.${ctrl.name}_${eventName?lower_case}($event)} 
    </#list>
    </#if>
    on-closeview={($event: any) => this.closeView($event)}>
    <#if view.hasPSControl('form')>
    ${P.getCtrlCode('form', 'CONTROL.html').code}
    </#if>
</view_${ctrl.getName()}>