Commit 7aba95f8 authored by 38823's avatar 38823

佣金报表开发

parent d2d9197d
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hlcm_monthly_report_pkg.query_hlcm_monthly_report_job(
p_user_id =>${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hlcm_monthly_report_pkg.insert_hlcm_monthly_report_job(
p_month =>${@month},
p_user_id =>${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
var override_queryfields = [ var override_queryfields = [
{
name:'inception_of_lease_from',
queryexpression:"t1.inception_of_lease between to_date(${@inception_of_lease_from},'yyyy-mm-dd') and nvl(to_date(${@inception_of_lease_to},'yyyy-mm-dd'),t1.inception_of_lease)"
},
{
name:'inception_of_lease_to',
queryexpression:"t1.inception_of_lease between nvl(to_date(${@inception_of_lease_from},'yyyy-mm-dd'),t1.inception_of_lease) and to_date(${@inception_of_lease_to},'yyyy-mm-dd')"
}
]; ];
var add_datafilters=[{ var add_datafilters=[{
name:'commission_month', name:'commission_month',
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:view> <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"/>
<script><![CDATA[ <script><![CDATA[
$L.onReady(function(){ $L.onReady(function(){
debugger; debugger;
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUERY', 'con_contract'); var headers_ds = $('${/parameter/@layout_code}_F_QUERY__ds');
var re_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'con_contract'); var record = headers_ds.getCurrentRecord();
var record = $(ds_id).getCurrentRecord(); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_monthly_report_temp');
var baseDate = record.get('base_date'); $(ds_id).setQueryParameter('commission_month',record.get('base_date'));
if(baseDate == undefined){ $(ds_id).query();
$(re_ds_id).setQueryParameter('commission_month','1');
$(re_ds_id).query();
}
}); });
//查询时调用(grid,table,gridBox) //更新全量数据
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
debugger; debugger;
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUERY', 'con_contract'); var headers_ds = $('${/parameter/@layout_code}_F_QUERY__ds');
var re_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_RESULT', 'con_contract'); var record = headers_ds.getAt(0);
var record = $(ds_id).getCurrentRecord(); if (Ext.isEmpty(record.get('base_date'))) {
var baseDate = record.get('base_date'); $L.showMessage('提示', '基准日期必输,不能为空');
if(baseDate == undefined){
$L.showMessage('提示','请先选择基准日期!');
return; return;
}else {
$(re_ds_id).setQueryParameter('commission_month',baseDate);
$(re_ds_id).query();
} }
Leaf.showConfirm('${l:HLS.PROMPT}', '<font color="red">该任务需执行约30分钟,请耐心等待!</font></br></br><font color="red">【特别注意】任务发起后30分钟内请勿重复点击</font>', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
Leaf.request({
url: $('con1380_query_id').getUrl(),
para: {
month: record.get('base_date')
},
success: function (res) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({
msg: '发起成功!',
duration: 2000
});
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, null, 300, 150);
}; };
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
......
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