MODEL_CONTENT.ts.ftl 2.0 KB
Newer Older
ibizdev's avatar
ibizdev committed
1 2
<#--  表单项  -->
<#if ctrl.getPSDEFormItems()??>
zcdtk's avatar
zcdtk committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
    <#list ctrl.getPSDEFormItems() as dataitem>
            {
                name: '${dataitem.getName()}',
        <#if dataitem.getPSDEField()??>
            <#if ctrl.getControlType() == 'SEARCHFORM'>
                <#if dataitem.getPSDEFSearchMode?? && dataitem.getPSDEFSearchMode()??>
                prop: '${dataitem.getPSDEFSearchMode().getCodeName()?lower_case}', 
                <#else>
                prop: '${dataitem.getPSDEField().getCodeName()?lower_case}',
                </#if>
            <#else>
                prop: '${dataitem.getPSDEField().getCodeName()?lower_case}',
            </#if>
                dataType: '${dataitem.getPSDEField().getDataType()}',
        </#if>
            },
    </#list>
ibizdev's avatar
ibizdev committed
20 21 22
</#if>
<#--  关联主实体的主键  -->
<#if ctrl.getPSAppDataEntity()??>
zcdtk's avatar
zcdtk committed
23 24 25 26 27 28 29 30 31 32 33 34 35
    <#assign appDataEntity = ctrl.getPSAppDataEntity() />
    <#if appDataEntity.isMajor() == false && appDataEntity.getMinorPSAppDERSs()??>
        <#list appDataEntity.getMinorPSAppDERSs() as minorAppDERSs>
            <#if minorAppDERSs.getMajorPSAppDataEntity()??>
            <#assign majorAppDataEntity = minorAppDERSs.getMajorPSAppDataEntity() />
            {
                name: '${majorAppDataEntity.getCodeName()?lower_case}',
                prop: '${majorAppDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}',
                dataType: 'FONTKEY',
            },
            </#if>
        </#list>
    </#if>
ibizdev's avatar
ibizdev committed
36 37 38
</#if>
<#-- 界面主键标识 -->
<#if ctrl.getPSDEFormItems()??>
zcdtk's avatar
zcdtk committed
39 40 41 42 43 44 45 46 47 48 49
    <#list ctrl.getPSDEFormItems() as dataitem>
        <#if dataitem.getPSAppDEField()?? && dataitem.getPSAppDEField().isKeyField() == true>
            <#if !P.exists("importService1", dataitem.getPSAppDEField().getId(), "")>
            {
                name: '${ctrl.getPSAppDataEntity().getCodeName()?lower_case}',
                prop: '${dataitem.getPSDEField().getCodeName()?lower_case}',
                dataType: 'FONTKEY',
            },
            </#if>
        </#if>
    </#list>
ibizdev's avatar
ibizdev committed
50
</#if>