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
e2583865
Commit
e2583865
authored
Jun 28, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同校验提交
parent
591b0662
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletions
+16
-1
ServiceHGCG002.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG002.java
+7
-0
HGKC002.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC002.java
+1
-1
HGCG002.js
src/main/webapp/HG/CG/HGCG002.js
+8
-0
No files found.
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG002.java
View file @
e2583865
...
@@ -23,6 +23,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
...
@@ -23,6 +23,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -111,6 +112,8 @@ public class ServiceHGCG002 extends ServiceBase {
...
@@ -111,6 +112,8 @@ public class ServiceHGCG002 extends ServiceBase {
HGCG002
dbCg002
=
dbCg002AMap
.
get
(
contractNo
);
HGCG002
dbCg002
=
dbCg002AMap
.
get
(
contractNo
);
AssertUtils
.
isNull
(
dbCg002
,
String
.
format
(
"合同[%s]不存在"
,
contractNo
));
AssertUtils
.
isNull
(
dbCg002
,
String
.
format
(
"合同[%s]不存在"
,
contractNo
));
AssertUtils
.
isNotEquals
(
HGConstant
.
CgPlanStatus
.
S_0
,
dbCg002
.
getStatus
(),
String
.
format
(
"合同[%s]状态不是\"待审核\",不允许操作"
,
contractNo
));
AssertUtils
.
isNotEquals
(
HGConstant
.
CgPlanStatus
.
S_0
,
dbCg002
.
getStatus
(),
String
.
format
(
"合同[%s]状态不是\"待审核\",不允许操作"
,
contractNo
));
AssertUtils
.
isTrue
(
fCg002
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
String
.
format
(
"合同[%s]单价小于等于0,不允许操作"
,
contractNo
));
AssertUtils
.
isTrue
(
fCg002
.
getTaxRate
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
String
.
format
(
"合同[%s]税率小于等于0,不允许操作"
,
contractNo
));
}
}
}
}
...
@@ -221,6 +224,10 @@ public class ServiceHGCG002 extends ServiceBase {
...
@@ -221,6 +224,10 @@ public class ServiceHGCG002 extends ServiceBase {
AssertUtils
.
isNull
(
dbCg002
,
String
.
format
(
"合同[%s]不存在"
,
contractNo
));
AssertUtils
.
isNull
(
dbCg002
,
String
.
format
(
"合同[%s]不存在"
,
contractNo
));
AssertUtils
.
isNotEquals
(
HGConstant
.
CgContractStatus
.
S_0
,
dbCg002
.
getStatus
(),
AssertUtils
.
isNotEquals
(
HGConstant
.
CgContractStatus
.
S_0
,
dbCg002
.
getStatus
(),
String
.
format
(
"合同[%s]状态不是\"待审核\",不允许操作"
,
contractNo
));
String
.
format
(
"合同[%s]状态不是\"待审核\",不允许操作"
,
contractNo
));
AssertUtils
.
isTrue
(
dbCg002
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
String
.
format
(
"合同[%s]单价小于等于0,不允许操作"
,
contractNo
));
AssertUtils
.
isTrue
(
dbCg002
.
getTaxRate
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
,
String
.
format
(
"合同[%s]税率小于等于0,不允许操作"
,
contractNo
));
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC002.java
View file @
e2583865
...
@@ -11,7 +11,7 @@ import java.util.Map;
...
@@ -11,7 +11,7 @@ import java.util.Map;
/**
/**
* Project: <br>
* Project: <br>
* Title:Hgkc002.java <br>
* Title:Hgkc002.java
(已弃用)
<br>
* Description: <br>
* Description: <br>
*
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
...
...
src/main/webapp/HG/CG/HGCG002.js
View file @
e2583865
...
@@ -197,6 +197,14 @@ let save = function () {
...
@@ -197,6 +197,14 @@ let save = function () {
message
(
"勾选的第"
+
(
i
+
1
)
+
"行采购员不能为空"
);
message
(
"勾选的第"
+
(
i
+
1
)
+
"行采购员不能为空"
);
return
;
return
;
}
}
if
(
!
isBlank
(
rows
[
i
][
'price'
])
&&
!
isNumber
(
rows
[
i
][
'price'
])){
message
(
"勾选的第"
+
(
i
+
1
)
+
"行单价不能小于0"
);
return
;
}
if
(
!
isBlank
(
rows
[
i
][
'taxRate'
])
&&
!
isNumber
(
rows
[
i
][
'taxRate'
])){
message
(
"勾选的第"
+
(
i
+
1
)
+
"行税率不能为空"
);
return
;
}
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
...
...
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