<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: hty $Date: 2018/6/5 17:18 $Revision: 1.0 --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view template="default" package="leaf.ui.std"> <script><![CDATA[ function project_number_template(rowdata) { return "<p style='margin: 0;padding: 0px;'>"+rowdata.data.project_number+"</p><p style='margin: 0px;padding: 0px;'>"+rowdata.data.project_name+"</p>"; } ]]></script> <a:dataSets> <a:dataSet id="widget_project_ds" pageSize="5" autoQuery="true" model="prj.PRJ501.prj_project_v"> <a:fields> </a:fields> </a:dataSet> </a:dataSets> <a:hapGrid id="widget_project_ds_grid" title="项目信息" bindTarget="widget_project_ds" titleImg="resources/images/home_page/search.png"> <a:columns> <a:column name="project_number" prompt="项目编号/名称" width="150" template="project_number_template"/> <a:column name="bp_name" prompt="承租人" width="200"/> <a:column name="document_type_desc" prompt="项目类型"/> <a:column name="project_status_desc" prompt="项目状态" /> </a:columns> </a:hapGrid> </a:view> </a:screen>