Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
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
platform
hg-smart
Commits
b8941a6f
Commit
b8941a6f
authored
Jun 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-21 扣款单附件删除功能修复
parent
c74b46b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
ServiceHGCW999.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW999.java
+7
-7
HGCW999.js
src/main/webapp/HG/CW/HGCW999.js
+7
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW999.java
View file @
b8941a6f
...
...
@@ -137,11 +137,11 @@ public class ServiceHGCW999 extends ServiceEPBase {
* @return
*/
@OperationLogAnnotation
(
operModul
=
"附件清单"
,
operType
=
"删除"
,
operDesc
=
"物料清单-附件清单A-删除操作"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
EiInfo
eiInfo
=
new
EiInfo
();
try
{
Long
matId
=
null
;
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
"detail2"
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW999
fSc002A
=
new
HGCW999
();
fSc002A
.
fromMap
(
resultRows
.
get
(
i
));
...
...
@@ -149,13 +149,13 @@ public class ServiceHGCW999 extends ServiceEPBase {
this
.
deleteEntity
(
fSc002A
);
}
List
<
HGCW999
>
hgcw999List
=
HGCWTools
.
HgCw999
.
queryByBiz
(
matId
,
"HT"
);
eiInfo
.
addBlock
(
"detail2"
).
addRows
(
hgcw999List
);
ei
Info
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
ei
Info
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addRows
(
hgcw999List
);
in
Info
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
in
Info
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
ei
Info
,
e
,
"删除失败"
);
LogUtils
.
setDetailMsg
(
in
Info
,
e
,
"删除失败"
);
}
return
ei
Info
;
return
in
Info
;
}
/**
...
...
src/main/webapp/HG/CW/HGCW999.js
View file @
b8941a6f
...
...
@@ -90,7 +90,13 @@ function deleteFunc() {
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
删除
\"
操作?"
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGCW999"
,
"delete"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HGCW999"
,
"delete"
,
true
,
function
(
e
)
{
var
status
=
e
.
getStatus
();
if
(
status
!==
-
1
)
{
resultGrid
.
dataSource
.
page
(
1
);
}
});
}
})
}
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