Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d6afcf61
由
刘韬
编写于
2021-12-20 14:42:46 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
优化板卡加载失败的提示
修改载具条码逻辑
1 个父辈
459bc4ee
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
7 行删除
source/ACSingleStore/Properties/AssemblyInfo.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/Properties/AssemblyInfo.cs
查看文件 @
d6afcf6
...
...
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
3e118616c07f7b355f3a704f34346d4bf67708ee
")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore
459bc4ee5f86ccae0d831b10a463616def194026
")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
d6afcf6
...
...
@@ -106,7 +106,7 @@ namespace OnlineStore.DeviceLibrary
//初始化 //连接设备
if
(!
IOManager
.
instance
.
ConnectionIOList
(
Config
.
DIODeviceNameList
))
{
//throw new Exception("伺服板卡加载失败
");
SetWarnMsg
(
ResourceControl
.
CustAlarm
,
"EtherCat PCI Card Open Fail.
"
);
}
...
...
@@ -1641,23 +1641,31 @@ namespace OnlineStore.DeviceLibrary
private
string
ProcessCode
(
string
[]
codeList
)
{
string
message
=
""
;
string
codeSize
=
""
;
List
<
string
>
codelists
=
new
List
<
string
>(
codeList
);
//= 7x12 = CODE
foreach
(
string
str
in
code
List
)
foreach
(
string
str
in
code
lists
.
ToArray
()
)
{
string
code
=
str
;
//根据二维码开头获取固定尺寸
string
codeSize
=
Config
.
GetCodeSize
(
str
.
Trim
());
codeSize
=
Config
.
GetCodeSize
(
str
.
Trim
());
if
(!
String
.
IsNullOrEmpty
(
codeSize
))
{
LogUtil
.
info
(
Name
+
"夹具弃用条码【"
+
codeSize
+
"】:"
+
code
);
codelists
.
Remove
(
code
);
break
;
//message = message + "=" + "1+0x0-" + codeSize + "=" + code + dlScanSocket.spiltStr;
}
}
if
(
String
.
IsNullOrEmpty
(
codeSize
))
{
//无固定尺寸,判断宽度是否是固定,如果不是固定,直接获取当前高度宽度
codeSize
=
GetSize
()
+
"x"
+
GetHeight
();
}
if
(!
String
.
IsNullOrEmpty
(
code
))
foreach
(
string
code
in
codelists
.
ToArray
(
))
{
message
=
message
+
"="
+
"1+0x0-"
+
codeSize
+
"="
+
code
+
dlScanSocket
.
spiltStr
;
}
}
return
message
;
}
#
endregion
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论