Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-OutletEquip
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c3202696
由
LN
编写于
2021-04-26 15:42:49 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出料机构的料架rfid上传到环形线
1 个父辈
59a307c3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
23 行增加
和
15 行删除
source/DeviceLibrary/bean/EquipBean.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/HCSingleStore/FrmEquip.cs
source/DeviceLibrary/bean/EquipBean.cs
查看文件 @
c320269
...
@@ -948,6 +948,22 @@ namespace OnlineStore.DeviceLibrary
...
@@ -948,6 +948,22 @@ namespace OnlineStore.DeviceLibrary
}
}
return
str
;
return
str
;
}
}
public
string
GetShelfRfids
(
string
spilt
=
","
)
{
string
str
=
""
;
foreach
(
WorkStation
shelf
in
StationMap
.
Values
)
{
if
(!
String
.
IsNullOrEmpty
(
shelf
.
CurrShelf
.
RealShelf
))
{
str
+=
shelf
.
CurrShelf
.
RealShelf
+
spilt
;
}
}
if
(
str
.
EndsWith
(
spilt
))
{
str
=
str
.
Substring
(
0
,
str
.
Length
-
1
);
}
return
str
;
}
private
void
StartMove
()
private
void
StartMove
()
{
{
LogUtil
.
debug
(
Name
+
"开始移栽【"
+
LineConnect
.
DoorPosInfo
.
ToStr
()
+
"】"
);
LogUtil
.
debug
(
Name
+
"开始移栽【"
+
LineConnect
.
DoorPosInfo
.
ToStr
()
+
"】"
);
...
@@ -1146,7 +1162,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1146,7 +1162,7 @@ namespace OnlineStore.DeviceLibrary
posId
=
MoveInfo
.
MoveParam
?.
PosInfo
.
BoxPosId
;
posId
=
MoveInfo
.
MoveParam
?.
PosInfo
.
BoxPosId
;
}
}
}
}
StoreSendBean
store
=
lineConn
.
GetBean
((
int
)
ss
,
(
int
)
storeRunStatus
,
hasTray
,
(
int
)
alarmType
,
posId
);
StoreSendBean
store
=
lineConn
.
GetBean
((
int
)
ss
,
(
int
)
storeRunStatus
,
hasTray
,
(
int
)
alarmType
,
posId
,
GetShelfRfids
()
);
lineConn
.
SendHeart
(
store
);
lineConn
.
SendHeart
(
store
);
}
}
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
c320269
...
@@ -222,9 +222,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -222,9 +222,9 @@ namespace OnlineStore.DeviceLibrary
}
}
public
StoreSendBean
GetBean
(
int
ss
,
int
runs
,
int
doorHasTray
,
int
alarmType
,
string
currPosId
)
public
StoreSendBean
GetBean
(
int
ss
,
int
runs
,
int
doorHasTray
,
int
alarmType
,
string
currPosId
,
string
rfids
)
{
{
StoreSendBean
bean
=
new
StoreSendBean
(
ss
,
runs
,
doorHasTray
,
alarmType
,
currPosId
);
StoreSendBean
bean
=
new
StoreSendBean
(
ss
,
runs
,
doorHasTray
,
alarmType
,
currPosId
,
rfids
);
bean
.
StoreId
=
StoreId
;
bean
.
StoreId
=
StoreId
;
bean
.
Cid
=
CID
;
bean
.
Cid
=
CID
;
...
@@ -258,7 +258,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -258,7 +258,7 @@ namespace OnlineStore.DeviceLibrary
}
}
public
class
StoreSendBean
public
class
StoreSendBean
{
{
public
StoreSendBean
(
int
ss
,
int
runs
,
int
doorHasTray
,
int
alarmType
,
string
currPosId
)
public
StoreSendBean
(
int
ss
,
int
runs
,
int
doorHasTray
,
int
alarmType
,
string
currPosId
,
string
rfids
)
{
{
this
.
StoreId
=
7
;
this
.
StoreId
=
7
;
this
.
Cid
=
""
;
this
.
Cid
=
""
;
...
@@ -270,6 +270,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -270,6 +270,7 @@ namespace OnlineStore.DeviceLibrary
this
.
WaitInStoreList
=
new
List
<
string
>();
this
.
WaitInStoreList
=
new
List
<
string
>();
this
.
data
=
new
Dictionary
<
string
,
string
>();
this
.
data
=
new
Dictionary
<
string
,
string
>();
this
.
CurrPosId
=
currPosId
;
this
.
CurrPosId
=
currPosId
;
this
.
rfids
=
rfids
;
}
}
public
string
Cmd
=
LineConnect
.
cmd_heart
;
public
string
Cmd
=
LineConnect
.
cmd_heart
;
...
@@ -285,6 +286,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -285,6 +286,6 @@ namespace OnlineStore.DeviceLibrary
public
List
<
string
>
WaitInStoreList
=
new
List
<
string
>();
public
List
<
string
>
WaitInStoreList
=
new
List
<
string
>();
public
Dictionary
<
string
,
string
>
data
=
new
Dictionary
<
string
,
string
>();
public
Dictionary
<
string
,
string
>
data
=
new
Dictionary
<
string
,
string
>();
public
string
rfids
=
""
;
}
}
}
}
source/HCSingleStore/FrmEquip.cs
查看文件 @
c320269
...
@@ -631,16 +631,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -631,16 +631,7 @@ namespace OnlineStore.ACSingleStore
}
}
posid
=
equip
.
MoveInfo
.
MoveParam
?.
PosInfo
.
BoxPosId
;
posid
=
equip
.
MoveInfo
.
MoveParam
?.
PosInfo
.
BoxPosId
;
}
}
StoreSendBean
bean
=
equip
.
lineConn
.
GetBean
((
int
)
ss
,
(
int
)
StoreRunStatus
.
Runing
,
hasTray
,
(
int
)
StoreAlarmType
.
None
,
posid
);
StoreSendBean
bean
=
equip
.
lineConn
.
GetBean
((
int
)
ss
,
(
int
)
StoreRunStatus
.
Runing
,
hasTray
,
(
int
)
StoreAlarmType
.
None
,
posid
,
equip
.
GetShelfRfids
());
//bean.data.Add(ParamDefine.posId, cmbPosition.Text);
//bean.data.Add(ParamDefine.plateH, "8");
//bean.data.Add(ParamDefine.plateW, "7");
//bean.data.Add(ParamDefine.cutReel, false.ToString());
//bean.data.Add(ParamDefine.smallReel, true.ToString());
//bean.data.Add(ParamDefine.urgentReel, false.ToString());
//bean.data.Add(ParamDefine.rfid, "E99");
//bean.data.Add(ParamDefine.rfidLoc, 72.ToString());
//bean.data.Add(ParamDefine.barcode, "code");
equip
.
lineConn
.
SendHeart
(
bean
);
equip
.
lineConn
.
SendHeart
(
bean
);
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论