Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9d181bed
由
LN
编写于
2020-07-16 17:07:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
1995e274
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
4 行删除
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.Designer.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.cs
RC1266-AutoCountMachine/source/DeviceLibrary/manager/SServerManager.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.Designer.cs
查看文件 @
9d181be
...
@@ -243,10 +243,10 @@
...
@@ -243,10 +243,10 @@
//
//
// Column_ImageName
// Column_ImageName
//
//
this
.
Column_ImageName
.
HeaderText
=
"
图片名称
"
;
this
.
Column_ImageName
.
HeaderText
=
"
点料结果
"
;
this
.
Column_ImageName
.
Name
=
"Column_ImageName"
;
this
.
Column_ImageName
.
Name
=
"Column_ImageName"
;
this
.
Column_ImageName
.
ReadOnly
=
true
;
this
.
Column_ImageName
.
ReadOnly
=
true
;
this
.
Column_ImageName
.
Width
=
5
3
0
;
this
.
Column_ImageName
.
Width
=
5
5
0
;
//
//
// FrmAnalyze
// FrmAnalyze
//
//
...
...
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.cs
查看文件 @
9d181be
RC1266-AutoCountMachine/source/AutoCountClient/FrmRobotMain.cs
查看文件 @
9d181be
RC1266-AutoCountMachine/source/DeviceLibrary/manager/SServerManager.cs
查看文件 @
9d181be
...
@@ -110,14 +110,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -110,14 +110,17 @@ namespace OnlineStore.DeviceLibrary
return
""
;
return
""
;
}
}
DateTime
startTime
=
DateTime
.
Now
;
DateTime
startTime
=
DateTime
.
Now
;
string
resultStr
=
HttpHelper
.
Get
(
server
)
;
string
resultStr
=
HttpHelper
.
Get
(
server
)
.
Replace
(
"\r\n"
,
" "
);
//【<?xml version="1.0" encoding="utf-8"?>< string xmlns = "http://tempuri.org/" > NG 不可退料 厂别:ST </ string >】
//【<?xml version="1.0" encoding="utf-8"?>< string xmlns = "http://tempuri.org/" > NG 不可退料 厂别:ST </ string >】
LogUtil
.
info
(
deviceName
+
"Return_Material "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
LogUtil
.
info
(
deviceName
+
"Return_Material "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
//resultStr = "<?xml version=\"1.0\" encoding=\"utf - 8\"?>< string xmlns = \"http://tempuri.org/\" > NG 不可退料 厂别:ST </ string >";
if
(
resultStr
.
Contains
(
"NG"
))
if
(
resultStr
.
Contains
(
"NG"
))
{
{
msg
=
resultStr
.
Replace
(
"<?xml version=\"1.0\" encoding=\"utf - 8\"?>< string xmlns = \"http://tempuri.org/\" >"
,
""
).
Replace
(
" </ string >"
,
""
);
int
index
=
resultStr
.
IndexOf
(
"NG"
);
msg
=
resultStr
.
Substring
(
index
,
resultStr
.
Length
-
index
).
Replace
(
"</ string >"
,
""
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论