rpt5010_four_month.lwm 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
             select to_number(to_char(sysdate, 'YYYYMM')) value_code,
       to_char(sysdate, 'YYYY') || '年' || to_char(sysdate, 'MM') || '月' value_name
  from dual
union
select to_number(to_char(add_months(sysdate, -1), 'YYYYMM')) value_code,
       to_char(add_months(sysdate, -1), 'YYYY') || '年' ||
       to_char(add_months(sysdate, -1), 'MM') || '月' value_name
  from dual
14 15 16 17 18 19 20 21 22 23
--union
--select to_number(to_char(add_months(sysdate, -2), 'YYYYMM')) value_code,
 --      to_char(add_months(sysdate, -2), 'YYYY') || '年' ||
--       to_char(add_months(sysdate, -2), 'MM') || '月' value_name
--  from dual
--union
--select to_number(to_char(add_months(sysdate, -3), 'YYYYMM')) value_code,
--       to_char(add_months(sysdate, -3), 'YYYY') || '年' ||
 --      to_char(add_months(sysdate, -3), 'MM') || '月' value_name
 -- from dual
24 25 26 27 28 29 30
order by value_code desc
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:data-filters><![CDATA[
    ]]></bm:data-filters>
</bm:model>