Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-VMILineClient
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b82fc895
由
LN
编写于
2020-01-13 09:28:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
通信修改
1 个父辈
5237de7b
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
38 行增加
和
12 行删除
source/DeviceLibrary/DeviceLibrary.csproj
source/DeviceLibrary/RFID/RFIDManager.cs
source/DeviceLibrary/acVmiLine/VMILineBean.cs
source/DeviceLibrary/acVmiLine/VMILineBean_Partial.cs
source/VMILineClient/FrmVMIClient.Designer.cs
source/DeviceLibrary/DeviceLibrary.csproj
查看文件 @
b82fc89
...
...
@@ -59,6 +59,7 @@
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
...
...
source/DeviceLibrary/RFID/RFIDManager.cs
查看文件 @
b82fc89
...
...
@@ -78,7 +78,14 @@ namespace OnlineStore.DeviceLibrary
public
RFIDData
(
int
num
,
int
t
)
{
this
.
RFType
=
(
char
)
t
;
if
(
t
<
65
)
{
RFType
=
'0'
;
}
else
{
this
.
RFType
=
(
char
)
t
;
}
this
.
Num
=
num
;
}
...
...
@@ -88,7 +95,14 @@ namespace OnlineStore.DeviceLibrary
{
if
(
data
!=
null
&&
data
.
Length
>
2
)
{
RFType
=
(
char
)
data
[
1
];
if
(
data
[
1
]
<
65
)
{
RFType
=
'0'
;
}
else
{
RFType
=
(
char
)
data
[
1
];
}
Num
=
(
int
)(
data
[
2
]);
}
}
...
...
source/DeviceLibrary/acVmiLine/VMILineBean.cs
查看文件 @
b82fc89
...
...
@@ -468,20 +468,33 @@ namespace OnlineStore.DeviceLibrary
}
isInProcess
=
false
;
}
private
static
string
GetAddr
(
string
addr
,
Dictionary
<
string
,
string
>
paramsMap
)
{
string
server
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
http_server
);
if
(
server
.
EndsWith
(
"/"
))
{
server
=
server
.
Substring
(
0
,
server
.
Length
-
1
);
}
string
path
=
server
+
addr
.
Trim
()
+
"?"
;
foreach
(
string
paramName
in
paramsMap
.
Keys
)
{
string
par
=
System
.
Web
.
HttpUtility
.
UrlEncode
(
paramsMap
[
paramName
],
System
.
Text
.
Encoding
.
UTF8
);
path
+=
paramName
+
"="
+
par
+
"&"
;
}
path
=
path
.
Substring
(
0
,
path
.
Length
-
1
);
return
path
;
}
private
string
http_server
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
http_server
);
private
string
api_communication
=
"service/store/qisda/vmiRfid
?rfid=
"
;
//流水线状态通信接口
private
string
api_communication
=
"service/store/qisda/vmiRfid"
;
//流水线状态通信接口
private
string
lastLog
=
""
;
public
bool
SendVmiRfid
(
string
rfid
)
{
try
{
if
(
http_server
.
EndsWith
(
"/"
))
{
http_server
=
http_server
.
Substring
(
0
,
http_server
.
Length
-
1
);
}
string
addr
=
http_server
+
api_communication
+
rfid
;
Dictionary
<
string
,
string
>
paramMap
=
new
Dictionary
<
string
,
string
>();
paramMap
.
Add
(
"rfid"
,
rfid
);
string
addr
=
GetAddr
(
api_communication
,
paramMap
)
;
string
resultStr
=
HttpHelper
.
Post
(
addr
,
""
);
string
log
=
"vmiRfid 【"
+
addr
+
"】【"
+
resultStr
+
"】"
;
if
(
lastLog
.
Equals
(
log
).
Equals
(
false
))
...
...
@@ -491,7 +504,6 @@ namespace OnlineStore.DeviceLibrary
}
if
(
resultStr
.
Equals
(
"move"
))
{
return
true
;
}
}
...
...
source/DeviceLibrary/acVmiLine/VMILineBean_Partial.cs
查看文件 @
b82fc89
...
...
@@ -125,7 +125,7 @@ namespace OnlineStore.DeviceLibrary
public
string
GetRunInfo
()
{
return
"
入
料流水线:入库料架 ["
+
LastInShelfId
+
"] 出口料架 ["
+
LastOutShelfId
+
"]"
;
return
"
进
料流水线:入库料架 ["
+
LastInShelfId
+
"] 出口料架 ["
+
LastOutShelfId
+
"]"
;
}
#
endregion
}
...
...
source/VMILineClient/FrmVMIClient.Designer.cs
查看文件 @
b82fc89
...
...
@@ -151,7 +151,6 @@
this
.
lblInfo
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
17
);
this
.
lblInfo
.
TabIndex
=
273
;
this
.
lblInfo
.
Text
=
"运行信息"
;
this
.
lblInfo
.
Visible
=
false
;
//
// btnVmiExit
//
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论