Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 49d85614
由
LN
编写于
2020-01-15 18:48:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
22345adb
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
22 行删除
source/AssemblyLineClient/FrmRFIPEdit.Designer.cs
source/AssemblyLineClient/FrmRFIPEdit.cs
source/AssemblyLineClient/FrmRFIPEdit.Designer.cs
查看文件 @
49d8561
...
@@ -204,15 +204,13 @@
...
@@ -204,15 +204,13 @@
//
//
// lblResult
// lblResult
//
//
this
.
lblResult
.
AutoSize
=
true
;
this
.
lblResult
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblResult
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblResult
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblResult
.
Location
=
new
System
.
Drawing
.
Point
(
23
,
113
);
this
.
lblResult
.
Location
=
new
System
.
Drawing
.
Point
(
147
,
113
);
this
.
lblResult
.
Name
=
"lblResult"
;
this
.
lblResult
.
Name
=
"lblResult"
;
this
.
lblResult
.
Size
=
new
System
.
Drawing
.
Size
(
79
,
20
);
this
.
lblResult
.
Size
=
new
System
.
Drawing
.
Size
(
328
,
25
);
this
.
lblResult
.
TabIndex
=
284
;
this
.
lblResult
.
TabIndex
=
284
;
this
.
lblResult
.
Text
=
"读取到数据"
;
this
.
lblResult
.
Text
=
"读取到数据"
;
this
.
lblResult
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
Middle
Right
;
this
.
lblResult
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
Middle
Center
;
//
//
// FrmRFIPEdit
// FrmRFIPEdit
//
//
...
...
source/AssemblyLineClient/FrmRFIPEdit.cs
查看文件 @
49d8561
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
OnlineStore.Common
;
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.ComponentModel
;
...
@@ -28,6 +29,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -28,6 +29,7 @@ namespace OnlineStore.AssemblyLine
comboxType
.
Items
.
Clear
();
comboxType
.
Items
.
Clear
();
foreach
(
EquipBase
b
in
LineManager
.
Line
.
AllEquipMap
.
Values
)
foreach
(
EquipBase
b
in
LineManager
.
Line
.
AllEquipMap
.
Values
)
{
{
if
(
b
.
baseConfig
.
DType
.
Equals
(
DeviceType
.
DischargeLine
))
{
continue
;
}
string
key
=
b
.
Name
+
"-托盘RF"
;
string
key
=
b
.
Name
+
"-托盘RF"
;
string
value
=
RFIDManager
.
GetRFIP
(
b
.
DeviceID
);
string
value
=
RFIDManager
.
GetRFIP
(
b
.
DeviceID
);
rfMap
.
Add
(
key
,
value
);
rfMap
.
Add
(
key
,
value
);
...
@@ -44,19 +46,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -44,19 +46,7 @@ namespace OnlineStore.AssemblyLine
comType
.
SelectedIndex
=
0
;
comType
.
SelectedIndex
=
0
;
string
hostN
=
Dns
.
GetHostName
();
string
hostN
=
Dns
.
GetHostName
();
//IPAddress[] addresss = Dns.GetHostAddresses(hostN);
//cmbLocalIp.Items.Clear();
//if (addresss != null && addresss.Length > 0)
//{
// foreach (IPAddress ip in addresss)
// {
// if (ip.AddressFamily.Equals(AddressFamily.InterNetwork))
// {
// cmbLocalIp.Items.Add(ip.ToString());
// }
// }
// cmbLocalIp.SelectedIndex = 0;
//}
}
}
...
@@ -82,8 +72,9 @@ namespace OnlineStore.AssemblyLine
...
@@ -82,8 +72,9 @@ namespace OnlineStore.AssemblyLine
}
}
}
}
lblResult
.
Text
=(
"读取到数据:"
+
resul
);
LogUtil
.
info
(
"点击RFID读取数据测试,结果:"
+
resul
);
lblResult
.
Text
=(
"["
+
ip
+
"]读取到数据:"
+
resul
);
LogUtil
.
info
(
"点击RFID["
+
ip
+
"]读取数据测试,结果:"
+
resul
);
}
}
private
void
comboxType_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
private
void
comboxType_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
...
@@ -114,8 +105,8 @@ namespace OnlineStore.AssemblyLine
...
@@ -114,8 +105,8 @@ namespace OnlineStore.AssemblyLine
}
}
}
}
lblResult
.
Text
=
(
"读取到数据:"
+
resul
);
lblResult
.
Text
=
(
"
["
+
ip
+
"]
读取到数据:"
+
resul
);
LogUtil
.
info
(
"点击RFID读取数据并清理测试,结果:"
+
resul
);
LogUtil
.
info
(
"点击RFID
["
+
ip
+
"]
读取数据并清理测试,结果:"
+
resul
);
}
}
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论