Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b9088dc4
由
LN
编写于
2020-01-14 20:56:17 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加rfid参数
1 个父辈
bae79475
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
9 行删除
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
b9088dc
...
...
@@ -1221,7 +1221,7 @@ namespace OnlineStore.DeviceLibrary
}
public
bool
ReviceLineCheckInStoreCMD
(
string
posId
,
string
plateH
,
string
plateW
,
string
message
)
public
bool
ReviceLineCheckInStoreCMD
(
string
posId
,
string
plateH
,
string
plateW
,
string
message
,
string
rfid
)
{
string
logName
=
"入库库位验证【 "
+
message
+
"】【"
+
posId
+
"】:"
;
try
...
...
@@ -1229,15 +1229,15 @@ namespace OnlineStore.DeviceLibrary
if
(
storeRunStatus
.
Equals
(
StoreRunStatus
.
Wait
))
{
LogUtil
.
info
(
LOGGER
,
logName
+
" 设备未启动,验证失败"
);
LogUtil
.
info
(
LOGGER
,
logName
+
" 设备未启动,验证失败"
);
return
false
;
}
// CodeMsg = "收到二维码【 " + message + "】,发送给服务器获取入库PosID";
LogUtil
.
debug
(
LOGGER
,
logName
+
"发送给服务器验证入库PosID"
);
LogUtil
.
debug
(
LOGGER
,
logName
+
"发送给服务器验证入库PosID"
);
//发送扫码内容到服务器进行入库操作
Operation
operation
=
getLineBoxStatus
();
operation
.
op
=
1
;
operation
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
StoreID
.
ToString
()
}
};
operation
.
data
=
new
Dictionary
<
string
,
string
>()
{
{
"code"
,
message
},
{
"boxId"
,
StoreID
.
ToString
()
}
,
{
"rfid"
,
rfid
}
};
operation
.
data
.
Add
(
"inPos"
,
posId
);
string
server
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
http_server
);
Operation
resultOperation
=
HttpHelper
.
Post
(
StoreManager
.
GetPostApi
(
server
),
operation
,
false
);
...
...
@@ -1265,13 +1265,13 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
public
void
ReviceLineInStoreCMD
(
string
posId
,
string
plateH
,
string
plateW
,
string
message
)
public
void
ReviceLineInStoreCMD
(
string
posId
,
string
plateH
,
string
plateW
,
string
message
,
string
rfid
)
{
string
logName
=
"流水线入库命令【 "
+
message
+
"】【"
+
posId
+
"】:"
;
if
(!
LineConnect
.
WaitInStoreList
.
Contains
(
posId
))
{
LogUtil
.
error
(
logName
+
"库位未验证通过,重新验证库位"
);
bool
result
=
ReviceLineCheckInStoreCMD
(
posId
,
plateH
,
plateW
,
message
);
bool
result
=
ReviceLineCheckInStoreCMD
(
posId
,
plateH
,
plateW
,
message
,
rfid
);
if
(!
result
)
{
return
;
...
...
@@ -1293,7 +1293,10 @@ namespace OnlineStore.DeviceLibrary
//TODO:判断BOX是否处于可以入库状态,如果调试或急停中,需要返回给服务器;
if
(
CanStarInOut
())
{
InOutParam
param
=
new
InOutParam
(
new
InOutPosInfo
(
message
,
posId
,
plateH
,
plateW
));
InOutPosInfo
inout
=
new
InOutPosInfo
(
message
,
posId
,
plateH
,
plateW
);
inout
.
rfid
=
rfid
;
InOutParam
param
=
new
InOutParam
(
inout
);
LogUtil
.
info
(
logName
+
" 开始入库!"
);
StartInStoreMove
(
param
);
//如果当前正在出入库中,需要记录下来,等待空闲时执行
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
b9088dc
...
...
@@ -111,7 +111,7 @@ namespace OnlineStore.DeviceLibrary
if
(
cmd
.
Equals
(
cmd_startIn
))
{
LogUtil
.
info
(
"收到流水线入库消息:"
+
message
);
StoreManager
.
Store
.
ReviceLineInStoreCMD
(
reviceInfo
.
PosId
,
reviceInfo
.
PlateH
,
reviceInfo
.
PlateW
,
reviceInfo
.
WareCode
);
StoreManager
.
Store
.
ReviceLineInStoreCMD
(
reviceInfo
.
PosId
,
reviceInfo
.
PlateH
,
reviceInfo
.
PlateW
,
reviceInfo
.
WareCode
,
reviceInfo
.
rfid
);
}
else
if
(
cmd
.
Equals
(
cmd_updateDebug
))
{
...
...
@@ -131,7 +131,7 @@ namespace OnlineStore.DeviceLibrary
// LineConnect.WaitInStoreList.Remove(reviceInfo.PosId);
//}
bool
result
=
StoreManager
.
Store
.
ReviceLineCheckInStoreCMD
(
reviceInfo
.
PosId
,
reviceInfo
.
PlateH
,
reviceInfo
.
PlateW
,
reviceInfo
.
WareCode
);
bool
result
=
StoreManager
.
Store
.
ReviceLineCheckInStoreCMD
(
reviceInfo
.
PosId
,
reviceInfo
.
PlateH
,
reviceInfo
.
PlateW
,
reviceInfo
.
WareCode
,
reviceInfo
.
rfid
);
if
(
result
&&
(!
WaitInStoreList
.
Contains
(
reviceInfo
.
PosId
)))
{
LineConnect
.
WaitInStoreList
.
Add
(
reviceInfo
.
PosId
);
...
...
@@ -198,6 +198,7 @@ namespace OnlineStore.DeviceLibrary
public
string
PlateW
=
"0"
;
public
string
WareCode
=
""
;
public
int
IsDebug
=
0
;
public
string
rfid
=
""
;
}
public
class
StoreSendBean
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论