<?xml version="1.0" encoding="UTF-8"?> <!--工作流单据查询 --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure> <a:model-query defaultWhereClause="v.code='ZJ_WFL_WORKFLOW_STATUS' and v.code_value in ('1','10','-1','-1000')" model="zjwfl.sys_code_default_value" rootPath="workflow_status_list"/> </a:init-procedure> <a:view> <a:link id="wfl301_history_link" url="${/request/@context_path}/modules/zjwfl/WFL301/zj_wfl_history_detail.lview"/> <script type="text/javascript"><![CDATA[ function wfl301_instance_query() { $('wfl301_instance_result_ds').query(); } function winOpen_approve_history(instance_id) { new Leaf.Window({ id: 'node_approve_history_win', url: $('wfl301_history_link').getUrl(), params: { instance_id: instance_id }, title: '审批记录', width: 900, heigh:600 }); } function render_monitorDs_grid(value, record, name) { return '<a href="javascript:winOpen_approve_history(' + record.get('instance_id') + ');">' + '明细' + '</a>'; } ]]></script> <a:dataSets> <a:dataSet id="instanceStatusDs"> <a:datas dataSource="/model/workflow_status_list"/> </a:dataSet> <a:dataSet id="wfl301_instance_query_ds" autoCreate="true"> <a:fields> <a:field name="instance_status_desc" displayField="code_value_name" options="instanceStatusDs" returnField="instance_status" valueField="code_value"/> <a:field name="workflow_code" lovGridHeight="300" lovHeight="450" lovService="zjwfl.zj_wfl_workflow_lov_company?sub_category=MAIN_PROCESS" lovWidth="480" title="工作流选择"> <a:mapping> <a:map from="workflow_id" to="workflow_id"/> <a:map from="workflow_code" to="workflow_code"/> <a:map from="workflow_desc" to="workflow_desc"/> </a:mapping> </a:field> </a:fields> </a:dataSet> <a:dataSet id="wfl301_instance_result_ds" autoPageSize="true" model="zjwfl.WFL301.wfl_instance_query" queryDataSet="wfl301_instance_query_ds"/> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:gridButton click="wfl301_instance_query" text="HLS.QUERY"/> </a:screenTopToolbar> <a:form column="4" title="查询条件"> <a:textField name="document_info" bindTarget="wfl301_instance_query_ds" prompt="单据信息"/> <a:lov name="workflow_code" bindTarget="wfl301_instance_query_ds" prompt="工作流代码" typeCase="upper"/> <a:textField name="workflow_desc" bindTarget="wfl301_instance_query_ds" prompt="工作流描述"/> <a:comboBox name="instance_status_desc" bindTarget="wfl301_instance_query_ds" prompt="工作流状态"/> </a:form> <a:grid id="wfl301_instance_result_gd" bindTarget="wfl301_instance_result_ds" marginHeight="180" marginWidth="30" navBar="true"> <a:columns> <a:column name="workflow_desc" autoAdjust="false" prompt="工作流名称" showTitle="true" width="150"/> <a:column name="current_node_desc" autoAdjust="false" prompt="当前节点" showTitle="true" width="120"/> <a:column name="approve_user_name" autoAdjust="false" prompt="当前审批人姓名" showTitle="true" width="120"/> <a:column name="document_info" autoAdjust="false" prompt="单据信息" showTitle="true" width="200"/> <a:column name="instance_status_desc" prompt="状态" width="100"/> <a:column name="submitted_by_name" prompt="申请人"/> <a:column name="submit_date" prompt="申请时间" width="130"/> <a:column name="over_date" prompt="结束时间" width="130"/> <a:column name="use_time" prompt="流程历时" width="130"/> <a:column name="approve_history" align="center" prompt="流程明细" renderer="render_monitorDs_grid" width="50"/> </a:columns> </a:grid> </a:screenBody> </a:view> </a:screen>