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
9fe96665
Commit
9fe96665
authored
Apr 11, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加TCP接口,增加导入模版
parent
3601f4fc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
79 additions
and
3 deletions
+79
-3
TCPController.java
...va/com/baosight/hpjx/aspect/annotation/TCPController.java
+28
-0
TCPReceive.java
...main/java/com/baosight/hpjx/aspect/domain/TCPReceive.java
+43
-0
application.properties
src/main/resources/application.properties
+1
-1
HPSC002.js
src/main/webapp/HP/SC/HPSC002.js
+6
-1
HPSC010.js
src/main/webapp/HP/SC/HPSC010.js
+1
-1
HPSC002_物料清单-部件.xls
src/main/webapp/HP/template/SC/HPSC002_物料清单-部件.xls
+0
-0
HPSC002_物料清单-零件.xls
src/main/webapp/HP/template/SC/HPSC002_物料清单-零件.xls
+0
-0
No files found.
src/main/java/com/baosight/hpjx/aspect/annotation/TCPController.java
0 → 100644
View file @
9fe96665
package
com
.
baosight
.
hpjx
.
aspect
.
annotation
;
import
com.baosight.hpjx.aspect.domain.TCPReceive
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.web.controller.WebDispatchController
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.web.bind.annotation.CrossOrigin
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
@CrossOrigin
@RestController
@RequestMapping
(
"/tcp"
)
public
class
TCPController
extends
WebDispatchController
{
private
final
static
Logger
logger
=
LoggerFactory
.
getLogger
(
DocController
.
class
);
@RequestMapping
(
value
=
"/receive/api"
,
method
=
RequestMethod
.
POST
)
public
void
tcpReceive
(
TCPReceive
tcpReceive
)
{
logger
.
info
(
"receive tcp deviceNo: "
+
tcpReceive
.
getDeviceNo
());
logger
.
info
(
"receive tcp msgType: "
+
tcpReceive
.
getMsgType
());
logger
.
info
(
"receive tcp msgContent: "
+
tcpReceive
.
getMsgContent
());
}
}
src/main/java/com/baosight/hpjx/aspect/domain/TCPReceive.java
0 → 100644
View file @
9fe96665
package
com
.
baosight
.
hpjx
.
aspect
.
domain
;
public
class
TCPReceive
{
private
String
deviceNo
;
private
String
msgType
;
private
String
msgContent
;
public
String
getDeviceNo
()
{
return
deviceNo
;
}
public
void
setDeviceNo
(
String
deviceNo
)
{
this
.
deviceNo
=
deviceNo
;
}
public
String
getMsgType
()
{
return
msgType
;
}
public
void
setMsgType
(
String
msgType
)
{
this
.
msgType
=
msgType
;
}
public
String
getMsgContent
()
{
return
msgContent
;
}
public
void
setMsgContent
(
String
msgContent
)
{
this
.
msgContent
=
msgContent
;
}
}
src/main/resources/application.properties
View file @
9fe96665
...
...
@@ -19,7 +19,7 @@ spring.servlet.multipart.file-size-threshold =0
componentEname
=
hpjx
projectName
=
hpjx
moduleName
=
ep
projectEnv
=
dev
projectEnv
=
run
platSchema
=
iplat
eplatSchema
=
EPLAT
lowcodedbSchema
=
lowcodedb
...
...
src/main/webapp/HP/SC/HPSC002.js
View file @
9fe96665
...
...
@@ -407,7 +407,12 @@ $(function () {
});
$
(
"#DOWNLOAD"
).
on
(
"click"
,
function
(
e
)
{
var
href
=
ctx
+
"
\\
HP
\\
template
\\
SC
\\
HPSC002_物料清单.xls"
;
var
href
=
ctx
+
"
\\
HP
\\
template
\\
SC
\\
HPSC002_物料清单-部件.xls"
;
window
.
location
.
href
=
href
;
});
$
(
"#DOWNLOAD2"
).
on
(
"click"
,
function
(
e
)
{
var
href
=
ctx
+
"
\\
HP
\\
template
\\
SC
\\
HPSC002_物料清单-零件.xls"
;
window
.
location
.
href
=
href
;
});
...
...
src/main/webapp/HP/SC/HPSC010.js
View file @
9fe96665
...
...
@@ -337,7 +337,7 @@ function loadChange(grid,e,field) {
* @param let
*/
function
showGroupDetail
(
id
)
{
window
.
open
(
"HPSC010A?methodName=initLoad&inqu_status-0-remark="
+
id
+
"&efParentFormEname=HPSC01
1
"
)
window
.
open
(
"HPSC010A?methodName=initLoad&inqu_status-0-remark="
+
id
+
"&efParentFormEname=HPSC01
0
"
)
}
function
addWindowOpen
(
id
)
{
...
...
src/main/webapp/HP/template/SC/HPSC002_物料清单-部件.xls
0 → 100644
View file @
9fe96665
File added
src/main/webapp/HP/template/SC/HPSC002_物料清单-零件.xls
0 → 100644
View file @
9fe96665
File added
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