zj_wfl_instance_query.lview 4.56 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<?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=&apos;ZJ_WFL_WORKFLOW_STATUS&apos; and v.code_value in (&apos;1&apos;,&apos;10&apos;,&apos;-1&apos;,&apos;-1000&apos;)" 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>