Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 305ef27a
由
LN
编写于
2020-01-08 15:09:21 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
库位更新修改
1 个父辈
8a84738d
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
58 行增加
和
7 行删除
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
source/DeviceLibrary/ACPackingStore/StoreManager.cs
source/LoadCVSLibrary/position/CSVPositionReader.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
查看文件 @
305ef27
...
@@ -841,8 +841,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -841,8 +841,9 @@ namespace OnlineStore.DeviceLibrary
Task
.
Factory
.
StartNew
(
delegate
Task
.
Factory
.
StartNew
(
delegate
{
{
int
posLoc
=
ShelfPosList
.
IndexOf
(
MoveInfo
.
MoveParam
.
ShelfPosID
);
string
msg
=
StoreManager
.
PutShelfFinished
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LastShelfData
.
NumStr
(),
posLoc
.
ToString
(),
out
serverShelfData
);
int
posLoc
=
StoreManager
.
GetLocByShelfPosID
(
MoveInfo
.
MoveParam
.
ShelfPosID
,
ShelfPosList
);
string
msg
=
StoreManager
.
PutShelfFinished
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LastShelfData
.
NumStr
(),
posLoc
.
ToString
(),
out
serverShelfData
);
if
(
String
.
IsNullOrEmpty
(
msg
).
Equals
(
false
))
if
(
String
.
IsNullOrEmpty
(
msg
).
Equals
(
false
))
{
{
LogUtil
.
error
(
Name
+
"【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【"
+
LastShelfData
+
"】【"
+
posLoc
+
"】PutShelfFinished 结果:"
+
msg
);
LogUtil
.
error
(
Name
+
"【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【"
+
LastShelfData
+
"】【"
+
posLoc
+
"】PutShelfFinished 结果:"
+
msg
);
...
@@ -909,9 +910,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -909,9 +910,11 @@ namespace OnlineStore.DeviceLibrary
}
}
#
endregion
#
endregion
else
if
(
MoveInfo
.
MoveStep
<=
StoreMoveStep
.
SO_01_LocationDown
)
{
else
if
(
MoveInfo
.
MoveStep
<=
StoreMoveStep
.
SO_01_LocationDown
)
{
ShelfEnterProcess
();
ShelfEnterProcess
();
}
else
if
(
MoveInfo
.
MoveStep
>=
StoreMoveStep
.
BS_01_TopDown
)
}
else
if
(
MoveInfo
.
MoveStep
>=
StoreMoveStep
.
BS_01_TopDown
)
{
{
ShelfOutProcess
();
ShelfOutProcess
();
}
}
...
...
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Shelf.cs
查看文件 @
305ef27
...
@@ -523,7 +523,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -523,7 +523,8 @@ namespace OnlineStore.DeviceLibrary
string
shelfPosID
=
""
;
string
shelfPosID
=
""
;
if
(
inoutParam
.
rfidLoc
>
0
&&
ShelfPosList
.
Count
>=
inoutParam
.
rfidLoc
)
if
(
inoutParam
.
rfidLoc
>
0
&&
ShelfPosList
.
Count
>=
inoutParam
.
rfidLoc
)
{
{
shelfPosID
=
ShelfPosList
[
inoutParam
.
rfidLoc
-
1
];
shelfPosID
=
StoreManager
.
GetShelfIDByLoc
(
inoutParam
.
rfidLoc
,
ShelfPosList
);
// shelfPosID = ShelfPosList[inoutParam.rfidLoc - 1];
inoutParam
.
NeedEnterShelf
=
false
;
inoutParam
.
NeedEnterShelf
=
false
;
inoutParam
.
NeedOutShelf
=
false
;
inoutParam
.
NeedOutShelf
=
false
;
inoutParam
.
ShelfPosID
=
shelfPosID
;
inoutParam
.
ShelfPosID
=
shelfPosID
;
...
...
source/DeviceLibrary/ACPackingStore/StoreManager.cs
查看文件 @
305ef27
...
@@ -324,6 +324,51 @@ namespace OnlineStore.DeviceLibrary
...
@@ -324,6 +324,51 @@ namespace OnlineStore.DeviceLibrary
}
}
return
""
;
return
""
;
}
}
public
static
int
GetLocByShelfPosID
(
string
shelfId
,
List
<
String
>
shelfPosList
)
{
int
loc
=
-
1
;
try
{
if
(
shelfId
.
Length
==
3
)
{
loc
=
int
.
Parse
(
shelfId
.
Substring
(
2
,
1
));
}
}
catch
(
Exception
ex
)
{
}
if
(
loc
<=
0
)
{
loc
=
shelfPosList
.
IndexOf
(
shelfId
);
}
return
loc
;
}
internal
static
string
GetShelfIDByLoc
(
int
rfidLoc
,
List
<
string
>
shelfPosList
)
{
string
shelfId
=
""
;
try
{
foreach
(
string
id
in
shelfPosList
)
{
if
(
id
.
Length
==
3
&&
id
.
Substring
(
2
,
1
).
Equals
(
rfidLoc
.
ToString
()))
{
shelfId
=
id
;
break
;
}
}
}
catch
(
Exception
ex
)
{
}
if
(
shelfId
.
Equals
(
""
)
&&
rfidLoc
>
0
&&
rfidLoc
<=
shelfPosList
.
Count
)
{
shelfId
=
shelfPosList
[
rfidLoc
-
1
];
}
return
shelfId
;
}
public
static
string
ProcessCode
(
int
LastWidth
,
int
LastHeight
,
List
<
string
>
LastScanCodes
)
public
static
string
ProcessCode
(
int
LastWidth
,
int
LastHeight
,
List
<
string
>
LastScanCodes
)
{
{
string
message
=
""
;
string
message
=
""
;
...
@@ -344,6 +389,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -344,6 +389,8 @@ namespace OnlineStore.DeviceLibrary
}
}
return
message
;
return
message
;
}
}
}
}
public
class
ServerData
public
class
ServerData
{
{
...
...
source/LoadCVSLibrary/position/CSVPositionReader.cs
查看文件 @
305ef27
...
@@ -116,11 +116,11 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -116,11 +116,11 @@ namespace OnlineStore.LoadCSVLibrary
}
}
listIndex
++;
listIndex
++;
}
}
result
.
Add
(
PositionNum
,
(
T
)
bllIns
);
if
(
storeId
>
0
&&
((
T
)
bllIns
).
StoreId
<=
0
)
if
(
storeId
>
0
&&
((
T
)
bllIns
).
StoreId
<=
0
)
{
{
((
T
)
bllIns
).
StoreId
=
storeId
;
((
T
)
bllIns
).
StoreId
=
storeId
;
}
}
result
.
Add
(
PositionNum
,
(
T
)
bllIns
);
if
(!
AllPositionMap
.
ContainsKey
(
tname
))
if
(!
AllPositionMap
.
ContainsKey
(
tname
))
{
{
AllPositionMap
.
Add
(
tname
,
new
Dictionary
<
string
,
T
>());
AllPositionMap
.
Add
(
tname
,
new
Dictionary
<
string
,
T
>());
...
@@ -355,7 +355,7 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -355,7 +355,7 @@ namespace OnlineStore.LoadCSVLibrary
newPosId
=
louceng
+
storeId
+
oldPosId
.
Substring
(
4
,
oldPosId
.
Length
-
4
);
newPosId
=
louceng
+
storeId
+
oldPosId
.
Substring
(
4
,
oldPosId
.
Length
-
4
);
}
}
position
.
PositionNum
=
newPosId
;
position
.
PositionNum
=
newPosId
;
position
.
StoreId
=
storeIndex
;
//
position.StoreId = storeIndex;
string
newValue
=
PostionToString
(
position
,
titleIndex
,
proTitleMap
);
string
newValue
=
PostionToString
(
position
,
titleIndex
,
proTitleMap
);
lines
[
index
]
=
newValue
;
lines
[
index
]
=
newValue
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论