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
89afb077
Commit
89afb077
authored
May 10, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-09 优化设备台账、设备计划
parent
80ef1525
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
2 deletions
+38
-2
DdynamicEnum.java
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
+7
-1
HGConstant.java
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
+2
-0
HGSB001.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB001.xml
+2
-1
HGSB001.js
src/main/webapp/HG/SB/HGSB001.js
+9
-0
HGSB002.js
src/main/webapp/HG/SB/HGSB002.js
+9
-0
HGSB002A.js
src/main/webapp/HG/SB/HGSB002A.js
+9
-0
No files found.
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
View file @
89afb077
...
@@ -179,7 +179,13 @@ public enum DdynamicEnum {
...
@@ -179,7 +179,13 @@ public enum DdynamicEnum {
put
(
"orgTypes"
,
new
String
[]{
OrgTypeEnum
.
COMPANY
.
getCode
(),
OrgTypeEnum
.
FACTORY
.
getCode
()});
put
(
"orgTypes"
,
new
String
[]{
OrgTypeEnum
.
COMPANY
.
getCode
(),
OrgTypeEnum
.
FACTORY
.
getCode
()});
}}
}}
),
),
DEVICE_CODE_BOX_BLOCK_ID
(
"deviceCodeBox_block_id"
,
"deviceCode"
,
"deviceName"
,
"deviceType"
,
"HGSB001.queryDeviceCodeBox"
),
/**
* 模块:设备台账编码
* 用途:设备名称下拉框
* 编写:ly
*/
DEVICE_CODE_BOX_BLOCK_ID
(
"deviceCodeBox_block_id"
,
"deviceCode"
,
"deviceName"
,
"deviceType"
,
"companyCode"
,
"HGSB001.queryDeviceCodeBox"
),
;
;
...
...
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
View file @
89afb077
...
@@ -87,6 +87,8 @@ public class HGConstant {
...
@@ -87,6 +87,8 @@ public class HGConstant {
public
static
final
String
PLAN_CODE
=
"PLAN_CODE"
;
public
static
final
String
PLAN_CODE
=
"PLAN_CODE"
;
// 计划号
// 计划号
public
static
final
String
PLAN_NO
=
"PLAN_NO"
;
public
static
final
String
PLAN_NO
=
"PLAN_NO"
;
//申请单号
public
static
final
String
APPLY_CODE
=
"APPLY_CODE"
;
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB001.xml
View file @
89afb077
...
@@ -344,7 +344,8 @@
...
@@ -344,7 +344,8 @@
SELECT distinct
SELECT distinct
DEVICE_CODE as "deviceCode",
<!-- 设备编码 -->
DEVICE_CODE as "deviceCode",
<!-- 设备编码 -->
DEVICE_NAME as "deviceName",
<!-- 设备名称 -->
DEVICE_NAME as "deviceName",
<!-- 设备名称 -->
DEVICE_TYPE as "deviceType"
<!-- 设备类型 -->
DEVICE_TYPE as "deviceType",
<!-- 设备类型 -->
COMPANY_CODE as "companyCode"
FROM ${hggpSchema}.HGSB001 WHERE 1=1
FROM ${hggpSchema}.HGSB001 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
...
...
src/main/webapp/HG/SB/HGSB001.js
View file @
89afb077
...
@@ -101,6 +101,15 @@ $(function () {
...
@@ -101,6 +101,15 @@ $(function () {
}
}
],
],
exportGrid
:
{
exportFileName
:
function
(
gridInstance
)
{
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return
"设备台账_"
+
kendo
.
toString
(
new
Date
(),
IPLAT
.
FORMAT
.
DATE_14_PR
);
},
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 此 grid 对象
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
...
...
src/main/webapp/HG/SB/HGSB002.js
View file @
89afb077
...
@@ -120,6 +120,15 @@ $(function () {
...
@@ -120,6 +120,15 @@ $(function () {
}
}
}
}
],
],
exportGrid
:
{
exportFileName
:
function
(
gridInstance
)
{
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return
"设备计划_"
+
kendo
.
toString
(
new
Date
(),
IPLAT
.
FORMAT
.
DATE_14_PR
);
},
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 此 grid 对象
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
...
...
src/main/webapp/HG/SB/HGSB002A.js
View file @
89afb077
...
@@ -66,6 +66,15 @@ $(function () {
...
@@ -66,6 +66,15 @@ $(function () {
}
}
}
}
],
],
exportGrid
:
{
exportFileName
:
function
(
gridInstance
)
{
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return
"设备计划详情_"
+
kendo
.
toString
(
new
Date
(),
IPLAT
.
FORMAT
.
DATE_14_PR
);
},
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 此 grid 对象
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
...
...
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