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
566e9512
Commit
566e9512
authored
Jun 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-21 更改收款单bug
parent
0d57255f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
12 deletions
+23
-12
ServiceHGCW012.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW012.java
+1
-0
ServiceHGCW016.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW016.java
+6
-6
HGCW012.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
+11
-0
HGCW016.js
src/main/webapp/HG/CW/HGCW016.js
+1
-2
HGCW016.jsp
src/main/webapp/HG/CW/HGCW016.jsp
+1
-1
HGCW016A.js
src/main/webapp/HG/CW/HGCW016A.js
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012.java
View file @
566e9512
...
@@ -133,6 +133,7 @@ public class ServiceHGCW012 extends ServiceBase {
...
@@ -133,6 +133,7 @@ public class ServiceHGCW012 extends ServiceBase {
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"收款单"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
@OperationLogAnnotation
(
operModul
=
"收款单"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW016.java
View file @
566e9512
...
@@ -41,7 +41,7 @@ public class ServiceHGCW016 extends ServiceBase {
...
@@ -41,7 +41,7 @@ public class ServiceHGCW016 extends ServiceBase {
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"
收
款单"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"
付
款单"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
),
null
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
),
null
,
false
);
...
@@ -58,7 +58,7 @@ public class ServiceHGCW016 extends ServiceBase {
...
@@ -58,7 +58,7 @@ public class ServiceHGCW016 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"
收
款单"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@OperationLogAnnotation
(
operModul
=
"
付
款单"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
...
@@ -75,7 +75,7 @@ public class ServiceHGCW016 extends ServiceBase {
...
@@ -75,7 +75,7 @@ public class ServiceHGCW016 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"
收
款单"
,
operType
=
"保存"
,
operDesc
=
"保存"
)
@OperationLogAnnotation
(
operModul
=
"
付
款单"
,
operType
=
"保存"
,
operDesc
=
"保存"
)
public
EiInfo
save
(
EiInfo
inInfo
)
{
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -132,7 +132,7 @@ public class ServiceHGCW016 extends ServiceBase {
...
@@ -132,7 +132,7 @@ public class ServiceHGCW016 extends ServiceBase {
* @param inInfo
* @param inInfo
* @return
* @return
*/
*/
@OperationLogAnnotation
(
operModul
=
"
收
款单"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
@OperationLogAnnotation
(
operModul
=
"
付
款单"
,
operType
=
"删除"
,
operDesc
=
"删除"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -158,7 +158,7 @@ public class ServiceHGCW016 extends ServiceBase {
...
@@ -158,7 +158,7 @@ public class ServiceHGCW016 extends ServiceBase {
return
inInfo
;
return
inInfo
;
}
}
@OperationLogAnnotation
(
operModul
=
"
收款单"
,
operType
=
"插入"
,
operDesc
=
"生成收
款单"
)
@OperationLogAnnotation
(
operModul
=
"
付款单"
,
operType
=
"插入"
,
operDesc
=
"生成付
款单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
@@ -238,7 +238,7 @@ public class ServiceHGCW016 extends ServiceBase {
...
@@ -238,7 +238,7 @@ public class ServiceHGCW016 extends ServiceBase {
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"生成
收
款单失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"生成
付
款单失败"
);
}
}
return
inInfo
;
return
inInfo
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
566e9512
...
@@ -290,4 +290,15 @@
...
@@ -290,4 +290,15 @@
ID = #id#
ID = #id#
</update>
</update>
<update
id=
"updateDeductionAmount"
>
UPDATE ${hggpSchema}.HGCW012
SET
REMAINING_AMOUNT = #remainingAmount#,
<!-- 剩余开票/收票金额 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#
<!-- 记录修改时间 -->
WHERE
ID = #id#
</update>
</sqlMap>
</sqlMap>
src/main/webapp/HG/CW/HGCW016.js
View file @
566e9512
...
@@ -82,7 +82,6 @@ function choiceFunc() {
...
@@ -82,7 +82,6 @@ function choiceFunc() {
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGCW016A?methodName=initLoad&inqu_status-0-hiddenConditions=1"
+
href
:
"HGCW016A?methodName=initLoad&inqu_status-0-hiddenConditions=1"
+
"&inqu_status-0-billState=2"
+
"&inqu_status-0-billState=2"
+
"&inqu_status-0-reviewStatus=3"
+
"&inqu_status-0-mainId="
+
mainId
+
"&inqu_status-0-mainId="
+
mainId
+
"&efParentFormEname=HGCW016"
,
"&efParentFormEname=HGCW016"
,
title
:
"<div style='text-align: center;'>采购收票</div>"
,
title
:
"<div style='text-align: center;'>采购收票</div>"
,
...
@@ -112,7 +111,7 @@ function updateFunc() {
...
@@ -112,7 +111,7 @@ function updateFunc() {
}
}
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGCW016B?methodName=initLoad&inqu_status-0-mainId="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW016"
,
href
:
"HGCW016B?methodName=initLoad&inqu_status-0-mainId="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW016"
,
title
:
"<div style='text-align: center;'>
收
款清单</div>"
,
title
:
"<div style='text-align: center;'>
付
款清单</div>"
,
width
:
"90%"
,
width
:
"90%"
,
height
:
"90%"
,
height
:
"90%"
,
callbackName
:
windowCallback
callbackName
:
windowCallback
...
...
src/main/webapp/HG/CW/HGCW016.jsp
View file @
566e9512
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
<head>
</head>
</head>
<EF:EFPage
title=
"
收
款单"
>
<EF:EFPage
title=
"
付
款单"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
...
...
src/main/webapp/HG/CW/HGCW016A.js
View file @
566e9512
...
@@ -55,15 +55,15 @@ function btnSaveFunc() {
...
@@ -55,15 +55,15 @@ function btnSaveFunc() {
let
thisAmount
=
rows
[
i
][
'thisAmount'
];
let
thisAmount
=
rows
[
i
][
'thisAmount'
];
let
remainingAmount
=
rows
[
i
][
'remainingAmount'
];
let
remainingAmount
=
rows
[
i
][
'remainingAmount'
];
if
(
!
isNumber
(
thisAmount
)
&&
!
isPositiveNumber
(
thisAmount
))
{
if
(
!
isNumber
(
thisAmount
)
&&
!
isPositiveNumber
(
thisAmount
))
{
message
(
"勾选的第"
+
(
i
+
1
)
+
"行本次
收
款金额必须是大于0的数字"
);
message
(
"勾选的第"
+
(
i
+
1
)
+
"行本次
付
款金额必须是大于0的数字"
);
return
;
return
;
}
}
if
(
parseFloat
(
thisAmount
)
>
parseFloat
(
remainingAmount
))
{
if
(
parseFloat
(
thisAmount
)
>
parseFloat
(
remainingAmount
))
{
message
(
"第"
+
(
i
+
1
)
+
"行本次
收
款金额不能大于剩余开票金额"
);
message
(
"第"
+
(
i
+
1
)
+
"行本次
付
款金额不能大于剩余开票金额"
);
return
;
return
;
}
}
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据生成
收
款单吗? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据生成
付
款单吗? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGCW016"
,
"select"
,
JSUtils
.
submitGridsData
(
"result"
,
"HGCW016"
,
"select"
,
true
,
function
(
e
)
{
true
,
function
(
e
)
{
...
...
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