Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1a150e20
由
刘韬
编写于
2025-07-25 16:26:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修正若干bug, 打印按钮不答应, 脚踏开关弹出文件选择对话框, 匹配数量bug
1 个父辈
34f6a115
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
107 行增加
和
68 行删除
BLL/Extension/Item_General.cs
SharedDll/Asa.Face.Control.dll
SmartScan/Form/FrmMain.cs
SmartScan/Form/FrmSet.cs
SmartScan/Language/en-US.lngres
SmartScan/Language/ja-JP.lngres
SmartScan/Language/zh-CN.lngres
SmartScan/Properties/AssemblyInfo.cs
SmartScan/ScanWork.cs
SmartScan/SetControl/WPF/AboutWindowHost.xaml.cs
SmartScan/SetControl/WPF/MainWindow_Top.xaml
SmartScan/SetControl/WPF/MainWindow_Top.xaml.cs
SmartScan/SetControl/WPF/NS_KetRight.xaml
SmartScan/SetControl/WPF/NS_KetRight.xaml.cs
SmartScan/SetControl/WPF/VerticalMenuControl.xaml
SmartScan/SetControl/WPF/VerticalMenuControl.xaml.cs
SmartScan/SetControl/WPF/WPF_CodeExtract.xaml
SmartScan/SetControl/WPF/WPF_CodeExtract.xaml.cs
BLL/Extension/Item_General.cs
查看文件 @
1a150e2
...
...
@@ -221,11 +221,11 @@ namespace BLL
{
if
(
key
.
ContainsKey
(
"DateTime"
))
{
key
[
"DateTime"
]
=
DateTime
.
Now
.
ToString
(
"dd-MM-yyyy"
);
key
[
"DateTime"
]
=
DateTime
.
Now
.
ToString
(
ConfigHelper
.
Config
.
Get
(
"Ex_UserDataRule"
,
"dd-MM-yyyy"
)
);
}
else
{
key
.
Add
(
"DateTime"
,
DateTime
.
Now
.
ToString
(
"dd-MM-yyyy"
));
key
.
Add
(
"DateTime"
,
DateTime
.
Now
.
ToString
(
ConfigHelper
.
Config
.
Get
(
"Ex_UserDataRule"
,
"dd-MM-yyyy"
)
));
}
}
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
...
...
@@ -341,7 +341,7 @@ namespace BLL
// 如果有字段更新,则再次调用OnKeySet更新WPF界面
LogNet
.
log
.
Info
(
$
"OnKeySet"
);
OnKeySet
(
originalCode
,
key
,
hasMatch
);
if
(
lastKeys
==
null
&&
!
islast
&&
BLLCommon
.
config
.
CheckFunction
)
...
...
@@ -394,7 +394,10 @@ namespace BLL
//else
//{
if
(!
updatereelid
(
key
,
out
errmsg
))
{
LogNet
.
log
.
Info
(
$
"updatereelid false"
);
return
false
;
}
// }
...
...
@@ -435,6 +438,7 @@ namespace BLL
LogNet
.
log
.
Error
(
"GetHttpReelID:"
+
errmsg
);
return
false
;
}
LogNet
.
log
.
Error
(
"GetHttpReelID:true"
);
//key["ReelID"] = newid;
}
if
(
extensions
!=
null
&&
extensions
.
Count
>
0
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
...
...
@@ -655,6 +659,7 @@ namespace BLL
private
void
GetHttpReelID
(
object
sender
,
EventArgs
e
)
{
updatereelid
(
lastkey
,
out
_
);
LogNet
.
log
.
Info
(
$
"updatereelid GetHttpReelID"
);
}
private
void
BtnSkip_Click
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -825,7 +830,7 @@ namespace BLL
{
errmsg
=
"Api error"
;
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
return
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
// new FaceMessageBox("BoxReelIDInfoMaintain", errmsg, System.Windows.Forms.MessageBoxButtons.OK, true).ShowDialog();
return
false
;
...
...
@@ -840,7 +845,7 @@ namespace BLL
{
errmsg
=
"Api parse error:\r\n"
+
json
;
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
return
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
//new FaceMessageBox("BoxReelIDInfoMaintain", errmsg, System.Windows.Forms.MessageBoxButtons.OK, true).ShowDialog();
return
false
;
...
...
@@ -849,7 +854,7 @@ namespace BLL
if
(!
dic
.
TryGetValue
(
"CODE"
,
out
object
value
))
{
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
return
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
//new FaceMessageBox("BoxReelIDInfoMaintain", "Api return data error:\r\n" + json, System.Windows.Forms.MessageBoxButtons.OK, true).ShowDialog();
else
errmsg
=
"Api return data error:\r\n"
+
json
;
...
...
@@ -860,7 +865,7 @@ namespace BLL
{
errmsg
=
"Api parse error:\r\n"
+
dic
[
"MSG"
].
ToString
();
if
(
extensions
!=
null
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
new
FaceMessageBox
(
"BoxReelIDInfoMaintain"
,
errmsg
,
System
.
Windows
.
Forms
.
MessageBoxButtons
.
OK
,
true
).
ShowDialog
(
);
return
MessageboxNeo
.
Show
(
"BoxReelIDInfoMaintain"
,
errmsg
,
"NEO SCAN"
,
true
);
return
false
;
}
...
...
@@ -977,7 +982,7 @@ namespace BLL
if
(
extensions
!=
null
&&
extensions
.
Count
>
0
&&
!
extensions
[
0
].
Control
.
InvokeRequired
)
{
//自动打印and模板匹配成功,只负责打印标签
if
(
config
.
AutoPrint
&&
match
)
//
if (config.AutoPrint && match)
{
isprint
=
true
;
PrintLabel
(
true
,
EventArgs
.
Empty
);
...
...
SharedDll/Asa.Face.Control.dll
查看文件 @
1a150e2
此文件类型无法预览
SmartScan/Form/FrmMain.cs
查看文件 @
1a150e2
...
...
@@ -53,7 +53,7 @@ namespace SmartScan
// 初始化导航栏
InitializeMFTop
();
// 初始化菜单
InitializeWpfMenu
();
InitializeWpfMenu
();
this
.
Load
+=
Ns_rigth_Load
;
BtnStart
.
Tag
=
"not"
;
if
(
Config
.
AppUI_HideLogo
)
...
...
@@ -115,7 +115,9 @@ namespace SmartScan
// 订阅语言更改事件
MF_top
.
LanguageChanged
+=
MF_top_LanguageChanged
;
//拖动
MF_top
.
DragRequested
+=
MF_top_DragRequested
;
;
MF_top
.
DragRequested
+=
MF_top_DragRequested
;
}
private
bool
isDragging
=
false
;
private
System
.
Drawing
.
Point
dragStartPoint
;
...
...
@@ -185,7 +187,7 @@ namespace SmartScan
private
void
MF_top_LanguageChanged
(
object
sender
,
string
language
)
{
// 处理语言变更
if
(
BLLCommon
.
config
.
Language
!=
language
)
//
if (BLLCommon.config.Language != language)
{
Language
.
LoadLanguage
(
language
);
BLLCommon
.
config
.
Language
=
language
;
...
...
@@ -427,8 +429,7 @@ namespace SmartScan
this
.
Controls
.
Add
(
host
);
// 确保它位于Z顺序的顶部
host
.
BringToFront
();
host
.
BringToFront
();
}
...
...
@@ -463,6 +464,7 @@ namespace SmartScan
private
void
Ns_rigth_Load
(
object
sender
,
EventArgs
e
)
{
InitializeWpfControl
();
MF_top_LanguageChanged
(
this
,
BLLCommon
.
config
.
Language
);
}
//private General generals;
...
...
@@ -1060,7 +1062,7 @@ namespace SmartScan
private
void
OnBllKeySet
(
string
[]
originalCode
,
Dictionary
<
string
,
string
>
key
,
bool
hasMatch
)
{
LogNet
.
log
.
Info
(
$
"OnBllKeySet hasMatch:{hasMatch}, key:"
+
JsonConvert
.
SerializeObject
(
key
));
// 1. 更新UI显示原始码
wpfControl
.
UpdateOriginalCodeDisplay
(
originalCode
);
...
...
@@ -1113,6 +1115,7 @@ namespace SmartScan
private
void
CboLanguage_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
return
;
if
(
BLLCommon
.
config
.
Language
!=
CboLanguage
.
Text
)
{
Language
.
LoadLanguage
(
CboLanguage
.
Text
);
...
...
SmartScan/Form/FrmSet.cs
查看文件 @
1a150e2
...
...
@@ -37,8 +37,7 @@ namespace SmartScan
menu
.
Add
(
BtnGenneralSetting
,
new
UsrWpfPanel
(
new
WPFWorkMode
()));
// menu.Add(aaa, new UsrWpfPanel(new WPF_MaterialTemplate()));
Language
.
LoadLanguage
(
BLLCommon
.
config
.
Language
);
Language
.
SetLanguage
(
this
);
...
...
@@ -57,6 +56,9 @@ namespace SmartScan
BtnKeyword
.
HoldPress
=
true
;
menu
[
BtnKeyword
].
GetPanel
().
Visible
=
true
;
Maximize
();
Language
.
LoadLanguage
(
BLLCommon
.
config
.
Language
);
Language
.
SetLanguage
(
this
);
}
private
void
BtnMenu_Click
(
object
sender
,
EventArgs
e
)
...
...
SmartScan/Language/en-US.lngres
查看文件 @
1a150e2
...
...
@@ -409,7 +409,8 @@ WPF_Software 软件设置 Software Settings
WPF_API 数据源设置 API Setting
Serial_number 添加流水 Add the serial number
xianshi 已选关键词(按显示顺序排列) Selected keywords (arranged according to display order)
Dialog_NS_KetRight_Green 绿色 - 完全正确 微软雅黑,12,,
Dialog_NS_KetRight_yllow 黄色 - OCR识别结果,需要验证 微软雅黑,12,,
Dialog_NS_KetRight_Red 红色 - 无法识别或有问题 微软雅黑,12,,
Dialog_NS_KetRight_TextBlock 识别结果 微软雅黑,12,,
\ No newline at end of file
Dialog_NS_KetRight_Green 绿色 - 完全正确 Green - Completely correct 微软雅黑,12,,
Dialog_NS_KetRight_yllow 黄色 - OCR识别结果,需要验证 OCR recognition result, needs verification 微软雅黑,12,,
Dialog_NS_KetRight_Red 红色 - 无法识别或有问题 Unrecognizable or problematic 微软雅黑,12,,
Dialog_NS_KetRight_TextBlock 识别结果 Result: 微软雅黑,12,,
NS_KetRight_Detect 已检测字段 Detected Fields 微软雅黑,12,,
\ No newline at end of file
SmartScan/Language/ja-JP.lngres
查看文件 @
1a150e2
...
...
@@ -34,7 +34,7 @@ Dialog_filepatseerror
Dialog_fileformaterror 文件格式不正确 ファイル形式が正しくありません
Dialog_OcrNotSupport2DCode 二维码不能用于OCR定位基准 二维码はOCRの位置合わせに使用できません
Dialog_RemindClearTemplate 识别将重置模板。您确定要执行该操作吗? 認識がテンプレートをリセットします。操作を実行しますか?
Dialog_PrintLabel 打印标签 ラベルを印刷
Dialog_PrintLabel 打印
标
签 ラベルを印刷
Dialog_RemindSelectCode 请选择一个条码! バーコードを選択してください!
Dialog_TemplateMatchingConflict [name] 与以下的模板匹配冲突 [name] は以下のテンプレートとマッチングが衝突しています
Dialog_TemplateKeyMatchingDul [name] 以下关键字重复匹配 [name] 以下のキーワードが重複してマッチングされました
...
...
@@ -190,7 +190,7 @@ UsrCodeExtractList_ChkMatchisnumber 璉瘚僎頧祆銝箸摮 摮璊
UsrCodeExtractList_ChkMatchingSplit 条码分割字符 バーコードの分割キャラクタ 微软雅黑,12,,
UsrCodeExtractList_LblSplitPart 获取分割部分 分割部分の取得 微软雅黑,12,,
UsrCodeExtractList_ChkCaseSensitivity 区分大小写 大文字と小文字を区別 微软雅黑,12,,
UsrCodeExtractList_Characteristicbarcode 特征码 特徴コード微软雅黑,12,,
UsrCodeExtractList_Characteristicbarcode 特征码 特徴コード微软雅
黑,12,, 微软
雅黑,12,,
UsrCodeExtractList_ChkMinLength 最小长度 最小長さ 微软雅黑,12,,
UsrCodeExtractList_ChkMaxLength 最大长度 最大長さ 微软雅黑,12,,
UsrCodeExtractList_LblKeyword 选择关键字 キーワードを選択 微软雅黑,12,,
...
...
@@ -358,7 +358,7 @@ Dialog_ReplaceData ReplaceData ReplaceData Arial,12,,
BtnAddKey 添加 追加
BtnDelKey 删除 削除
BtnUpdateKey 更新 更新
BtnAppendKey 添加到生成条件 生成条件に追加"
BtnAppendKey 添加到生成条件 生
成
条件に追加"
btn_setriid 切换自动RI 自動RI切り替え
BtnStart 开始 開始
BtnRetrospect 追溯 トレーサビリティ
...
...
@@ -366,10 +366,10 @@ BtnSet 霈曄蔭 閮剖
BtnAI AI AI
BtnAbout 关于 About
BtnTriggerIO 图片识别 画像認識
LblCameraExist 识别设备连接 認識デバイス接続
LblCameraExist 识别设备连接
認識デバイス接続
LblIOExist IO模块连接 IOモジュール接続
setting 配置 設定
NS_KW_identifier 字段标识符 フィールドマーク
NS_KW_identifier 字段标识
符
フィールドマーク
NS_KW_Display_name 显示名称 表示名称
NS_KW_api API和数据库中使用的唯一标识符 APIおよびデータベースで使用されるユニークマーク
NS_KW_name 在界面中显示的名称 インターフェースに表示される名称
...
...
@@ -377,7 +377,7 @@ NS_KW_ID 銝憓
LblContent 生成条件 生成条件
LblPrefix 开头字符 先頭キャラクタ
LblPostfix 结尾字符 先頭キャラクタ
LblPlaces 数字位数 数字桁数
LblPlaces 数字位
数
数字桁数
NS_KW_WEISHU 位数不足前面补0 桁数不足の際、前に0を補完
NS_KW_H 标准字段 標準フィールド
VMC_Main_operation 主要操作 主要操作
...
...
@@ -388,10 +388,10 @@ RdoLandscape 璅芸 蝮行
RdoVertical 纵向打印 横書き印刷
WPF_camerasave 追溯图像保存 履歴イメージ保存
RdoOriginal 原图 オリジナル画像
RdoCondense 压缩图像 圧縮画像
RdoCondense 压缩图像
圧縮画像
RdoNoImage 不保存 保存しない
WPF_Advanced_Options 高级选项 詳細設定
ChkLabelEmptyCheck 打印版签空白内容提醒 印刷サインの空白内容アラート
WPF_Advanced_Options 高级选项 詳細設定
ChkLabelEmptyCheck 打印版签空白内容
提
醒 印刷サインの空白内容アラート
ChkSelectPN 从服务器查询PN サーバーからPNを查询
ChkPrintCompletedClear 打印版签后清除内容 印刷版サイン後に内容をクリア
ChkOpenEnterWork 打开软件自动进入工作模式 ソフトウェアを開くと自動的に作業モードに入ります
...
...
@@ -400,12 +400,12 @@ ChkTriggerOpenLight 閫血縑撘 靽∪敺
ChkPromptAfterPrinting 识别完成后提示 認識完了後のプロンプト
ChkAutoPrint 自动打印 自動印刷
ChkAllowModifyPrint 允许修改打印内容 印刷内容の変更を許可
ChkCheckFunction Check功能 チェック機能
ChkCheckFunction Check功能
チェック機能
PrinterInfoGridtext 打印机 プリンター
PrinterInfoGridtext1 默认打印标签 デフォルト印刷ラベル
PrinterInfoGridtext2 优先匹配模板 テンプレート優先マッチ
NS_ISENABLE 是否启用 採用しますか
ShowLog 报警信息 アラート情報
ShowLog 报警信息
アラート情報
UsrMaterialTemplate_TxtAddMate + +
UsrMaterialTemplate_txtRenameMate ✎ ✎
UsrMaterialTemplate_txtDelMate - -
...
...
@@ -421,30 +421,30 @@ BtnAutoId 銝憓
lbl_Green 绿色 - 完全正确 緑色 - 完全正確 微软雅黑,12,,
lbl_yellow 黄色 - OCR识别结果,需要验证 黄色 - OCR認識結果、検証が必要 微软雅黑,12,,
lbl_red 红色 - 无法识别或有问题 赤色 - 識別不能または問題あり 微软雅黑,12,,
Rule 添加字符 文字追加
Rule 添加字符
文
字追加
VMC_System_status 系统状态 システム状態
Barcode_content 条码内容 バーコード内容
WPF_FrmCodeExtract 提取条码 バーコード抽出
WPF_Condition 匹配条件 マッチング条件
ChkCheckCodeType 条码类型 バーコード種類
WPF_Condition 匹配条
件
マッチング条件
ChkCheckCodeType 条码类型
バーコード種類
ChkMatchingStart 开头字符 先頭キャラクタ
ChkMatchingEnd 结尾字符 先頭キャラクタ
ChkMatchingMiddle 任意位置字符 任意位置のキャラクタ
WPF_COUNT 匹配次数: マッチング回数:
ChkCaseSensitivity 区分大小写 大文字と小文字を区別
Characteristicbarcode 特征码 特徴コー
WPF_KEYS 关键字 キーワード
WPF_KEYS 关键
字
キーワード
WPF_Add 添加 追加
WPF_Delect 删除 削除
WPF_Reslues 解析结果 解析結果
WPF_Reslues 解析结
果
解析結果
WPF_Set 提取设置 抽出設定
WPF_ChooseKeys 选择关键字: キーワード選択:
WPF_ChooseKeys 选择关键
字
: キーワード選択:
ChkSplitBarcode 条码分割字符 バーコードの分割キャラクタ
WPF_CHkSplit 获取分割部分: 分割部分の取得:
WPF_CHkSplitStart 截取起始位置: 切り出し開始位置:
WPF_SplitLenght 截取长度: 切り出し長さ:
WPF_SplitLenght 截取长度
:
切り出し長さ:
ChkMustBeNumber 必须为数字 数字でなければならない
OnlyTakeBeNumber 只取数字 数字
OnlyTakeBeNumber 只取数
字
数字
ChkExtractToEnd 截取至结尾 末尾まで切り出す
ChkMinLength 最小长度 最小長さ
ChkMaxLength 最大长度 最大長さ
...
...
@@ -457,8 +457,30 @@ WPF_PringBehavior 銵蛹
WPF_Software 软件设置 ソフト設置
WPF_API API设置 API设置
Serial_number 添加流水 シリアル値
xianshi 已选关键词(按显示顺序排列) 選択されたキーワード(表示順に配列)
Dialog_NS_KetRight_Green 绿色 - 完全正确 微软雅黑,12,,
Dialog_NS_KetRight_yllow 黄色 - OCR识别结果,需要验证 微软雅黑,12,,
Dialog_NS_KetRight_Red 红色 - 无法识别或有问题 微软雅黑,12,,
Dialog_NS_KetRight_TextBlock 识别结果 微软雅黑,12,,
\ No newline at end of file
xianshi 已选关键词(按显示顺序排列) 選択されたキーワード(表示順に配列)
Dialog_NS_KetRight_Green 绿色 - 完全正确 緑色 - 完全に正確 微软雅黑,12,,
Dialog_NS_KetRight_yllow 黄色 - OCR识别结果,需要验证 黄色 - OCR認識結果、検証が必要 微软雅黑,12,,
Dialog_NS_KetRight_Red 红色 - 无法识别或有问题 赤色 - 認識不能または問題あり 微软雅黑,12,,
Dialog_NS_KetRight_TextBlock 识别结果 認識結果 微软雅黑,12,,
Dialog_NS_KetRight_Detect 已检测字段 検出されたフィールド 微软雅黑,12,,
FrmSet_ChkRecursive 遍历同目录 同じディレクトリを遍歴 微软雅黑,12,,
FrmSet_groupBox_lblkey 标签可用字段 ラベル可用フィールド 微软雅黑,12,,
FrmSet_BtnSelectFile 选择文件 ファイル選択 微软雅黑,12,,
FrmSet_faceLabel2 关键字匹配数据标题 キーワードマッチデータタイトル 微软雅黑,12,,
FrmSet_faceLabel1 识别关键词 キーワード認識 微软雅黑,12,,
FrmSet_LblFilestatus 文件状态: ファイル状態: 微软雅黑,12,,
FrmSet_LblContent 标签数据源 ラベルデータソース 微软雅黑,12,,
FrmSet_BtnAddLabel 新しいラベルを作成 新しいラベルを作成 微软雅黑,12,,
FrmSet_BtnDelLabel ラベル削除 ラベル削除 微软雅黑,12,,
FrmSet_facePanel7 フィールド操作 フィールド操作 微软雅黑,12,,
FrmSet_BtnAddField フィールド追加 フィールド追加 微软雅黑,12,,
FrmSet_BtnDelField フィールド削除 フィールド削除 微软雅黑,12,,
FrmSet_ChkFieldShowKey キーワード表示 キーワード表示 微软雅黑,12,,
FrmSet_BtnSetField フィールド内容設定 フィールド内容設定 微软雅黑,12,,
FrmSet_BtnPrintTest 印刷テスト 印刷テスト 微软雅黑,12,,
FrmSet_LblFieldType バーコード種類 バーコード種類 微软雅黑,12,,
FrmSet_pnLabelFieldPos フィールド位置 フィールド位置 微软雅黑,12,,
FrmSet_LblFieldSize 用紙サイズ 用紙サイズ 微软雅黑,12,,
FrmSet_pnlPrintTmpLstOp ラベルテンプレート操作 ラベルテンプレート操作 微软雅黑,12,,
Dialog_About_About 关于 About 微软雅黑,12,,
Dialog_About_mrs 物料注册系统 材料登録システム 微软雅黑,12,,
\ No newline at end of file
SmartScan/Language/zh-CN.lngres
查看文件 @
1a150e2
...
...
@@ -461,4 +461,5 @@ xianshi 已选关键词(按显示顺序排列) 已选关键词(按显示
Dialog_NS_KetRight_Green 绿色 - 完全正确 绿色 - 完全正确 微软雅黑,12,,
Dialog_NS_KetRight_yllow 黄色 - OCR识别结果,需要验证 黄色 - OCR识别结果,需要验证 微软雅黑,12,,
Dialog_NS_KetRight_Red 红色 - 无法识别或有问题 红色 - 无法识别或有问题 微软雅黑,12,,
Dialog_NS_KetRight_TextBlock 识别结果 微软雅黑,12,,
\ No newline at end of file
Dialog_NS_KetRight_TextBlock 识别结果 识别结果 微软雅黑,12,,
NS_KetRight_Detect 已检测字段 已检测字段 微软雅黑,12,,
\ No newline at end of file
SmartScan/Properties/AssemblyInfo.cs
查看文件 @
1a150e2
...
...
@@ -30,7 +30,7 @@ using System.Runtime.InteropServices;
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
[assembly: AssemblyVersion("4.
1
.*")]
[assembly: AssemblyVersion("4.
2
.*")]
//[assembly: AssemblyVersion("3.0.0.0")]
//[assembly: AssemblyFileVersion("3.0.0.0")]
...
...
SmartScan/ScanWork.cs
查看文件 @
1a150e2
...
...
@@ -415,7 +415,7 @@ namespace SmartScan
{
LogNet
.
log
.
Info
(
"Work GetCodeInfo"
);
if
(
BLLCommon
.
config
.
EnabledCamera
&&
isstart
==
true
)
if
(
BLLCommon
.
config
.
EnabledCamera
)
//
&& isstart==true)
{
LogNet
.
log
.
Info
(
"1"
);
if
(
BLLCommon
.
config
.
TriggerOpenLight
)
...
...
@@ -762,7 +762,7 @@ namespace SmartScan
string
status
=
BLLCommon
.
extension
.
labelText
.
ToLower
();
needPrint
=
(
status
==
"等待中"
||
status
==
"Waiting"
||
status
==
"待機中"
);
}
if
(
needPrint
)
if
(
needPrint
&&
BLLCommon
.
config
.
AutoPrint
)
{
if
(
workCodeKeyword
.
Any
(
a
=>
a
.
Value
.
StartsWith
(
"<OCR>"
)))
{
...
...
@@ -804,8 +804,9 @@ namespace SmartScan
}
else
{
//打印
BLLCommon
.
extension
.
Print
(
hasMatch
,
pairs
);
if
(
hasMatch
)
//打印
BLLCommon
.
extension
.
Print
(
hasMatch
,
pairs
);
}
}
...
...
@@ -838,6 +839,7 @@ namespace SmartScan
}
else
{
if
(
hasMatch
)
BLLCommon
.
extension
.
Print
(
hasMatch
,
workCodeKeyword
);
}
//打印
...
...
SmartScan/SetControl/WPF/AboutWindowHost.xaml.cs
查看文件 @
1a150e2
...
...
@@ -56,6 +56,8 @@ namespace SmartScan.SetControl.WPF
string
YU
=
BLLCommon
.
config
.
Language
;
text1
.
Text
=
Asa
.
FaceControl
.
Language
.
Dialog
(
"About_About"
,
"关于"
);
text2
.
Text
=
Asa
.
FaceControl
.
Language
.
Dialog
(
"About_mrs"
,
"物料注册系统"
);
VersionInfo
=
BLLCommon
.
config
.
SoftVersion
;
//if (YU == "English")
//{
// = "About";
...
...
SmartScan/SetControl/WPF/MainWindow_Top.xaml
查看文件 @
1a150e2
...
...
@@ -72,8 +72,7 @@
Background="Transparent"
Foreground="White"
BorderBrush="#444444"
FontSize="12"
SelectionChanged="LanguageSelector_SelectionChanged">
FontSize="12">
<!-- 自定义ComboBox样式 -->
<ComboBox.Resources>
...
...
SmartScan/SetControl/WPF/MainWindow_Top.xaml.cs
查看文件 @
1a150e2
using
BLL
;
using
SharpDocx.CodeBlocks
;
using
SmartScan.SetControl.WPF.Model
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -35,7 +36,6 @@ namespace SmartScan.SetControl.WPF
InitializeComponent
();
// 从配置中获取当前语言
string
configLanguage
=
BLLCommon
.
config
.
Language
;
// 根据配置设置选择正确的ComboBoxItem
SelectLanguageInUI
(
configLanguage
);
this
.
Loaded
+=
(
s
,
e
)
=>
{
...
...
SmartScan/SetControl/WPF/NS_KetRight.xaml
查看文件 @
1a150e2
...
...
@@ -85,10 +85,11 @@
<Grid Margin="0,5,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="24"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="13*"/>
</Grid.ColumnDefinitions>
<Rectangle Width="16" Height="16" Fill="#FFC107" RadiusX="2" RadiusY="2"/>
<TextBlock Grid.Column="1" x:Name="lbl_yellow" Text="黄色 - OCR识别结果,需要验证" FontSize="14" FontFamily="微软雅黑" VerticalAlignment="Center" Margin="10,0,0,0"/>
<Rectangle Width="16" Height="16" Fill="#FFC107" RadiusX="2" RadiusY="2"
Margin="4,1,4,1"
/>
<TextBlock Grid.Column="1" x:Name="lbl_yellow" Text="黄色 - OCR识别结果,需要验证" FontSize="14" FontFamily="微软雅黑" VerticalAlignment="Center" Margin="10,0,0,0"
Grid.ColumnSpan="2"
/>
</Grid>
<Grid Margin="0,5,0,5">
...
...
SmartScan/SetControl/WPF/NS_KetRight.xaml.cs
查看文件 @
1a150e2
此文件的差异被折叠,
点击展开。
SmartScan/SetControl/WPF/VerticalMenuControl.xaml
查看文件 @
1a150e2
...
...
@@ -209,6 +209,6 @@
</WrapPanel>
</Grid>
<TextBlock Text="等待运行" Visibility="Collapsed" FontFamily="微软雅黑" Name="ShowLog" FontSize="21" Foreground="Red" VerticalAlignment="Bottom" Margin="0 0 0 50" HorizontalAlignment="Center"/>
<TextBlock Text="4.1.9233.34683" FontFamily="微软雅黑" FontSize="11" Foreground="#999999" VerticalAlignment="Bottom" Margin="0 0 0 10" HorizontalAlignment="Center"/>
<TextBlock
x:Name="txt_version"
Text="4.1.9233.34683" FontFamily="微软雅黑" FontSize="11" Foreground="#999999" VerticalAlignment="Bottom" Margin="0 0 0 10" HorizontalAlignment="Center"/>
</Grid>
</UserControl>
\ No newline at end of file
SmartScan/SetControl/WPF/VerticalMenuControl.xaml.cs
查看文件 @
1a150e2
...
...
@@ -168,6 +168,7 @@ namespace SmartScan.SetControl.WPF
public
VerticalMenuControl
()
{
InitializeComponent
();
txt_version
.
Text
=
BLLCommon
.
config
.
SoftVersion
;
string
YU
=
BLLCommon
.
config
.
Language
;
if
(
YU
==
"English"
)
{
...
...
SmartScan/SetControl/WPF/WPF_CodeExtract.xaml
查看文件 @
1a150e2
...
...
@@ -420,9 +420,9 @@
<ComboBox x:Name="ChoMatchMiddleType" Grid.Column="1" Style="{StaticResource DarkComboBoxStyle}"
Margin="10,0,0,0" SelectionChanged="MatchTextChanged">
<ComboBoxItem Name="Dialog_MatchType_max" Content="匹配数量
等于
" FontFamily="微软雅黑" FontSize="14"/>
<ComboBoxItem Name="Dialog_MatchType_equals" Content="匹配数量
大
于" FontFamily="微软雅黑" FontSize="14"/>
<ComboBoxItem Name="Dialog_MatchType_min" Content="匹配数量
小于
" FontFamily="微软雅黑" FontSize="14"/>
<ComboBoxItem Name="Dialog_MatchType_max" Content="匹配数量
至多
" FontFamily="微软雅黑" FontSize="14"/>
<ComboBoxItem Name="Dialog_MatchType_equals" Content="匹配数量
等
于" FontFamily="微软雅黑" FontSize="14"/>
<ComboBoxItem Name="Dialog_MatchType_min" Content="匹配数量
至少
" FontFamily="微软雅黑" FontSize="14"/>
</ComboBox>
</Grid>
</StackPanel>
...
...
SmartScan/SetControl/WPF/WPF_CodeExtract.xaml.cs
查看文件 @
1a150e2
...
...
@@ -66,7 +66,7 @@ namespace SmartScan.SetControl.WPF
TxtMatchingMiddleText
.
Text
=
matchShared
.
MiddleText
;
NudMiddleTextCount
.
Text
=
matchShared
.
MiddleTextCount
.
ToString
();
ChkCaseSensitivity
.
IsChecked
=
matchShared
.
CaseSensitive
;
ChoMatchMiddleType
.
SelectedIndex
=
matchShared
.
MatchMiddleType
==
-
1
?
0
:
matchShared
.
MatchMiddleType
;
ChoMatchMiddleType
.
SelectedIndex
=
matchShared
.
MatchMiddleType
+
1
;
ChkCheckCodeType
.
IsChecked
=
matchShared
.
CheckCodeType
;
Characteristicbarcode
.
IsChecked
=
matchShared
.
Characteristic
;
...
...
@@ -587,16 +587,16 @@ namespace SmartScan.SetControl.WPF
}
// 根据选择的匹配类型比较
switch
(
ChoMatchMiddleType
.
SelectedIndex
)
switch
(
ChoMatchMiddleType
.
SelectedIndex
-
1
)
{
case
-
1
:
// 至多
ismatch
=
count
<=
targetCount
;
break
;
case
0
:
// 等于
ismatch
=
count
==
targetCount
;
break
;
case
1
:
// 大于
ismatch
=
count
>
targetCount
;
break
;
case
2
:
// 小于
ismatch
=
count
<
targetCount
;
case
1
:
// 至少
ismatch
=
count
>=
targetCount
;
break
;
default
:
ismatch
=
count
==
targetCount
;
...
...
@@ -891,7 +891,7 @@ namespace SmartScan.SetControl.WPF
match
.
CaseSensitive
=
ChkCaseSensitivity
.
IsChecked
==
true
;
match
.
CheckCodeType
=
ChkCheckCodeType
.
IsChecked
==
true
;
match
.
CodeType
=
codeType
;
match
.
MatchMiddleType
=
ChoMatchMiddleType
.
SelectedIndex
;
match
.
MatchMiddleType
=
ChoMatchMiddleType
.
SelectedIndex
-
1
;
match
.
CodeID
=
codeID
;
match
.
Characteristic
=
Characteristicbarcode
.
IsChecked
==
true
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论