diff --git a/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs b/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs index 7d13d37..861cab9 100644 --- a/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs +++ b/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs @@ -94,8 +94,7 @@ namespace BLL newWelder.IsFaceTrain = welder.IsFaceTrain; newWelder.MaxHanTiao = welder.MaxHanTiao; newWelder.MaxWeldingWire = welder.MaxWeldingWire; - newWelder.IsOAM = welder.IsOAM; - + newWelder.IsOAM = welder.IsOAM; db.SubmitChanges(); var pw = from x in db.Project_Welder diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderUsing.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderUsing.aspx index ee10ff8..548f8c4 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderUsing.aspx +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderUsing.aspx @@ -108,4 +108,39 @@ window.parent.addExampleTab(node); } + + var websock; + + function initWebSocket(){ //初始化weosocket + const wsuri = "ws://127.0.0.1:18099/hik/screen"; + websock = new WebSocket(wsuri); + websock.onmessage = websocketonmessage; + websock.onopen = websocketonopen; + websock.onerror = websocketonerror; + websock.onclose = websocketclose; + } + function websocketonopen(){ //连接建立之后执行send方法发送数据 + + setInterval(() => { + let actions = { "test": "12345" }; + websocketsend(JSON.stringify(actions)); + }, 10000); + } + function websocketonerror(){//连接建立失败重连 + initWebSocket(); + } + function websocketonmessage(e){ //数据接收 + const redata = JSON.parse(e.data); + data = redata; + $("welderCode").value(data.jobNo) + } + function websocketsend(Data){//数据发送 + websock.send(Data); + } + function websocketclose(e){ //关闭 + console.log('断开连接', e); + } + + + \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx b/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx index 55dcd63..8e5c903 100644 --- a/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx +++ b/HJGL_DS/FineUIPro.Web/common/WelderManage/WelderSave.aspx @@ -121,7 +121,7 @@ - x.WED_ID== WED_ID); - welder.PhotoUrl = imgPhoto1.ImageUrl.Replace("/", "\\"); + welder.PhotoUrl = imgPhoto1.ImageUrl.Replace("~", ""); + var pw = Funs.DB.Project_Welder.Where(x => x.WED_ID == WED_ID); + foreach(var w in pw) + { + w.ExchangeTime = null; + } Funs.DB.SubmitChanges(); Alert.ShowInParent(PersonFace(welder), MessageBoxIcon.Warning);