Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 493ad411
由
张东亮
编写于
2023-05-10 14:40:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
8b0593e8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
37 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
493ad41
...
@@ -91,7 +91,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -91,7 +91,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
public
string
[]
sheidBColmns
;
public
string
[]
sheidBColmns
;
/// <summary>
/// <summary>
/// A面等待出库的
队列
/// A面等待出库的
列表
/// </summary>
/// </summary>
public
ConcurrentQueue
<
InOutParam
>
waitAOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
public
ConcurrentQueue
<
InOutParam
>
waitAOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
/// <summary>
/// <summary>
...
@@ -748,7 +748,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -748,7 +748,7 @@ namespace OnlineStore.DeviceLibrary
if
(
IOValue
(
IO_Type
.
FeedingA_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BufferDataManager
.
AInStoreInfo
!=
null
if
(
IOValue
(
IO_Type
.
FeedingA_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BufferDataManager
.
AInStoreInfo
!=
null
&&
IOValue
(
IO_Type
.
FeedingB_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BufferDataManager
.
BInStoreInfo
!=
null
&&
IOValue
(
IO_Type
.
FeedingB_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BufferDataManager
.
BInStoreInfo
!=
null
&&
(
BufferDataManager
.
AInStoreInfo
.
PlateW
==
BufferDataManager
.
BInStoreInfo
.
PlateW
&&
BufferDataManager
.
AInStoreInfo
.
PlateH
==
BufferDataManager
.
BInStoreInfo
.
PlateH
))
&&
(
BufferDataManager
.
AInStoreInfo
.
PlateW
==
BufferDataManager
.
BInStoreInfo
.
PlateW
&&
BufferDataManager
.
AInStoreInfo
.
PlateH
==
BufferDataManager
.
BInStoreInfo
.
PlateH
))
{
{
StartInstore
(
new
InOutParam
()
{
PosInfo
=
BufferDataManager
.
AInStoreInfo
,
PosInfoBack
=
BufferDataManager
.
BInStoreInfo
});
StartInstore
(
new
InOutParam
()
{
PosInfo
=
BufferDataManager
.
AInStoreInfo
,
PosInfoBack
=
BufferDataManager
.
BInStoreInfo
});
return
;
return
;
...
@@ -795,22 +795,22 @@ namespace OnlineStore.DeviceLibrary
...
@@ -795,22 +795,22 @@ namespace OnlineStore.DeviceLibrary
if
(
CloseOutStoreCheck
)
if
(
CloseOutStoreCheck
)
{
{
InOutParam
param
=
null
;
InOutParam
param
=
null
;
bool
result
=
waitAOutStoreList
.
Try
Dequeue
(
out
param
);
bool
result
=
waitAOutStoreList
.
Try
Peek
(
out
param
);
if
(
result
&&
param
!=
null
)
if
(
param
!=
null
)
{
{
//LogInfo("执行A面排队的出库【" + param.PosInfo.ToStr() + "】"
);
bool
rtn
=
StartExecuctOut
(
param
);
StartExecuctOut
(
param
);
if
(
rtn
)
waitAOutStoreList
.
TryDequeue
(
out
_
);
return
;
return
;
}
}
}
}
else
//if (CheckAOutDoor())
else
//if (CheckAOutDoor())
{
{
InOutParam
param
=
null
;
InOutParam
param
=
null
;
bool
result
=
waitAOutStoreList
.
Try
Dequeue
(
out
param
);
bool
result
=
waitAOutStoreList
.
Try
Peek
(
out
param
);
if
(
result
&&
param
!=
null
)
if
(
result
&&
param
!=
null
)
{
{
//LogInfo("执行A面排队的出库【" + param.PosInfo.ToStr() + "】"
);
bool
rtn
=
StartExecuctOut
(
param
);
StartExecuctOut
(
param
);
if
(
rtn
)
waitAOutStoreList
.
TryDequeue
(
out
_
);
return
;
return
;
}
}
}
}
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
查看文件 @
493ad41
using
CodeLibrary
;
using
CodeLibrary
;
using
log4net.Util
;
using
OnlineStore.Common
;
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
...
@@ -1153,38 +1154,39 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1153,38 +1154,39 @@ namespace OnlineStore.DeviceLibrary
return
false
;
return
false
;
}
}
private
static
object
outStoreObject
=
new
object
();
private
static
object
outStoreObject
=
new
object
();
public
void
StartExecuctOut
(
InOutParam
param
)
public
bool
StartExecuctOut
(
InOutParam
param
)
{
{
bool
result
=
false
;
bool
result
=
false
;
result
=
StartOutstore
(
param
);
result
=
StartOutstore
(
param
);
if
(!
result
)
return
result
;
{
//if (!result)
lock
(
outStoreObject
)
//{
{
// lock (outStoreObject)
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
OutStore
)
&&
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
.
Equals
(
param
.
PosInfo
.
PosId
))
// {
{
// if (MoveInfo.MoveType.Equals(MoveType.OutStore) && MoveInfo.MoveParam.PosInfo.PosId.Equals(param.PosInfo.PosId))
LogUtil
.
error
(
Name
+
" 出库命令【"
+
param
.
PosInfo
.
ToStr
()
+
"】重复,【"
+
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
+
"】出库执行中"
);
// {
return
;
// LogUtil.error(Name + " 出库命令【" + param.PosInfo.ToStr() + "】重复,【" + MoveInfo.MoveParam.PosInfo.PosId + "】出库执行中");
}
// return false;
// }
List
<
InOutParam
>
reviceList
=
new
List
<
InOutParam
>();
//
List<InOutParam> reviceList = new List<InOutParam>();
reviceList
.
AddRange
(
waitAOutStoreList
);
//
reviceList.AddRange(waitAOutStoreList);
//reviceList.AddRange(waitBOutStoreList);
//
//reviceList.AddRange(waitBOutStoreList);
reviceList
=
(
from
m
in
reviceList
where
m
.
PosInfo
.
PosId
.
Equals
(
param
.
PosInfo
.
PosId
)
select
m
).
ToList
<
InOutParam
>();
//
reviceList = (from m in reviceList where m.PosInfo.PosId.Equals(param.PosInfo.PosId) select m).ToList<InOutParam>();
if
(
reviceList
.
Count
==
0
)
//
if (reviceList.Count == 0)
{
//
{
//LogInfo(" 执行出库【" + param.PosInfo.ToStr() + "】失败,加入等待队列");
//
//LogInfo(" 执行出库【" + param.PosInfo.ToStr() + "】失败,加入等待队列");
// if (param.PosInfo.GetPosSide().Equals("A"))
//
// if (param.PosInfo.GetPosSide().Equals("A"))
{
//
{
waitAOutStoreList
.
Enqueue
(
param
);
//
waitAOutStoreList.Enqueue(param);
}
//
}
//else if (param.PosInfo.GetPosSide().Equals("B"))
//
//else if (param.PosInfo.GetPosSide().Equals("B"))
//{
//
//{
// waitBOutStoreList.Enqueue(param);
//
// waitBOutStoreList.Enqueue(param);
//}
//
//}
}
//
}
}
//
}
}
//
}
}
}
private
DateTime
startOutStoreTime
=
DateTime
.
Now
;
private
DateTime
startOutStoreTime
=
DateTime
.
Now
;
/// <summary>
/// <summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论