Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c9f08061
由
LN
编写于
2020-03-05 23:23:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
taskCount修改。bug修改
1 个父辈
4c2365c5
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
5 行删除
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
source/DeviceLibrary/ACPackingStore/StoreManager.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/DeviceLibrary/ACPackingStore/AC_BOX_Bean_Partial.cs
查看文件 @
c9f0806
...
...
@@ -943,12 +943,18 @@ namespace OnlineStore.DeviceLibrary
}
else
{
string
msg
=
StoreManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
CurrShelfID
+
"@"
+
posLoc
.
ToString
());
int
newTaskCount
=
0
;
string
msg
=
StoreManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
CurrShelfID
+
"@"
+
posLoc
.
ToString
(),
out
newTaskCount
);
if
(
String
.
IsNullOrEmpty
(
msg
).
Equals
(
false
))
{
LogUtil
.
error
(
Name
+
"【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【"
+
CurrShelfID
+
"】【"
+
posLoc
+
"】UpdateTrayLoc 结果:"
+
msg
);
serverShelfData
=
null
;
}
if
(
newTaskCount
>
MoveInfo
.
MoveParam
.
taskCount
)
{
InOutStoreLog
(
"UpdateTrayLoc 返回 newTaskCount="
+
newTaskCount
+
",原有 taskCount="
+
MoveInfo
.
MoveParam
.
taskCount
+
",使用新数据"
);
MoveInfo
.
MoveParam
.
taskCount
=
newTaskCount
;
}
}
});
}
...
...
source/DeviceLibrary/ACPackingStore/StoreManager.cs
查看文件 @
c9f0806
...
...
@@ -329,8 +329,9 @@ namespace OnlineStore.DeviceLibrary
/// 地址: /rest/api/qisda/device/updateLocInfo
/// </summary>
private
static
string
Addr_updateLocInfo
=
"/rest/api/qisda/device/updateLocInfo"
;
public
static
string
UpdateTrayLoc
(
string
deviceName
,
string
barcode
,
string
locInfo
)
public
static
string
UpdateTrayLoc
(
string
deviceName
,
string
barcode
,
string
locInfo
,
out
int
taskCount
)
{
taskCount
=
0
;
string
msg
=
""
;
try
{
...
...
@@ -354,8 +355,18 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
serverResult
.
code
.
Equals
(
0
).
Equals
(
false
))
{
if
(
serverResult
.
data
!=
null
&&
(
String
.
IsNullOrEmpty
(
serverResult
.
data
.
taskCount
).
Equals
(
false
)))
{
try
{
taskCount
=
Convert
.
ToInt32
(
serverResult
.
data
.
taskCount
);
}
catch
(
Exception
ex
)
{
}
}
// code: 0为正常,其他为异常, msg: 消息, data: 为空
msg
=
deviceName
+
" UpdateTrayLoc【 "
+
barcode
+
"】【"
+
"INSHELF"
+
"】【"
+
locInfo
+
"】 :"
+
"["
+
serverResult
.
code
+
"]"
+
serverResult
.
msg
;
msg
=
deviceName
+
" UpdateTrayLoc【 "
+
barcode
+
"】【"
+
"INSHELF"
+
"】【"
+
locInfo
+
"】 :"
+
"["
+
serverResult
.
code
+
"]"
+
serverResult
.
msg
+
",taskCount="
+
taskCount
;
}
if
(!
msg
.
Equals
(
""
))
{
...
...
@@ -463,7 +474,7 @@ namespace OnlineStore.DeviceLibrary
public
class
ServerData
{
//{"code":0,"msg":"ok","data":"7"}
//返回: {"code": 0, "msg":"ok", "data":{"rfid":"xxx","smallEmpty":0,"bigEmpty":0, "packageEmpty":0,"cutPackageTask":0,"packageTask":10,"cutTask":10, "smallTask":5, "bigTask":5}
//返回: {"code": 0, "msg":"ok", "data":{"rfid":"xxx","smallEmpty":0,"bigEmpty":0, "packageEmpty":0,"cutPackageTask":0,"packageTask":10,"cutTask":10, "smallTask":5, "bigTask":5
,"taskCount":"3"
}
public
int
code
{
get
;
set
;
}
public
string
msg
{
get
;
set
;
}
...
...
@@ -474,6 +485,11 @@ namespace OnlineStore.DeviceLibrary
public
class
ShelfData
{
/// <summary>
/// UpdateTrayLoc后,会返回taskCount
/// </summary>
public
string
taskCount
{
get
;
set
;
}
/// <summary>
/// rfid: 当前料架的RFID
/// </summary>
public
string
rfid
{
get
;
set
;
}
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
c9f0806
...
...
@@ -121,9 +121,10 @@ namespace OnlineStore.DeviceLibrary
param
=
new
InOutParam
();
}
this
.
MoveParam
=
param
;
LastSetpTime
=
DateTime
.
Now
;
LastSetpTime
=
DateTime
.
Now
;
WaitList
=
new
List
<
WaitResultInfo
>();
currShelfIndex
=
-
1
;
SingleInstore
=
false
;
}
public
void
EndMove
()
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论