Commit 9fe96665 by yukang

增加TCP接口,增加导入模版

parent 3601f4fc
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());
}
}
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;
}
}
...@@ -19,7 +19,7 @@ spring.servlet.multipart.file-size-threshold =0 ...@@ -19,7 +19,7 @@ spring.servlet.multipart.file-size-threshold =0
componentEname=hpjx componentEname=hpjx
projectName=hpjx projectName=hpjx
moduleName=ep moduleName=ep
projectEnv=dev projectEnv=run
platSchema=iplat platSchema=iplat
eplatSchema=EPLAT eplatSchema=EPLAT
lowcodedbSchema=lowcodedb lowcodedbSchema=lowcodedb
......
...@@ -407,7 +407,12 @@ $(function () { ...@@ -407,7 +407,12 @@ $(function () {
}); });
$("#DOWNLOAD").on("click", function (e) { $("#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; window.location.href = href;
}); });
......
...@@ -337,7 +337,7 @@ function loadChange(grid,e,field) { ...@@ -337,7 +337,7 @@ function loadChange(grid,e,field) {
* @param let * @param let
*/ */
function showGroupDetail(id) { function showGroupDetail(id) {
window.open("HPSC010A?methodName=initLoad&inqu_status-0-remark=" + id+"&efParentFormEname=HPSC011") window.open("HPSC010A?methodName=initLoad&inqu_status-0-remark=" + id+"&efParentFormEname=HPSC010")
} }
function addWindowOpen(id) { function addWindowOpen(id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment