Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cfa214df
由
王海洋
编写于
2025-03-20 09:42:37 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加check功能
1 个父辈
73b660e4
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
347 行增加
和
97 行删除
BLL/BLL.csproj
BLL/Config.cs
BLL/Extension.cs
BLL/Extension/Item_General.cs
SmartScan/Common.cs
SmartScan/Form/FrmMain.cs
SmartScan/Form/FrmSet.cs
SmartScan/Language/en-US.lngres
SmartScan/Language/zh-CN.lngres
SmartScan/PlusSettingFrm/FrmSetPlus.cs
SmartScan/Program.cs
SmartScan/SetControl/UsrWorkMode.Designer.cs
SmartScan/SetControl/UsrWorkMode.cs
SmartScan/SetControl/UsrWorkMode2.cs
BLL/BLL.csproj
查看文件 @
cfa214d
...
...
@@ -69,6 +69,7 @@
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework" />
<Reference Include="RestSharp, Version=106.11.7.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.11.7\lib\net452\RestSharp.dll</HintPath>
</Reference>
...
...
BLL/Config.cs
查看文件 @
cfa214d
...
...
@@ -109,6 +109,14 @@ namespace BLL
get
=>
config
.
Read
<
bool
>(
PRINT_COMPLETED_CLEAR
);
set
=>
config
.
Write
(
PRINT_COMPLETED_CLEAR
,
value
);
}
/// <summary>
/// check功能
/// </summary>
public
bool
CheckFunction
{
get
=>
config
.
Read
<
bool
>(
Check_Function
);
set
=>
config
.
Write
(
Check_Function
,
value
);
}
/// <summary>
/// 打开软件后开启工作模式
...
...
@@ -362,6 +370,7 @@ namespace BLL
private
const
string
SELECT_HTTP_PN
=
"SelectHttpPN"
;
private
const
string
LABEL_EMPTY_CHECK
=
"LabelEmptyCheck"
;
private
const
string
PRINT_COMPLETED_CLEAR
=
"PrintCompletedClear"
;
private
const
string
Check_Function
=
"CheckFunction"
;
private
const
string
OPEN_START_WORK
=
"OpenStartWork"
;
private
const
string
OPEN_MAXIMIZE
=
"OpenMaximize"
;
private
const
string
DEFAULT_PRINT_LABEL
=
"DefaultPrintLabel"
;
...
...
BLL/Extension.cs
查看文件 @
cfa214d
...
...
@@ -9,6 +9,8 @@ using Model;
using
System.Windows.Forms
;
using
DocumentFormat.OpenXml.Drawing
;
using
DocumentFormat.OpenXml.Spreadsheet
;
using
TcpKPIO
;
using
DocumentFormat.OpenXml.Wordprocessing
;
namespace
BLL
{
...
...
@@ -90,12 +92,14 @@ namespace BLL
};
currentExtension
=
dicExtension
[
config
.
ExtensionName
];
}
}
public
void
Dispose
()
{
currentExtension
.
Dispose
();
}
public
string
labelText
=
"等待中"
;
public
void
LoadPanel
(
FacePanel
pnl
,
List
<
string
>
keywords
)
{
...
...
@@ -208,6 +212,9 @@ namespace BLL
}
}
};
if
(!
string
.
IsNullOrEmpty
(
config
.
HttpReelID
))
listrow
.
Add
(
new
object
[]
{
A
});
#
region
显示替换数据按钮
...
...
@@ -261,6 +268,39 @@ namespace BLL
}
#
endregion
listrow
.
Add
(
new
object
[]
{
B
});
if
(
BLLCommon
.
config
.
CheckFunction
)
{
Dictionary
<
string
,
object
>
newLabel
=
CreateNewLabel
(
labelText
);
Dictionary
<
string
,
object
>
D
=
new
()
{
{
"Type"
,
"Button"
},
{
"Attribute"
,
new
Dictionary
<
string
,
object
>()
{
{
"Name"
,
"BtnSkip"
},
{
"Font"
,
"Arial,12,B,"
},
//{"BorderWidth", 0},
{
"Width"
,
-
1
},
{
"Height"
,
40
},
{
"Text"
,
"跳过"
},
//"Print Label"
}
},
{
"Event"
,
new
Dictionary
<
string
,
object
>()
{
{
"Click"
,
"BtnSkip_Click"
},
}
}
};
listrow
.
Add
(
new
object
[]
{
newLabel
,
D
});
}
rows
=
listrow
.
ToArray
();
}
else
...
...
@@ -279,7 +319,56 @@ namespace BLL
currentExtension
.
Load
(
ctlGroup
);
}
// 封装一个方法来创建带有指定文本的 newLabel
private
Dictionary
<
string
,
object
>
CreateNewLabel
(
string
text
)
{
if
(
text
==
"OK"
)
{
return
new
Dictionary
<
string
,
object
>
{
{
"Type"
,
"Label"
},
{
"LinkName"
,
"ischeckresult"
},
{
"Attribute"
,
new
Dictionary
<
string
,
object
>()
{
{
"Name"
,
"labresult"
},
{
"Font"
,
"Arial,18,B,"
},
{
"BorderWidth"
,
0
},
// 边框宽度
{
"Width"
,
100
},
// 宽度
{
"Height"
,
40
},
{
"Text"
,
text
},
// 显示的文本
{
"TextAlign"
,
"MiddleCenter"
},
// 文本对齐方式
{
"Foreground"
,
"Green"
}
// 添加字体颜色为绿色
}
}
};
}
else
{
return
new
Dictionary
<
string
,
object
>
{
{
"Type"
,
"Label"
},
{
"LinkName"
,
"ischeckresult"
},
{
"Attribute"
,
new
Dictionary
<
string
,
object
>()
{
{
"Name"
,
"labresult"
},
{
"Font"
,
"Arial,18,B,"
},
{
"BorderWidth"
,
0
},
// 边框宽度
{
"Width"
,
100
},
{
"Height"
,
40
},
// 高度
{
"Text"
,
text
},
// 显示的文本
{
"TextAlign"
,
"MiddleCenter"
},
// 文本对齐方式
{
"Foreground"
,
"Red"
}
// 添加字体颜色为绿色
}
}
};
}
}
public
void
Clear
()
{
currentExtension
.
Clear
();
...
...
BLL/Extension/Item_General.cs
查看文件 @
cfa214d
...
...
@@ -21,6 +21,7 @@ using System.Drawing;
using
DocumentFormat.OpenXml.Spreadsheet
;
using
static
System
.
Windows
.
Forms
.
VisualStyles
.
VisualStyleElement
.
ToolTip
;
using
DocumentFormat.OpenXml.Wordprocessing
;
using
DocumentFormat.OpenXml.Presentation
;
namespace
BLL
{
...
...
@@ -91,14 +92,21 @@ namespace BLL
}
static
bool
mesResult
=
false
;
bool
islast
=
false
;
Dictionary
<
string
,
string
>
lastkey
=
null
;
// 用于存储上一次的 key
private
Dictionary
<
string
,
string
>
lastKeys
;
//读码后第一步
public
bool
SetKey
(
string
[]
originalCode
,
Dictionary
<
string
,
string
>
key
,
bool
hasMatch
,
out
string
errmsg
)
{
errmsg
=
""
;
mesResult
=
false
;
var
now
=
DateTime
.
Now
;
// 比较当前 key 和上次的 key
bool
isSame
=
false
;
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
{
//第一次刷新界面
...
...
@@ -107,6 +115,21 @@ namespace BLL
extensions
[
i
].
Control
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
if
(
key
.
ContainsKey
(
extensions
[
i
].
Key
))
extensions
[
i
].
Control
.
Text
=
key
[
extensions
[
i
].
Key
].
Replace
(
"<OCR>"
,
""
);
if
(
extensions
[
i
].
LinkName
==
"ischeckresult"
&&
lastKeys
!=
null
)
{
//if (BLLCommon.extension.labelText=="NG")
//{
// extensions[i].Control.Text = BLLCommon.extension.labelText;
// extensions[i].Control.ForeColor = System.Drawing.Color.Red;
//}
//else
//{
// extensions[i].Control.Text = BLLCommon.extension.labelText;
// extensions[i].Control.ForeColor = System.Drawing.Color.Green;
//}
}
}
}
Application
.
DoEvents
();
...
...
@@ -171,6 +194,43 @@ namespace BLL
}
}
}
if
(
lastKeys
!=
null
)
{
isSame
=
key
.
Count
==
lastKeys
.
Count
&&
!
key
.
Except
(
lastKeys
).
Any
();
}
lastkey
=
key
;
islast
=
false
;
if
(
isSame
)
{
BLLCommon
.
extension
.
labelText
=
"OK"
;
lastKeys
=
null
;
islast
=
true
;
// 两次的 key 相同,可添加相应逻辑
}
else
if
(
lastKeys
!=
null
&&
!
isSame
)
{
// 两次的 key 不同,可添加相应逻辑
BLLCommon
.
extension
.
labelText
=
"NG"
;
}
else
{
if
(
BLLCommon
.
config
.
Language
.
Equals
(
"English"
))
{
BLLCommon
.
extension
.
labelText
=
"Waiting"
;
}
else
{
BLLCommon
.
extension
.
labelText
=
"等待中"
;
}
}
if
(
lastKeys
==
null
&&!
islast
)
{
lastKeys
=
new
Dictionary
<
string
,
string
>(
key
);
// 更新 lastKey
}
else
{
islast
=
false
;
}
//第二次刷新界面
for
(
int
i
=
0
;
i
<
extensions
.
Count
;
i
++)
...
...
@@ -196,10 +256,33 @@ namespace BLL
{
extensions
[
i
].
Control
.
Text
=
key
[
extensions
[
i
].
Key
].
Replace
(
"<OCR>"
,
""
);
}
if
(
extensions
[
i
].
LinkName
==
"ischeckresult"
)
{
extensions
[
i
].
Control
.
Text
=
BLLCommon
.
extension
.
labelText
;
}
//if (extensions[i].LinkName == "ischeckresult" && lastKeys != null)
//{
// if (BLLCommon.extension.labelText == "NG")
// {
// extensions[i].Control.Text = BLLCommon.extension.labelText;
// extensions[i].Control.ForeColor = System.Drawing.Color.Red;
// }
// else if (BLLCommon.extension.labelText == "OK")
// {
// extensions[i].Control.Text = BLLCommon.extension.labelText;
// extensions[i].Control.ForeColor = System.Drawing.Color.Green;
// }
//}
}
}
lastkey
=
key
;
if
(!
updatereelid
(
key
,
out
errmsg
))
return
false
;
...
...
@@ -232,6 +315,7 @@ namespace BLL
// //PrintLabel(null, EventArgs.Empty);
//}
//SaveRetrospect?.Invoke(key);
return
true
;
}
bool
updatereelid
(
Dictionary
<
string
,
string
>
key
,
out
string
errmsg
)
...
...
@@ -362,6 +446,34 @@ namespace BLL
{
updatereelid
(
lastkey
,
out
_
);
}
private
void
BtnSkip_Click
(
object
sender
,
EventArgs
e
)
{
if
(
BLLCommon
.
config
.
Language
.
Equals
(
"English"
))
{
System
.
Windows
.
MessageBoxResult
result
=
System
.
Windows
.
MessageBox
.
Show
(
"Whether to skip this operation?"
,
"verify"
,
System
.
Windows
.
MessageBoxButton
.
YesNo
,
System
.
Windows
.
MessageBoxImage
.
Question
);
if
(
result
==
System
.
Windows
.
MessageBoxResult
.
Yes
)
{
lastKeys
=
null
;
BLLCommon
.
extension
.
labelText
=
"Waiting"
;
}
}
else
{
System
.
Windows
.
MessageBoxResult
result
=
System
.
Windows
.
MessageBox
.
Show
(
"是否跳过此操作?"
,
"确认"
,
System
.
Windows
.
MessageBoxButton
.
YesNo
,
System
.
Windows
.
MessageBoxImage
.
Question
);
if
(
result
==
System
.
Windows
.
MessageBoxResult
.
Yes
)
{
lastKeys
=
null
;
BLLCommon
.
extension
.
labelText
=
"等待中"
;
}
}
}
private
void
ComboBoxTextChanged
(
object
sender
,
EventArgs
e
)
{
var
txt
=
((
FaceComboBox
)
sender
).
Text
;
...
...
SmartScan/Common.cs
查看文件 @
cfa214d
...
...
@@ -4,5 +4,6 @@
{
public
static
FrmMain
frmMain
;
public
static
FrmWaitting
frmWaitting
;
}
}
SmartScan/Form/FrmMain.cs
查看文件 @
cfa214d
...
...
@@ -205,15 +205,44 @@ namespace SmartScan
////sb.AppendLine(string.Join(",", content.Values.ToArray()));
//System.IO.File.WriteAllText(filename, sb.ToString(), Encoding.UTF8);
}
public
delegate
void
CheckResultEventHandler
(
object
sender
,
bool
value
);
public
static
event
CheckResultEventHandler
Checkresult
;
public
Dictionary
<
string
,
string
>
lastContent
;
private
bool
CompareContent
(
Dictionary
<
string
,
string
>
content
)
{
if
(
lastContent
!=
null
)
{
return
content
.
Count
==
lastContent
.
Count
&&
!
content
.
Except
(
lastContent
).
Any
();
}
return
false
;
}
private
void
Extension_Printing
(
Dictionary
<
string
,
string
>
content
)
{
string
str
=
"打印内容:"
;
//if (lastContent!=null)
//{
// bool isSame = CompareContent(content);
// if (isSame)
// {
// BLLCommon.extension.labelText = "OK";
// lastContent.Clear();
// }
// else
// {
// BLLCommon.extension.labelText = "NG";
// }
//}
try
{
foreach
(
string
key
in
content
.
Keys
)
{
str
+=
string
.
Format
(
"({0}:{1})"
,
key
,
content
[
key
]);
}
LogNet
.
log
.
Info
(
str
);
...
...
@@ -238,11 +267,13 @@ namespace SmartScan
UnifiedDataHandler
.
RecordPrintNg
(
false
,
true
,
out
string
[]
strarrys
);
if
(
BLLCommon
.
config
.
PrintCompletedClear
)
BLLCommon
.
extension
.
Clear
();
lastContent
=
new
Dictionary
<
string
,
string
>(
content
);
}
catch
(
Exception
ex
)
{
LogNet
.
log
.
Error
(
$
"Extension_Printing"
,
ex
);
}
}
private
void
FrmMain_Load
(
object
sender
,
EventArgs
e
)
...
...
@@ -362,6 +393,7 @@ namespace SmartScan
if
(
BLLCommon
.
config
.
Language
.
Equals
(
"English"
))
{
BtnStart
.
Font
=
new
Font
(
"Arial"
,
14
,
FontStyle
.
Bold
);
}
else
{
...
...
SmartScan/Form/FrmSet.cs
查看文件 @
cfa214d
...
...
@@ -8,6 +8,7 @@ using System.Text;
using
Asa.FaceControl
;
using
System.Windows.Forms
;
using
BLL
;
using
DocumentFormat.OpenXml.Drawing
;
namespace
SmartScan
{
...
...
@@ -66,6 +67,7 @@ namespace SmartScan
new
FaceMessageBox
(
""
,
text
,
MessageBoxButtons
.
OK
).
ShowDialog
();
BLLCommon
.
extension
.
Update
();
DialogResult
=
DialogResult
.
OK
;
}
private
void
BtnCancel_Click
(
object
sender
,
EventArgs
e
)
...
...
SmartScan/Language/en-US.lngres
查看文件 @
cfa214d
...
...
@@ -61,6 +61,8 @@ FrmMain_LblCameraExist 识别设备连接 Camera Arial,9,,
FrmMain_LblIOExist IO模块连接 Machine Arial,9,,
FrmMain_PnlExtension 功能 Print Info. Arial,14,,
FrmMain_BtnPrint 打印标签 Print Label Arial,12,,
FrmMain_BtnSkip 跳过 Skip Arial,12,,
FrmMain_labresult 等待中 Waiting Arial,12,,
FrmMain_DynamicButton 替换数据 Replacedata 微软雅黑,12,,
FrmSet_FrmSet 设置 Setting Arial,20,B,
FrmSet_BtnGenneralSetting 通用设置 General Setting Arial,12,B,
...
...
@@ -96,6 +98,7 @@ UsrWorkMode_RdoNoImage 不保存 Skip Saving Arial,12,,
UsrWorkMode_ChkSelectPN 从服务器上查询PN Query PN From The Server Arial,12,,
UsrWorkMode_ChkLabelEmptyCheck 打印标签空内容提醒 Empty Label Alert Arial,12,,
UsrWorkMode_ChkPrintCompletedClear 打印标签后清除内容 Print&Clear Arial,12,,
UsrWorkMode_ChkCheckFunction Check功能 CheckFunction Arial,12,,
UsrWorkMode_ChkOpenEnterWork 打开软件自动进入工作模式 Auto Start Mode Arial,12,,
UsrWorkMode_ChkOpenMaximize 打开软件最大化窗口 Always Open Maximized Arial,12,,
UsrWorkMode_ChkTriggerOpenLight 触发信号后在打开光源 Turn On Light After Triggering Device Arial,12,,
...
...
SmartScan/Language/zh-CN.lngres
查看文件 @
cfa214d
...
...
@@ -61,6 +61,8 @@ FrmMain_LblIOExist IO模块连接 IO模块连接 微软雅黑,9,,
FrmMain_PnlExtension 功能 功能 微软雅黑,14,,
FrmMain_BtnPrint 打印标签 打印标签 微软雅黑,12,,
FrmMain_DynamicButton 替换数据 替换数据 微软雅黑,12,,
FrmMain_BtnSkip 跳过 跳过 Arial,12,,
FrmMain_labresult 等待中 等待中 Arial,12,,
FrmSet_FrmSet 设置 设置 微软雅黑,20,B,
FrmSet_BtnGenneralSetting 通用设置 通用设置 微软雅黑,12,B,
FrmSet_BtnIdentify 识别条码 识别条码 微软雅黑,12,B,
...
...
@@ -88,6 +90,7 @@ UsrWorkMode_LblDefaultLabel 默认打印标签 默认打印标签 微软雅黑,1
UsrWorkMode_RdoLandscape 横向打印 横向打印 微软雅黑,12,,
UsrWorkMode_RdoVertical 纵向打印 纵向打印 微软雅黑,12,,
UsrWorkMode_LblHistoryImage 追溯图像保存 追溯图像保存 微软雅黑,12,B,
UsrWorkMode_ChkCheckFunction Check功能 Check功能 微软雅黑,12,,
UsrWorkMode_RdoOriginal 原图 原图 微软雅黑,12,,
UsrWorkMode_RdoCondense 压缩图像 压缩图像 微软雅黑,12,,
UsrWorkMode_RdoNoImage 不保存 不保存 微软雅黑,12,,
...
...
SmartScan/PlusSettingFrm/FrmSetPlus.cs
查看文件 @
cfa214d
...
...
@@ -22,7 +22,7 @@ namespace SmartScan
//this.Height = 738;
this
.
Top
=
15
;
this
.
Left
=
0
;
WebService
.
Open
(
BLLCommon
.
config
.
WebService
);
//启动条码匹配服务
LogNet
.
log
=
log4net
.
LogManager
.
GetLogger
(
"SmartScan"
);
}
...
...
SmartScan/Program.cs
查看文件 @
cfa214d
...
...
@@ -120,7 +120,7 @@ namespace SmartScan
Application
.
Run
(
new
FrmLoading
(
back
));
//预加载,完成后自动退出
Common
.
frmMain
=
new
FrmMain
();
Common
.
frmWaitting
=
new
FrmWaitting
();
WebService
.
Open
();
//启动条码匹配服务
WebService
.
Open
(
BLLCommon
.
config
.
WebService
);
//启动条码匹配服务
if
(
back
)
{
var
fsp
=
new
FrmSetPlus
();
...
...
SmartScan/SetControl/UsrWorkMode.Designer.cs
查看文件 @
cfa214d
...
...
@@ -52,6 +52,7 @@ namespace SmartScan
this
.
RdoCondense
=
new
Asa
.
FaceControl
.
FaceRadioBox
();
this
.
RdoOriginal
=
new
Asa
.
FaceControl
.
FaceRadioBox
();
this
.
LblHistoryImage
=
new
Asa
.
FaceControl
.
FaceLabel
();
this
.
ChkCheckFunction
=
new
Asa
.
FaceControl
.
FaceCheckBox
();
this
.
facePanel1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
...
...
@@ -60,6 +61,7 @@ namespace SmartScan
this
.
facePanel1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))));
this
.
facePanel1
.
BorderStyle
=
Asa
.
FaceControl
.
ControlShape
.
Rectangle
;
this
.
facePanel1
.
BorderWidth
=
2
;
this
.
facePanel1
.
Controls
.
Add
(
this
.
ChkCheckFunction
);
this
.
facePanel1
.
Controls
.
Add
(
this
.
but_Readfileprint
);
this
.
facePanel1
.
Controls
.
Add
(
this
.
ChkAllowModifyPrint
);
this
.
facePanel1
.
Controls
.
Add
(
this
.
ChkAutoPrint
);
...
...
@@ -83,12 +85,11 @@ namespace SmartScan
this
.
facePanel1
.
Controls
.
Add
(
this
.
RdoOriginal
);
this
.
facePanel1
.
Controls
.
Add
(
this
.
LblHistoryImage
);
this
.
facePanel1
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
facePanel1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
4
);
this
.
facePanel1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
facePanel1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
facePanel1
.
Name
=
"facePanel1"
;
this
.
facePanel1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
facePanel1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
facePanel1
.
ShowText
=
false
;
this
.
facePanel1
.
Size
=
new
System
.
Drawing
.
Size
(
1191
,
989
);
this
.
facePanel1
.
Size
=
new
System
.
Drawing
.
Size
(
558
,
710
);
this
.
facePanel1
.
TabIndex
=
0
;
this
.
facePanel1
.
Text
=
"facePanel1"
;
this
.
facePanel1
.
TitleFont
=
new
System
.
Drawing
.
Font
(
"宋体"
,
12F
);
...
...
@@ -102,10 +103,10 @@ namespace SmartScan
this
.
but_Readfileprint
.
FlatAppearance
.
MouseOverBackColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
but_Readfileprint
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
but_Readfileprint
.
ForeColor
=
System
.
Drawing
.
Color
.
WhiteSmoke
;
this
.
but_Readfileprint
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
5
);
this
.
but_Readfileprint
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
but_Readfileprint
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
but_Readfileprint
.
Name
=
"but_Readfileprint"
;
this
.
but_Readfileprint
.
Size
=
new
System
.
Drawing
.
Size
(
60
,
37
);
this
.
but_Readfileprint
.
Size
=
new
System
.
Drawing
.
Size
(
40
,
25
);
this
.
but_Readfileprint
.
TabIndex
=
0
;
this
.
but_Readfileprint
.
UseVisualStyleBackColor
=
false
;
this
.
but_Readfileprint
.
Click
+=
new
System
.
EventHandler
(
this
.
but_Readfileprint_Click
);
...
...
@@ -117,11 +118,10 @@ namespace SmartScan
this
.
ChkAllowModifyPrint
.
BorderWidth
=
0
;
this
.
ChkAllowModifyPrint
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkAllowModifyPrint
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkAllowModifyPrint
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
908
);
this
.
ChkAllowModifyPrint
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkAllowModifyPrint
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
605
);
this
.
ChkAllowModifyPrint
.
Name
=
"ChkAllowModifyPrint"
;
this
.
ChkAllowModifyPrint
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkAllowModifyPrint
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkAllowModifyPrint
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkAllowModifyPrint
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkAllowModifyPrint
.
TabIndex
=
19
;
this
.
ChkAllowModifyPrint
.
Text
=
"允许修改打内容"
;
this
.
ChkAllowModifyPrint
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -133,11 +133,10 @@ namespace SmartScan
this
.
ChkAutoPrint
.
BorderWidth
=
0
;
this
.
ChkAutoPrint
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkAutoPrint
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkAutoPrint
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
850
);
this
.
ChkAutoPrint
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkAutoPrint
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
567
);
this
.
ChkAutoPrint
.
Name
=
"ChkAutoPrint"
;
this
.
ChkAutoPrint
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkAutoPrint
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkAutoPrint
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkAutoPrint
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkAutoPrint
.
TabIndex
=
18
;
this
.
ChkAutoPrint
.
Text
=
"自动打印"
;
this
.
ChkAutoPrint
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -149,11 +148,10 @@ namespace SmartScan
this
.
ChkPromptAfterPrinting
.
BorderWidth
=
0
;
this
.
ChkPromptAfterPrinting
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkPromptAfterPrinting
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkPromptAfterPrinting
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
790
);
this
.
ChkPromptAfterPrinting
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkPromptAfterPrinting
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
527
);
this
.
ChkPromptAfterPrinting
.
Name
=
"ChkPromptAfterPrinting"
;
this
.
ChkPromptAfterPrinting
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkPromptAfterPrinting
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkPromptAfterPrinting
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkPromptAfterPrinting
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkPromptAfterPrinting
.
TabIndex
=
18
;
this
.
ChkPromptAfterPrinting
.
Text
=
"打印完成后提示"
;
this
.
ChkPromptAfterPrinting
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -165,11 +163,10 @@ namespace SmartScan
this
.
ChkTriggerOpenLight
.
BorderWidth
=
0
;
this
.
ChkTriggerOpenLight
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkTriggerOpenLight
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkTriggerOpenLight
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
730
);
this
.
ChkTriggerOpenLight
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkTriggerOpenLight
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
487
);
this
.
ChkTriggerOpenLight
.
Name
=
"ChkTriggerOpenLight"
;
this
.
ChkTriggerOpenLight
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkTriggerOpenLight
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkTriggerOpenLight
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkTriggerOpenLight
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkTriggerOpenLight
.
TabIndex
=
17
;
this
.
ChkTriggerOpenLight
.
Text
=
"触发信号亮灯"
;
this
.
ChkTriggerOpenLight
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -181,11 +178,10 @@ namespace SmartScan
this
.
LblDefaultMate
.
BorderWidth
=
0
;
this
.
LblDefaultMate
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LblDefaultMate
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LblDefaultMate
.
Location
=
new
System
.
Drawing
.
Point
(
852
,
24
);
this
.
LblDefaultMate
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblDefaultMate
.
Location
=
new
System
.
Drawing
.
Point
(
568
,
16
);
this
.
LblDefaultMate
.
Name
=
"LblDefaultMate"
;
this
.
LblDefaultMate
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblDefaultMate
.
Size
=
new
System
.
Drawing
.
Size
(
300
,
53
);
this
.
LblDefaultMate
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LblDefaultMate
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
35
);
this
.
LblDefaultMate
.
TabIndex
=
16
;
this
.
LblDefaultMate
.
Text
=
"优先匹配模板"
;
//
...
...
@@ -196,12 +192,11 @@ namespace SmartScan
this
.
LstMate
.
BorderWidth
=
2
;
this
.
LstMate
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LstMate
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LstMate
.
Location
=
new
System
.
Drawing
.
Point
(
852
,
85
);
this
.
LstMate
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LstMate
.
Location
=
new
System
.
Drawing
.
Point
(
568
,
57
);
this
.
LstMate
.
Name
=
"LstMate"
;
this
.
LstMate
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LstMate
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LstMate
.
SelectedIndex
=
-
1
;
this
.
LstMate
.
Size
=
new
System
.
Drawing
.
Size
(
300
,
3
01
);
this
.
LstMate
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
2
01
);
this
.
LstMate
.
TabIndex
=
15
;
//
// ChkPrintCompletedClear
...
...
@@ -211,11 +206,10 @@ namespace SmartScan
this
.
ChkPrintCompletedClear
.
BorderWidth
=
0
;
this
.
ChkPrintCompletedClear
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkPrintCompletedClear
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkPrintCompletedClear
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
550
);
this
.
ChkPrintCompletedClear
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkPrintCompletedClear
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
367
);
this
.
ChkPrintCompletedClear
.
Name
=
"ChkPrintCompletedClear"
;
this
.
ChkPrintCompletedClear
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkPrintCompletedClear
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkPrintCompletedClear
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkPrintCompletedClear
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkPrintCompletedClear
.
TabIndex
=
14
;
this
.
ChkPrintCompletedClear
.
Text
=
"标签打印完成后清除数据"
;
this
.
ChkPrintCompletedClear
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -227,11 +221,10 @@ namespace SmartScan
this
.
ChkOpenMaximize
.
BorderWidth
=
0
;
this
.
ChkOpenMaximize
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkOpenMaximize
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkOpenMaximize
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
670
);
this
.
ChkOpenMaximize
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkOpenMaximize
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
447
);
this
.
ChkOpenMaximize
.
Name
=
"ChkOpenMaximize"
;
this
.
ChkOpenMaximize
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkOpenMaximize
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkOpenMaximize
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkOpenMaximize
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkOpenMaximize
.
TabIndex
=
13
;
this
.
ChkOpenMaximize
.
Text
=
"软件打开最大化"
;
this
.
ChkOpenMaximize
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -243,12 +236,11 @@ namespace SmartScan
this
.
LstPrinter
.
BorderWidth
=
2
;
this
.
LstPrinter
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LstPrinter
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LstPrinter
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
162
);
this
.
LstPrinter
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LstPrinter
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
108
);
this
.
LstPrinter
.
Name
=
"LstPrinter"
;
this
.
LstPrinter
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LstPrinter
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LstPrinter
.
SelectedIndex
=
-
1
;
this
.
LstPrinter
.
Size
=
new
System
.
Drawing
.
Size
(
525
,
226
);
this
.
LstPrinter
.
Size
=
new
System
.
Drawing
.
Size
(
350
,
151
);
this
.
LstPrinter
.
TabIndex
=
8
;
//
// ChkOpenEnterWork
...
...
@@ -258,11 +250,10 @@ namespace SmartScan
this
.
ChkOpenEnterWork
.
BorderWidth
=
0
;
this
.
ChkOpenEnterWork
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkOpenEnterWork
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkOpenEnterWork
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
610
);
this
.
ChkOpenEnterWork
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkOpenEnterWork
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
407
);
this
.
ChkOpenEnterWork
.
Name
=
"ChkOpenEnterWork"
;
this
.
ChkOpenEnterWork
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkOpenEnterWork
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkOpenEnterWork
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkOpenEnterWork
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkOpenEnterWork
.
TabIndex
=
12
;
this
.
ChkOpenEnterWork
.
Text
=
"软件打开自动进入工作"
;
this
.
ChkOpenEnterWork
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -274,11 +265,10 @@ namespace SmartScan
this
.
ChkLabelEmptyCheck
.
BorderWidth
=
0
;
this
.
ChkLabelEmptyCheck
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkLabelEmptyCheck
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkLabelEmptyCheck
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
490
);
this
.
ChkLabelEmptyCheck
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkLabelEmptyCheck
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
327
);
this
.
ChkLabelEmptyCheck
.
Name
=
"ChkLabelEmptyCheck"
;
this
.
ChkLabelEmptyCheck
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkLabelEmptyCheck
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkLabelEmptyCheck
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkLabelEmptyCheck
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkLabelEmptyCheck
.
TabIndex
=
11
;
this
.
ChkLabelEmptyCheck
.
Text
=
"标签空内容校验"
;
this
.
ChkLabelEmptyCheck
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -290,11 +280,10 @@ namespace SmartScan
this
.
ChkSelectPN
.
BorderWidth
=
0
;
this
.
ChkSelectPN
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkSelectPN
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkSelectPN
.
Location
=
new
System
.
Drawing
.
Point
(
392
,
430
);
this
.
ChkSelectPN
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkSelectPN
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
287
);
this
.
ChkSelectPN
.
Name
=
"ChkSelectPN"
;
this
.
ChkSelectPN
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ChkSelectPN
.
Size
=
new
System
.
Drawing
.
Size
(
680
,
53
);
this
.
ChkSelectPN
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkSelectPN
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkSelectPN
.
TabIndex
=
10
;
this
.
ChkSelectPN
.
Text
=
"通过服务器查询PN"
;
this
.
ChkSelectPN
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -306,11 +295,10 @@ namespace SmartScan
this
.
LblDefaultLabel
.
BorderWidth
=
0
;
this
.
LblDefaultLabel
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LblDefaultLabel
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LblDefaultLabel
.
Location
=
new
System
.
Drawing
.
Point
(
543
,
24
);
this
.
LblDefaultLabel
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblDefaultLabel
.
Location
=
new
System
.
Drawing
.
Point
(
362
,
16
);
this
.
LblDefaultLabel
.
Name
=
"LblDefaultLabel"
;
this
.
LblDefaultLabel
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblDefaultLabel
.
Size
=
new
System
.
Drawing
.
Size
(
300
,
53
);
this
.
LblDefaultLabel
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LblDefaultLabel
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
35
);
this
.
LblDefaultLabel
.
TabIndex
=
9
;
this
.
LblDefaultLabel
.
Text
=
"默认打印标签"
;
//
...
...
@@ -322,11 +310,10 @@ namespace SmartScan
this
.
RdoVertical
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
RdoVertical
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
RdoVertical
.
Group
=
"1"
;
this
.
RdoVertical
.
Location
=
new
System
.
Drawing
.
Point
(
276
,
85
);
this
.
RdoVertical
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoVertical
.
Location
=
new
System
.
Drawing
.
Point
(
184
,
57
);
this
.
RdoVertical
.
Name
=
"RdoVertical"
;
this
.
RdoVertical
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoVertical
.
Size
=
new
System
.
Drawing
.
Size
(
258
,
67
);
this
.
RdoVertical
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
RdoVertical
.
Size
=
new
System
.
Drawing
.
Size
(
172
,
45
);
this
.
RdoVertical
.
TabIndex
=
7
;
this
.
RdoVertical
.
Text
=
"纵向打印"
;
//
...
...
@@ -338,11 +325,10 @@ namespace SmartScan
this
.
RdoLandscape
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
RdoLandscape
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
RdoLandscape
.
Group
=
"1"
;
this
.
RdoLandscape
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
85
);
this
.
RdoLandscape
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoLandscape
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
57
);
this
.
RdoLandscape
.
Name
=
"RdoLandscape"
;
this
.
RdoLandscape
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoLandscape
.
Size
=
new
System
.
Drawing
.
Size
(
258
,
67
);
this
.
RdoLandscape
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
RdoLandscape
.
Size
=
new
System
.
Drawing
.
Size
(
172
,
45
);
this
.
RdoLandscape
.
TabIndex
=
6
;
this
.
RdoLandscape
.
Text
=
"横向打印"
;
//
...
...
@@ -353,12 +339,11 @@ namespace SmartScan
this
.
LstLabel
.
BorderWidth
=
2
;
this
.
LstLabel
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LstLabel
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LstLabel
.
Location
=
new
System
.
Drawing
.
Point
(
543
,
85
);
this
.
LstLabel
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LstLabel
.
Location
=
new
System
.
Drawing
.
Point
(
362
,
57
);
this
.
LstLabel
.
Name
=
"LstLabel"
;
this
.
LstLabel
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LstLabel
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LstLabel
.
SelectedIndex
=
-
1
;
this
.
LstLabel
.
Size
=
new
System
.
Drawing
.
Size
(
300
,
3
01
);
this
.
LstLabel
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
2
01
);
this
.
LstLabel
.
TabIndex
=
5
;
//
// LblPrint
...
...
@@ -368,11 +353,10 @@ namespace SmartScan
this
.
LblPrint
.
BorderWidth
=
0
;
this
.
LblPrint
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LblPrint
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LblPrint
.
Location
=
new
System
.
Drawing
.
Point
(
9
,
24
);
this
.
LblPrint
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblPrint
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
16
);
this
.
LblPrint
.
Name
=
"LblPrint"
;
this
.
LblPrint
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblPrint
.
Size
=
new
System
.
Drawing
.
Size
(
525
,
53
);
this
.
LblPrint
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LblPrint
.
Size
=
new
System
.
Drawing
.
Size
(
350
,
35
);
this
.
LblPrint
.
TabIndex
=
4
;
this
.
LblPrint
.
Text
=
"打印机"
;
//
...
...
@@ -384,11 +368,10 @@ namespace SmartScan
this
.
RdoNoImage
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
RdoNoImage
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
RdoNoImage
.
Group
=
"2"
;
this
.
RdoNoImage
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
613
);
this
.
RdoNoImage
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoNoImage
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
409
);
this
.
RdoNoImage
.
Name
=
"RdoNoImage"
;
this
.
RdoNoImage
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoNoImage
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
53
);
this
.
RdoNoImage
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
RdoNoImage
.
Size
=
new
System
.
Drawing
.
Size
(
235
,
35
);
this
.
RdoNoImage
.
TabIndex
=
3
;
this
.
RdoNoImage
.
Text
=
"不保存"
;
this
.
RdoNoImage
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -401,11 +384,10 @@ namespace SmartScan
this
.
RdoCondense
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
RdoCondense
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
RdoCondense
.
Group
=
"2"
;
this
.
RdoCondense
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
552
);
this
.
RdoCondense
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoCondense
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
368
);
this
.
RdoCondense
.
Name
=
"RdoCondense"
;
this
.
RdoCondense
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoCondense
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
53
);
this
.
RdoCondense
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
RdoCondense
.
Size
=
new
System
.
Drawing
.
Size
(
235
,
35
);
this
.
RdoCondense
.
TabIndex
=
2
;
this
.
RdoCondense
.
Text
=
"压缩图"
;
this
.
RdoCondense
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -418,11 +400,10 @@ namespace SmartScan
this
.
RdoOriginal
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
RdoOriginal
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
RdoOriginal
.
Group
=
"2"
;
this
.
RdoOriginal
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
491
);
this
.
RdoOriginal
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoOriginal
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
327
);
this
.
RdoOriginal
.
Name
=
"RdoOriginal"
;
this
.
RdoOriginal
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
RdoOriginal
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
53
);
this
.
RdoOriginal
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
RdoOriginal
.
Size
=
new
System
.
Drawing
.
Size
(
235
,
35
);
this
.
RdoOriginal
.
TabIndex
=
1
;
this
.
RdoOriginal
.
Text
=
"原始图"
;
this
.
RdoOriginal
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
...
...
@@ -434,23 +415,36 @@ namespace SmartScan
this
.
LblHistoryImage
.
BorderWidth
=
0
;
this
.
LblHistoryImage
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
LblHistoryImage
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
LblHistoryImage
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
430
);
this
.
LblHistoryImage
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblHistoryImage
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
287
);
this
.
LblHistoryImage
.
Name
=
"LblHistoryImage"
;
this
.
LblHistoryImage
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
LblHistoryImage
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
53
);
this
.
LblHistoryImage
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
LblHistoryImage
.
Size
=
new
System
.
Drawing
.
Size
(
235
,
35
);
this
.
LblHistoryImage
.
TabIndex
=
0
;
this
.
LblHistoryImage
.
Text
=
"追溯图像保存"
;
this
.
LblHistoryImage
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// ChkCheckFunction
//
this
.
ChkCheckFunction
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))));
this
.
ChkCheckFunction
.
BorderStyle
=
Asa
.
FaceControl
.
ControlShape
.
Rectangle
;
this
.
ChkCheckFunction
.
BorderWidth
=
0
;
this
.
ChkCheckFunction
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ChkCheckFunction
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
ChkCheckFunction
.
Location
=
new
System
.
Drawing
.
Point
(
261
,
646
);
this
.
ChkCheckFunction
.
Name
=
"ChkCheckFunction"
;
this
.
ChkCheckFunction
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
ChkCheckFunction
.
Size
=
new
System
.
Drawing
.
Size
(
453
,
35
);
this
.
ChkCheckFunction
.
TabIndex
=
20
;
this
.
ChkCheckFunction
.
Text
=
"Check功能"
;
this
.
ChkCheckFunction
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// UsrWorkMode
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
9F
,
18
F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12
F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
facePanel1
);
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
Name
=
"UsrWorkMode"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
842
,
665
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
561
,
743
);
this
.
facePanel1
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
...
@@ -481,5 +475,6 @@ namespace SmartScan
private
Asa
.
FaceControl
.
FaceCheckBox
ChkPromptAfterPrinting
;
private
Asa
.
FaceControl
.
FaceCheckBox
ChkAllowModifyPrint
;
private
System
.
Windows
.
Forms
.
Button
but_Readfileprint
;
private
Asa
.
FaceControl
.
FaceCheckBox
ChkCheckFunction
;
}
}
SmartScan/SetControl/UsrWorkMode.cs
查看文件 @
cfa214d
...
...
@@ -38,6 +38,7 @@ namespace SmartScan
ChkPromptAfterPrinting
.
Checked
=
BLLCommon
.
config
.
PromptAfterPrinting
;
ChkAutoPrint
.
Checked
=
BLLCommon
.
config
.
AutoPrint
;
ChkAllowModifyPrint
.
Checked
=
Config
.
AllowModifyPrintInfo
;
ChkCheckFunction
.
Checked
=
BLLCommon
.
config
.
CheckFunction
;
;
//默认标签
LstLabel
.
Items
.
AddRange
(
BLLCommon
.
labelEdit
.
Name
);
LstLabel
.
Text
=
BLLCommon
.
config
.
DefaultPrintLabel
;
...
...
@@ -107,6 +108,7 @@ namespace SmartScan
BLLCommon
.
config
.
TriggerOpenLight
=
ChkTriggerOpenLight
.
Checked
;
BLLCommon
.
config
.
PromptAfterPrinting
=
ChkPromptAfterPrinting
.
Checked
;
BLLCommon
.
config
.
AutoPrint
=
ChkAutoPrint
.
Checked
;
BLLCommon
.
config
.
CheckFunction
=
ChkCheckFunction
.
Checked
;
BLLCommon
.
config
.
Save
();
}
...
...
SmartScan/SetControl/UsrWorkMode2.cs
查看文件 @
cfa214d
...
...
@@ -29,6 +29,7 @@ namespace SmartScan
ChkLabelEmptyCheck
.
Checked
=
BLLCommon
.
config
.
LabelEmptyCheck
;
ChkOpenEnterWork
.
Checked
=
BLLCommon
.
config
.
OpenStartWork
;
ChkPrintCompletedClear
.
Checked
=
BLLCommon
.
config
.
PrintCompletedClear
;
ChkPrintCompletedClear
.
Checked
=
BLLCommon
.
config
.
PrintCompletedClear
;
ChkOpenMaximize
.
Checked
=
BLLCommon
.
config
.
OpenMaximize
;
ChkTriggerOpenLight
.
Checked
=
BLLCommon
.
config
.
TriggerOpenLight
;
ChkPromptAfterPrinting
.
Checked
=
BLLCommon
.
config
.
PromptAfterPrinting
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论