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
321ac87f
Commit
321ac87f
authored
May 14, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-14 设备台账详情
parent
a818f806
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
16 deletions
+35
-16
DdynamicEnum.java
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
+1
-1
HGSC002.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC002.xml
+6
-6
ServiceHGSJ002A.java
...java/com/baosight/hggp/hg/sj/service/ServiceHGSJ002A.java
+2
-2
ServiceHGSJ003.java
.../java/com/baosight/hggp/hg/sj/service/ServiceHGSJ003.java
+7
-5
HGSB001.js
src/main/webapp/HG/SB/HGSB001.js
+18
-0
HGSB001.jsp
src/main/webapp/HG/SB/HGSB001.jsp
+1
-2
No files found.
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
View file @
321ac87f
...
@@ -192,7 +192,7 @@ public enum DdynamicEnum {
...
@@ -192,7 +192,7 @@ public enum DdynamicEnum {
GROUP_CODE_BOX_BLOCK_ID
(
"groupCodeBox_block_id"
,
"orgEname"
,
"orgCname"
,
"factoryCode"
,
"factoryName"
,
"companyCode"
,
"companyName"
,
"HGSB001.queryGroupCodeBox"
,
GROUP_CODE_BOX_BLOCK_ID
(
"groupCodeBox_block_id"
,
"orgEname"
,
"orgCname"
,
"factoryCode"
,
"factoryName"
,
"companyCode"
,
"companyName"
,
"HGSB001.queryGroupCodeBox"
,
new
HashMap
<
String
,
Object
>(){{
new
HashMap
<
String
,
Object
>(){{
put
(
HGSB001
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
put
(
HGSB001
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
put
(
HGSB001
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
//
put(HGSB001.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0);
put
(
"orgTypes"
,
new
String
[]{
OrgTypeEnum
.
COMPANY
.
getCode
(),
OrgTypeEnum
.
FACTORY
.
getCode
()});
put
(
"orgTypes"
,
new
String
[]{
OrgTypeEnum
.
COMPANY
.
getCode
(),
OrgTypeEnum
.
FACTORY
.
getCode
()});
}}
}}
),
),
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC002.xml
View file @
321ac87f
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
company_code = #companyCode#
company_code = #companyCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
company_name = ('%$companyName
#
$')
company_name = ('%$companyName$')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
dep_code = #depCode#
dep_code = #depCode#
...
@@ -47,19 +47,19 @@
...
@@ -47,19 +47,19 @@
proj_code = #projCode#
proj_code = #projCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
proj_name = ('%$projName
#
$')
proj_name = ('%$projName$')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personDepName"
>
<isNotEmpty
prepend=
" AND "
property=
"personDepName"
>
person_dep_name = ('%$personDepName
#
$')
person_dep_name = ('%$personDepName$')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personName"
>
<isNotEmpty
prepend=
" AND "
property=
"personName"
>
person_name = ('%$personName
#
$')
person_name = ('%$personName$')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personPhone"
>
<isNotEmpty
prepend=
" AND "
property=
"personPhone"
>
person_phone = ('%$personPhone
#
$')
person_phone = ('%$personPhone$')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personIdCard"
>
<isNotEmpty
prepend=
" AND "
property=
"personIdCard"
>
person_id_card = ('%$personIdCard
#
$')
person_id_card = ('%$personIdCard$')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
account_code = #accountCode#
account_code = #accountCode#
...
...
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ002A.java
View file @
321ac87f
...
@@ -35,8 +35,8 @@ public class ServiceHGSJ002A extends ServiceEPBase {
...
@@ -35,8 +35,8 @@ public class ServiceHGSJ002A extends ServiceEPBase {
//inInfo.setCell(EiConstant.queryBlock,ACConstants.ROW_CODE_0,HGPZ002A.FIELD_FLOW_CODE,inInfo.get("inqu_status-0-flowCode"));
//inInfo.setCell(EiConstant.queryBlock,ACConstants.ROW_CODE_0,HGPZ002A.FIELD_FLOW_CODE,inInfo.get("inqu_status-0-flowCode"));
String
factoryCode
=
inInfo
.
getCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ002A
.
FIELD_FACTORY_CODE
).
toString
();
String
factoryCode
=
inInfo
.
getCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ002A
.
FIELD_FACTORY_CODE
).
toString
();
inInfo
=
super
.
query
(
inInfo
,
HGSJ002A
.
QUERY
,
new
HGSJ002A
());
inInfo
=
super
.
query
(
inInfo
,
HGSJ002A
.
QUERY
,
new
HGSJ002A
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
),
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(),
new
HashMap
<
String
,
Object
>(){{
new
HashMap
<
String
,
Object
>(){{
//put(HGSJ002A.FIELD_FACTORY_CODE,factoryCode);
//put(HGSJ002A.FIELD_FACTORY_CODE,factoryCode);
put
(
HGSJ002A
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);}}
put
(
HGSJ002A
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);}}
...
...
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ003.java
View file @
321ac87f
...
@@ -34,10 +34,7 @@ public class ServiceHGSJ003 extends ServiceEPBase {
...
@@ -34,10 +34,7 @@ public class ServiceHGSJ003 extends ServiceEPBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGSJ003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
=
super
.
query
(
inInfo
,
HGSJ003
.
QUERY
,
new
HGSJ003
());
inInfo
=
super
.
query
(
inInfo
,
HGSJ003
.
QUERY
,
new
HGSJ003
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
put
(
HGSJ003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);}}
);
return
inInfo
;
return
inInfo
;
}
}
...
@@ -83,15 +80,20 @@ public class ServiceHGSJ003 extends ServiceEPBase {
...
@@ -83,15 +80,20 @@ public class ServiceHGSJ003 extends ServiceEPBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGSJ003
hgsj003
=
new
HGSJ003
();
HGSJ003
hgsj003
=
new
HGSJ003
();
hgsj003
.
fromMap
(
resultRows
.
get
(
i
));
hgsj003
.
fromMap
(
resultRows
.
get
(
i
));
if
(
hgsj003
.
getId
()
==
null
||
hgsj003
.
getId
()
==
0
)
{
// 设置规格
// 设置规格
if
(
StringUtils
.
isBlank
(
hgsj003
.
getSpec
()))
{
if
(
StringUtils
.
isBlank
(
hgsj003
.
getSpec
()))
{
hgsj003
.
setSpec
(
HGSJTools
.
Hgsj003
.
jointSpec
(
hgsj003
.
getLength
(),
hgsj003
.
getWidth
(),
hgsj003
.
getThick
()));
hgsj003
.
setSpec
(
HGSJTools
.
Hgsj003
.
jointSpec
(
hgsj003
.
getLength
(),
hgsj003
.
getWidth
(),
hgsj003
.
getThick
()));
}
}
// 去除空格
// 去除空格
hgsj003
.
setSpec
(
StringUtils
.
trimToEmpty
(
hgsj003
.
getSpec
()));
hgsj003
.
setSpec
(
StringUtils
.
trimToEmpty
(
hgsj003
.
getSpec
()));
if
(
hgsj003
.
getId
()
==
null
||
hgsj003
.
getId
()
==
0
)
{
this
.
add
(
hgsj003
);
this
.
add
(
hgsj003
);
}
else
{
}
else
{
// 设置规格
hgsj003
.
setSpec
(
HGSJTools
.
Hgsj003
.
jointSpec
(
hgsj003
.
getLength
(),
hgsj003
.
getWidth
(),
hgsj003
.
getThick
()));
// 去除空格
hgsj003
.
setSpec
(
StringUtils
.
trimToEmpty
(
hgsj003
.
getSpec
()));
this
.
modify
(
hgsj003
);
this
.
modify
(
hgsj003
);
}
}
}
}
...
...
src/main/webapp/HG/SB/HGSB001.js
View file @
321ac87f
...
@@ -33,6 +33,10 @@ $(function () {
...
@@ -33,6 +33,10 @@ $(function () {
let
auditStatus
=
item
.
deviceStatus
;
let
auditStatus
=
item
.
deviceStatus
;
let
template
=
''
;
let
template
=
''
;
if
(
item
.
companyCode
&&
item
.
groupCode
)
{
if
(
item
.
companyCode
&&
item
.
groupCode
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showDetail('
+
item
.
id
+
',
\'
'
+
item
.
companyCode
+
'
\'
,
\'
'
+
item
.
companyName
+
'
\'
,
\'
'
+
item
.
groupCode
+
'
\'
,
\'
'
+
item
.
groupName
+
'
\'
,'
+
'
\'
'
+
item
.
deviceType
+
'
\'
,
\'
'
+
item
.
deviceName
+
'
\'
)" >台账详情</a>'
;
if
(
auditStatus
==
0
)
{
if
(
auditStatus
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >启用</a>'
;
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >启用</a>'
;
...
@@ -302,6 +306,20 @@ function updateStatus(id,deviceStatus) {
...
@@ -302,6 +306,20 @@ function updateStatus(id,deviceStatus) {
);
);
}
}
/**
* 显示详情
*/
function
showDetail
(
id
,
companyCode
,
companyName
,
groupCode
,
groupName
,
deviceType
,
deviceName
)
{
let
url
=
"HGSB001A?methodName=initLoad&inqu_status-0-companyCode="
+
companyCode
+
"&inqu_status-0-companyName="
+
companyName
+
"&inqu_status-0-groupCode="
+
groupCode
+
"&inqu_status-0-groupName="
+
groupName
+
"&inqu_status-0-deviceType="
+
deviceType
+
"&inqu_status-0-deviceName="
+
deviceName
;
//window.open(url);
JSColorbox
.
open
({
href
:
url
,
title
:
"<div style='text-align: center;'>设备台账详情</div>"
,
width
:
"80%"
,
height
:
"80%"
,
});
}
function
loadChange
(
grid
,
e
,
field
)
{
function
loadChange
(
grid
,
e
,
field
)
{
var
cell_label
=
field
,
that
=
grid
;
var
cell_label
=
field
,
that
=
grid
;
// locked 表示是否为固定列
// locked 表示是否为固定列
...
...
src/main/webapp/HG/SB/HGSB001.jsp
View file @
321ac87f
...
@@ -42,8 +42,7 @@
...
@@ -42,8 +42,7 @@
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<%--blockName="factoryCodeBox_block_id"--%>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="160" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="80" align="center"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
textField="textField" valueField="valueField"
...
...
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