Commit 5c45ca00 authored by 陆正友's avatar 陆正友

农行修改--job改按钮功能

parent 39c2d498
...@@ -2,6 +2,15 @@ ...@@ -2,6 +2,15 @@
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM hlcm_ele_abc_bank_slip_bacth b
WHERE b.start_date = TO_DATE('${:@parameter_code}', 'YYYY-MM-DD')
and b.slip_batch_id = nvl(${@batch_id},0)
ORDER BY b.slip_batch_id desc
]]></bm:query-sql>
</bm:operation>
<bm:operation name="insert"> <bm:operation name="insert">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
url="${/request/@context_path}/modules/csh/CSH1400/csh_abc_import_save.lsc"/> url="${/request/@context_path}/modules/csh/CSH1400/csh_abc_import_save.lsc"/>
<a:link id="csh_abc_import_transaction_link" <a:link id="csh_abc_import_transaction_link"
url="${/request/@context_path}/modules/csh/CSH1400/csh_abc_import_transaction.lsc"/> url="${/request/@context_path}/modules/csh/CSH1400/csh_abc_import_transaction.lsc"/>
<a:link id="ocr_query_link_id"
url="${/request/@context_path}/modules/efile/EFILE1100/efile_doc_import_new.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(function () { Leaf.onReady(function () {
//只开放按钮权限给债权内勤 //只开放按钮权限给债权内勤
...@@ -22,10 +24,12 @@ ...@@ -22,10 +24,12 @@
$('agricultural_bank_save_id').enable(); // 启用按钮 $('agricultural_bank_save_id').enable(); // 启用按钮
$('agricultural_bank_import_id').enable(); // 启用按钮 $('agricultural_bank_import_id').enable(); // 启用按钮
$('agricultural_bank_submit_id').enable(); // 启用按钮 $('agricultural_bank_submit_id').enable(); // 启用按钮
$('query_ocr').enable(); // 启用按钮
} else { } else {
$('agricultural_bank_save_id').disable(); // 禁用按钮 $('agricultural_bank_save_id').disable(); // 禁用按钮
$('agricultural_bank_import_id').disable(); // 禁用按钮 $('agricultural_bank_import_id').disable(); // 禁用按钮
$('agricultural_bank_submit_id').disable(); // 禁用按钮 $('agricultural_bank_submit_id').disable(); // 禁用按钮
$('query_ocr').disable(); // 禁用按钮
} }
}); });
...@@ -227,6 +231,30 @@ ...@@ -227,6 +231,30 @@
}); });
} }
//获取OCR数据
function query_ocr(){
Leaf.Masker.mask(Ext.getBody(), '获取OCR数据中');
var ocr_query_link ='ocr_query_link_id';
Leaf.request({
url: $(ocr_query_link ).getUrl(),
success: function(res) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({
msg:'获取数据'+res.result.page_number+'页'+'共'+res.result.total+'条',
duration: 10000
})
$("OcrQueryDs").query();
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
]]></script> ]]></script>
...@@ -285,6 +313,7 @@ ...@@ -285,6 +313,7 @@
<a:screenTitle/> <a:screenTitle/>
<a:gridButton id="Ocr_Bank_Query" click="agricultural_bank_query" text="HLS.QUERY"/> <a:gridButton id="Ocr_Bank_Query" click="agricultural_bank_query" text="HLS.QUERY"/>
<a:gridButton id="agricultural_bank_save_id" click="agricultural_bank_save" text="保存"/> <a:gridButton id="agricultural_bank_save_id" click="agricultural_bank_save" text="保存"/>
<a:gridButton id="query_ocr" click="query_ocr" text="获取数据"/>
<a:gridButton id="agricultural_bank_import_id" click="agricultural_bank_import" text="收款导入"/> <a:gridButton id="agricultural_bank_import_id" click="agricultural_bank_import" text="收款导入"/>
<a:gridButton id="agricultural_bank_submit_id" click="agricultural_bank_submit" text="提交"/> <a:gridButton id="agricultural_bank_submit_id" click="agricultural_bank_submit" text="提交"/>
</a:screenTopToolbar> </a:screenTopToolbar>
......
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