%DE_PKGPATH%_zh_CN.ts.ftl 2.5 KB
Newer Older
ibizdev's avatar
ibizdev committed
1 2 3 4
<#ibiztemplate>
TARGET=PSAPPDATAENTITY
</#ibiztemplate>
<#assign langrestype = 'ZH_CN'/>
KK's avatar
KK committed
5
<#ibizinclude>../../@MACRO/FUNC.ts</#ibizinclude>
ibizdev's avatar
ibizdev committed
6
export default {
KK's avatar
KK committed
7
<#--  实体属性输出  -->
KK's avatar
KK committed
8
<#if item.getAllPSAppDEFields()??>
KK's avatar
KK committed
9 10
  fields: {
  <#list item.getAllPSAppDEFields() as field>
KK's avatar
KK committed
11
    ${field.getPSDEField().getCodeName()?uncap_first}: "<@getLogicNameLanguage field.getPSDEField() langrestype />",
KK's avatar
KK committed
12 13 14
  </#list>
  },
</#if>
ibizdev's avatar
ibizdev committed
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
<#--  实体视图输出  -->
<#if item.getAllPSAppViews()??>
	views: {
		<#list item.getAllPSAppViews() as obj>
		${obj.getPSDEViewCodeName()?lower_case}: {
			caption: '<#ibizinclude>../../@MACRO/CAPTIONLANG.tsx</#ibizinclude>',
		},
		</#list>
	},
</#if>
<#--  实体部件输出  -->
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID', 'SEARCHFORM', 'TOOLBAR']>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
	${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
		<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
		details: {
			<#list ctrl.getAllPSDEFormDetails() as obj>
			${obj.name?lower_case}: '<#ibizinclude>../../@MACRO/CAPTIONLANG.tsx</#ibizinclude>', 
			</#list>
		},
		</#if>
KK's avatar
KK committed
40 41 42 43 44 45 46 47 48 49 50
		<#if ctrl.getControlType() == 'TREEVIEW'>
		nodes: {
			<#if ctrl.getPSDETreeNodes()??>
			<#list ctrl.getPSDETreeNodes() as obj>
        <#if obj.getTreeNodeType() == 'STATIC'>
			${obj.getNodeType()?lower_case}: "<@getNameLanguage obj langrestype />",
        </#if>
			</#list>
			</#if>
		},
		</#if>
KK's avatar
KK committed
51 52 53 54 55 56 57 58 59
		<#if ctrl.getControlType() == 'GRID'>
		columns: {
			<#if ctrl.getAllPSDEGridColumns()??>
			<#list ctrl.getAllPSDEGridColumns() as obj>
			${obj.getName()?lower_case}: '<#ibizinclude>../../@MACRO/CAPTIONLANG.tsx</#ibizinclude>',
			</#list>
			</#if>
		},
		</#if>
ibizdev's avatar
ibizdev committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
		<#if ctrl.getControlType() == 'TOOLBAR'>
	    <#if ctrl.getAllPSDEToolbarItems()??>
		<#list ctrl.getAllPSDEToolbarItems() as obj>
		${obj.getName()?lower_case}: {
			caption: '<#ibizinclude>../../@MACRO/CAPTIONLANG.tsx</#ibizinclude>',
			tip: '<#ibizinclude>../../@MACRO/TIPLANG.tsx</#ibizinclude>',
		},
		</#list>
		</#if>
		</#if>
				<#--  部件界面行为  -->
		<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??>
		uiactions: {
			<#list ctrl.getPSUIActions() as obj>
			${obj.getUIActionTag()?lower_case}: '<#ibizinclude>../../@MACRO/CAPTIONLANG.tsx</#ibizinclude>',
			</#list>
		},
		</#if>
	},
</#if>
</#if>
</#list>
</#list>
</#if>
};