<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: likun  
    $Date: 2011-8-18 下午03:25:19 
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
           select t1.instance_id, t1.workflow_id, t1.workflow_code, t1.current_seq
      from zj_wfl_workflow_instance_v t1,csh_transaction_wfl t2
     #WHERE_CLAUSE#
     and t1.instance_id = t2.wfl_instance_id
   order by t1.instance_id desc

	  ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="instance_id" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="false"/>
        <bm:field name="workflow_id" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="false"/>
        <bm:field name="workflow_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="80" forDisplay="true" forQuery="true" />
        <bm:field name="current_seq" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="false"/>
    </bm:fields>
</bm:model>
