Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 4f859e02
由
LN
编写于
2023-06-20 09:29:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入库使用服务器返回的尺寸
1 个父辈
a0a89200
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
1 行删除
source/Common/bean/Bean.cs
source/Common/util/FormUtil.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblymanager/SServerManager.cs
source/Common/bean/Bean.cs
查看文件 @
4f859e0
...
@@ -22,6 +22,8 @@ namespace OnlineStore.Common
...
@@ -22,6 +22,8 @@ namespace OnlineStore.Common
{
{
// //{"result":"0","msg":"","pos":"11#AC1_18_4_28","barcode":"R506072019102200414","cid":"line-ac-11"}
// //{"result":"0","msg":"","pos":"11#AC1_18_4_28","barcode":"R506072019102200414","cid":"line-ac-11"}
// 返回: {"code": 0, "msg":"ok", data:7}
// 返回: {"code": 0, "msg":"ok", data:7}
// resultMap.put("plateW",dataLog.getW());
//resultMap.put("plateH",dataLog.getH());
/// <summary>
/// <summary>
/// 0=成功
/// 0=成功
/// </summary>
/// </summary>
...
@@ -30,7 +32,8 @@ namespace OnlineStore.Common
...
@@ -30,7 +32,8 @@ namespace OnlineStore.Common
public
string
msg
=
""
;
public
string
msg
=
""
;
public
string
pos
=
""
;
public
string
pos
=
""
;
public
string
barcode
=
""
;
public
string
barcode
=
""
;
public
string
plateW
=
""
;
public
string
plateH
=
""
;
}
}
/// <summary>
/// <summary>
/// 与服务器通信用对象
/// 与服务器通信用对象
...
...
source/Common/util/FormUtil.cs
查看文件 @
4f859e0
...
@@ -9,6 +9,19 @@ namespace OnlineStore.Common
...
@@ -9,6 +9,19 @@ namespace OnlineStore.Common
{
{
public
class
FormUtil
public
class
FormUtil
{
{
public
static
int
GetIntValue
(
String
text
)
{
int
value
=
0
;
try
{
value
=
int
.
Parse
(
text
);
}
catch
(
Exception
ex
)
{
value
=
0
;
}
return
value
;
}
public
static
int
GetIntValue
(
TextBox
txt
)
public
static
int
GetIntValue
(
TextBox
txt
)
{
{
int
value
=
0
;
int
value
=
0
;
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
4f859e0
...
@@ -599,6 +599,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -599,6 +599,18 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
cc
.
TrayNumber
.
Equals
(
currTrayNum
)
&&
(!
cc
.
WareCode
.
Equals
(
""
)))
if
(
cc
.
TrayNumber
.
Equals
(
currTrayNum
)
&&
(!
cc
.
WareCode
.
Equals
(
""
)))
{
{
//TODO 需要判断托盘的料盘信息与入库的是否一致
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
currTrayNum
);
if
(
trayInfo
.
IsFull
&&
trayInfo
.
InOrOutStore
.
Equals
(
1
)
&&
trayInfo
.
InoutPar
.
PosId
.
Equals
(
cc
.
PosId
)){
}
else
{
LogUtil
.
error
(
Name
+
"托盘号【"
+
currTrayNum
+
"】的入库任务【"
+
cc
.
ToStr
()
+
"】与托盘实际信息不一致:【"
+
trayInfo
.
ToStr
()
+
"】不拦截托盘入库"
);
return
false
;
}
//if (LineManager.useTrayCheck.Contains(DeviceID) && IOValue(IO_Type.TrayCheck).Equals(IO_VALUE.LOW))
//if (LineManager.useTrayCheck.Contains(DeviceID) && IOValue(IO_Type.TrayCheck).Equals(IO_VALUE.LOW))
//{
//{
// LogInfo(" 入库需拦截有料托盘【 " + currTrayNum + "】,有料托盘料盘检测信号不亮,禁用托盘");
// LogInfo(" 入库需拦截有料托盘【 " + currTrayNum + "】,有料托盘料盘检测信号不亮,禁用托盘");
...
...
source/DeviceLibrary/assemblymanager/SServerManager.cs
查看文件 @
4f859e0
...
@@ -504,6 +504,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -504,6 +504,8 @@ namespace OnlineStore.DeviceLibrary
return
result
;
return
result
;
}
}
//{"result":"0","msg":"","pos":"11#AC1_18_4_28","barcode":"R506072019102200414","cid":"line-ac-11"}
//{"result":"0","msg":"","pos":"11#AC1_18_4_28","barcode":"R506072019102200414","cid":"line-ac-11"}
//resultMap.put("plateW", dataLog.getW());
//resultMap.put("plateH", dataLog.getH());
LineOperation
serverResult
=
JsonHelper
.
DeserializeJsonToObject
<
LineOperation
>(
resultStr
);
LineOperation
serverResult
=
JsonHelper
.
DeserializeJsonToObject
<
LineOperation
>(
resultStr
);
if
(
serverResult
==
null
)
if
(
serverResult
==
null
)
...
@@ -539,6 +541,16 @@ namespace OnlineStore.DeviceLibrary
...
@@ -539,6 +541,16 @@ namespace OnlineStore.DeviceLibrary
//例如: 4D12010124 表示4楼12号料仓第1列第1行架子上的第24个隔板位置
//例如: 4D12010124 表示4楼12号料仓第1列第1行架子上的第24个隔板位置
//4D19050208 表示4楼19号料仓(包装料仓)第5列第2行架子上的第8个隔板位置
//4D19050208 表示4楼19号料仓(包装料仓)第5列第2行架子上的第8个隔板位置
string
posId
=
serverResult
.
pos
;
string
posId
=
serverResult
.
pos
;
int
pH
=
FormUtil
.
GetIntValue
(
serverResult
.
plateH
);
int
pW
=
FormUtil
.
GetIntValue
(
serverResult
.
plateW
);
if
(
pH
>
0
)
{
height
=
pH
;
}
if
(
pW
>
0
)
{
width
=
pW
;
}
//根据库位号查找移栽
//根据库位号查找移栽
// 判断PosID是否已经在入库或者在排队列表中,如果已经存在,加入列表失败
// 判断PosID是否已经在入库或者在排队列表中,如果已经存在,加入列表失败
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论