Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 18028b8a
由
张东亮
编写于
2024-03-11 13:33:50 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
codelibrary的log4net版本不一致问题处理
1 个父辈
d20ac852
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
56 行增加
和
35 行删除
dll/CodeLibrary.dll
source/AssemblyLineClient/App.config
source/AssemblyLineClient/AssemblyLineClient.csproj
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/Properties/Settings.Designer.cs
source/DeviceLibrary/DeviceLibrary.csproj
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/HuichuanLibrary/HuichuanLibrary.csproj
dll/CodeLibrary.dll
deleted
100644 → 0
查看文件 @
d20ac85
此文件类型无法预览
source/AssemblyLineClient/App.config
查看文件 @
18028b8
...
...
@@ -134,4 +134,13 @@
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
<!--<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"log4net"
publicKeyToken
=
"669e0ddf0bb1aa2a"
culture
=
"neutral"
/>
<
codebase
version
=
"2.0.8"
href
=
"log4net\2.0.8\log4net.dll"
/>
<
codeBase
version
=
"2.0.12"
href
=
"log4net\2.0.12\log4net.dll"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>-->
</
configuration
>
source/AssemblyLineClient/AssemblyLineClient.csproj
查看文件 @
18028b8
...
...
@@ -58,8 +58,9 @@
<Reference Include="Client">
<HintPath>..\..\dll\Client.dll</HintPath>
</Reference>
<Reference Include="CodeLibrary">
<HintPath>..\..\dll\CodeLibrary.dll</HintPath>
<Reference Include="CodeLibrary, Version=1.0.8773.17945, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\SharedRefDll\Neotel\CodeLibrary\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>..\..\dll\halcondotnet.dll</HintPath>
...
...
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
18028b8
using
CodeLibrary
;
using
log4net
;
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Diagnostics
;
using
System.Drawing
;
using
System.Linq
;
using
System.Reflection
;
using
System.Runtime.InteropServices
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
OnlineStore.AssemblyLine
...
...
source/AssemblyLineClient/Properties/Settings.Designer.cs
查看文件 @
18028b8
...
...
@@ -12,7 +12,7 @@ namespace OnlineStore.AssemblyLine.Properties {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"17.
5
.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"17.
8
.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
...
...
source/DeviceLibrary/DeviceLibrary.csproj
查看文件 @
18028b8
...
...
@@ -46,14 +46,19 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\Client.dll</HintPath>
</Reference>
<Reference Include="CodeLibrary">
<HintPath>..\..\dll\CodeLibrary.dll</HintPath>
<Reference Include="CodeLibrary, Version=1.0.8836.19057, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\SharedRefDll\Neotel\CodeLibrary\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="ConfigHelper">
<HintPath>..\..\..\..\..\..\SharedRefDll\Neotel\ConfigHelper\Debug\net461\ConfigHelper.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>..\..\dll\halcondotnet.dll</HintPath>
<Reference Include="DL.Log">
<HintPath>..\..\..\..\..\..\SharedRefDll\Neotel\DL.Log\Debug\netstandard2.0\DL.Log.dll</HintPath>
</Reference>
<Reference Include="halcondotnet, Version=12.0.0.0, Culture=neutral, PublicKeyToken=4973bed59ddbf2b8, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\SharedRefDll\halcon\12.0.0.0\x86\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
...
...
@@ -125,33 +130,15 @@
<Compile Include="server\LineServer.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="eyemLib.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="halcon.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="libdecode.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="libdmtx.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="MvCameraControl.Net.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="MvCameraControl.Net.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="opencv_world420.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="tbb.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="zxing.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj">
...
...
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
18028b8
...
...
@@ -16,10 +16,41 @@ namespace OnlineStore.DeviceLibrary
{
public
class
CodeManager
{
public
static
List
<
string
>
allCodeTypeList
=
new
List
<
string
>();
public
static
List
<
string
>
balserNameList
=
new
List
<
string
>();
public
static
List
<
string
>
hikNameList
=
new
List
<
string
>();
static
CodeManager
()
{
HDLogUtil
.
Log
.
LogEvent
+=
LOGGER_LogEvent
;
}
private
static
void
LOGGER_LogEvent
(
DL
.
Log
.
LogEventArgs
args
)
{
switch
(
args
.
LogLevel
)
{
case
DL
.
Log
.
LogLevel
.
Debug
:
LogUtil
.
debug
(
args
.
ToString
());
break
;
case
DL
.
Log
.
LogLevel
.
Info
:
LogUtil
.
info
(
args
.
ToString
());
break
;
case
DL
.
Log
.
LogLevel
.
Warn
:
LogUtil
.
error
(
args
.
ToString
());
break
;
case
DL
.
Log
.
LogLevel
.
Error
:
LogUtil
.
error
(
args
.
ToString
());
break
;
case
DL
.
Log
.
LogLevel
.
Fatal
:
LogUtil
.
error
(
args
.
ToString
());
break
;
}
}
private
static
char
spiltChar
=
'#'
;
/// <summary>
/// 初始化摄像机名称和二维码类型
...
...
@@ -28,7 +59,6 @@ namespace OnlineStore.DeviceLibrary
{
string
codeStr
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CodeType
);
allCodeTypeList
=
new
List
<
string
>();
HDLogUtil
.
LogName
=
"RollingLogFileAppender"
;
try
{
string
[]
codeArray
=
codeStr
.
Split
(
spiltChar
);
...
...
@@ -43,7 +73,6 @@ namespace OnlineStore.DeviceLibrary
}
LoadCamera
(
false
);
CodeLibrary
.
HDCodeLearnHelper
.
LoadConfig
(
""
,
codeStr
);
}
catch
(
Exception
ex
)
{
...
...
@@ -52,7 +81,7 @@ namespace OnlineStore.DeviceLibrary
}
private
static
void
LoadCamera
(
bool
isReLoad
)
{
if
(
isReLoad
||
Camera
.
_cam
==
null
)
if
(
isReLoad
||
Camera
.
_cam
==
null
)
{
try
{
...
...
@@ -293,7 +322,7 @@ namespace OnlineStore.DeviceLibrary
}
private
static
void
SaveImageToFile
(
string
deviceName
,
string
cameraName
,
Bitmap
bitmap
)
{
string
date
=
deviceName
.
Trim
().
Replace
(
'_'
,
'-'
)
+
"-"
+
DateTime
.
Now
.
ToString
(
"HH-mm-ss-"
)
+
DateTime
.
Now
.
Millisecond
;
string
date
=
deviceName
.
Trim
().
Replace
(
'_'
,
'-'
)
+
"-"
+
DateTime
.
Now
.
ToString
(
"HH-mm-ss-"
)
+
DateTime
.
Now
.
Millisecond
;
string
dire
=
@"D:\image\" + deviceName.Trim().Replace('_', '-') + @"
\
" + cameraName.Trim().Replace('_', '-').Replace(':', '-') + @"
\
";
string
iamgeName
=
date
+
".bmp"
;
try
...
...
source/HuichuanLibrary/HuichuanLibrary.csproj
查看文件 @
18028b8
...
...
@@ -12,6 +12,7 @@
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论