Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 16762afe
由
LN
编写于
2019-08-23 16:42:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
收到服务器出库需要判断是否是重复命令
1 个父辈
d80a0665
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
1 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
16762af
...
@@ -1680,6 +1680,31 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1680,6 +1680,31 @@ namespace OnlineStore.DeviceLibrary
else
else
{
{
FixtureCodeInfo
currInOutFixture
=
new
FixtureCodeInfo
(
0
,
""
,
posId
,
plateW
,
plateH
);
FixtureCodeInfo
currInOutFixture
=
new
FixtureCodeInfo
(
0
,
""
,
posId
,
plateW
,
plateH
);
try
{
//判断是否接收过此库位的出库信息
if
(
StoreMove
.
MoveType
.
Equals
(
StoreMoveType
.
OutStore
)
&&
StoreMove
.
MoveParam
.
PositionNum
.
Equals
(
posId
))
{
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 收到出库【"
+
currInOutFixture
.
ToStr
()
+
"】重复,当前已在【"
+
posId
+
"】出库中"
);
continue
;
}
else
{
//判断排队列表中是否已存在
List
<
FixtureCodeInfo
>
reviceList
=
new
List
<
FixtureCodeInfo
>(
waitOutStoreList
);
reviceList
=
(
from
m
in
reviceList
where
m
.
PosId
.
Equals
(
posId
)
select
m
).
ToList
<
FixtureCodeInfo
>();
if
(
reviceList
.
Count
>
0
)
{
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 收到出库【"
+
currInOutFixture
.
ToStr
()
+
"】重复,排队列表中已存在【"
+
reviceList
[
0
].
ToStr
()
+
"】"
);
continue
;
}
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"验证出库【"
+
currInOutFixture
.
ToStr
()
+
"】是否重复出错:"
+
ex
.
ToString
());
}
if
(
CanStarInOut
()
&&(
LineConnect
.
CanStartOut
()||
IsDebug
))
if
(
CanStarInOut
()
&&(
LineConnect
.
CanStartOut
()||
IsDebug
))
{
{
bool
result
=
StartOutStoreMove
(
new
InOutStoreParam
(
""
,
posId
,
plateW
,
plateH
));
bool
result
=
StartOutStoreMove
(
new
InOutStoreParam
(
""
,
posId
,
plateW
,
plateH
));
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
16762af
...
@@ -145,7 +145,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -145,7 +145,7 @@ namespace OnlineStore.DeviceLibrary
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"处理流水线消息
出错:"
+
message
);
LogUtil
.
error
(
"处理流水线消息
【"
+
message
+
"】出错:"
+
ex
.
ToString
()
);
}
}
}
}
public
static
char
cmd_spilt
=
';'
;
public
static
char
cmd_spilt
=
';'
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论