Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 27df0cbb
由
贾鹏旭
编写于
2023-09-01 08:59:02 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
同步
2 个父辈
e3128339
d758d3a9
显示空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
129 行增加
和
73 行删除
BLL/BLL.csproj
BLL/Extension.cs
BLL/Extension/Item_Alcoelectro.cs
BLL/Extension/Item_General.cs
BLL/Extension/Item_Inventec.cs
BLL/Extension/Item_KaiFa.cs
BLL/Extension/Item_NanRui.cs
BLL/Extension/Item_PanaCIM.cs
BLL/Replacekeywords.cs
ExtensionGroup/ExtensionGroup.csproj
ExtensionGroup/Item_NanRui.cs
Model/IExtension.cs
Model/Model.csproj
SharedDll/Asa.Face.Control.dll
SmartScan/App.config
SmartScan/Form/FrmRetrospect.Designer.cs
SmartScan/Form/FrmRetrospect.cs
SmartScan/Language/en-US.xml
SmartScan/Language/zh-CN.xml
SmartScan/ScanWork.cs
SmartScan/SmartScan.csproj
BLL/BLL.csproj
查看文件 @
27df0cb
...
@@ -40,9 +40,8 @@
...
@@ -40,9 +40,8 @@
<SpecificVersion>False</SpecificVersion>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDll\Asa.Camera.VisionLib.dll</HintPath>
<HintPath>..\SharedDll\Asa.Camera.VisionLib.dll</HintPath>
</Reference>
</Reference>
<Reference Include="Asa.Face.Control, Version=1.0.8636.38287, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Asa.Face.Control">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDll\Asa.Face.Control.dll</HintPath>
<HintPath>..\..\..\asa\FaceControl\Test\bin\Debug\Asa.Face.Control.dll</HintPath>
</Reference>
</Reference>
<Reference Include="ClosedXML, Version=0.96.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
<Reference Include="ClosedXML, Version=0.96.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
<HintPath>..\packages\ClosedXML.0.96.0\lib\net46\ClosedXML.dll</HintPath>
<HintPath>..\packages\ClosedXML.0.96.0\lib\net46\ClosedXML.dll</HintPath>
...
...
BLL/Extension.cs
查看文件 @
27df0cb
...
@@ -244,9 +244,9 @@ namespace BLL
...
@@ -244,9 +244,9 @@ namespace BLL
{
{
return
currentExtension
.
SetKey
(
originalCode
,
key
,
hasMatch
,
out
errmsg
);
return
currentExtension
.
SetKey
(
originalCode
,
key
,
hasMatch
,
out
errmsg
);
}
}
public
void
Print
()
public
void
Print
(
bool
hasMatch
,
Dictionary
<
string
,
string
>
key
)
{
{
//currentExtension.Printing
currentExtension
.
Print
(
hasMatch
,
key
);
}
}
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
{
{
...
...
BLL/Extension/Item_Alcoelectro.cs
查看文件 @
27df0cb
...
@@ -385,5 +385,10 @@ namespace BLL
...
@@ -385,5 +385,10 @@ namespace BLL
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
{
{
}
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
}
}
}
}
}
BLL/Extension/Item_General.cs
查看文件 @
27df0cb
...
@@ -150,7 +150,7 @@ namespace BLL
...
@@ -150,7 +150,7 @@ namespace BLL
//if (extensions != null && !extensions[0].Control.InvokeRequired)
//if (extensions != null && !extensions[0].Control.InvokeRequired)
//{
//{
// if ( && hasMatch)
// if (
config.AutoPrint
&& hasMatch)
// {
// {
// //if (CanPrint())
// //if (CanPrint())
// PrintLabel(null, EventArgs.Empty);
// PrintLabel(null, EventArgs.Empty);
...
@@ -160,7 +160,7 @@ namespace BLL
...
@@ -160,7 +160,7 @@ namespace BLL
//{
//{
// //PrintLabel(null, EventArgs.Empty);
// //PrintLabel(null, EventArgs.Empty);
//}
//}
SaveRetrospect
?.
Invoke
(
key
);
//
SaveRetrospect?.Invoke(key);
return
true
;
return
true
;
}
}
bool
updatereelid
(
Dictionary
<
string
,
string
>
key
,
out
string
errmsg
)
bool
updatereelid
(
Dictionary
<
string
,
string
>
key
,
out
string
errmsg
)
...
@@ -286,9 +286,8 @@ namespace BLL
...
@@ -286,9 +286,8 @@ namespace BLL
{
{
updatereelid
(
lastkey
,
out
_
);
updatereelid
(
lastkey
,
out
_
);
}
}
p
ublic
void
PrintLabel
(
object
sender
,
EventArgs
e
)
p
rivate
void
PrintLabel
(
object
sender
,
EventArgs
e
)
{
{
if
(!
config
.
AutoPrint
)
return
;
LogNet
.
log
.
Debug
(
"Enter PrintLabel Method"
);
LogNet
.
log
.
Debug
(
"Enter PrintLabel Method"
);
if
(
lastkey
==
null
)
return
;
if
(
lastkey
==
null
)
return
;
//Dictionary<string, string> key = new();
//Dictionary<string, string> key = new();
...
@@ -558,6 +557,23 @@ namespace BLL
...
@@ -558,6 +557,23 @@ namespace BLL
}
}
Application
.
DoEvents
();
Application
.
DoEvents
();
}
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
{
if
(
config
.
AutoPrint
&&
match
)
{
//if (CanPrint())
PrintLabel
(
null
,
EventArgs
.
Empty
);
}
}
else
{
//PrintLabel(null, EventArgs.Empty);
}
SaveRetrospect
?.
Invoke
(
key
);
}
}
}
}
}
BLL/Extension/Item_Inventec.cs
查看文件 @
27df0cb
...
@@ -386,5 +386,10 @@ namespace BLL
...
@@ -386,5 +386,10 @@ namespace BLL
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
{
{
}
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
}
}
}
}
}
BLL/Extension/Item_KaiFa.cs
查看文件 @
27df0cb
...
@@ -275,6 +275,11 @@ namespace BLL
...
@@ -275,6 +275,11 @@ namespace BLL
{
{
}
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
}
public
class
InitPPID_Request_DPS
public
class
InitPPID_Request_DPS
{
{
/*
/*
...
...
BLL/Extension/Item_NanRui.cs
查看文件 @
27df0cb
...
@@ -534,5 +534,10 @@ namespace BLL
...
@@ -534,5 +534,10 @@ namespace BLL
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
{
{
}
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
}
}
}
}
}
BLL/Extension/Item_PanaCIM.cs
查看文件 @
27df0cb
...
@@ -365,6 +365,11 @@ namespace BLL
...
@@ -365,6 +365,11 @@ namespace BLL
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
{
{
}
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
}
}
}
}
}
BLL/Replacekeywords.cs
查看文件 @
27df0cb
...
@@ -12,7 +12,7 @@ namespace BLL
...
@@ -12,7 +12,7 @@ namespace BLL
//请求处理关键字
//请求处理关键字
public
class
Replacekeywords
public
class
Replacekeywords
{
{
public
static
string
Replacekeywordss
(
Dictionary
<
string
,
string
>
macroKey
)
public
static
string
Replacekeywordss
(
Dictionary
<
string
,
string
>
macroKey
)
{
{
string
jsondata
=
null
;
string
jsondata
=
null
;
Config
config
=
new
Config
();
Config
config
=
new
Config
();
...
@@ -34,12 +34,12 @@ namespace BLL
...
@@ -34,12 +34,12 @@ namespace BLL
LogNet
.
log
.
Error
(
"更换关键字:需要请求token,请填写tokenurl!"
);
LogNet
.
log
.
Error
(
"更换关键字:需要请求token,请填写tokenurl!"
);
throw
new
Exception
(
"需要请求token,请填写tokenurl!"
);
throw
new
Exception
(
"需要请求token,请填写tokenurl!"
);
}
}
if
(
string
.
IsNullOrWhiteSpace
(
config
.
Url
)
||
config
.
KeyWords
.
Length
<
0
)
if
(
string
.
IsNullOrWhiteSpace
(
config
.
Url
)
||
config
.
KeyWords
.
Length
<
0
)
{
{
LogNet
.
log
.
Error
(
"更换关键字:URL和关键字不能为空"
);
LogNet
.
log
.
Error
(
"更换关键字:URL和关键字不能为空"
);
throw
new
Exception
(
"URL和关键字不能为空"
);
throw
new
Exception
(
"URL和关键字不能为空"
);
}
}
config
.
filteredData
=
macroKey
config
.
filteredData
=
macroKey
.
Where
(
kvp
=>
config
.
KeyWords
.
Contains
(
kvp
.
Key
))
.
Where
(
kvp
=>
config
.
KeyWords
.
Contains
(
kvp
.
Key
))
.
ToDictionary
(
kvp
=>
kvp
.
Key
,
kvp
=>
kvp
.
Value
);
.
ToDictionary
(
kvp
=>
kvp
.
Key
,
kvp
=>
kvp
.
Value
);
//判断结果中是否包含指定关键字
//判断结果中是否包含指定关键字
...
@@ -100,7 +100,7 @@ namespace BLL
...
@@ -100,7 +100,7 @@ namespace BLL
}
}
string
parstring
=
string
.
Join
(
","
,
parstringParts
);
string
parstring
=
string
.
Join
(
","
,
parstringParts
);
//parstring = "Y023070966,WPG0001,1,infobar";
//parstring = "Y023070966,WPG0001,1,infobar";
config
.
Url
+=
$
"&customloadmethodparms={parstring}&loadtype=NEXT&readonly=true&rowcap=-1"
;
config
.
Url
+=
$
"&customloadmethodparms={parstring}&loadtype=NEXT&readonly=true&rowcap=-1"
;
var
client
=
new
RestClient
(
config
.
Url
);
var
client
=
new
RestClient
(
config
.
Url
);
LogNet
.
log
.
Error
(
$
"更换关键字:请求Url:{config.Url}"
);
LogNet
.
log
.
Error
(
$
"更换关键字:请求Url:{config.Url}"
);
// 禁用自动重定向
// 禁用自动重定向
...
@@ -127,17 +127,17 @@ namespace BLL
...
@@ -127,17 +127,17 @@ namespace BLL
public
class
Config
public
class
Config
{
{
//是否需要请求token
//是否需要请求token
public
Method
Method
{
get
;
set
;
}
=
Config
urationManager
.
AppSettings
[
"RequestMethod"
]
==
"POST"
?
Method
.
POST
:
Method
.
GET
;
public
Method
Method
{
get
;
set
;
}
=
Config
Helper
.
Config
.
Get
(
"SelectHttpPN_RequestMethod"
,
"GET"
)
==
"POST"
?
Method
.
POST
:
Method
.
GET
;
//是否需要请求token
//是否需要请求token
public
string
ContentType
{
get
;
set
;
}
=
Config
urationManager
.
AppSettings
[
"ContentType"
]
;
public
string
ContentType
{
get
;
set
;
}
=
Config
Helper
.
Config
.
Get
(
"SelectHttpPN_ContentType"
,
"application/json"
)
;
//是否需要请求token
//是否需要请求token
public
bool
IsTokenRequired
{
get
;
set
;
}
=
Con
vert
.
ToBoolean
(
ConfigurationManager
.
AppSettings
[
"IsTokenRequired"
]
);
public
bool
IsTokenRequired
{
get
;
set
;
}
=
Con
figHelper
.
Config
.
Get
(
"SelectHttpPN_IsTokenRequired"
,
true
);
//请求tokenurl
//请求tokenurl
public
string
Tokenurl
{
get
;
set
;
}
=
Config
urationManager
.
AppSettings
[
"Tokenurl"
]
;
public
string
Tokenurl
{
get
;
set
;
}
=
Config
Helper
.
Config
.
Get
(
"SelectHttpPN_Tokenurl"
,
""
)
;
//请求正常数据
//请求正常数据
public
string
Url
{
get
;
set
;
}
=
Config
urationManager
.
AppSettings
[
"Url"
]
;
public
string
Url
{
get
;
set
;
}
=
Config
Helper
.
Config
.
Get
(
"SelectHttpPN_Url"
,
""
)
;
//关键字,请用,号分割
//关键字,请用,号分割
public
string
[]
KeyWords
{
get
;
set
;
}
=
Config
urationManager
.
AppSettings
[
"KeyWords"
]
.
Split
(
','
);
public
string
[]
KeyWords
{
get
;
set
;
}
=
Config
Helper
.
Config
.
Get
(
"SelectHttpPN_KeyWords"
,
"grn_num,vend_num,grn_line,infobar=0"
)
.
Split
(
','
);
/// <summary>
/// <summary>
...
...
ExtensionGroup/ExtensionGroup.csproj
查看文件 @
27df0cb
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference Include="Asa.Face.Control">
<Reference Include="Asa.Face.Control">
<HintPath>..\
..\..\asa\FaceControl\Test\bin\Debug
\Asa.Face.Control.dll</HintPath>
<HintPath>..\
SharedDll
\Asa.Face.Control.dll</HintPath>
</Reference>
</Reference>
<Reference Include="NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<Reference Include="NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.5.2.3\lib\net46\NLog.dll</HintPath>
<HintPath>..\packages\NLog.5.2.3\lib\net46\NLog.dll</HintPath>
...
...
ExtensionGroup/Item_NanRui.cs
查看文件 @
27df0cb
...
@@ -534,8 +534,42 @@ namespace ExtensionGroup
...
@@ -534,8 +534,42 @@ namespace ExtensionGroup
// return false;
// return false;
// }
// }
//}
//}
public
event
IExtension
.
PrintDelegate
Printing
;
public
event
IExtension
.
PrintDelegate
SaveRetrospect
;
public
void
Clear
()
{
throw
new
NotImplementedException
();
}
public
void
Dispose
()
{
throw
new
NotImplementedException
();
}
public
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
)
{
throw
new
NotImplementedException
();
}
public
void
Load
(
List
<
ExtensionControl
>
extensions
)
{
throw
new
NotImplementedException
();
}
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
)
{
}
public
bool
SetKey
(
string
[]
originalCode
,
Dictionary
<
string
,
string
>
key
,
bool
hasMatch
,
out
string
errmsg
)
{
throw
new
NotImplementedException
();
}
public
void
Update
()
{
throw
new
NotImplementedException
();
}
}
}
}
}
Model/IExtension.cs
查看文件 @
27df0cb
...
@@ -20,6 +20,7 @@ namespace Model
...
@@ -20,6 +20,7 @@ namespace Model
public
void
Dispose
();
public
void
Dispose
();
public
void
Print
(
bool
match
,
Dictionary
<
string
,
string
>
key
);
public
abstract
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
);
public
abstract
void
DrawTextBackground
(
Dictionary
<
string
,
string
>
key
);
}
}
}
}
Model/Model.csproj
查看文件 @
27df0cb
...
@@ -44,9 +44,8 @@
...
@@ -44,9 +44,8 @@
<SpecificVersion>False</SpecificVersion>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDll\Asa.Camera.VisionLib.dll</HintPath>
<HintPath>..\SharedDll\Asa.Camera.VisionLib.dll</HintPath>
</Reference>
</Reference>
<Reference Include="Asa.Face.Control, Version=1.0.8621.29649, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Asa.Face.Control">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDll\Asa.Face.Control.dll</HintPath>
<HintPath>..\..\..\asa\FaceControl\FaceControl\bin\Debug\Asa.Face.Control.dll</HintPath>
</Reference>
</Reference>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
<HintPath>..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
...
...
SharedDll/Asa.Face.Control.dll
查看文件 @
27df0cb
此文件类型无法预览
SmartScan/App.config
查看文件 @
27df0cb
...
@@ -5,22 +5,6 @@
...
@@ -5,22 +5,6 @@
</
startup
>
</
startup
>
<
appSettings
>
<
appSettings
>
<
add
key
=
"EnableWindowsFormsHighDpiAutoResizing"
value
=
"true"
/>
<
add
key
=
"EnableWindowsFormsHighDpiAutoResizing"
value
=
"true"
/>
<!--服务器查询
PN_
开始-->
<!--请求方式;大写
POST
、
GET
-->
<
add
key
=
"CustomerName"
value
=
"1181"
/>
<
add
key
=
"RequestMethod"
value
=
"GET"
/>
<
add
key
=
"ContentType"
value
=
"application/json"
/>
<
add
key
=
"IsTokenRequired"
value
=
"TRUE"
/>
<!--
isTokenRequired
为
true
时,
tokenurl
必填-->
<
add
key
=
"Tokenurl"
value
=
""
/>
<
add
key
=
"Url"
value
=
""
/>
<!--关键字
value
请用,号隔开-->
<
add
key
=
"KeyWords"
value
=
"grn_num,vend_num,grn_line,infobar=0"
/>
<!--服务器查询
PN_
结束-->
<!--启动服务路由地址-->
<
add
key
=
"StartServiceName"
value
=
""
/>
<
add
key
=
"StartServicePath"
value
=
""
/>
</
appSettings
>
</
appSettings
>
<
system
.
serviceModel
>
<
system
.
serviceModel
>
<
bindings
>
<
bindings
>
...
...
SmartScan/Form/FrmRetrospect.Designer.cs
查看文件 @
27df0cb
...
@@ -45,7 +45,7 @@ namespace SmartScan
...
@@ -45,7 +45,7 @@ namespace SmartScan
this
.
LstRecord
=
new
Asa
.
FaceControl
.
FaceListBox
();
this
.
LstRecord
=
new
Asa
.
FaceControl
.
FaceListBox
();
this
.
LblCode
=
new
Asa
.
FaceControl
.
FaceLabel
();
this
.
LblCode
=
new
Asa
.
FaceControl
.
FaceLabel
();
this
.
LblDateRange
=
new
Asa
.
FaceControl
.
FaceLabel
();
this
.
LblDateRange
=
new
Asa
.
FaceControl
.
FaceLabel
();
this
.
butt_
startservice
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
butt_
getData
=
new
Asa
.
FaceControl
.
FaceButton
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
PicLabel
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
PicLabel
)).
BeginInit
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
...
@@ -309,28 +309,28 @@ namespace SmartScan
...
@@ -309,28 +309,28 @@ namespace SmartScan
this
.
LblDateRange
.
Text
=
"日期"
;
this
.
LblDateRange
.
Text
=
"日期"
;
this
.
LblDateRange
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
LblDateRange
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
//
// butt_
startservice
// butt_
getData
//
//
this
.
butt_
startservice
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))));
this
.
butt_
getData
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))));
this
.
butt_
startservice
.
BorderStyle
=
Asa
.
FaceControl
.
ControlShape
.
Rectangle
;
this
.
butt_
getData
.
BorderStyle
=
Asa
.
FaceControl
.
ControlShape
.
Rectangle
;
this
.
butt_
startservice
.
BorderWidth
=
2
;
this
.
butt_
getData
.
BorderWidth
=
2
;
this
.
butt_
startservice
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
butt_
getData
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
butt_
startservice
.
HoldPress
=
false
;
this
.
butt_
getData
.
HoldPress
=
false
;
this
.
butt_
startservice
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
505
);
this
.
butt_
getData
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
505
);
this
.
butt_
startservice
.
Name
=
"butt_startservice
"
;
this
.
butt_
getData
.
Name
=
"butt_getData
"
;
this
.
butt_
startservice
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
butt_
getData
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
butt_
startservice
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
56
);
this
.
butt_
getData
.
Size
=
new
System
.
Drawing
.
Size
(
292
,
56
);
this
.
butt_
startservice
.
TabIndex
=
22
;
this
.
butt_
getData
.
TabIndex
=
22
;
this
.
butt_
startservice
.
Text
=
"启动服务
"
;
this
.
butt_
getData
.
Text
=
"获取数据
"
;
this
.
butt_
startservice
.
Visible
=
false
;
this
.
butt_
getData
.
Visible
=
false
;
this
.
butt_
startservice
.
Click
+=
new
System
.
EventHandler
(
this
.
butt_startservice_Click
);
this
.
butt_
getData
.
Click
+=
new
System
.
EventHandler
(
this
.
butt_startservice_Click
);
//
//
// FrmRetrospect
// FrmRetrospect
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
15F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
8F
,
15F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1617
,
788
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1617
,
788
);
this
.
Controls
.
Add
(
this
.
butt_
startservice
);
this
.
Controls
.
Add
(
this
.
butt_
getData
);
this
.
Controls
.
Add
(
this
.
LblDateRange
);
this
.
Controls
.
Add
(
this
.
LblDateRange
);
this
.
Controls
.
Add
(
this
.
LblCode
);
this
.
Controls
.
Add
(
this
.
LblCode
);
this
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
...
@@ -357,7 +357,7 @@ namespace SmartScan
...
@@ -357,7 +357,7 @@ namespace SmartScan
this
.
Controls
.
SetChildIndex
(
this
.
tableLayoutPanel1
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
tableLayoutPanel1
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
LblCode
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
LblCode
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
LblDateRange
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
LblDateRange
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
butt_
startservice
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
butt_
getData
,
0
);
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
PicLabel
)).
EndInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
PicLabel
)).
EndInit
();
this
.
tableLayoutPanel1
.
ResumeLayout
(
false
);
this
.
tableLayoutPanel1
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
@@ -382,6 +382,6 @@ namespace SmartScan
...
@@ -382,6 +382,6 @@ namespace SmartScan
private
Asa
.
FaceControl
.
FaceLabel
LblAllCode
;
private
Asa
.
FaceControl
.
FaceLabel
LblAllCode
;
private
Asa
.
FaceControl
.
FaceLabel
LblAllLabel
;
private
Asa
.
FaceControl
.
FaceLabel
LblAllLabel
;
private
Asa
.
FaceControl
.
FaceLabel
LblDateRange
;
private
Asa
.
FaceControl
.
FaceLabel
LblDateRange
;
private
Asa
.
FaceControl
.
FaceButton
butt_
startservice
;
private
Asa
.
FaceControl
.
FaceButton
butt_
getData
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
SmartScan/Form/FrmRetrospect.cs
查看文件 @
27df0cb
...
@@ -133,9 +133,9 @@ namespace SmartScan
...
@@ -133,9 +133,9 @@ namespace SmartScan
{
{
DtpLower
.
Value
=
DateTime
.
Now
.
Date
;
DtpLower
.
Value
=
DateTime
.
Now
.
Date
;
DtpUpper
.
Value
=
DateTime
.
Now
.
Date
;
DtpUpper
.
Value
=
DateTime
.
Now
.
Date
;
if
(
Config
urationManager
.
AppSettings
[
"CustomerName"
]
==
"1181"
)
if
(
Config
Helper
.
Config
.
Get
(
"Func_EnableGetData"
,
false
)
)
{
{
butt_
startservice
.
Visible
=
true
;
butt_
getData
.
Visible
=
true
;
LstRecord
.
Height
=
206
;
LstRecord
.
Height
=
206
;
}
}
}
}
...
@@ -424,11 +424,11 @@ namespace SmartScan
...
@@ -424,11 +424,11 @@ namespace SmartScan
private
void
butt_startservice_Click
(
object
sender
,
EventArgs
e
)
private
void
butt_startservice_Click
(
object
sender
,
EventArgs
e
)
{
{
Process
p
=
new
Process
();
Process
p
=
new
Process
();
var
pss
=
Process
.
GetProcessesByName
(
Config
urationManager
.
AppSettings
[
"StartServiceName"
]
);
var
pss
=
Process
.
GetProcessesByName
(
Config
Helper
.
Config
.
Get
(
"GetDataAppName"
)
);
if
(
pss
.
Length
>
0
)
if
(
pss
.
Length
>
0
)
return
;
return
;
var
f
=
ConfigurationManager
.
AppSettings
[
"
StartService
Path"
];
var
f
=
ConfigurationManager
.
AppSettings
[
"
GetDataApp
Path"
];
if
(!
File
.
Exists
(
f
))
if
(!
File
.
Exists
(
f
))
throw
new
Exception
(
"未找到服务文件!"
);
throw
new
Exception
(
"未找到服务文件!"
);
p
.
StartInfo
=
new
ProcessStartInfo
p
.
StartInfo
=
new
ProcessStartInfo
...
...
SmartScan/Language/en-US.xml
查看文件 @
27df0cb
...
@@ -291,6 +291,7 @@
...
@@ -291,6 +291,7 @@
<BtnSelect
Text=
"Search"
Font=
"Arial,12,,"
/>
<BtnSelect
Text=
"Search"
Font=
"Arial,12,,"
/>
<BtnExport
Text=
"Export"
Font=
"Arial,12,,"
/>
<BtnExport
Text=
"Export"
Font=
"Arial,12,,"
/>
<BtnExportAll
Text=
"Export All"
Font=
"Arial,12,,"
/>
<BtnExportAll
Text=
"Export All"
Font=
"Arial,12,,"
/>
<butt_getData
Text=
"Get Data"
Font=
"Arial,12,,"
/>
<LblAllCode
Text=
"Original"
Font=
"Arial,12,,"
/>
<LblAllCode
Text=
"Original"
Font=
"Arial,12,,"
/>
<LblAllLabel
Text=
"Extracted Info."
Font=
"Arial,12,,"
/>
<LblAllLabel
Text=
"Extracted Info."
Font=
"Arial,12,,"
/>
</FrmRetrospect>
</FrmRetrospect>
...
...
SmartScan/Language/zh-CN.xml
查看文件 @
27df0cb
...
@@ -307,6 +307,7 @@
...
@@ -307,6 +307,7 @@
<BtnSelect
Text=
"查询"
Font=
"微软雅黑,12,,"
/>
<BtnSelect
Text=
"查询"
Font=
"微软雅黑,12,,"
/>
<BtnExport
Text=
"导出"
Font=
"微软雅黑,12,,"
/>
<BtnExport
Text=
"导出"
Font=
"微软雅黑,12,,"
/>
<BtnExportAll
Text=
"导出所有"
Font=
"微软雅黑,12,,"
/>
<BtnExportAll
Text=
"导出所有"
Font=
"微软雅黑,12,,"
/>
<butt_getData
Text=
"获取数据"
Font=
"微软雅黑,12,,"
/>
<LblAllCode
Text=
"物料条码"
Font=
"微软雅黑,12,,"
/>
<LblAllCode
Text=
"物料条码"
Font=
"微软雅黑,12,,"
/>
<LblAllLabel
Text=
"标签内容"
Font=
"微软雅黑,12,,"
/>
<LblAllLabel
Text=
"标签内容"
Font=
"微软雅黑,12,,"
/>
</FrmRetrospect>
</FrmRetrospect>
...
...
SmartScan/ScanWork.cs
查看文件 @
27df0cb
...
@@ -107,19 +107,17 @@ namespace SmartScan
...
@@ -107,19 +107,17 @@ namespace SmartScan
Common
.
frmMain
.
Invoke
(
delegate
()
Common
.
frmMain
.
Invoke
(
delegate
()
{
{
SetKey
(
hasMatch
);
SetKey
(
hasMatch
);
Common
.
frmMain
.
Invoke
(
delegate
()
{
if
(
workCodeKeyword
.
Any
(
a
=>
a
.
Value
.
StartsWith
(
"<OCR>"
)))
if
(
workCodeKeyword
.
Any
(
a
=>
a
.
Value
.
StartsWith
(
"<OCR>"
)))
{
{
FrmDrawText
frmDraw
=
new
FrmDrawText
();
FrmDrawText
frmDraw
=
new
FrmDrawText
();
if
(
frmDraw
.
ShowDialog
()
==
DialogResult
.
OK
)
if
(
frmDraw
.
ShowDialog
()
==
DialogResult
.
OK
)
{
{
//打印
BLLCommon
.
extension
.
Print
(
hasMatch
,
workCodeKeyword
);
BLLCommon
.
extension
.
DrawTextBackground
(
workCodeKeyword
);
BLLCommon
.
extension
.
DrawTextBackground
(
workCodeKeyword
);
//BLLCommon.extension.pri BLLCommon.extension.DrawTextBackground(workCodeKeyword);
}
}
}
}
});
});
});
isTouch
=
false
;
isTouch
=
false
;
...
...
SmartScan/SmartScan.csproj
查看文件 @
27df0cb
...
@@ -63,13 +63,11 @@
...
@@ -63,13 +63,11 @@
<Prefer32Bit>true</Prefer32Bit>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference Include="Asa.Camera.VisionLib, Version=1.3.8479.24297, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Asa.Camera.VisionLib">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDll\Asa.Camera.VisionLib.dll</HintPath>
<HintPath>..\..\相机操作类\Camera\CameraVisionLibSetting\bin\Debug\Asa.Camera.VisionLib.dll</HintPath>
</Reference>
</Reference>
<Reference Include="Asa.Face.Control, Version=1.0.8636.38287, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Asa.Face.Control">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDll\Asa.Face.Control.dll</HintPath>
<HintPath>..\..\..\asa\FaceControl\Test\bin\Debug\Asa.Face.Control.dll</HintPath>
</Reference>
</Reference>
<Reference Include="ClosedXML, Version=0.96.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
<Reference Include="ClosedXML, Version=0.96.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
<HintPath>..\packages\ClosedXML.0.96.0\lib\net46\ClosedXML.dll</HintPath>
<HintPath>..\packages\ClosedXML.0.96.0\lib\net46\ClosedXML.dll</HintPath>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论