Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
顾剑亮
/
AGVControl_Steel
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9272cfa7
由
张东亮
编写于
2023-05-26 10:19:03 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
98fa3faa
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
38 行增加
和
12 行删除
BLL/Control.cs
BLL/WebService/WebWork.cs
BLL/bin/Debug/BLL.dll
BLL/bin/Debug/BLL.pdb
BLL/obj/Debug/BLL.dll
BLL/obj/Debug/BLL.pdb
UI/bin/Debug/AGVControl_Steel.exe
UI/bin/Debug/AGVControl_Steel.pdb
UI/bin/Debug/BLL.dll
UI/bin/Debug/BLL.pdb
UI/obj/Debug/AGVControl_Steel.exe
UI/obj/Debug/AGVControl_Steel.pdb
BLL/Control.cs
查看文件 @
9272cfa
...
...
@@ -198,14 +198,14 @@ namespace BLL
{
string
value
=
string
.
Format
(
"在仓储等待离开信号超时{0:F}分钟"
,
tt
);
DisplayBoard
.
Add
(
name
,
"lineAgv."
+
name
+
".StandTimeOut"
,
value
,
0
);
Common
.
log
.
Info
(
agv
.
Name
+
" 上传报告 "
+
value
);
Common
.
log
.
Debug
(
agv
.
Name
+
" 上传报告 "
+
value
);
agv
.
LogJson
.
SetErrorStart
(
agv
.
TaskName
,
value
);
}
else
{
string
value
=
string
.
Format
(
"在去{0}途中停留超时{1:F}分钟,{2}"
,
agv
.
Place
,
tt
,
agv
.
MissionText
);
DisplayBoard
.
Add
(
name
,
"lineAgv."
+
name
+
".StandTimeOut"
,
value
,
0
);
Common
.
log
.
Info
(
agv
.
Name
+
" 上传报告 "
+
value
);
Common
.
log
.
Debug
(
agv
.
Name
+
" 上传报告 "
+
value
);
agv
.
LogJson
.
SetErrorStart
(
agv
.
TaskName
,
value
);
}
}
...
...
BLL/WebService/WebWork.cs
查看文件 @
9272cfa
...
...
@@ -50,17 +50,19 @@ namespace BLL
public
Result
StorageGet
(
string
place
)
{
Common
.
log
.
Info
(
"storage[GET] place="
+
place
);
return
Storage
(
place
);
Result
result
=
Storage
(
place
);
Common
.
log
.
Info
(
$
"storage[GET] place={place},{result.Msg}"
);
return
result
;
}
public
Result
StoragePost
(
Stream
info
)
{
StreamReader
sr
=
new
StreamReader
(
info
);
string
s
=
sr
.
ReadToEnd
();
Common
.
log
.
Info
(
"storage[POST] "
+
s
);
s
=
s
.
ToLower
().
Replace
(
"place="
,
""
);
return
Storage
(
s
);
Result
result
=
Storage
(
s
);
Common
.
log
.
Info
(
$
"storage[POST] {s},{result.Msg}"
);
return
result
;
}
...
...
@@ -68,7 +70,7 @@ namespace BLL
private
Result
TakeOld
(
string
place
)
{
Result
res
=
new
Result
();
try
{
place
=
place
.
ToUpper
();
...
...
@@ -96,7 +98,7 @@ namespace BLL
private
Result
SendNew
(
string
from
,
string
place
)
{
Result
res
=
new
Result
();
try
{
from
=
from
.
ToUpper
();
...
...
@@ -127,10 +129,11 @@ namespace BLL
private
Result
Storage
(
string
place
)
{
Result
res
=
new
Result
();
try
{
place
=
place
.
ToUpper
();
string
agv
=
FindAgv
();
if
(
place
==
Common
.
STORAGE_ENTER_4C
.
ToUpper
())
{
res
.
Msg
=
"OK,4C"
;
...
...
@@ -143,19 +146,42 @@ namespace BLL
}
else
if
(
place
==
Common
.
STORAGE_LEAVE
.
ToUpper
())
{
SteelManage
.
StorageWorkAdd
(
place
);
if
(!
string
.
IsNullOrEmpty
(
agv
))
{
SteelManage
.
StorageWorkAdd
(
place
);
res
.
Msg
=
"OK,"
+
agv
;
}
else
{
res
.
Msg
=
"NG,"
+
agv
;
}
}
else
if
(
place
==
Common
.
STORAGE_IO_ON
.
ToUpper
())
{
Common
.
StorageDockFinish
=
true
;
UpdateStorageIO
();
res
.
Msg
=
"OK,"
+
FindAgv
();
if
(
string
.
IsNullOrEmpty
(
agv
))
{
res
.
Msg
=
"NG,"
+
agv
;
}
else
{
res
.
Msg
=
"OK,"
+
agv
;
}
}
else
if
(
place
==
Common
.
STORAGE_IO_OFF
.
ToUpper
())
{
Common
.
StorageDockFinish
=
false
;
UpdateStorageIO
();
res
.
Msg
=
"OK,"
+
FindAgv
();
if
(
string
.
IsNullOrEmpty
(
agv
))
{
res
.
Msg
=
"NG,"
+
agv
;
}
else
{
res
.
Msg
=
"OK,"
+
agv
;
}
}
else
{
...
...
BLL/bin/Debug/BLL.dll
查看文件 @
9272cfa
此文件类型无法预览
BLL/bin/Debug/BLL.pdb
查看文件 @
9272cfa
此文件类型无法预览
BLL/obj/Debug/BLL.dll
查看文件 @
9272cfa
此文件类型无法预览
BLL/obj/Debug/BLL.pdb
查看文件 @
9272cfa
此文件类型无法预览
UI/bin/Debug/AGVControl_Steel.exe
查看文件 @
9272cfa
此文件类型无法预览
UI/bin/Debug/AGVControl_Steel.pdb
查看文件 @
9272cfa
此文件类型无法预览
UI/bin/Debug/BLL.dll
查看文件 @
9272cfa
此文件类型无法预览
UI/bin/Debug/BLL.pdb
查看文件 @
9272cfa
此文件类型无法预览
UI/obj/Debug/AGVControl_Steel.exe
查看文件 @
9272cfa
此文件类型无法预览
UI/obj/Debug/AGVControl_Steel.pdb
查看文件 @
9272cfa
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论