Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
5570f0bb
Commit
5570f0bb
authored
Jan 25, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划、生产订单附件查看
parent
f757f9e5
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
24 deletions
+42
-24
ServiceHPSC001.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC001.java
+5
-1
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+1
-5
HPSC002B.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002B.xml
+4
-4
HPSC004.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC004.xml
+1
-0
application.properties
src/main/resources/application.properties
+2
-0
quartz.properties
src/main/resources/quartz.properties
+3
-0
HPSC003.js
src/main/webapp/HP/SC/HPSC003.js
+12
-5
HPSC003.jsp
src/main/webapp/HP/SC/HPSC003.jsp
+3
-3
HPSC005.js
src/main/webapp/HP/SC/HPSC005.js
+11
-6
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC001.java
View file @
5570f0bb
...
@@ -2,6 +2,7 @@ package com.baosight.hpjx.hp.sc.service;
...
@@ -2,6 +2,7 @@ package com.baosight.hpjx.hp.sc.service;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
...
@@ -12,6 +13,7 @@ import com.baosight.iplat4j.core.exception.PlatException;
...
@@ -12,6 +13,7 @@ import com.baosight.iplat4j.core.exception.PlatException;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.soa.XLocalManager
;
import
com.baosight.iplat4j.core.service.soa.XLocalManager
;
import
com.baosight.hpjx.hp.sc.domain.HPSC001
;
import
com.baosight.hpjx.hp.sc.domain.HPSC001
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -28,7 +30,9 @@ public class ServiceHPSC001 extends ServiceBase {
...
@@ -28,7 +30,9 @@ public class ServiceHPSC001 extends ServiceBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_BLOCK_ID
),
null
);
Map
map
=
new
HashMap
();
map
.
put
(
"companyCode"
,
UserSessionUtils
.
getCompanyCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_BLOCK_ID
),
map
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPSC001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPSC001
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
5570f0bb
...
@@ -210,11 +210,7 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -210,11 +210,7 @@ public class ServiceHPSC003 extends ServiceBase {
HPSC005
.
setStatus
(
0
);
HPSC005
.
setStatus
(
0
);
HPSC005
.
setCreatedBy
(
UserSession
.
getUserId
());
HPSC005
.
setCreatedBy
(
UserSession
.
getUserId
());
HPSC005
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC005
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC005
.
setFilePath1
(
HPSC004
.
getFilePath1
());
HPSC005
.
setFilePath1
(
HPSC004
.
getId
().
toString
());
HPSC005
.
setFilePath2
(
HPSC004
.
getFilePath2
());
HPSC005
.
setFilePath3
(
HPSC004
.
getFilePath3
());
HPSC005
.
setFilePath4
(
HPSC004
.
getFilePath4
());
HPSC005
.
setFilePath5
(
HPSC004
.
getFilePath5
());
this
.
dao
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
this
.
dao
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
HPSC004
.
setProductionOrderNo
(
SCDD
);
HPSC004
.
setProductionOrderNo
(
SCDD
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002B.xml
View file @
5570f0bb
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002B"
>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.sc.domain.HPSC002B"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM ${hpjxSchema}.T_HPSC002
B
A, ${platSchema}.TEUDM02 B
FROM ${hpjxSchema}.T_HPSC002
A
A, ${platSchema}.TEUDM02 B
WHERE 1=1
WHERE 1=1
AND A.DOC_ID = B.DOC_ID
AND A.DOC_ID = B.DOC_ID
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
...
@@ -85,14 +85,14 @@
...
@@ -85,14 +85,14 @@
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPSC002
B
A, ${platSchema}.TEUDM02 B
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPSC002
A
A, ${platSchema}.TEUDM02 B
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
</select>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPSC002
B
(
INSERT INTO ${hpjxSchema}.T_HPSC002
A
(
COMPANY_CODE,
<!-- 企业编码 预留 -->
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEPT_CODE,
<!-- 部门编码 预留 -->
DEPT_CODE,
<!-- 部门编码 预留 -->
MAT_ID,
<!-- 物料ID -->
MAT_ID,
<!-- 物料ID -->
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPSC002
B
WHERE ID = #id#
DELETE FROM ${hpjxSchema}.T_HPSC002
A
WHERE ID = #id#
</delete>
</delete>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC004.xml
View file @
5570f0bb
...
@@ -415,6 +415,7 @@
...
@@ -415,6 +415,7 @@
LEAF as "leaf",
<!-- 是否有叶子节点 -->
LEAF as "leaf",
<!-- 是否有叶子节点 -->
SORT as "sort",
<!-- 排序字段 -->
SORT as "sort",
<!-- 排序字段 -->
ICON as "icon",
<!-- 图片地址 -->
ICON as "icon",
<!-- 图片地址 -->
PRDT_TYPE as "prdtType",
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
NUM as "num",
<!-- 数量 -->
NUM as "num",
<!-- 数量 -->
...
...
src/main/resources/application.properties
View file @
5570f0bb
...
@@ -32,9 +32,11 @@ customerName=\u6B66\u6C49\u5B9D\u4FE1\u5927\u6570\u636E\u4E8B\u4E1A\u90E8
...
@@ -32,9 +32,11 @@ customerName=\u6B66\u6C49\u5B9D\u4FE1\u5927\u6570\u636E\u4E8B\u4E1A\u90E8
enterpriseName
=
\u
6B66
\u
6C49
\u
5B9D
\u
4FE1
\u5927\u6570\u
636E
\u
4E8B
\u
4E1A
\u
90E8
enterpriseName
=
\u
6B66
\u
6C49
\u
5B9D
\u
4FE1
\u5927\u6570\u
636E
\u
4E8B
\u
4E1A
\u
90E8
datasource.type
=
dbcp
datasource.type
=
dbcp
jdbc.driverClassName
=
com.mysql.jdbc.Driver
jdbc.driverClassName
=
com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://127.0.0.1:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.url
=
jdbc:mysql://10.24.1.94:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.url
=
jdbc:mysql://10.24.1.94:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.username
=
root
jdbc.username
=
root
jdbc.password
=
fnvu~aKs9LTDYUxe
jdbc.password
=
fnvu~aKs9LTDYUxe
#jdbc.password=root
jdbc.maxActive
=
20
jdbc.maxActive
=
20
jdbc.validationQuery
=
SELECT 1 FROM ${platSchema}.TEDFA00
jdbc.validationQuery
=
SELECT 1 FROM ${platSchema}.TEDFA00
...
...
src/main/resources/quartz.properties
View file @
5570f0bb
...
@@ -27,7 +27,10 @@ org.quartz.jobStore.isClustered = true
...
@@ -27,7 +27,10 @@ org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval
=
20000
org.quartz.jobStore.clusterCheckinInterval
=
20000
org.quartz.dataSource.appDS.driver
=
com.mysql.jdbc.Driver
org.quartz.dataSource.appDS.driver
=
com.mysql.jdbc.Driver
org.quartz.dataSource.appDS.URL
=
jdbc:mysql://10.24.1.94:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
org.quartz.dataSource.appDS.URL
=
jdbc:mysql://10.24.1.94:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
#org.quartz.dataSource.appDS.URL = jdbc:mysql://127.0.0.1:3306/iplat?useSSL=false&useUnicode=true&characterEncoding=utf-8
org.quartz.dataSource.appDS.user
=
root
org.quartz.dataSource.appDS.user
=
root
#org.quartz.dataSource.appDS.password =root
org.quartz.dataSource.appDS.password
=
fnvu~aKs9LTDYUxe
org.quartz.dataSource.appDS.password
=
fnvu~aKs9LTDYUxe
org.quartz.dataSource.appDS.maxConnections
=
30
org.quartz.dataSource.appDS.maxConnections
=
30
...
...
src/main/webapp/HP/SC/HPSC003.js
View file @
5570f0bb
...
@@ -96,11 +96,9 @@ $(function () {
...
@@ -96,11 +96,9 @@ $(function () {
template
:
function
(
item
)
{
template
:
function
(
item
)
{
let
filePath1
=
item
.
filePath1
;
let
filePath1
=
item
.
filePath1
;
let
template
=
''
;
let
template
=
''
;
if
(
filePath1
===
' '
)
{
if
(
filePath1
)
{
template
=
''
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
}
else
{
+
'onclick="showUploadFile('
+
filePath1
+
')" >附件清单</a>'
;
template
=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'href="'
+
ctx
+
'/EU/DM/EUDM06.jsp?docId='
+
filePath1
+
'" >下载</a>'
;
}
}
return
template
return
template
}
}
...
@@ -111,6 +109,15 @@ $(function () {
...
@@ -111,6 +109,15 @@ $(function () {
}
}
});
});
function
showUploadFile
(
id
)
{
JSColorbox
.
open
({
href
:
"HPSC002B?methodName=initLoad&inqu_status-0-id="
+
id
,
title
:
"<div style='text-align: center;'>附件清单</div>"
,
width
:
"80%"
,
height
:
"80%"
,
});
}
function
check
(
id
,
auditStatus
)
{
function
check
(
id
,
auditStatus
)
{
const
inEiInfo
=
new
EiInfo
();
const
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"id"
,
id
);
inEiInfo
.
set
(
"id"
,
id
);
...
...
src/main/webapp/HP/SC/HPSC003.jsp
View file @
5570f0bb
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<EF:EFComboColumn
ename=
"prdtType"
cname=
"部件类型"
width=
"90"
align=
"center"
readonly=
"true"
>
<EF:EFComboColumn
ename=
"prdtType"
cname=
"部件类型"
width=
"90"
align=
"center"
readonly=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
enable=
"false"
ename=
"prdtCode"
required=
'true'
cname=
"部件编码"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtCode"
cname=
"部件编码"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtName"
readonly=
"true"
cname=
"部件名称"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtName"
readonly=
"true"
cname=
"部件名称"
/>
<EF:EFComboColumn
enable=
"false"
ename=
"delStatus"
cname=
"状态"
>
<EF:EFComboColumn
enable=
"false"
ename=
"delStatus"
cname=
"状态"
>
<EF:EFOption
label=
"已删除"
value=
"0"
/>
<EF:EFOption
label=
"已删除"
value=
"0"
/>
...
@@ -61,9 +61,9 @@
...
@@ -61,9 +61,9 @@
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
enable=
"false"
ename=
"num"
readonly=
"true"
cname=
"计划数量"
/>
<EF:EFColumn
enable=
"false"
ename=
"num"
readonly=
"true"
cname=
"计划数量"
/>
<EF:EFColumn
enable=
"false"
ename=
"unitWt"
readonly=
"true"
cname=
"计划重量"
/>
<EF:EFColumn
enable=
"false"
ename=
"unitWt"
readonly=
"true"
cname=
"计划重量"
/>
<EF:EFColumn
ename=
"planCommentDate"
cname=
"计划开始时间"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
<EF:EFColumn
ename=
"planCommentDate"
required=
'true'
cname=
"计划开始时间"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
/>
/>
<EF:EFColumn
ename=
"planCompletionDate"
cname=
"计划结束时间"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
<EF:EFColumn
ename=
"planCompletionDate"
required=
'true'
cname=
"计划结束时间"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
/>
/>
<EF:EFColumn
ename=
"actualCompletionDate"
cname=
"实际完成时间"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
<EF:EFColumn
ename=
"actualCompletionDate"
cname=
"实际完成时间"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
enable=
"false"
/>
enable=
"false"
/>
...
...
src/main/webapp/HP/SC/HPSC005.js
View file @
5570f0bb
...
@@ -46,11 +46,9 @@ $(function () {
...
@@ -46,11 +46,9 @@ $(function () {
template
:
function
(
item
)
{
template
:
function
(
item
)
{
let
filePath1
=
item
.
filePath1
;
let
filePath1
=
item
.
filePath1
;
let
template
=
''
;
let
template
=
''
;
if
(
filePath1
===
' '
)
{
if
(
filePath1
)
{
template
=
''
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
}
else
{
+
'onclick="showUploadFile('
+
filePath1
+
')" >附件清单</a>'
;
template
=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'href="'
+
ctx
+
'/EU/DM/EUDM06.jsp?docId='
+
filePath1
+
'" >下载</a>'
;
}
}
return
template
return
template
}
}
...
@@ -58,7 +56,14 @@ $(function () {
...
@@ -58,7 +56,14 @@ $(function () {
],
],
}
}
});
});
function
showUploadFile
(
id
)
{
JSColorbox
.
open
({
href
:
"HPSC002B?methodName=initLoad&inqu_status-0-id="
+
id
,
title
:
"<div style='text-align: center;'>附件清单</div>"
,
width
:
"80%"
,
height
:
"80%"
,
});
}
let
assignCallback
=
function
(
orgId
)
{
let
assignCallback
=
function
(
orgId
)
{
var
info
=
new
EiInfo
()
var
info
=
new
EiInfo
()
info
.
set
(
"ids"
,
ids
.
join
(
','
));
info
.
set
(
"ids"
,
ids
.
join
(
','
));
...
...
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