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
2ed3b447
Commit
2ed3b447
authored
Aug 28, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-28 合同管理甲方和乙方修复筛选功能
parent
7f862860
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
18 deletions
+86
-18
ServiceHGCW002A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
+65
-1
HGCW002A.js
src/main/webapp/HG/CW/HGCW002A.js
+15
-15
HGCW002B.js
src/main/webapp/HG/CW/HGCW002B.js
+6
-2
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
View file @
2ed3b447
...
...
@@ -112,7 +112,39 @@ public class ServiceHGCW002A extends ServiceBase {
});
}
}
else
if
(
contractCategory
.
equals
(
"2"
))
{
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
().
stream
().
filter
(
c
->
c
.
getCompanyCode
().
equals
(
partyA
)).
collect
(
Collectors
.
toList
());;
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
().
stream
().
filter
(
c
->
c
.
getCompanyCode
().
equals
(
partyA
)).
collect
(
Collectors
.
toList
());
if
(
params
.
size
()>
0
){
Map
<
String
,
String
>
params1
=
params
.
get
(
0
);
Map
<
String
,
String
>
params2
=
params
.
size
()>
1
?
params
.
get
(
1
):
null
;
String
username
=
params1
.
get
(
"username"
);
String
usercode
=
params1
.
get
(
"usercode"
);
String
username1
=
params2
==
null
?
null
:
params2
.
get
(
"username"
);
String
usercode1
=
params2
==
null
?
null
:
params2
.
get
(
"usercode"
);
if
(
StringUtils
.
isNotNull
(
username
)){
switch
(
username1
){
case
"eq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyName
().
equals
(
username
)).
collect
(
Collectors
.
toList
());
break
;
case
"neq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
!
hgpz002
.
getCompanyName
().
equals
(
username
)).
collect
(
Collectors
.
toList
());
break
;
default
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyName
().
contains
(
username
)).
collect
(
Collectors
.
toList
());
}
}
if
(
StringUtils
.
isNotNull
(
usercode
)){
switch
(
usercode1
){
case
"eq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyCode
().
equals
(
usercode
)).
collect
(
Collectors
.
toList
());
break
;
case
"neq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
!
hgpz002
.
getCompanyCode
().
equals
(
usercode
)).
collect
(
Collectors
.
toList
());
break
;
default
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyCode
().
contains
(
usercode
)).
collect
(
Collectors
.
toList
());
}
}
}
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
c
.
getCompanyCode
());
...
...
@@ -141,6 +173,38 @@ public class ServiceHGCW002A extends ServiceBase {
String
partyB
=
inInfo
.
getString
(
"partyB"
);
if
(
contractCategory
.
equals
(
"1"
))
{
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
().
stream
().
filter
(
c
->
c
.
getCompanyCode
().
equals
(
partyB
)).
collect
(
Collectors
.
toList
());
if
(
params
.
size
()>
0
){
Map
<
String
,
String
>
params1
=
params
.
get
(
0
);
Map
<
String
,
String
>
params2
=
params
.
size
()>
1
?
params
.
get
(
1
):
null
;
String
username
=
params1
.
get
(
"username"
);
String
usercode
=
params1
.
get
(
"usercode"
);
String
username1
=
params2
==
null
?
null
:
params2
.
get
(
"username"
);
String
usercode1
=
params2
==
null
?
null
:
params2
.
get
(
"usercode"
);
if
(
StringUtils
.
isNotNull
(
username
)){
switch
(
username1
){
case
"eq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyName
().
equals
(
username
)).
collect
(
Collectors
.
toList
());
break
;
case
"neq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
!
hgpz002
.
getCompanyName
().
equals
(
username
)).
collect
(
Collectors
.
toList
());
break
;
default
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyName
().
contains
(
username
)).
collect
(
Collectors
.
toList
());
}
}
if
(
StringUtils
.
isNotNull
(
usercode
)){
switch
(
usercode1
){
case
"eq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyCode
().
equals
(
usercode
)).
collect
(
Collectors
.
toList
());
break
;
case
"neq"
:
list
=
list
.
stream
().
filter
(
hgpz002
->
!
hgpz002
.
getCompanyCode
().
equals
(
usercode
)).
collect
(
Collectors
.
toList
());
break
;
default
:
list
=
list
.
stream
().
filter
(
hgpz002
->
hgpz002
.
getCompanyCode
().
contains
(
usercode
)).
collect
(
Collectors
.
toList
());
}
}
}
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
c
.
getCompanyCode
());
...
...
src/main/webapp/HG/CW/HGCW002A.js
View file @
2ed3b447
...
...
@@ -141,18 +141,18 @@ $(function() {
if
(
!
isBlank
(
valueField
)){
if
(
projectCodeBox
[
i
][
'valueField'
]
===
valueField
){
if
(
contractType
==
"2"
){
$
(
"#result-0-partyA"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyA"
)
,
projectCodeBox
[
i
][
'param4Field'
]);
$
(
"#result-0-partyA"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param4Field'
]
);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyA"
)
,
projectCodeBox
[
i
][
'param
3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param
4Field'
]);
}
else
{
$
(
"#result-0-partyB"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyB"
)
,
projectCodeBox
[
i
][
'param4Field'
]);
$
(
"#result-0-partyB"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param4Field'
]
);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyB"
)
,
projectCodeBox
[
i
][
'param
3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param
4Field'
]);
}
var
planStartDate
=
$
(
"#result-0-planStartDate"
).
data
(
"kendoDatePicker"
);
planStartDate
.
value
(
projectCodeBox
[
i
][
'param5Field'
],
"d"
);
var
planEndDate
=
$
(
"#result-0-planEndDate"
).
data
(
"kendoDatePicker"
);
planEndDate
.
value
(
projectCodeBox
[
i
][
'param6Field'
],
"d"
);
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAName"
),
projectCodeBox
[
i
][
'param7Field'
])
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAPhoneNumber"
),
projectCodeBox
[
i
][
'param8Field'
])
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAName"
),
projectCodeBox
[
i
][
'param7Field'
])
;
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAPhoneNumber"
),
projectCodeBox
[
i
][
'param8Field'
])
;
break
;
}
}
...
...
@@ -188,12 +188,12 @@ $(function() {
let
projCode
=
$
(
"#result-0-projCode"
).
val
()
if
(
!
isBlank
(
projCode
)){
if
(
projectCodeBox
[
i
][
'valueField'
]
===
projCode
){
$
(
"#result-0-partyB"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyB"
)
,
projectCodeBox
[
i
][
'param4Field'
]);
$
(
"#result-0-partyB"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param4Field'
]
);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyB"
)
,
projectCodeBox
[
i
][
'param
3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param
4Field'
]);
planStartDate
.
value
(
projectCodeBox
[
i
][
'param5Field'
],
"d"
);
planEndDate
.
value
(
projectCodeBox
[
i
][
'param6Field'
],
"d"
);
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAName"
),
projectCodeBox
[
i
][
'param7Field'
])
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAPhoneNumber"
),
projectCodeBox
[
i
][
'param8Field'
])
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAName"
),
projectCodeBox
[
i
][
'param7Field'
])
;
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAPhoneNumber"
),
projectCodeBox
[
i
][
'param8Field'
])
;
break
;
}
}
...
...
@@ -206,11 +206,11 @@ $(function() {
let
projCode
=
$
(
"#result-0-projCode"
).
val
()
if
(
!
isBlank
(
projCode
)){
if
(
projectCodeBox
[
i
][
'valueField'
]
===
projCode
){
$
(
"#result-0-partyA"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyA"
)
,
projectCodeBox
[
i
][
'param4Field'
]);
$
(
"#result-0-partyA"
).
val
(
projectCodeBox
[
i
][
'param3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param4Field'
]
);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyA"
)
,
projectCodeBox
[
i
][
'param
3Field'
]
+
"-"
+
projectCodeBox
[
i
][
'param
4Field'
]);
planStartDate
.
value
(
projectCodeBox
[
i
][
'param5Field'
],
"d"
);
planEndDate
.
value
(
projectCodeBox
[
i
][
'param6Field'
],
"d"
);
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAName"
),
projectCodeBox
[
i
][
'param7Field'
])
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAName"
),
projectCodeBox
[
i
][
'param7Field'
])
;
IPLAT
.
EFInput
.
value
(
$
(
"#result-0-partyAPhoneNumber"
),
projectCodeBox
[
i
][
'param8Field'
])
}
}
...
...
@@ -284,7 +284,7 @@ $(function() {
}
var
info
=
new
EiInfo
();
info
.
set
(
"contractCategory"
,
contractCategory
);
info
.
set
(
"partyA"
,
$
(
"#result-0-partyA"
).
val
())
info
.
set
(
"partyA"
,
$
(
"#result-0-partyA"
).
val
()
.
split
(
"-"
)[
0
]
)
info
.
set
(
"inqu_status-0-status"
,
1
);
return
info
;
},
...
...
@@ -326,7 +326,7 @@ $(function() {
}
var
info
=
new
EiInfo
();
info
.
set
(
"contractCategory"
,
contractCategory
);
info
.
set
(
"partyB"
,
$
(
"#result-0-partyB"
).
val
());
info
.
set
(
"partyB"
,
$
(
"#result-0-partyB"
).
val
()
.
split
(
"-"
)[
0
]
);
info
.
set
(
"inqu_status-0-status"
,
1
);
return
info
;
},
...
...
src/main/webapp/HG/CW/HGCW002B.js
View file @
2ed3b447
...
...
@@ -235,7 +235,9 @@ $(function() {
e
.
preventDefault
();
}
var
info
=
new
EiInfo
();
info
.
set
(
"contractCategory"
,
contractCategory
)
info
.
set
(
"contractCategory"
,
contractCategory
);
info
.
set
(
"partyA"
,
$
(
"#result-0-partyA"
).
val
().
split
(
"-"
)[
0
])
info
.
set
(
"inqu_status-0-status"
,
1
);
return
info
;
},
/**
...
...
@@ -275,7 +277,9 @@ $(function() {
e
.
preventDefault
();
}
var
info
=
new
EiInfo
();
info
.
set
(
"contractCategory"
,
contractCategory
)
info
.
set
(
"contractCategory"
,
contractCategory
);
info
.
set
(
"partyB"
,
$
(
"#result-0-partyB"
).
val
().
split
(
"-"
)[
0
]);
info
.
set
(
"inqu_status-0-status"
,
1
);
return
info
;
},
/**
...
...
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