Commit 08b75ec2 authored by 38823's avatar 38823

佣金报表调整

parent addf6abb
......@@ -6,6 +6,7 @@
SELECT
to_char(sysdate,'yyyy') as year,
to_char(sysdate,'mm') as current_month,
to_char(add_months(sysdate,-1),'yyyy-mm') as last_month,
sysdate as current_period
FROM
dual
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="cont.CON780.get_current_date" rootPath="default_date_path"/>
</a:init-procedure>
<a:view>
<a:link id="con1380_query_id" model="cont.CON1380.con1380_result_query_job" modelaction="execute"/>
<a:link id="query_job" model="cont.CON1380.con1380_result_query_job" modelaction="update"/>
......@@ -7,9 +10,11 @@
$L.onReady(function(){
var headers_ds = $('${/parameter/@layout_code}_F_QUERY__ds');
var record = headers_ds.getCurrentRecord();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_monthly_report_temp');
$(ds_id).setQueryParameter('commission_month',record.get('base_date'));
$(ds_id).query();
record.set('base_date','${/model/default_date_path/record/@last_month}');
record.set('base_date_n','${/model/default_date_path/record/@last_month}');
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_monthly_report_temp');
// $(ds_id).setQueryParameter('commission_month',record.get('base_date'));
// $(ds_id).query();
});
//更新全量数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment