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
e74a8432
Commit
e74a8432
authored
Jun 06, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-06 优化设备名称下拉显示
parent
f42ec271
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
60 additions
and
40 deletions
+60
-40
HGSB001.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB001.xml
+1
-1
HGSB002.jsp
src/main/webapp/HG/SB/HGSB002.jsp
+8
-9
HGSB002A.js
src/main/webapp/HG/SB/HGSB002A.js
+2
-2
HGSB002A.jsp
src/main/webapp/HG/SB/HGSB002A.jsp
+7
-7
HGSB003.js
src/main/webapp/HG/SB/HGSB003.js
+2
-2
HGSB003.jsp
src/main/webapp/HG/SB/HGSB003.jsp
+8
-9
HGSB004.jsp
src/main/webapp/HG/SB/HGSB004.jsp
+2
-2
HGSB004A.js
src/main/webapp/HG/SB/HGSB004A.js
+2
-2
HGSB005.jsp
src/main/webapp/HG/SB/HGSB005.jsp
+2
-2
HGSB005A.js
src/main/webapp/HG/SB/HGSB005A.js
+2
-2
HGSB006.js
src/main/webapp/HG/SB/HGSB006.js
+12
-1
HGSB007.js
src/main/webapp/HG/SB/HGSB007.js
+12
-1
No files found.
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB001.xml
View file @
e74a8432
...
...
@@ -371,7 +371,7 @@
<select
id=
"queryDeviceCodeBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT distinct
DEVICE_CODE as "deviceCode",
<!-- 设备编码 -->
DEVICE_NAME
as "deviceName",
<!-- 设备名称 -->
CONCAT(DEVICE_NAME,'-',DEVICE_CODE,'-',DEVICE_MODEL)
as "deviceName",
<!-- 设备名称 -->
DEVICE_TYPE as "deviceType",
<!-- 设备类型 -->
COMPANY_CODE as "companyCode",
DEVICE_STATUS as "deviceStatus"
...
...
src/main/webapp/HG/SB/HGSB002.jsp
View file @
e74a8432
...
...
@@ -45,15 +45,14 @@
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFGrid blockId="result" autoDraw="override">
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="160" align="center"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<%--blockName="factoryCodeBox_block_id"--%>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="210" align="center"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="
12
0" required="true"
maxLength="16" readonly="false" width="
20
0" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="company_record_box_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
...
...
@@ -64,13 +63,13 @@
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="group_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="planDate" cname="计划日期" width="1
0
0" enable="true" readonly="false" align="center" editType="date"
<EF:EFColumn ename="planDate" cname="计划日期" width="1
2
0" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="planCode" cname="计划单号" width="120" enable="false" readonly="true" align="center"/>
<EF:EFComboColumn ename="planType" cname="计划类型"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" width="1
0
0" readonly="false" required="true"
maxLength="16" width="1
2
0" readonly="false" required="true"
align="center" filter="contains" sort="true">
<EF:EFCodeOption codeName="hggp.hgsb.planType" />
</EF:EFComboColumn>
...
...
@@ -88,10 +87,10 @@
<EF:EFComboColumn ename="planStatus" cname="审批状态" width="80" align="center" enable="false" required="true" defaultValue="0">
<EF:EFCodeOption codeName="hggp.hgsb.approveStatus"/>
</EF:EFComboColumn>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="1
0
0" readonly="true" required="false"
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="1
2
0" readonly="true" required="false"
enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="1
2
0" readonly="true" required="false"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="1
5
0" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</EF:EFRegion>
...
...
src/main/webapp/HG/SB/HGSB002A.js
View file @
e74a8432
...
...
@@ -58,8 +58,8 @@ $(function () {
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
deviceCodeBox
.
length
;
i
++
)
{
if
(
deviceCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'deviceCode'
])
{
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
return
deviceCodeBox
[
i
][
'textField'
];
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
return
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
;
}
}
return
dataItem
[
"deviceCode"
]
...
...
src/main/webapp/HG/SB/HGSB002A.jsp
View file @
e74a8432
...
...
@@ -34,7 +34,7 @@
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id"
primaryKey="true"
cname="内码" hidden="true"/>
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<EF:EFComboColumn ename="groupCode" cname="设备区域" readonly="true"
columnTemplate="#=textField#" itemTemplate="#=textField#"
...
...
@@ -46,23 +46,23 @@
<EF:EFComboColumn ename="deviceType" cname="设备类型" readonly="true"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" width="
8
0" required="true"
maxLength="16" width="
10
0" required="true"
align="center" filter="contains" sort="true">
<EF:EFCodeOption codeName="hpjx.hpsb.deviceType" />
</EF:EFComboColumn>
<EF:EFComboColumn ename="deviceCode" cname="设备名称" readonly="true"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" width="
1
20" required="true"
maxLength="16" width="
2
20" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="deviceCodeBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="checkItem" cname="检查项" width="1
0
0" enable="true" align="center" required="true"/>
<EF:EFColumn ename="checkDescrip" cname="检查描述" type="textarea" width="
16
0" align="center"/>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="1
0
0" readonly="true" required="false"
<EF:EFColumn ename="checkItem" cname="检查项" width="1
5
0" enable="true" align="center" required="true"/>
<EF:EFColumn ename="checkDescrip" cname="检查描述" type="textarea" width="
20
0" align="center"/>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="1
2
0" readonly="true" required="false"
enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="1
2
0" readonly="true" required="false"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="1
5
0" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</EF:EFRegion>
...
...
src/main/webapp/HG/SB/HGSB003.js
View file @
e74a8432
...
...
@@ -82,8 +82,8 @@ $(function () {
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
deviceCodeBox
.
length
;
i
++
)
{
if
(
deviceCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'deviceCode'
])
{
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
return
deviceCodeBox
[
i
][
'textField'
];
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
];
return
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
;
}
}
return
dataItem
[
"deviceCode"
]
...
...
src/main/webapp/HG/SB/HGSB003.jsp
View file @
e74a8432
...
...
@@ -33,28 +33,27 @@
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="160" align="center"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<%--blockName="factoryCodeBox_block_id"--%>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="220" align="center"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="
12
0" required="true"
maxLength="16" readonly="false" width="
20
0" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="company_record_box_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="applyDate" cname="申请日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="applyCode" cname="申请单号" width="1
0
0" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="applyCode" cname="申请单号" width="1
2
0" enable="false" readonly="true" align="center"/>
<EF:EFComboColumn ename="deviceCode" cname="设备名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="
1
20" required="true"
maxLength="16" readonly="false" width="
2
20" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="deviceCodeBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="checkItem" cname="检查项" width="1
0
0" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="checkItem" cname="检查项" width="1
2
0" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="checkDescrip" cname="检查描述" type="textarea" width="160" align="center"/>
<EF:EFComboColumn ename="applyUserId" cname="申请人" defaultValue="${loginName}"
columnTemplate="#=textField#" itemTemplate="#=textField#"
...
...
@@ -67,9 +66,9 @@
<EF:EFCodeOption codeName="hggp.hgsb.approveStatus"/>
</EF:EFComboColumn>
<%--<EF:EFColumn ename="docId" cname="维修图片" width="100" enable="false" readonly="true" align="center"/>--%>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="1
0
0" readonly="true" required="false" enable="false"/>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="1
2
0" readonly="true" required="false" enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="1
2
0" readonly="true" required="false"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="1
5
0" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</EF:EFRegion>
...
...
src/main/webapp/HG/SB/HGSB004.jsp
View file @
e74a8432
...
...
@@ -36,11 +36,11 @@
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<%--blockName="factoryCodeBox_block_id"--%>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="
22
0" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="
16
0" align="center"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="
12
0" required="true"
maxLength="16" readonly="true" width="
20
0" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="company_record_box_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
...
...
src/main/webapp/HG/SB/HGSB004A.js
View file @
e74a8432
...
...
@@ -49,8 +49,8 @@ $(function () {
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
deviceCodeBox
.
length
;
i
++
)
{
if
(
deviceCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'deviceCode'
])
{
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
return
deviceCodeBox
[
i
][
'textField'
];
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
return
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
;
}
}
return
dataItem
[
"deviceCode"
]
...
...
src/main/webapp/HG/SB/HGSB005.jsp
View file @
e74a8432
...
...
@@ -35,11 +35,11 @@
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="
22
0" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="
16
0" align="center"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="
12
0" required="true"
maxLength="16" readonly="true" width="
20
0" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="company_record_box_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
...
...
src/main/webapp/HG/SB/HGSB005A.js
View file @
e74a8432
...
...
@@ -43,8 +43,8 @@ $(function () {
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
deviceCodeBox
.
length
;
i
++
)
{
if
(
deviceCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'deviceCode'
])
{
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
return
deviceCodeBox
[
i
][
'textField'
];
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
return
deviceCodeBox
[
i
][
'textField'
]
.
split
(
"-"
)[
0
]
;
}
}
return
dataItem
[
"deviceCode"
]
...
...
src/main/webapp/HG/SB/HGSB006.js
View file @
e74a8432
$
(
function
()
{
var
deviceCodeBox
=
__eiInfo
.
getBlock
(
"deviceCodeBox_block_id"
).
getMappedRows
();
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
$
(
"#QUERY"
).
on
(
"click"
,
query
);
...
...
@@ -19,6 +19,17 @@ $(function () {
},
columns
:
[
{
field
:
"deviceCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
deviceCodeBox
.
length
;
i
++
)
{
if
(
deviceCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'deviceCode'
])
{
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
].
split
(
"-"
)[
0
]
return
deviceCodeBox
[
i
][
'textField'
].
split
(
"-"
)[
0
];
}
}
return
dataItem
[
"deviceCode"
]
}
},
{
field
:
"remainderDays"
,
template
:
function
(
item
)
{
let
template
=
''
;
...
...
src/main/webapp/HG/SB/HGSB007.js
View file @
e74a8432
$
(
function
()
{
var
deviceCodeBox
=
__eiInfo
.
getBlock
(
"deviceCodeBox_block_id"
).
getMappedRows
();
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
/* 页面查询框的尺寸设置 */
...
...
@@ -106,6 +106,17 @@ $(function () {
},
columns
:
[
{
field
:
"deviceCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
deviceCodeBox
.
length
;
i
++
)
{
if
(
deviceCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'deviceCode'
])
{
dataItem
[
'deviceName'
]
=
deviceCodeBox
[
i
][
'textField'
].
split
(
"-"
)[
0
]
return
deviceCodeBox
[
i
][
'textField'
].
split
(
"-"
)[
0
];
}
}
return
dataItem
[
"deviceCode"
]
}
},
{
field
:
"remainderDays"
,
template
:
function
(
item
)
{
let
template
=
''
;
...
...
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