tdgCol.ftl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <#-- 表单列表当中每一列的处理 -->
  2. <#macro dgcol columns>
  3. <#list columns as po><#rt/>
  4. <t:dgCol title="${po.content}" <#rt/>
  5. field="${po.fieldName}" <#rt/>
  6. <#if po.showType?index_of("datetime")!=-1><#rt/>
  7. formatter="yyyy-MM-dd hh:mm:ss" <#rt/>
  8. <#else><#rt/>
  9. <#if po.showType?index_of("date")!=-1><#rt/>
  10. formatter="yyyy-MM-dd" <#rt/>
  11. </#if><#rt/>
  12. </#if><#rt/>
  13. <#if po.isShowList?if_exists?html =='N'><#rt/>
  14. hidden="true" <#rt/>
  15. <#else><#rt/>
  16. </#if><#rt/>
  17. <#if po.isQuery =='Y'><#rt/>
  18. query="true" <#rt/>
  19. </#if><#rt/>
  20. <#if po.queryMode =='single'><#rt/>
  21. queryMode="single" <#rt/>
  22. <#elseif po.queryMode =='group'><#rt/>
  23. queryMode="group" <#rt/>
  24. </#if><#rt/>
  25. <#if po.dictTable?if_exists?html!=""><#rt/>
  26. dictionary="${po.dictTable},${po.dictField},${po.dictText}" <#rt/>
  27. <#if po.showType=='popup'><#rt/>
  28. popup="true" <#rt/>
  29. </#if><#rt/>
  30. <#else><#rt/>
  31. <#if po.dictTable?if_exists?html=="" && po.dictField?if_exists?html!=""><#rt/>
  32. dictionary="${po.dictField}" <#rt/>
  33. </#if><#rt/>
  34. </#if><#rt/>
  35. <#if po.showType?index_of("image") != -1><#rt/>
  36. image="true" imageSize="50,50" <#rt/>
  37. <#elseif po.showType?index_of("file") != -1><#rt/>
  38. downloadName="附件下载" <#rt/>
  39. </#if><#rt/>
  40. width="${po.fieldLength}"></t:dgCol>
  41. </#list>
  42. </#macro>