Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 31b684f9
由
张东亮
编写于
2025-08-20 09:38:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
消息提示
1 个父辈
51554d4e
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
20 行增加
和
12 行删除
source/DeviceLibrary/manager/model/InOutParam.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_InExecute.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute_Partial.cs
source/DeviceLibrary/manager/model/InOutParam.cs
查看文件 @
31b684f
...
...
@@ -133,7 +133,7 @@ namespace OnlineStore.DeviceLibrary
public
bool
singleOut
=
false
;
public
string
ToStr
()
{
return
" ["
+
barcode
+
"] ["
+
PosId
+
"] ["
+
PlateW
+
"x"
+
PlateH
+
"]"
+
$
",hSerial[{hSerial}]"
+
$
",isNg[{IsNG}],NgMsg[{NgMsg
}]"
+
",singleOut["
+
singleOut
+
"]"
;
return
$
" NgMsg[{NgMsg}], ["
+
barcode
+
"] ["
+
PosId
+
"] ["
+
PlateW
+
"x"
+
PlateH
+
"]"
+
$
",hSerial[{hSerial}]"
+
$
",isNg[{IsNG
}]"
+
",singleOut["
+
singleOut
+
"]"
;
}
public
string
ToStr1
()
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
31b684f
...
...
@@ -100,6 +100,7 @@ namespace OnlineStore.DeviceLibrary
operation
.
boxStatus
[
1
].
status
=
(
int
)
storeStatus
;
LogUtil
.
info
(
JsonHelper
.
SerializeObject
(
operation
));
Operation
resultOperation
=
HttpHelper
.
Post
(
SServerManager
.
GetPostApi
(
server
),
operation
,
false
);
LogUtil
.
info
(
$
"SendStoreState【{JsonHelper.SerializeObject(operation)}】【{JsonHelper.SerializeObject(resultOperation)}】"
);
if
(
resultOperation
!=
null
)
{
if
(
operation
.
seq
==
resultOperation
.
seq
)
...
...
@@ -132,7 +133,7 @@ namespace OnlineStore.DeviceLibrary
string
preUploadMsg
=
""
;
public
void
ProcessMsg
(
List
<
Msg
>
msg
)
{
var
printMSG
=
ConfigHelper
.
Config
.
Get
(
"打印上传到SMF的消息"
,
true
);
var
printMSG
=
ConfigHelper
.
Config
.
Get
(
"打印上传到SMF的消息"
,
true
);
uploadMsg
=
string
.
Join
(
"\r\n"
,
msg
.
Select
(
x
=>
{
//if (x.msgLevel == MsgLevel.warning || x.msgLevel == MsgLevel.alarm)
...
...
@@ -141,9 +142,10 @@ namespace OnlineStore.DeviceLibrary
}
}
).
Where
(
x
=>
!
string
.
IsNullOrEmpty
(
x
)));
if
(
printMSG
)
if
(
printMSG
)
{
if
(!
preUploadMsg
.
Equals
(
uploadMsg
))
if
(!
string
.
IsNullOrEmpty
(
uploadMsg
)
&&
!
preUploadMsg
.
Equals
(
uploadMsg
))
{
LogUtil
.
info
(
"上传消息到服务器消息:"
+
uploadMsg
);
preUploadMsg
=
uploadMsg
;
...
...
@@ -281,7 +283,13 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
error
(
Name
+
"没有湿度预警范围,需要从服务器获取,发送OP="
+
lineOperation
.
op
,
DeviceID
+
105
);
}
Operation
resultOperation
=
HttpHelper
.
PostOperation
(
SServerManager
.
GetPostApi
(
server
),
lineOperation
);
//LogUtil.info("resultOperation="+ JsonHelper.SerializeObject(resultOperation));
var
printMSG
=
ConfigHelper
.
Config
.
Get
(
"打印上传到SMF的消息"
,
true
);
if
(
printMSG
)
{
if
(!
string
.
IsNullOrEmpty
(
uploadMsg
))
LogUtil
.
info
(
$
"定时通讯【{JsonHelper.SerializeObject(lineOperation)}】【{JsonHelper.SerializeObject(resultOperation)}】"
);
}
//发送状态信息到服务器
if
(
resultOperation
==
null
||
(
resultOperation
.
op
<=
0
))
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_InExecute.cs
查看文件 @
31b684f
...
...
@@ -273,7 +273,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckReel
(
true
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"
未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面料叉上的料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】,请检查检查
"
);
SetCriticalMsg
(
$
"
{MoveInfo.MoveParam.PosInfo.GetPosSide()}取料后,料叉未检测到料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】
"
);
return
;
}
SetWarnMsg
(
""
);
...
...
@@ -339,7 +339,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckReel
(
true
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"
未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面料叉上的料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】,请检查
"
);
SetCriticalMsg
(
$
"
{MoveInfo.MoveParam.PosInfo.GetPosSide()}取料后,料叉未检测到料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】
"
);
return
;
}
SetWarnMsg
(
""
);
...
...
@@ -357,7 +357,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckReel
(
true
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"
未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面料叉上的料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】,请检查
"
);
SetCriticalMsg
(
$
"
{MoveInfo.MoveParam.PosInfo.GetPosSide()}取料后,料叉未检测到料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】
"
);
return
;
}
SetWarnMsg
(
""
);
...
...
@@ -403,7 +403,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckReel
(
true
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"
未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面料叉上的料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】,请检查
"
);
SetCriticalMsg
(
$
"
{MoveInfo.MoveParam.PosInfo.GetPosSide()}取料后,料叉未检测到料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】
"
);
return
;
}
SetWarnMsg
(
""
);
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
查看文件 @
31b684f
...
...
@@ -166,7 +166,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckReel
(
true
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"
未检测到{MoveInfo.MoveParam.PosInfo.GetPosSide()}面料叉上的料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】,请检查
"
);
SetCriticalMsg
(
$
"
{MoveInfo.MoveParam.PosInfo.GetPosSide()}取料后,料叉未检测到料盘【{MoveInfo?.MoveParam?.PosInfo?.barcode}】
"
);
return
;
}
SetWarnMsg
(
""
);
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute_Partial.cs
查看文件 @
31b684f
...
...
@@ -35,7 +35,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckBothReel
(
true
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"
两面料叉上存在未检测到料盘
【{MoveInfo.MoveParam?.PosInfo?.barcode}】【{MoveInfo.MoveParam?.PosInfoBack?.barcode}】,请检查"
);
SetCriticalMsg
(
$
"
运动过程中两面的料叉丢失料盘信号
【{MoveInfo.MoveParam?.PosInfo?.barcode}】【{MoveInfo.MoveParam?.PosInfoBack?.barcode}】,请检查"
);
return
;
}
SetWarnMsg
(
""
);
...
...
@@ -99,7 +99,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
CheckBothReel
(
false
))
{
if
(
isAlarmForkCheck
())
SetCriticalMsg
(
$
"两面料叉上还能检测到料盘【{MoveInfo.MoveParam?.PosInfo?.barcode}】【{MoveInfo.MoveParam?.PosInfoBack?.barcode}】,请检查"
);
SetCriticalMsg
(
$
"
放完料盘后,
两面料叉上还能检测到料盘【{MoveInfo.MoveParam?.PosInfo?.barcode}】【{MoveInfo.MoveParam?.PosInfoBack?.barcode}】,请检查"
);
return
;
}
SetWarnMsg
(
""
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论