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
62c2f016
Commit
62c2f016
authored
May 13, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
e94ef759
1840d291
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
19 deletions
+11
-19
ServiceHGSC001.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
+4
-4
ServiceHGSC001C.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC001C.java
+1
-1
ServiceHGSC001D.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC001D.java
+1
-1
ServiceHGSC001U.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC001U.java
+1
-1
HGSC001C.js
src/main/webapp/HG/SC/HGSC001C.js
+2
-6
HGSC001U.js
src/main/webapp/HG/SC/HGSC001U.js
+2
-6
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
View file @
62c2f016
...
@@ -34,7 +34,7 @@ public class ServiceHGSC001 extends ServiceBase {
...
@@ -34,7 +34,7 @@ public class ServiceHGSC001 extends ServiceBase {
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGSC001
.
QUERY
,
new
HGSC001
());
inInfo
=
super
.
query
(
inInfo
,
HGSC001
.
QUERY
,
new
HGSC001
());
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
@@ -46,7 +46,7 @@ public class ServiceHGSC001 extends ServiceBase {
...
@@ -46,7 +46,7 @@ public class ServiceHGSC001 extends ServiceBase {
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGSC001
.
QUERY
,
new
HGSC001
());
inInfo
=
super
.
query
(
inInfo
,
HGSC001
.
QUERY
,
new
HGSC001
());
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
...
@@ -60,7 +60,7 @@ public class ServiceHGSC001 extends ServiceBase {
...
@@ -60,7 +60,7 @@ public class ServiceHGSC001 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 销售单号
// 销售单号
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
"id"
);
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
HGSC001
.
FIELD_id
);
DaoUtils
.
update
(
HGSC001
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
DaoUtils
.
update
(
HGSC001
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
HGSCTools
.
THGSC001A
.
deleteByProIds
(
ids
);
HGSCTools
.
THGSC001A
.
deleteByProIds
(
ids
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
...
@@ -91,7 +91,7 @@ public class ServiceHGSC001 extends ServiceBase {
...
@@ -91,7 +91,7 @@ public class ServiceHGSC001 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 销售单号
// 销售单号
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
"id"
);
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
HGSC001
.
FIELD_id
);
DaoUtils
.
update
(
HGSC001
.
BATCH_COMMIT
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
DaoUtils
.
update
(
HGSC001
.
BATCH_COMMIT
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001C.java
View file @
62c2f016
...
@@ -35,7 +35,7 @@ public class ServiceHGSC001C extends ServiceBase {
...
@@ -35,7 +35,7 @@ public class ServiceHGSC001C extends ServiceBase {
EiInfoUtils
.
addBlock
(
inInfo
,
EiConstant
.
resultBlock
,
new
ArrayList
(){{
add
(
hgsc001
);}},
HGSC001
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
EiConstant
.
resultBlock
,
new
ArrayList
(){{
add
(
hgsc001
);}},
HGSC001
.
class
);
inInfo
.
addBlock
(
CommonConstant
.
Field
.
DETAIL
).
addBlockMeta
(
new
HGSC001A
().
eiMetadata
);
inInfo
.
addBlock
(
CommonConstant
.
Field
.
DETAIL
).
addBlockMeta
(
new
HGSC001A
().
eiMetadata
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001D.java
View file @
62c2f016
...
@@ -36,7 +36,7 @@ public class ServiceHGSC001D extends ServiceBase {
...
@@ -36,7 +36,7 @@ public class ServiceHGSC001D extends ServiceBase {
Long
.
valueOf
(
String
.
valueOf
(
resultMap
.
get
(
HGSC001
.
FIELD_id
))));
Long
.
valueOf
(
String
.
valueOf
(
resultMap
.
get
(
HGSC001
.
FIELD_id
))));
EiInfoUtils
.
addBlock
(
inInfo
,
CommonConstant
.
Field
.
DETAIL
,
hgsc001AList
,
HGSC001A
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
CommonConstant
.
Field
.
DETAIL
,
hgsc001AList
,
HGSC001A
.
class
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001U.java
View file @
62c2f016
...
@@ -38,7 +38,7 @@ public class ServiceHGSC001U extends ServiceBase {
...
@@ -38,7 +38,7 @@ public class ServiceHGSC001U extends ServiceBase {
Long
.
valueOf
(
String
.
valueOf
(
resultMap
.
get
(
HGSC001
.
FIELD_id
))));
Long
.
valueOf
(
String
.
valueOf
(
resultMap
.
get
(
HGSC001
.
FIELD_id
))));
EiInfoUtils
.
addBlock
(
inInfo
,
CommonConstant
.
Field
.
DETAIL
,
hgsc001AList
,
HGSC001A
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
CommonConstant
.
Field
.
DETAIL
,
hgsc001AList
,
HGSC001A
.
class
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
...
...
src/main/webapp/HG/SC/HGSC001C.js
View file @
62c2f016
...
@@ -112,13 +112,9 @@ $(function () {
...
@@ -112,13 +112,9 @@ $(function () {
$
(
"#btn_save"
).
on
(
"click"
,
function
(){
$
(
"#btn_save"
).
on
(
"click"
,
function
(){
JSUtils
.
confirm
(
"确定对数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGrid
(
"detail"
,
"HGSC001"
,
"save"
,
{
isAlldata
:
true
,
onSuccessCallback
:
save
Callback
});
JSUtils
.
submitGrid
(
"detail"
,
"HGSC001"
,
"save"
,
{
isAlldata
:
true
,
onSuccessCallback
:
parent
.
window
Callback
});
}
}
});
});
});
});
var
saveCallback
=
function
(
ei
){
if
(
ei
.
getStatus
()
>=
0
)
{
parent
.
JSColorbox
.
close
();
}
}
});
});
src/main/webapp/HG/SC/HGSC001U.js
View file @
62c2f016
...
@@ -112,13 +112,9 @@ $(function () {
...
@@ -112,13 +112,9 @@ $(function () {
$
(
"#btn_save"
).
on
(
"click"
,
function
(){
$
(
"#btn_save"
).
on
(
"click"
,
function
(){
JSUtils
.
confirm
(
"确定对数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGrid
(
"detail"
,
"HGSC001"
,
"save"
,
{
isAlldata
:
true
,
onSuccessCallback
:
save
Callback
});
JSUtils
.
submitGrid
(
"detail"
,
"HGSC001"
,
"save"
,
{
isAlldata
:
true
,
onSuccessCallback
:
parent
.
window
Callback
});
}
}
});
});
});
});
var
saveCallback
=
function
(
ei
){
if
(
ei
.
getStatus
()
>=
0
)
{
parent
.
JSColorbox
.
close
();
}
}
});
});
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