Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
94c2f7f0
Commit
94c2f7f0
authored
May 09, 2025
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
农行回单 农行导入新增删除按钮
parent
39ce2c71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
csh_transaction.lwm
...in/webapp/WEB-INF/classes/csh/CSH531N/csh_transaction.lwm
+10
-0
csh_agricultural_bank_check.lview
...app/modules/csh/CSH1400/csh_agricultural_bank_check.lview
+47
-0
No files found.
src/main/webapp/WEB-INF/classes/csh/CSH531N/csh_transaction.lwm
View file @
94c2f7f0
...
@@ -18,6 +18,16 @@
...
@@ -18,6 +18,16 @@
]]>
]]>
</bm:update-sql>
</bm:update-sql>
</bm:operation>
</bm:operation>
<bm:operation
name=
"delete"
>
<bm:update-sql>
<![CDATA[
begin
csh_abc_import_pkg.delete_import_bank(
p_receipt_no=>
${@receipt_no}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:operations>
<bm:fields>
<bm:fields>
<bm:field
name=
"transaction_id"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"TRANSACTION_ID"
<bm:field
name=
"transaction_id"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"TRANSACTION_ID"
...
...
src/main/webapp/modules/csh/CSH1400/csh_agricultural_bank_check.lview
View file @
94c2f7f0
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
model=
"csh.CSH511.query_extra_nam_data"
modelaction=
"update"
/>
model=
"csh.CSH511.query_extra_nam_data"
modelaction=
"update"
/>
<a:link
id=
"get_extra_code_csh_transaction_receipt_data_link_id"
<a:link
id=
"get_extra_code_csh_transaction_receipt_data_link_id"
model=
"csh.CSH511.query_extra_nam_code"
modelaction=
"update"
/>
model=
"csh.CSH511.query_extra_nam_code"
modelaction=
"update"
/>
<a:link
id=
"csh1400_delete_link_id"
model=
"csh.CSH531N.csh_transaction"
modelaction=
"batch_update"
/>
<script
type=
"text/javascript"
>
<![CDATA[
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.onReady(function () {
Leaf.onReady(function () {
//只开放按钮权限给债权内勤
//只开放按钮权限给债权内勤
...
@@ -50,6 +51,49 @@
...
@@ -50,6 +51,49 @@
top.refreshFrame();
top.refreshFrame();
}
}
function batch_delete(){
debugger;
var ds_id = 'AbcBankDs';
var ds = $(ds_id);
var records = ds.getSelected();
if (records.length < 1) {
Leaf.showMessage('${l:PROMPT}', '请选择至少一条记录!');
return;
}
var post_data = [];
for (var i = 0; i < records.length; i++) {
post_data.push({
'receipt_no': records[i].get('receipt_no'),
'_status': 'delete'
});
}
Leaf.showConfirm('提示', '确认删除选中的记录?', function() {
Leaf.request({
url: $('csh1400_delete_link_id').getUrl(),
para: post_data,
success: function () {
var allRecords = ds.getAll();
if(records.length == allRecords.length) {
ds.removeAll();
}else{
for (var i=records.length-1;i>
=0;i--)
{
ds.removeLocal(records[i]);
}
ds.query();
}
}, failure: function () {
},
error: function () {
},
scope: this
});
},function () {
});
}
//查询按钮
//查询按钮
...
@@ -546,6 +590,9 @@
...
@@ -546,6 +590,9 @@
<a:tab
prompt=
"农行导入"
width=
"110"
>
<a:tab
prompt=
"农行导入"
width=
"110"
>
<a:grid
id=
"abc_bank"
bindTarget=
"AbcBankDs"
marginHeight=
"200"
marginWidth=
"80"
<a:grid
id=
"abc_bank"
bindTarget=
"AbcBankDs"
marginHeight=
"200"
marginWidth=
"80"
rowRenderer=
"change_background_color"
navBar=
"true"
>
rowRenderer=
"change_background_color"
navBar=
"true"
>
<a:toolBar>
<a:button
id=
"abc_bank_delete_id"
click=
"batch_delete"
text=
"— 删除"
/>
</a:toolBar>
<a:columns>
<a:columns>
<a:column
name=
"bank_num"
prompt=
"账号"
width=
"150"
align=
"center"
<a:column
name=
"bank_num"
prompt=
"账号"
width=
"150"
align=
"center"
renderer=
"checkOcrRender"
/>
renderer=
"checkOcrRender"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment