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
49a395a5
Commit
49a395a5
authored
May 11, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目立项修改BUGFIX;
parent
7a21ed77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
ServiceHGSC001.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
+10
-1
HGSC001.js
src/main/webapp/HG/SC/HGSC001.js
+4
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
View file @
49a395a5
...
@@ -131,7 +131,16 @@ public class ServiceHGSC001 extends ServiceBase {
...
@@ -131,7 +131,16 @@ public class ServiceHGSC001 extends ServiceBase {
*
*
* @param hgsc001
* @param hgsc001
*/
*/
private
void
checkSaveData
(
HGSC001
hgsc001
)
{
private
void
checkSaveData
(
HGSC001
hgsc001
)
throws
InstantiationException
,
IllegalAccessException
{
if
(
Objects
.
nonNull
(
hgsc001
.
getId
())&&
hgsc001
.
getId
()>
0
){
EiInfo
inInfo
=
new
EiInfo
();
EiInfoUtils
.
addBlock
(
inInfo
,
EiConstant
.
queryBlock
,
new
HGSC001
(){{
setId
(
hgsc001
.
getId
());}},
HGSC001
.
class
);
inInfo
=
super
.
query
(
inInfo
,
HGSC001
.
QUERY
,
new
HGSC001
());
Map
resultMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
HGSC001
oldHgsc001
=
new
HGSC001
();
oldHgsc001
.
fromMap
(
resultMap
);
AssertUtils
.
isTrue
(
oldHgsc001
.
getApprovalStatus
()==
CommonConstant
.
YesNo
.
NO_0
,
"项目已提交不可修改!"
);
}
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getOrgId
(),
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getOrgId
(),
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
hgsc001
.
getCompanyCode
(),
"请选择公司!"
);
AssertUtils
.
isEmpty
(
hgsc001
.
getCompanyCode
(),
"请选择公司!"
);
...
...
src/main/webapp/HG/SC/HGSC001.js
View file @
49a395a5
...
@@ -95,6 +95,10 @@ function update() {
...
@@ -95,6 +95,10 @@ function update() {
message
(
"请选择一条需要修改的数据"
);
message
(
"请选择一条需要修改的数据"
);
return
;
return
;
}
}
if
(
row
[
0
].
approvalStatus
>
0
){
message
(
"项目已提交不可修改!"
);
return
;
}
let
id
=
rows
[
0
].
id
;
let
id
=
rows
[
0
].
id
;
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGSC001U??methodName=initLoad&inqu_status-0-id="
+
id
+
"&efParentFormEname=HGSC001"
,
href
:
"HGSC001U??methodName=initLoad&inqu_status-0-id="
+
id
+
"&efParentFormEname=HGSC001"
,
...
...
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