Commit 614fa50b 张东亮

自动生成唯一码的编号添加每月重置选项

1 个父辈 c7d42069
...@@ -231,11 +231,11 @@ namespace BLL ...@@ -231,11 +231,11 @@ namespace BLL
get => config.Read<string>(REEL_ID_POSTFIX); get => config.Read<string>(REEL_ID_POSTFIX);
set => config.Write(REEL_ID_POSTFIX, value); set => config.Write(REEL_ID_POSTFIX, value);
} }
public bool ReelIDAutoResetByDate //public bool ReelIDAutoResetByDay
{ //{
get => config.Read<bool>(REEL_ID_AutoResetByDate); // get => config.Read<bool>(REEL_ID_AutoResetByDate);
set => config.Write(REEL_ID_AutoResetByDate, value); // set => config.Write(REEL_ID_AutoResetByDate, value);
} //}
public string LockPassword public string LockPassword
{ {
get => config.Read<string>(LOCK_PASSWORD); get => config.Read<string>(LOCK_PASSWORD);
...@@ -328,7 +328,13 @@ namespace BLL ...@@ -328,7 +328,13 @@ namespace BLL
public static MyConfig<bool> Func_EnabledOCR; public static MyConfig<bool> Func_EnabledOCR;
[MyConfigComment("允许修改打内容")] [MyConfigComment("允许修改打内容")]
public static MyConfig<bool> AllowModifyPrintInfo; public static MyConfig<bool> AllowModifyPrintInfo;
/// <summary>
/// 0,不重置
/// 1,按天
/// 2,按月
/// </summary>
[MyConfigComment("唯一码后缀编号重置策略")]
public static MyConfig<int> REEL_ID_AutoResetStrategy;
public void Save() public void Save()
{ {
config.Save(); config.Save();
......
...@@ -222,11 +222,16 @@ namespace BLL ...@@ -222,11 +222,16 @@ namespace BLL
try try
{ {
var reelidfile = FilePath.CONFIG_REELID; var reelidfile = FilePath.CONFIG_REELID;
if (config.ReelIDAutoResetByDate) if (Config.REEL_ID_AutoResetStrategy==1)
{ {
Directory.CreateDirectory(reelidfile + "_dir"); Directory.CreateDirectory(reelidfile + "_dir");
reelidfile = Path.Combine(FilePath.CONFIG_REELID + "_dir", DateTime.Now.ToString("yyyyMMdd")); reelidfile = Path.Combine(FilePath.CONFIG_REELID + "_dir", DateTime.Now.ToString("yyyyMMdd"));
} }
else if (Config.REEL_ID_AutoResetStrategy == 2)
{
Directory.CreateDirectory(reelidfile + "_dir");
reelidfile = Path.Combine(FilePath.CONFIG_REELID + "_dir", DateTime.Now.ToString("yyyyMM"));
}
if (File.Exists(reelidfile)) if (File.Exists(reelidfile))
{ {
string text = File.ReadAllText(reelidfile); string text = File.ReadAllText(reelidfile);
......
<?xml version="1.0" encoding="utf-8"?>
<Language Name="English">
<Dialog>
<LoginWrong>The login password is incorrect.</LoginWrong>
<SaveSucceed>Save Successfully</SaveSucceed>
<Error>Error</Error>
<CodeCount>The code number is 0</CodeCount>
<SelectPrintContent>Recognition complete, select print content</SelectPrintContent>
<PrintTemplateAdd>Name of print template</PrintTemplateAdd>
<PrintTemplateDel>Delete print label template [name] ?</PrintTemplateDel>
<PrintTemplateRename>Rename print label template [name] to</PrintTemplateRename>
<MaterialTemplateAdd>Name of new material template</MaterialTemplateAdd>
<MaterialTemplateDel>Delete material template [name] ?</MaterialTemplateDel>
<MaterialTemplateRename>Rename material template [name] to</MaterialTemplateRename>
<MaterialTemplateNoMatch>The material template does not match</MaterialTemplateNoMatch>
<ServerReturn>The server returned data is error</ServerReturn>
<ServerJson>The server returned data is empty</ServerJson>
<LabelEmpty>Print label content is empty, do you want to continue printing?</LabelEmpty>
<KeyExists>Dupicated field found:[name]</KeyExists>
<KeyRepeat>Repeat keyword</KeyRepeat>
<KeyEmpty>Keyword can't be empty</KeyEmpty>
<NoMatchSelect>A matching pattern must be selected</NoMatchSelect>
<UnlockWrong>Wrong unlock password</UnlockWrong>
<RepeatPrint>The tray label has been printed</RepeatPrint>
<MaterialScanning>In recognition...</MaterialScanning>
<MaterialTemplateMatching>Template matching...</MaterialTemplateMatching>
<MaterialProcessing>Processing results...</MaterialProcessing>
<PleaseWaiting>Please Waiting...</PleaseWaiting>
<MatchType_max>Match at most</MatchType_max>
<MatchType_equals>Occurrence</MatchType_equals>
<MatchType_min>Match at least</MatchType_min>
<OcrNeedCodeSetKey>Ocr's based barcode must first match the keyword</OcrNeedCodeSetKey>
<ThisMatchHasOcrCantdelete>There are Ocr rules under this matching rule, and all keywords cannot be deleted</ThisMatchHasOcrCantdelete>
<!--原文:请选择数据文件-->
<selectdatasource>Please select data source</selectdatasource>
<!--原文:文件状态:改文件不存在-->
<filenotexists>File status:The file doesn't exit</filenotexists>
<!--原文:文件内容解析失败-->
<filepatseerror>File read fails</filepatseerror>
<!--原文:文件格式不正确-->
<fileformaterror>Incorrect file format</fileformaterror>
<!--原文:二维码不能用于OCR定位基准-->
<OcrNotSupport2DCode>2D barcode cannot be used as OCR positioning benchmarks</OcrNotSupport2DCode>
<RemindClearTemplate>Recognition will reset the template.Are you sure to perform the action?</RemindClearTemplate>
<PrintLabel>Print</PrintLabel>
<!--原文:请选择一个条码!-->
<RemindSelectCode>Please select a barcode!</RemindSelectCode>
<!--原文:[name] 与以下的模板匹配冲突-->
<TemplateMatchingConflict>[name] conflicts with the following template</TemplateMatchingConflict>
<!--原文:[name] 以下关键字重复匹配-->
<TemplateKeyMatchingDul>The following keywords of [name] are duplicates</TemplateKeyMatchingDul>
<!--原文:[name] 以下关键字匹配失败-->
<TemplateKeyUnMatching>The following keywords of [name] match failed</TemplateKeyUnMatching>
<!--原文:[name] 模板不匹配,请检查以下关键字的匹配规则-->
<TemplateUnSetMatching> [name] do not match, and no matching rules are set.</TemplateUnSetMatching>
<Start>Start</Start>
<Exit>Exit</Exit>
<MatchEmpty>Rule can't be empty</MatchEmpty>
<ResetidByNone>No-Reset UID</ResetidByNone>
<ResetidByDay>Auto-Reset UID Daily</ResetidByDay>
<ResetidByMonth>Auto-Reset UID Monthly</ResetidByMonth>
</Dialog>
<FrmUsersLogin Text="Login" Font="Arial,20,B,">
<LblUser Text="User name" Font="Arial,11,," />
<TxtUser Text="" Font="Arial,12,," />
<BtnCancel Text="Cancel" Font="Arial,12,," />
<BtnLogin Text="Login" Font="Arial,15,B," />
</FrmUsersLogin>
<FrmMain Text="Material Registration System" Font="Arial,20,B,">
<BtnRetrospect Text="Traceability" Font="Arial,14,B," />
<BtnSet Text="Setting" Font="Arial,14,B," />
<BtnAbout Text="About" Font="Arial,14,B," />
<BtnTriggerIO Text="Manual Scan" Font="Arial,9,," />
<LblCameraExist Text="Camera" Font="Arial,9,," />
<LblIOExist Text="Machine" Font="Arial,9,," />
<PnlExtension Text="Print Info." Font="Arial,14,," />
<!--原文:打印标签-->
<BtnPrint Text="Print" Font="Arial,12,," />
</FrmMain>
<FrmSet Text="Setting" Font="Arial,20,B,">
<BtnGenneralSetting Text="General" Font="Arial,12,B," />
<BtnIdentify Text="Debug" Font="Arial,12,B," />
<BtnLabel Text="Print" Font="Arial,12,B," />
<BtnMaterial Text="Material" Font="Arial,12,B," />
<BtnKeyword Text="Field" Font="Arial,12,B," />
<BtnOK Text="Save" Font="Arial,12,," />
<BtnCancel Text="Cancel" Font="Arial,12,," />
<BtnApply Text="Apply" Font="Arial,12,," />
<!--原文:Data Source-->
<BtnDataSource Text="Source" Font="微软雅黑,12,B," />
</FrmSet>
<FrmSetPlus Text="BarCode Rule Setting" Font="Arial,20,B,">
<BtnWorkMode Text="Config" Font="Arial,12,B," />
<BtnIdentify Text="Debug" Font="Arial,12,B," />
<BtnLabel Text="Label" Font="Arial,12,B," />
<BtnMaterial Text="Material Template" Font="Arial,12,B," />
<BtnKeyword Text="Field" Font="Arial,12,B," />
<BtnOK Text="Save" Font="Arial,12,," />
<BtnCancel Text="Cancel" Font="Arial,12,," />
<BtnApply Text="Apply" Font="Arial,12,," />
</FrmSetPlus>
<UsrWorkMode>
<LblPrint Text="Printer" Font="Arial,12,B," />
<LblDefaultLabel Text="Default Print Template" Font="Arial,12,B," />
<RdoLandscape Text="Landscape" Font="Arial,12,," />
<RdoVertical Text="Portrait" Font="Arial,12,," />
<LblHistoryImage Text="Image" Font="Arial,12,B," />
<RdoOriginal Text="Original" Font="Arial,12,," />
<RdoCondense Text="Compressed" Font="Arial,12,," />
<RdoNoImage Text="Skip Image" Font="Arial,12,," />
<ChkSelectPN Text="Query PN from the server" Font="Arial,12,," />
<ChkLabelEmptyCheck Text="Empty label alert" Font="Arial,12,," />
<ChkPrintCompletedClear Text="Print&amp;Clear" Font="Arial,12,," />
<ChkOpenEnterWork Text="Auto Start Mode" Font="Arial,12,," />
<ChkOpenMaximize Text="Always Open Maximized" Font="Arial,12,," />
<ChkTriggerOpenLight Text="Turn on light after triggering device" Font="Arial,12,," />
<ChkPromptAfterPrinting Text="Prompt after recognition is complete" Font="Arial,12,," />
<ChkAutoPrint Text="Auto Print" Font="Arial,12,," />
<LstPrinter Text="" Font="Arial,12,," />
<LstLabel Text="" Font="Arial,12,," />
<LblDefaultMate Text="Preferred template" Font="Arial,12,B," />
<LstMate Text="" Font="Arial,12,," />
<!--原文:允许修改打内容-->
<ChkAllowModifyPrint Text="Modification of hit content is allowed" Font="Arial,12,," />
</UsrWorkMode>
<UsrCamera>
<BtnOpenLight Text="Turn on light" Font="Arial,12,," />
<BtnCloseLight Text="Turn off light" Font="Arial,12,," />
<BtnCameraImage Text="Gain device image" Font="Arial,12,," />
<BtnLocalImage Text="Open local image" Font="Arial,12,," />
<BtnScanCode Text="Recognition" Font="Arial,12,," />
<BtnSaveImage Text="Save image" Font="Arial,12,," />
<LstCode Text="" Font="Arial,12,," />
</UsrCamera>
<UsrPrintTemplate>
<BtnAddLabel Text="New" Font="Arial,12,," />
<BtnDelLabel Text="Delete" Font="Arial,12,," />
<BtnCopyLabel Text="Duplicate" Font="Arial,12,," />
<BtnRenameLabel Text="Rename" Font="Arial,12,," />
<BtnPrintTest Text="Print Test" Font="Arial,12,," />
<BtnAddField Text="Add Block" Font="Arial,12,," />
<BtnDelField Text="Delete Block" Font="Arial,12,," />
<BtnFieldFont Text="Block Font" Font="Arial,12,," />
<BtnSetField Text="Set BLock Content" Font="Arial,12,," />
<LblFieldType Text="Type" Font="Arial,12,B," />
<ChkFieldShowKey Text="Display key" Font="Arial,12,," />
<LblFieldX Text="X(mm)" Font="Arial,12,B," />
<LblFieldY Text="Y(mm)" Font="Arial,12,B," />
<LblFieldW Text="W(mm)" Font="Arial,12,B," />
<LblFieldH Text="L(mm)" Font="Arial,12,B," />
<!--原文:标签模板-->
<pnlPrintTmpLst Text="Label Template" Font="微软雅黑,12,," />
<!--原文:标签模板操作-->
<pnlPrintTmpLstOp Text="Label Template Operation" Font="微软雅黑,12,," />
<!--原文:标签样式-->
<pnLabelStyle Text="Label" Font="微软雅黑,12,," />
<!--原文:标签的所有字段-->
<pnAllFieldsOfLabel Text="Fields" Font="微软雅黑,12,," />
<!--原文:字段操作-->
<facePanel7 Text="Field Operation" Font="微软雅黑,12,," />
<!--原文:字段位置-->
<pnLabelFieldPos Text="Field Location" Font="微软雅黑,12,," />
</UsrPrintTemplate>
<UsrMaterialTemplate>
<BtnAddMate Text="New" Font="Arial,12,," />
<BtnDelMate Text="Delete" Font="Arial,12,," />
<BtnRenameMate Text="Rename" Font="Arial,12,," />
<BtnOpenLight Text="Turn on light" Font="Arial,12,," />
<BtnCloseLight Text="Turn off light" Font="Arial,12,," />
<BtnCameraImage Text="Gain device image" Font="Arial,12,," />
<BtnLocalImage Text="Open Local image" Font="Arial,12,," />
<BtnScanCode Text="Recognition" Font="Arial,12,," />
<BtnExtractCode Text="Extract" Font="Arial,12,," />
<BtnOcrCode Text="OCR" Font="Arial,12,," />
<BtnPrimaryCode Text="Set Primary code" Font="Arial,12,," />
<!--原文:图片另存-->
<BtnSaveImage Text="Save As" Font="Arial,12,," />
<!--原文:模板验证-->
<BtnTemplateValite Text="Template validation" Font="Arial,12,," />
<!--原文:模板-->
<pnlMaterial Text="Template" Font="Arial,12,," />
<!--原文:模板操作-->
<pnlMaterialOp Text="Template Operation" Font="Arial,12,," />
<!--原文:条码-->
<pnlCode Text="Barcode" Font="Arial,12,," />
<!--原文:条码操作-->
<pnlCodeOp Text="Barcode Operation" Font="Arial,12,," />
<!--原文:图片-->
<pnlImg Text="Image" Font="Arial,12,," />
<!--原文:图片操作-->
<pnlImgOp Text="Image Operation" Font="Arial,12,," />
</UsrMaterialTemplate>
<UsrDataSource>
<!--原文:遍历同目录-->
<ChkRecursive Text="Search files in the same directory" Font="Arial,12,," />
<!--原文:标签可用字段-->
<groupBox_lblkey Text="Label Available Fields" Font="Arial,12,," />
<!--原文:选择文件-->
<BtnSelectFile Text="Select File" Font="Arial,12,," />
<!--原文:关键字匹配数据标题-->
<faceLabel2 Text="Keyword matches the data title" Font="Arial,12,," />
<!--原文:识别关键词-->
<faceLabel1 Text="Identify Key Words" Font="Arial,12,," />
<!--原文:文件状态:-->
<LblFilestatus Text="File Status:" Font="Arial,12,," />
<!--原文:Label Data Source-->
<LblContent Text="Label Data Source" Font="Arial,12,," />
</UsrDataSource>
<UsrMacro>
<BtnAddKey Text="Add" Font="Arial,12,," />
<BtnDelKey Text="Delete" Font="Arial,12,," />
<BtnUpdateKey Text="Update" Font="Arial,12,," />
<BtnAppendKey Text="Append conditions" Font="Arial,12,," />
<btn_setriid Text="Toggle Auto RI" Font="Arial,12,," />
<PnlReelid Text="Reel ID" Font="Arial,12,," />
<LblContent Text="Build conditions" Font="Arial,12,B," />
<LblPrefix Text="Prefix" Font="Arial,10,," />
<LblPostfix Text="Suffix" Font="Arial,10,," />
<LblPlaces Text="Field length" Font="Arial,10,," />
<ChkReelIDFillZero Text="Add leading zero" Font="Arial,12,," />
<!--原文:添加日期时间-->
<btn_adddatetime Text="Add Date" Font="Arial,12,," />
</UsrMacro>
<UsrCodeExtractList>
<ChkMatchingStart Text="Starting Character" Font="Arial,12,," />
<ChkMatchingEnd Text="Ending Character" Font="Arial,12,," />
<ChkMatchingMiddle Text="Contain" Font="Arial,12,," />
<ChkMatchisnumber Text="Detect and convert to number" Font="Arial,12,," />
<ChkMatchingSplit Text="Delimiter" Font="Arial,12,," />
<LblSplitPart Text="Left Most" Font="Arial,12,," />
<ChkCaseSensitivity Text="Case Sensitive" Font="Arial,12,," />
<ChkMinLength Text="Min length" Font="Arial,12,," />
<ChkMaxLength Text="Max length" Font="Arial,12,," />
<LblKeyword Text="Field" Font="Arial,12,," />
<LblStart Text="Part code start" Font="Arial,12,," />
<LblLength Text="Part code length" Font="Arial,12,," />
<ChkLengthEnd Text="Code ending" Font="Arial,12,," />
<ChkCheckCodeType Text="Match barcode encode type" Font="Arial,12,," />
<BtnDel Text="Delete" Font="Arial,12,," />
<BtnAdd Text="Add" Font="Arial,12,," />
<!--原文:提取-->
<pnlExtractRule Text="Code Extraction" Font="微软雅黑,12,," />
<!--原文:解析结果-->
<pnlParseResult Text="Analysis" Font="微软雅黑,12,," />
</UsrCodeExtractList>
<FrmAbout Text="About" Font="Arial,24,B,">
<LblName Text="Material Registration System" Font="Arial,20,," />
</FrmAbout>
<FrmFieldContent Text="Set Field Content" Font="Arial,24,B,">
<LblContent Text="Field Content" Font="Arial,12,," />
<BtnInsert Text="Insert" Font="Arial,12,," />
<BtnOK Text="OK" Font="Arial,12,," />
<BtnCancel Text="Cancel" Font="Arial,12,," />
</FrmFieldContent>
<FrmCodeExtract Text="Code Extract" Font="Arial,24,B,">
<BtnAddMatch Text="+" Font="Arial,12,," />
<BtnOK Text="OK" Font="Arial,12,," />
<BtnCancel Text="Cancel" Font="Arial,12,," />
<ChkMatchingStart Text="Starting Character" Font="Arial,12,," />
<ChkMatchingEnd Text="Ending Character" Font="Arial,12,," />
<ChkMatchingMiddle Text="Contain" Font="Arial,12,," />
<ChkMatchisnumber Text="Detect and convert to number" Font="Arial,12,," />
<ChkCaseSensitivity Text="Case Sensitive" Font="Arial,12,," />
<ChkCheckCodeType Text="Match barcode encode type" Font="Arial,12,," />
<BtnDel Text="Delete" Font="Arial,12,," />
<BtnAdd Text="Add" Font="Arial,12,," />
<LblStart Text="Part code start" Font="Arial,12,," />
<LblLength Text="Part code length" Font="Arial,12,," />
<!--原文:关键字-->
<pnlKeywords Text="Field" Font="微软雅黑,12,," />
<!--原文:原始条码信息-->
<pnlRawCode Text="Original Barcode Info." Font="微软雅黑,12,," />
<!--原文:匹配-->
<pnlMatch Text="Matching" Font="微软雅黑,12,," />
<!--原文:提取-->
<pnlExtractRule Text="Code Extraction" Font="微软雅黑,12,," />
<!--原文:解析结果-->
<pnlParseResult Text="Analysis" Font="微软雅黑,12,," />
</FrmCodeExtract>
<FrmCodeOCR Text="OCR" Font="Arial,24,B,">
<BtnSelect Text="Select" Font="Arial,12,," />
<BtnMove Text="Moving images" Font="Arial,12,," />
<BtnDel Text="Delete" Font="Arial,12,," />
<BtnKey Text="Set field" Font="Arial,12,," />
<BtnOK Text="OK" Font="Arial,12,," />
<BtnCancel Text="Cancel" Font="Arial,12,," />
</FrmCodeOCR>
<FrmRetrospect Text="Traceability" Font="Arial,24,B,">
<LblDateRange Text="Date range" Font="Arial,12,," />
<LblCode Text="Material ID" Font="Arial,12,," />
<BtnSelect Text="Search" Font="Arial,12,," />
<BtnExport Text="Export" Font="Arial,12,," />
<BtnExportAll Text="Export All" Font="Arial,12,," />
<LblAllCode Text="Original" Font="Arial,12,," />
<LblAllLabel Text="Extracted Info." Font="Arial,12,," />
</FrmRetrospect>
</Language>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Language Name="简体中文">
<Dialog>
<LoginWrong>登录密码错误。</LoginWrong>
<SaveSucceed>保存成功</SaveSucceed>
<Error>错误</Error>
<CodeCount>条码数量为0</CodeCount>
<SelectPrintContent>识别完成,选择打印内容</SelectPrintContent>
<PrintTemplateAdd>输入新的打印标签模板名称</PrintTemplateAdd>
<PrintTemplateDel>确定要删除打印标签模板 [name] 吗?</PrintTemplateDel>
<PrintTemplateRename>把模板 [name] 重命名为</PrintTemplateRename>
<MaterialTemplateAdd>输入新的物料模板名称</MaterialTemplateAdd>
<MaterialTemplateDel>确定要删除物料模板 [name] 吗?</MaterialTemplateDel>
<MaterialTemplateRename>把模板 [name] 重命名为</MaterialTemplateRename>
<MaterialTemplateNoMatch>没有匹配到物料模板</MaterialTemplateNoMatch>
<ServerReturn>服务端返回数据错误</ServerReturn>
<ServerJson>服务端数据为空</ServerJson>
<LabelEmpty>打印标签内容有空内容,是否继续打印?</LabelEmpty>
<KeyExists>[name],关键字已存在</KeyExists>
<KeyRepeat>重复关键字</KeyRepeat>
<NoMatchSelect>必须选择一个匹配模式</NoMatchSelect>
<KeyEmpty>关键字为空</KeyEmpty>
<UnlockWrong>解锁密码错误</UnlockWrong>
<RepeatPrint>该料盘标签已打印</RepeatPrint>
<MaterialScanning>拍照识别...</MaterialScanning>
<MaterialTemplateMatching>模版匹配...</MaterialTemplateMatching>
<MaterialProcessing>计算结果...</MaterialProcessing>
<PleaseWaiting>请稍后...</PleaseWaiting>
<MatchType_max>匹配数量至多</MatchType_max>
<MatchType_equals>匹配数量等于</MatchType_equals>
<MatchType_min>匹配数量至少</MatchType_min>
<OcrNeedCodeSetKey>Ocr的基准条码必须先匹配关键字</OcrNeedCodeSetKey>
<ThisMatchHasOcrCantdelete>该匹配规则下有Ocr规则,不能删除全部关键字</ThisMatchHasOcrCantdelete>
<!--原文:请选择数据文件-->
<selectdatasource>请选择数据文件</selectdatasource>
<!--原文:文件状态:改文件不存在-->
<filenotexists>文件状态:该文件不存在</filenotexists>
<!--原文:文件格式不正确-->
<fileformaterror>文件格式不正确</fileformaterror>
<!--原文:-->
<OcrNotSupport2DCode>二维码不能用于OCR定位基准</OcrNotSupport2DCode>
<RemindClearTemplate>识别将重置模板。您确定要执行该操作吗?</RemindClearTemplate>
<PrintLabel>打印标签</PrintLabel>
<!--原文:请选择一个条码!-->
<RemindSelectCode>请选择一个条码!</RemindSelectCode>
<!--原文:[name] 与以下的模板匹配冲突-->
<TemplateMatchingConflict>[name] 与以下的模板匹配冲突</TemplateMatchingConflict>
<!--原文:[name] 以下关键字重复匹配-->
<TemplateKeyMatchingDul>[name] 以下关键字重复匹配</TemplateKeyMatchingDul>
<!--原文:[name] 以下关键字匹配失败-->
<TemplateKeyUnMatching>[name] 以下关键字匹配失败</TemplateKeyUnMatching>
<!--原文:[name] 模板不匹配,未设置匹配规则-->
<TemplateUnSetMatching>[name] 模板不匹配,未设置匹配规则</TemplateUnSetMatching>
<Start>开始</Start>
<Exit>退出</Exit>
<MatchEmpty>匹配条件为空</MatchEmpty>
<ConflictLength>最大长度必须大于最小长度</ConflictLength>
<ResetidByNone>序号不重置</ResetidByNone>
<ResetidByDay>序号每日重置</ResetidByDay>
<ResetidByMonth>序号每月重置</ResetidByMonth>
</Dialog>
<FrmUsersLogin Text="登录" Font="微软雅黑,20,B,">
<LblUser Text="用户名:" Font="微软雅黑,11,," />
<TxtUser Text="" Font="微软雅黑,12,," />
<BtnCancel Text="取消" Font="微软雅黑,12,," />
<BtnLogin Text="登录" Font="微软雅黑,15,B," />
</FrmUsersLogin>
<FrmMain Text="物料注册系统" Font="微软雅黑,20,B,">
<BtnRetrospect Text="追溯" Font="微软雅黑,14,B," />
<BtnSet Text="设置" Font="微软雅黑,14,B," />
<BtnAbout Text="关于" Font="微软雅黑,14,B," />
<BtnTriggerIO Text="触发识别设备" Font="微软雅黑,9,," />
<LblCameraExist Text="识别设备连接" Font="微软雅黑,9,," />
<LblIOExist Text="IO模块连接" Font="微软雅黑,9,," />
<PnlExtension Text="功能" Font="微软雅黑,14,B," />
<!--原文:简体中文-->
<CboLanguage Text="简体中文" Font="微软雅黑,12,," />
<BtnPrint Text="打印标签" Font="Arial,12,," />
</FrmMain>
<FrmSet Text="设置" Font="微软雅黑,20,B,">
<BtnGenneralSetting Text="通用设置" Font="微软雅黑,12,B," />
<BtnIdentify Text="识别设备" Font="微软雅黑,12,B," />
<BtnLabel Text="打印模版" Font="微软雅黑,12,B," />
<BtnMaterial Text="物料模版" Font="微软雅黑,12,B," />
<BtnKeyword Text="关键字" Font="微软雅黑,12,B," />
<BtnOK Text="保存" Font="微软雅黑,12,," />
<BtnCancel Text="取消" Font="微软雅黑,12,," />
<BtnApply Text="应用" Font="微软雅黑,12,," />
<!--原文:数据源-->
<BtnDataSource Text="数据源" Font="微软雅黑,12,B," />
</FrmSet>
<FrmSetPlus Text="条码规则设置" Font="微软雅黑,20,B,">
<BtnWorkMode Text="工作模式" Font="微软雅黑,12,B," />
<BtnIdentify Text="识别设备" Font="微软雅黑,12,B," />
<BtnLabel Text="打印模版" Font="微软雅黑,12,B," />
<BtnMaterial Text="物料模版" Font="微软雅黑,12,B," />
<BtnKeyword Text="关键字" Font="微软雅黑,12,B," />
<BtnOK Text="保存" Font="微软雅黑,12,," />
<BtnCancel Text="取消" Font="微软雅黑,12,," />
<BtnApply Text="应用" Font="微软雅黑,12,," />
</FrmSetPlus>
<UsrWorkMode>
<LblPrint Text="打印机" Font="微软雅黑,12,B," />
<LblDefaultLabel Text="默认打印标签" Font="微软雅黑,12,B," />
<RdoLandscape Text="横向打印" Font="微软雅黑,12,," />
<RdoVertical Text="纵向打印" Font="微软雅黑,12,," />
<LblHistoryImage Text="追溯图像保存" Font="微软雅黑,12,B," />
<RdoOriginal Text="原图" Font="微软雅黑,12,," />
<RdoCondense Text="压缩图像" Font="微软雅黑,12,," />
<RdoNoImage Text="不保存" Font="微软雅黑,12,," />
<ChkSelectPN Text="从服务器上查询PN" Font="微软雅黑,12,," />
<ChkLabelEmptyCheck Text="打印标签空内容提醒" Font="微软雅黑,12,," />
<ChkPrintCompletedClear Text="打印标签后清除内容" Font="微软雅黑,12,," />
<ChkOpenEnterWork Text="打开软件自动进入工作模式" Font="微软雅黑,12,," />
<ChkOpenMaximize Text="打开软件最大化窗口" Font="微软雅黑,12,," />
<ChkTriggerOpenLight Text="触发信号后在打开光源" Font="微软雅黑,12,," />
<ChkPromptAfterPrinting Text="识别完成后提示" Font="微软雅黑,12,," />
<ChkAutoPrint Text="自动打印" Font="微软雅黑,12,," />
<LstPrinter Text="" Font="微软雅黑,12,," />
<LstLabel Text="" Font="微软雅黑,12,," />
<LblDefaultMate Text="优先匹配模板" Font="微软雅黑,12,B," />
<LstMate Text="" Font="微软雅黑,12,," />
<!--原文:允许修改打内容-->
<ChkAllowModifyPrint Text="允许修改打印内容" Font="微软雅黑,12,," />
</UsrWorkMode>
<UsrCamera>
<BtnOpenLight Text="打开光源" Font="微软雅黑,12,," />
<BtnCloseLight Text="关闭光源" Font="微软雅黑,12,," />
<BtnCameraImage Text="获取设备图像" Font="微软雅黑,12,," />
<BtnLocalImage Text="打开本地图片" Font="微软雅黑,12,," />
<BtnScanCode Text="识别" Font="微软雅黑,12,," />
<BtnSaveImage Text="保存图像" Font="微软雅黑,12,," />
<LstCode Text="" Font="微软雅黑,12,," />
</UsrCamera>
<UsrPrintTemplate>
<BtnAddLabel Text="新建标签" Font="微软雅黑,12,," />
<BtnDelLabel Text="删除标签" Font="微软雅黑,12,," />
<BtnCopyLabel Text="复制标签" Font="微软雅黑,12,," />
<BtnRenameLabel Text="重命名" Font="微软雅黑,12,," />
<BtnPrintTest Text="打印测试" Font="微软雅黑,12,," />
<BtnAddField Text="添加字段" Font="微软雅黑,12,," />
<BtnDelField Text="删除字段" Font="微软雅黑,12,," />
<BtnFieldFont Text="字段字体" Font="微软雅黑,12,," />
<BtnSetField Text="设置字段内容" Font="微软雅黑,12,," />
<LblFieldType Text="码制" Font="微软雅黑,12,B," />
<ChkFieldShowKey Text="显示关键字" Font="微软雅黑,12,," />
<LblFieldX Text="X(mm)" Font="微软雅黑,12,B," />
<LblFieldY Text="Y(mm)" Font="微软雅黑,12,B," />
<LblFieldW Text="W(mm)" Font="微软雅黑,12,B," />
<LblFieldH Text="L(mm)" Font="微软雅黑,12,B," />
<!--原文:标签模板-->
<pnlPrintTmpLst Text="标签模板" Font="微软雅黑,12,," />
<!--原文:标签模板操作-->
<pnlPrintTmpLstOp Text="标签模板操作" Font="微软雅黑,12,," />
<!--原文:标签样式-->
<pnLabelStyle Text="标签样式" Font="微软雅黑,12,," />
<!--原文:标签的所有字段-->
<pnAllFieldsOfLabel Text="标签的所有字段" Font="微软雅黑,12,," />
<!--原文:字段操作-->
<facePanel7 Text="字段操作" Font="微软雅黑,12,," />
<!--原文:字段位置-->
<pnLabelFieldPos Text="字段位置" Font="微软雅黑,12,," />
</UsrPrintTemplate>
<UsrMaterialTemplate>
<BtnAddMate Text="新建模板" Font="微软雅黑,12,," />
<BtnDelMate Text="删除模板" Font="微软雅黑,12,," />
<BtnRenameMate Text="重命名" Font="微软雅黑,12,," />
<BtnOpenLight Text="打开光源" Font="微软雅黑,12,," />
<BtnCloseLight Text="关闭光源" Font="微软雅黑,12,," />
<BtnCameraImage Text="获取设备图像" Font="微软雅黑,12,," />
<BtnLocalImage Text="打开本地图片" Font="微软雅黑,12,," />
<BtnScanCode Text="识别" Font="微软雅黑,12,," />
<BtnExtractCode Text="提取" Font="微软雅黑,12,," />
<BtnOcrCode Text="OCR" Font="微软雅黑,12,," />
<BtnPrimaryCode Text="特征码" Font="微软雅黑,12,," />
<!--原文:图片另存-->
<BtnSaveImage Text="图片另存" Font="微软雅黑,12,," />
<!--原文:模板验证-->
<BtnTemplateValite Text="模板验证" Font="微软雅黑,12,," />
<!--原文:模板-->
<pnlMaterial Text="模板" Font="微软雅黑,12,," />
<!--原文:模板操作-->
<pnlMaterialOp Text="模板操作" Font="微软雅黑,12,," />
<!--原文:条码-->
<pnlCode Text="条码" Font="微软雅黑,12,," />
<!--原文:条码操作-->
<pnlCodeOp Text="条码操作" Font="微软雅黑,12,," />
<!--原文:图片-->
<pnlImg Text="图片" Font="微软雅黑,12,," />
<!--原文:图片操作-->
<pnlImgOp Text="图片操作" Font="微软雅黑,12,," />
</UsrMaterialTemplate>
<UsrMacro>
<BtnAddKey Text="添加" Font="微软雅黑,12,," />
<BtnDelKey Text="删除" Font="微软雅黑,12,," />
<BtnUpdateKey Text="更新" Font="微软雅黑,12,," />
<BtnAppendKey Text="添加到生成条件" Font="微软雅黑,12,," />
<btn_setriid Text="切换自动RI" Font="微软雅黑,12,," />
<PnlReelid Text="Reel ID" Font="微软雅黑,12,," />
<LblContent Text="生成条件" Font="微软雅黑,12,B," />
<LblPrefix Text="开头字符串" Font="微软雅黑,12,," />
<LblPostfix Text="结尾字符串" Font="微软雅黑,12,," />
<LblPlaces Text="数字位数" Font="微软雅黑,12,," />
<ChkReelIDFillZero Text="位数不足前面补0" Font="微软雅黑,12,," />
<!--原文:添加日期时间-->
<btn_adddatetime Text="添加日期时间" Font="微软雅黑,12,," />
<!--原文:序号不重置-->
<CmbResetidBy Text="序号不重置" Font="微软雅黑,12,," />
</UsrMacro>
<UsrCodeExtractList>
<ChkMatchingStart Text="匹配开头字符" Font="微软雅黑,12,," />
<ChkMatchingEnd Text="匹配结尾字符" Font="微软雅黑,12,," />
<ChkMatchingMiddle Text="匹配任意位置字符" Font="微软雅黑,12,," />
<ChkMatchisnumber Text="检测并转换为数字" Font="微软雅黑,12,," />
<ChkMatchingSplit Text="条码分割字符" Font="微软雅黑,12,," />
<LblSplitPart Text="获取分割部分" Font="微软雅黑,12,," />
<ChkCaseSensitivity Text="区分大小写" Font="微软雅黑,12,," />
<ChkMinLength Text="最小长度" Font="微软雅黑,12,," />
<ChkMaxLength Text="最大长度" Font="微软雅黑,12,," />
<LblKeyword Text="设置关键字" Font="微软雅黑,12,," />
<LblStart Text="内容截取起始位" Font="微软雅黑,12,," />
<LblLength Text="内容截取长度" Font="微软雅黑,12,," />
<ChkLengthEnd Text="截取至结尾" Font="微软雅黑,12,," />
<ChkCheckCodeType Text="匹配条码编码类型" Font="微软雅黑,12,," />
<BtnDel Text="删除" Font="微软雅黑,12,," />
<BtnAdd Text="添加" Font="微软雅黑,12,," />
<!--原文:提取-->
<pnlExtract Text="提取" Font="微软雅黑,12,," />
<!--原文:解析结果-->
<facePanel2 Text="解析结果" Font="微软雅黑,12,," />
<!--原文:提取-->
<pnlExtractRule Text="提取" Font="微软雅黑,12,," />
<!--原文:解析结果-->
<pnlParseResult Text="解析结果" Font="微软雅黑,12,," />
</UsrCodeExtractList>
<FrmAbout Text="关于" Font="微软雅黑,24,B,">
<LblName Text="物料注册系统" Font="微软雅黑,20,," />
</FrmAbout>
<FrmFieldContent Text="字段内容设置" Font="微软雅黑,24,B,">
<LblContent Text="字段内容" Font="微软雅黑,12,," />
<BtnInsert Text="插入" Font="微软雅黑,12,," />
<BtnOK Text="确定" Font="微软雅黑,12,," />
<BtnCancel Text="取消" Font="微软雅黑,12,," />
<!--原文:数量:[QTY]-->
<faceTextBox1 Text="数量:[QTY]" Font="微软雅黑,12,," />
</FrmFieldContent>
<FrmCodeExtract Text="提取条码" Font="微软雅黑,24,B,">
<BtnAddMatch Text="+" Font="微软雅黑,12,," />
<BtnOK Text="确定" Font="微软雅黑,12,," />
<BtnCancel Text="取消" Font="微软雅黑,12,," />
<!--原文:匹配数量至多-->
<ChoMatchMiddleType Text="匹配数量至多" Font="微软雅黑,12,," />
<!--原文:必须为数字-->
<ChkMatchisnumber Text="必须为数字" Font="微软雅黑,12,," />
<!--原文:匹配条码编码类型-->
<ChkCheckCodeType Text="匹配条码编码类型" Font="微软雅黑,12,," />
<!--原文:获取分割部分-->
<LblSplitPart Text="获取分割部分" Font="微软雅黑,12,," />
<!--原文:条码分割字符-->
<ChkMatchingSplit Text="条码分割字符" Font="微软雅黑,12,," />
<!--原文:匹配开头字符-->
<ChkMatchingStart Text="匹配开头字符" Font="微软雅黑,12,," />
<!--原文:截取至结尾-->
<ChkLengthEnd Text="截取至结尾" Font="微软雅黑,12,," />
<!--原文:匹配结尾字符-->
<ChkMatchingEnd Text="匹配结尾字符" Font="微软雅黑,12,," />
<!--原文:匹配任意位置字符-->
<ChkMatchingMiddle Text="匹配任意位置字符" Font="微软雅黑,12,," />
<!--原文:内容截取长度-->
<LblLength Text="内容截取长度" Font="微软雅黑,12,," />
<!--原文:内容截取起始位-->
<LblStart Text="内容截取起始位" Font="微软雅黑,12,," />
<!--原文:设置关键字-->
<LblKeyword Text="设置关键字" Font="微软雅黑,12,," />
<!--原文:区分大小写-->
<ChkCaseSensitivity Text="区分大小写" Font="微软雅黑,12,," />
<!--原文:最小长度-->
<ChkMinLength Text="最小长度" Font="微软雅黑,12,," />
<!--原文:最大长度-->
<ChkMaxLength Text="最大长度" Font="微软雅黑,12,," />
<!--原文:删除-->
<BtnDel Text="删除" Font="微软雅黑,12,," />
<!--原文:添加-->
<BtnAdd Text="添加" Font="微软雅黑,12,," />
<!--原文:关键字-->
<pnlKeywords Text="关键字" Font="微软雅黑,12,," />
<!--原文:原始条码信息-->
<pnlRawCode Text="原始条码信息" Font="微软雅黑,12,," />
<!--原文:匹配-->
<pnlMatch Text="匹配" Font="微软雅黑,12,," />
<!--原文:提取-->
<pnlExtractRule Text="提取" Font="微软雅黑,12,," />
<!--原文:解析结果-->
<pnlParseResult Text="解析结果" Font="微软雅黑,12,," />
</FrmCodeExtract>
<FrmCodeOCR Text="OCR" Font="微软雅黑,24,B,">
<BtnSelect Text="矩形选择框" Font="微软雅黑,12,," />
<BtnMove Text="移动图像" Font="微软雅黑,12,," />
<BtnDel Text="删除" Font="微软雅黑,12,," />
<BtnKey Text="设置关键字" Font="微软雅黑,12,," />
<BtnOK Text="确定" Font="微软雅黑,12,," />
<BtnCancel Text="取消" Font="微软雅黑,12,," />
</FrmCodeOCR>
<FrmRetrospect Text="追溯" Font="微软雅黑,24,B,">
<LblDateRange Text="日期范围" Font="微软雅黑,12,," />
<LblCode Text="条码" Font="微软雅黑,12,," />
<BtnSelect Text="查询" Font="微软雅黑,12,," />
<BtnExport Text="导出" Font="微软雅黑,12,," />
<BtnExportAll Text="导出所有" Font="微软雅黑,12,," />
<LblAllCode Text="物料条码" Font="微软雅黑,12,," />
<LblAllLabel Text="标签内容" Font="微软雅黑,12,," />
</FrmRetrospect>
</Language>
\ No newline at end of file \ No newline at end of file
...@@ -31,6 +31,8 @@ namespace SmartScan ...@@ -31,6 +31,8 @@ namespace SmartScan
{ {
this.facePanel1 = new Asa.FaceControl.FacePanel(); this.facePanel1 = new Asa.FaceControl.FacePanel();
this.PnlReelid = new Asa.FaceControl.FacePanel(); this.PnlReelid = new Asa.FaceControl.FacePanel();
this.CmbResetidBy = new Asa.FaceControl.FaceComboBox();
this.btn_adddatetime = new Asa.FaceControl.FaceButton();
this.LblContent = new Asa.FaceControl.FaceLabel(); this.LblContent = new Asa.FaceControl.FaceLabel();
this.TxtReelIDMatch = new Asa.FaceControl.FaceTextBox(); this.TxtReelIDMatch = new Asa.FaceControl.FaceTextBox();
this.LblPlaces = new Asa.FaceControl.FaceLabel(); this.LblPlaces = new Asa.FaceControl.FaceLabel();
...@@ -49,8 +51,6 @@ namespace SmartScan ...@@ -49,8 +51,6 @@ namespace SmartScan
this.BtnAddKey = new Asa.FaceControl.FaceButton(); this.BtnAddKey = new Asa.FaceControl.FaceButton();
this.TxtKey = new Asa.FaceControl.FaceTextBox(); this.TxtKey = new Asa.FaceControl.FaceTextBox();
this.LstKey = new Asa.FaceControl.FaceListBox(); this.LstKey = new Asa.FaceControl.FaceListBox();
this.btn_adddatetime = new Asa.FaceControl.FaceButton();
this.ChkResetidbydate = new Asa.FaceControl.FaceCheckBox();
this.facePanel1.SuspendLayout(); this.facePanel1.SuspendLayout();
this.PnlReelid.SuspendLayout(); this.PnlReelid.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
...@@ -71,11 +71,12 @@ namespace SmartScan ...@@ -71,11 +71,12 @@ namespace SmartScan
this.facePanel1.Controls.Add(this.TxtKey); this.facePanel1.Controls.Add(this.TxtKey);
this.facePanel1.Controls.Add(this.LstKey); this.facePanel1.Controls.Add(this.LstKey);
this.facePanel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.facePanel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.facePanel1.Location = new System.Drawing.Point(3, 3); this.facePanel1.Location = new System.Drawing.Point(4, 4);
this.facePanel1.Margin = new System.Windows.Forms.Padding(4);
this.facePanel1.Name = "facePanel1"; this.facePanel1.Name = "facePanel1";
this.facePanel1.Padding = new System.Windows.Forms.Padding(3); this.facePanel1.Padding = new System.Windows.Forms.Padding(4);
this.facePanel1.ShowText = false; this.facePanel1.ShowText = false;
this.facePanel1.Size = new System.Drawing.Size(722, 496); this.facePanel1.Size = new System.Drawing.Size(963, 620);
this.facePanel1.TabIndex = 1; this.facePanel1.TabIndex = 1;
this.facePanel1.Text = "facePanel1"; this.facePanel1.Text = "facePanel1";
this.facePanel1.TitleFont = new System.Drawing.Font("宋体", 12F); this.facePanel1.TitleFont = new System.Drawing.Font("宋体", 12F);
...@@ -85,26 +86,62 @@ namespace SmartScan ...@@ -85,26 +86,62 @@ namespace SmartScan
this.PnlReelid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20))))); this.PnlReelid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.PnlReelid.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.PnlReelid.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.PnlReelid.BorderWidth = 2; this.PnlReelid.BorderWidth = 2;
this.PnlReelid.Controls.Add(this.CmbResetidBy);
this.PnlReelid.Controls.Add(this.btn_adddatetime); this.PnlReelid.Controls.Add(this.btn_adddatetime);
this.PnlReelid.Controls.Add(this.LblContent); this.PnlReelid.Controls.Add(this.LblContent);
this.PnlReelid.Controls.Add(this.TxtReelIDMatch); this.PnlReelid.Controls.Add(this.TxtReelIDMatch);
this.PnlReelid.Controls.Add(this.LblPlaces); this.PnlReelid.Controls.Add(this.LblPlaces);
this.PnlReelid.Controls.Add(this.NumReelIDPlaces); this.PnlReelid.Controls.Add(this.NumReelIDPlaces);
this.PnlReelid.Controls.Add(this.ChkResetidbydate);
this.PnlReelid.Controls.Add(this.ChkReelIDFillZero); this.PnlReelid.Controls.Add(this.ChkReelIDFillZero);
this.PnlReelid.Controls.Add(this.TxtPostfix); this.PnlReelid.Controls.Add(this.TxtPostfix);
this.PnlReelid.Controls.Add(this.LblPrefix); this.PnlReelid.Controls.Add(this.LblPrefix);
this.PnlReelid.Controls.Add(this.LblPostfix); this.PnlReelid.Controls.Add(this.LblPostfix);
this.PnlReelid.Controls.Add(this.TxtPrefix); this.PnlReelid.Controls.Add(this.TxtPrefix);
this.PnlReelid.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.PnlReelid.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.PnlReelid.Location = new System.Drawing.Point(356, 6); this.PnlReelid.Location = new System.Drawing.Point(475, 8);
this.PnlReelid.Margin = new System.Windows.Forms.Padding(4);
this.PnlReelid.Name = "PnlReelid"; this.PnlReelid.Name = "PnlReelid";
this.PnlReelid.Padding = new System.Windows.Forms.Padding(3); this.PnlReelid.Padding = new System.Windows.Forms.Padding(4);
this.PnlReelid.Size = new System.Drawing.Size(230, 431); this.PnlReelid.Size = new System.Drawing.Size(307, 564);
this.PnlReelid.TabIndex = 35; this.PnlReelid.TabIndex = 35;
this.PnlReelid.Text = "ReelID"; this.PnlReelid.Text = "ReelID";
this.PnlReelid.TitleFont = new System.Drawing.Font("宋体", 12F); this.PnlReelid.TitleFont = new System.Drawing.Font("宋体", 12F);
// //
// CmbResetidBy
//
this.CmbResetidBy.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.CmbResetidBy.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.CmbResetidBy.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.CmbResetidBy.BorderWidth = 2;
this.CmbResetidBy.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.CmbResetidBy.Location = new System.Drawing.Point(8, 401);
this.CmbResetidBy.Margin = new System.Windows.Forms.Padding(4);
this.CmbResetidBy.Name = "CmbResetidBy";
this.CmbResetidBy.Padding = new System.Windows.Forms.Padding(4);
this.CmbResetidBy.SelectedIndex = -1;
this.CmbResetidBy.SelectedText = "";
this.CmbResetidBy.Size = new System.Drawing.Size(291, 44);
this.CmbResetidBy.TabIndex = 37;
this.CmbResetidBy.Text = "序号重置";
this.CmbResetidBy.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// btn_adddatetime
//
this.btn_adddatetime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.btn_adddatetime.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.btn_adddatetime.BorderWidth = 2;
this.btn_adddatetime.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.btn_adddatetime.HoldPress = false;
this.btn_adddatetime.Location = new System.Drawing.Point(8, 467);
this.btn_adddatetime.Margin = new System.Windows.Forms.Padding(4);
this.btn_adddatetime.Name = "btn_adddatetime";
this.btn_adddatetime.Padding = new System.Windows.Forms.Padding(4);
this.btn_adddatetime.Size = new System.Drawing.Size(291, 56);
this.btn_adddatetime.TabIndex = 36;
this.btn_adddatetime.Text = "添加日期时间";
this.btn_adddatetime.Click += new System.EventHandler(this.btn_adddatetime_Click);
//
// LblContent // LblContent
// //
this.LblContent.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.LblContent.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
...@@ -113,10 +150,11 @@ namespace SmartScan ...@@ -113,10 +150,11 @@ namespace SmartScan
this.LblContent.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.LblContent.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.LblContent.BorderWidth = 0; this.LblContent.BorderWidth = 0;
this.LblContent.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.LblContent.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblContent.Location = new System.Drawing.Point(6, 34); this.LblContent.Location = new System.Drawing.Point(8, 42);
this.LblContent.Margin = new System.Windows.Forms.Padding(4);
this.LblContent.Name = "LblContent"; this.LblContent.Name = "LblContent";
this.LblContent.Padding = new System.Windows.Forms.Padding(3); this.LblContent.Padding = new System.Windows.Forms.Padding(4);
this.LblContent.Size = new System.Drawing.Size(218, 35); this.LblContent.Size = new System.Drawing.Size(291, 44);
this.LblContent.TabIndex = 20; this.LblContent.TabIndex = 20;
this.LblContent.Text = "条件"; this.LblContent.Text = "条件";
this.LblContent.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.LblContent.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
...@@ -128,16 +166,17 @@ namespace SmartScan ...@@ -128,16 +166,17 @@ namespace SmartScan
this.TxtReelIDMatch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20))))); this.TxtReelIDMatch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.TxtReelIDMatch.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.TxtReelIDMatch.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtReelIDMatch.BorderWidth = 2; this.TxtReelIDMatch.BorderWidth = 2;
this.TxtReelIDMatch.Location = new System.Drawing.Point(6, 75); this.TxtReelIDMatch.Location = new System.Drawing.Point(8, 94);
this.TxtReelIDMatch.Margin = new System.Windows.Forms.Padding(4);
this.TxtReelIDMatch.MaxLength = 32767; this.TxtReelIDMatch.MaxLength = 32767;
this.TxtReelIDMatch.Name = "TxtReelIDMatch"; this.TxtReelIDMatch.Name = "TxtReelIDMatch";
this.TxtReelIDMatch.Padding = new System.Windows.Forms.Padding(3); this.TxtReelIDMatch.Padding = new System.Windows.Forms.Padding(4);
this.TxtReelIDMatch.SelectedText = ""; this.TxtReelIDMatch.SelectedText = "";
this.TxtReelIDMatch.SelectionLength = 0; this.TxtReelIDMatch.SelectionLength = 0;
this.TxtReelIDMatch.SelectionStart = 0; this.TxtReelIDMatch.SelectionStart = 0;
this.TxtReelIDMatch.ShowDel = true; this.TxtReelIDMatch.ShowDel = true;
this.TxtReelIDMatch.ShowQuery = false; this.TxtReelIDMatch.ShowQuery = false;
this.TxtReelIDMatch.Size = new System.Drawing.Size(218, 45); this.TxtReelIDMatch.Size = new System.Drawing.Size(291, 56);
this.TxtReelIDMatch.TabIndex = 19; this.TxtReelIDMatch.TabIndex = 19;
this.TxtReelIDMatch.Text = "faceTextBox1"; this.TxtReelIDMatch.Text = "faceTextBox1";
// //
...@@ -147,10 +186,11 @@ namespace SmartScan ...@@ -147,10 +186,11 @@ namespace SmartScan
this.LblPlaces.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.LblPlaces.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.LblPlaces.BorderWidth = 0; this.LblPlaces.BorderWidth = 0;
this.LblPlaces.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.LblPlaces.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblPlaces.Location = new System.Drawing.Point(6, 228); this.LblPlaces.Location = new System.Drawing.Point(8, 285);
this.LblPlaces.Margin = new System.Windows.Forms.Padding(4);
this.LblPlaces.Name = "LblPlaces"; this.LblPlaces.Name = "LblPlaces";
this.LblPlaces.Padding = new System.Windows.Forms.Padding(3); this.LblPlaces.Padding = new System.Windows.Forms.Padding(4);
this.LblPlaces.Size = new System.Drawing.Size(90, 45); this.LblPlaces.Size = new System.Drawing.Size(120, 56);
this.LblPlaces.TabIndex = 23; this.LblPlaces.TabIndex = 23;
this.LblPlaces.Text = "数字位数"; this.LblPlaces.Text = "数字位数";
this.LblPlaces.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.LblPlaces.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
...@@ -165,12 +205,13 @@ namespace SmartScan ...@@ -165,12 +205,13 @@ namespace SmartScan
this.NumReelIDPlaces.DecimalPlaces = 0; this.NumReelIDPlaces.DecimalPlaces = 0;
this.NumReelIDPlaces.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.NumReelIDPlaces.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.NumReelIDPlaces.Increment = 1F; this.NumReelIDPlaces.Increment = 1F;
this.NumReelIDPlaces.Location = new System.Drawing.Point(102, 228); this.NumReelIDPlaces.Location = new System.Drawing.Point(136, 285);
this.NumReelIDPlaces.Margin = new System.Windows.Forms.Padding(4);
this.NumReelIDPlaces.Maximum = 9999F; this.NumReelIDPlaces.Maximum = 9999F;
this.NumReelIDPlaces.Minimum = 1F; this.NumReelIDPlaces.Minimum = 1F;
this.NumReelIDPlaces.Name = "NumReelIDPlaces"; this.NumReelIDPlaces.Name = "NumReelIDPlaces";
this.NumReelIDPlaces.Padding = new System.Windows.Forms.Padding(3); this.NumReelIDPlaces.Padding = new System.Windows.Forms.Padding(4);
this.NumReelIDPlaces.Size = new System.Drawing.Size(122, 45); this.NumReelIDPlaces.Size = new System.Drawing.Size(163, 56);
this.NumReelIDPlaces.TabIndex = 24; this.NumReelIDPlaces.TabIndex = 24;
this.NumReelIDPlaces.Text = "1"; this.NumReelIDPlaces.Text = "1";
this.NumReelIDPlaces.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.NumReelIDPlaces.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
...@@ -184,10 +225,11 @@ namespace SmartScan ...@@ -184,10 +225,11 @@ namespace SmartScan
this.ChkReelIDFillZero.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.ChkReelIDFillZero.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.ChkReelIDFillZero.BorderWidth = 0; this.ChkReelIDFillZero.BorderWidth = 0;
this.ChkReelIDFillZero.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.ChkReelIDFillZero.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkReelIDFillZero.Location = new System.Drawing.Point(6, 279); this.ChkReelIDFillZero.Location = new System.Drawing.Point(8, 349);
this.ChkReelIDFillZero.Margin = new System.Windows.Forms.Padding(4);
this.ChkReelIDFillZero.Name = "ChkReelIDFillZero"; this.ChkReelIDFillZero.Name = "ChkReelIDFillZero";
this.ChkReelIDFillZero.Padding = new System.Windows.Forms.Padding(3); this.ChkReelIDFillZero.Padding = new System.Windows.Forms.Padding(4);
this.ChkReelIDFillZero.Size = new System.Drawing.Size(218, 35); this.ChkReelIDFillZero.Size = new System.Drawing.Size(291, 44);
this.ChkReelIDFillZero.TabIndex = 25; this.ChkReelIDFillZero.TabIndex = 25;
this.ChkReelIDFillZero.Text = "前面补0"; this.ChkReelIDFillZero.Text = "前面补0";
// //
...@@ -198,16 +240,17 @@ namespace SmartScan ...@@ -198,16 +240,17 @@ namespace SmartScan
this.TxtPostfix.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20))))); this.TxtPostfix.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.TxtPostfix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.TxtPostfix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtPostfix.BorderWidth = 2; this.TxtPostfix.BorderWidth = 2;
this.TxtPostfix.Location = new System.Drawing.Point(102, 177); this.TxtPostfix.Location = new System.Drawing.Point(136, 221);
this.TxtPostfix.Margin = new System.Windows.Forms.Padding(4);
this.TxtPostfix.MaxLength = 32767; this.TxtPostfix.MaxLength = 32767;
this.TxtPostfix.Name = "TxtPostfix"; this.TxtPostfix.Name = "TxtPostfix";
this.TxtPostfix.Padding = new System.Windows.Forms.Padding(3); this.TxtPostfix.Padding = new System.Windows.Forms.Padding(4);
this.TxtPostfix.SelectedText = ""; this.TxtPostfix.SelectedText = "";
this.TxtPostfix.SelectionLength = 0; this.TxtPostfix.SelectionLength = 0;
this.TxtPostfix.SelectionStart = 0; this.TxtPostfix.SelectionStart = 0;
this.TxtPostfix.ShowDel = true; this.TxtPostfix.ShowDel = true;
this.TxtPostfix.ShowQuery = false; this.TxtPostfix.ShowQuery = false;
this.TxtPostfix.Size = new System.Drawing.Size(122, 45); this.TxtPostfix.Size = new System.Drawing.Size(163, 56);
this.TxtPostfix.TabIndex = 29; this.TxtPostfix.TabIndex = 29;
this.TxtPostfix.Text = "faceTextBox1"; this.TxtPostfix.Text = "faceTextBox1";
// //
...@@ -217,10 +260,11 @@ namespace SmartScan ...@@ -217,10 +260,11 @@ namespace SmartScan
this.LblPrefix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.LblPrefix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.LblPrefix.BorderWidth = 0; this.LblPrefix.BorderWidth = 0;
this.LblPrefix.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.LblPrefix.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblPrefix.Location = new System.Drawing.Point(6, 126); this.LblPrefix.Location = new System.Drawing.Point(8, 158);
this.LblPrefix.Margin = new System.Windows.Forms.Padding(4);
this.LblPrefix.Name = "LblPrefix"; this.LblPrefix.Name = "LblPrefix";
this.LblPrefix.Padding = new System.Windows.Forms.Padding(3); this.LblPrefix.Padding = new System.Windows.Forms.Padding(4);
this.LblPrefix.Size = new System.Drawing.Size(90, 45); this.LblPrefix.Size = new System.Drawing.Size(120, 56);
this.LblPrefix.TabIndex = 26; this.LblPrefix.TabIndex = 26;
this.LblPrefix.Text = "前缀"; this.LblPrefix.Text = "前缀";
this.LblPrefix.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.LblPrefix.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
...@@ -231,10 +275,11 @@ namespace SmartScan ...@@ -231,10 +275,11 @@ namespace SmartScan
this.LblPostfix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.LblPostfix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.LblPostfix.BorderWidth = 0; this.LblPostfix.BorderWidth = 0;
this.LblPostfix.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.LblPostfix.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblPostfix.Location = new System.Drawing.Point(6, 177); this.LblPostfix.Location = new System.Drawing.Point(8, 221);
this.LblPostfix.Margin = new System.Windows.Forms.Padding(4);
this.LblPostfix.Name = "LblPostfix"; this.LblPostfix.Name = "LblPostfix";
this.LblPostfix.Padding = new System.Windows.Forms.Padding(3); this.LblPostfix.Padding = new System.Windows.Forms.Padding(4);
this.LblPostfix.Size = new System.Drawing.Size(90, 45); this.LblPostfix.Size = new System.Drawing.Size(120, 56);
this.LblPostfix.TabIndex = 28; this.LblPostfix.TabIndex = 28;
this.LblPostfix.Text = "后缀"; this.LblPostfix.Text = "后缀";
this.LblPostfix.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.LblPostfix.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
...@@ -246,16 +291,17 @@ namespace SmartScan ...@@ -246,16 +291,17 @@ namespace SmartScan
this.TxtPrefix.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20))))); this.TxtPrefix.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.TxtPrefix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.TxtPrefix.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtPrefix.BorderWidth = 2; this.TxtPrefix.BorderWidth = 2;
this.TxtPrefix.Location = new System.Drawing.Point(102, 126); this.TxtPrefix.Location = new System.Drawing.Point(136, 158);
this.TxtPrefix.Margin = new System.Windows.Forms.Padding(4);
this.TxtPrefix.MaxLength = 32767; this.TxtPrefix.MaxLength = 32767;
this.TxtPrefix.Name = "TxtPrefix"; this.TxtPrefix.Name = "TxtPrefix";
this.TxtPrefix.Padding = new System.Windows.Forms.Padding(3); this.TxtPrefix.Padding = new System.Windows.Forms.Padding(4);
this.TxtPrefix.SelectedText = ""; this.TxtPrefix.SelectedText = "";
this.TxtPrefix.SelectionLength = 0; this.TxtPrefix.SelectionLength = 0;
this.TxtPrefix.SelectionStart = 0; this.TxtPrefix.SelectionStart = 0;
this.TxtPrefix.ShowDel = true; this.TxtPrefix.ShowDel = true;
this.TxtPrefix.ShowQuery = false; this.TxtPrefix.ShowQuery = false;
this.TxtPrefix.Size = new System.Drawing.Size(122, 45); this.TxtPrefix.Size = new System.Drawing.Size(163, 56);
this.TxtPrefix.TabIndex = 27; this.TxtPrefix.TabIndex = 27;
this.TxtPrefix.Text = "faceTextBox1"; this.TxtPrefix.Text = "faceTextBox1";
// //
...@@ -266,10 +312,11 @@ namespace SmartScan ...@@ -266,10 +312,11 @@ namespace SmartScan
this.btn_down.BorderWidth = 2; this.btn_down.BorderWidth = 2;
this.btn_down.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.btn_down.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.btn_down.HoldPress = false; this.btn_down.HoldPress = false;
this.btn_down.Location = new System.Drawing.Point(92, 312); this.btn_down.Location = new System.Drawing.Point(123, 390);
this.btn_down.Margin = new System.Windows.Forms.Padding(4);
this.btn_down.Name = "btn_down"; this.btn_down.Name = "btn_down";
this.btn_down.Padding = new System.Windows.Forms.Padding(3); this.btn_down.Padding = new System.Windows.Forms.Padding(4);
this.btn_down.Size = new System.Drawing.Size(84, 45); this.btn_down.Size = new System.Drawing.Size(112, 56);
this.btn_down.TabIndex = 34; this.btn_down.TabIndex = 34;
this.btn_down.Text = "▼"; this.btn_down.Text = "▼";
this.btn_down.Click += new System.EventHandler(this.btn_down_Click); this.btn_down.Click += new System.EventHandler(this.btn_down_Click);
...@@ -281,10 +328,11 @@ namespace SmartScan ...@@ -281,10 +328,11 @@ namespace SmartScan
this.btn_up.BorderWidth = 2; this.btn_up.BorderWidth = 2;
this.btn_up.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.btn_up.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.btn_up.HoldPress = false; this.btn_up.HoldPress = false;
this.btn_up.Location = new System.Drawing.Point(6, 312); this.btn_up.Location = new System.Drawing.Point(8, 390);
this.btn_up.Margin = new System.Windows.Forms.Padding(4);
this.btn_up.Name = "btn_up"; this.btn_up.Name = "btn_up";
this.btn_up.Padding = new System.Windows.Forms.Padding(3); this.btn_up.Padding = new System.Windows.Forms.Padding(4);
this.btn_up.Size = new System.Drawing.Size(80, 45); this.btn_up.Size = new System.Drawing.Size(107, 56);
this.btn_up.TabIndex = 34; this.btn_up.TabIndex = 34;
this.btn_up.Text = "▲"; this.btn_up.Text = "▲";
this.btn_up.Click += new System.EventHandler(this.btn_up_Click); this.btn_up.Click += new System.EventHandler(this.btn_up_Click);
...@@ -296,10 +344,11 @@ namespace SmartScan ...@@ -296,10 +344,11 @@ namespace SmartScan
this.btn_setriid.BorderWidth = 2; this.btn_setriid.BorderWidth = 2;
this.btn_setriid.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.btn_setriid.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.btn_setriid.HoldPress = false; this.btn_setriid.HoldPress = false;
this.btn_setriid.Location = new System.Drawing.Point(182, 261); this.btn_setriid.Location = new System.Drawing.Point(243, 326);
this.btn_setriid.Margin = new System.Windows.Forms.Padding(4);
this.btn_setriid.Name = "btn_setriid"; this.btn_setriid.Name = "btn_setriid";
this.btn_setriid.Padding = new System.Windows.Forms.Padding(3); this.btn_setriid.Padding = new System.Windows.Forms.Padding(4);
this.btn_setriid.Size = new System.Drawing.Size(168, 45); this.btn_setriid.Size = new System.Drawing.Size(224, 56);
this.btn_setriid.TabIndex = 34; this.btn_setriid.TabIndex = 34;
this.btn_setriid.Text = "Toggle Auto ReelID"; this.btn_setriid.Text = "Toggle Auto ReelID";
this.btn_setriid.Click += new System.EventHandler(this.btn_setriid_Click); this.btn_setriid.Click += new System.EventHandler(this.btn_setriid_Click);
...@@ -311,10 +360,11 @@ namespace SmartScan ...@@ -311,10 +360,11 @@ namespace SmartScan
this.BtnAppendKey.BorderWidth = 2; this.BtnAppendKey.BorderWidth = 2;
this.BtnAppendKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.BtnAppendKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.BtnAppendKey.HoldPress = false; this.BtnAppendKey.HoldPress = false;
this.BtnAppendKey.Location = new System.Drawing.Point(182, 210); this.BtnAppendKey.Location = new System.Drawing.Point(243, 262);
this.BtnAppendKey.Margin = new System.Windows.Forms.Padding(4);
this.BtnAppendKey.Name = "BtnAppendKey"; this.BtnAppendKey.Name = "BtnAppendKey";
this.BtnAppendKey.Padding = new System.Windows.Forms.Padding(3); this.BtnAppendKey.Padding = new System.Windows.Forms.Padding(4);
this.BtnAppendKey.Size = new System.Drawing.Size(168, 45); this.BtnAppendKey.Size = new System.Drawing.Size(224, 56);
this.BtnAppendKey.TabIndex = 34; this.BtnAppendKey.TabIndex = 34;
this.BtnAppendKey.Text = "append"; this.BtnAppendKey.Text = "append";
this.BtnAppendKey.Click += new System.EventHandler(this.BtnAppendKey_Click); this.BtnAppendKey.Click += new System.EventHandler(this.BtnAppendKey_Click);
...@@ -326,10 +376,11 @@ namespace SmartScan ...@@ -326,10 +376,11 @@ namespace SmartScan
this.BtnUpdateKey.BorderWidth = 2; this.BtnUpdateKey.BorderWidth = 2;
this.BtnUpdateKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.BtnUpdateKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.BtnUpdateKey.HoldPress = false; this.BtnUpdateKey.HoldPress = false;
this.BtnUpdateKey.Location = new System.Drawing.Point(182, 159); this.BtnUpdateKey.Location = new System.Drawing.Point(243, 199);
this.BtnUpdateKey.Margin = new System.Windows.Forms.Padding(4);
this.BtnUpdateKey.Name = "BtnUpdateKey"; this.BtnUpdateKey.Name = "BtnUpdateKey";
this.BtnUpdateKey.Padding = new System.Windows.Forms.Padding(3); this.BtnUpdateKey.Padding = new System.Windows.Forms.Padding(4);
this.BtnUpdateKey.Size = new System.Drawing.Size(168, 45); this.BtnUpdateKey.Size = new System.Drawing.Size(224, 56);
this.BtnUpdateKey.TabIndex = 33; this.BtnUpdateKey.TabIndex = 33;
this.BtnUpdateKey.Text = "update"; this.BtnUpdateKey.Text = "update";
this.BtnUpdateKey.Click += new System.EventHandler(this.BtnUpdateKey_Click); this.BtnUpdateKey.Click += new System.EventHandler(this.BtnUpdateKey_Click);
...@@ -341,10 +392,11 @@ namespace SmartScan ...@@ -341,10 +392,11 @@ namespace SmartScan
this.BtnDelKey.BorderWidth = 2; this.BtnDelKey.BorderWidth = 2;
this.BtnDelKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.BtnDelKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.BtnDelKey.HoldPress = false; this.BtnDelKey.HoldPress = false;
this.BtnDelKey.Location = new System.Drawing.Point(182, 108); this.BtnDelKey.Location = new System.Drawing.Point(243, 135);
this.BtnDelKey.Margin = new System.Windows.Forms.Padding(4);
this.BtnDelKey.Name = "BtnDelKey"; this.BtnDelKey.Name = "BtnDelKey";
this.BtnDelKey.Padding = new System.Windows.Forms.Padding(3); this.BtnDelKey.Padding = new System.Windows.Forms.Padding(4);
this.BtnDelKey.Size = new System.Drawing.Size(168, 45); this.BtnDelKey.Size = new System.Drawing.Size(224, 56);
this.BtnDelKey.TabIndex = 32; this.BtnDelKey.TabIndex = 32;
this.BtnDelKey.Text = "del"; this.BtnDelKey.Text = "del";
this.BtnDelKey.Click += new System.EventHandler(this.BtnDelKey_Click); this.BtnDelKey.Click += new System.EventHandler(this.BtnDelKey_Click);
...@@ -356,10 +408,11 @@ namespace SmartScan ...@@ -356,10 +408,11 @@ namespace SmartScan
this.BtnAddKey.BorderWidth = 2; this.BtnAddKey.BorderWidth = 2;
this.BtnAddKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.BtnAddKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.BtnAddKey.HoldPress = false; this.BtnAddKey.HoldPress = false;
this.BtnAddKey.Location = new System.Drawing.Point(182, 57); this.BtnAddKey.Location = new System.Drawing.Point(243, 71);
this.BtnAddKey.Margin = new System.Windows.Forms.Padding(4);
this.BtnAddKey.Name = "BtnAddKey"; this.BtnAddKey.Name = "BtnAddKey";
this.BtnAddKey.Padding = new System.Windows.Forms.Padding(3); this.BtnAddKey.Padding = new System.Windows.Forms.Padding(4);
this.BtnAddKey.Size = new System.Drawing.Size(168, 45); this.BtnAddKey.Size = new System.Drawing.Size(224, 56);
this.BtnAddKey.TabIndex = 31; this.BtnAddKey.TabIndex = 31;
this.BtnAddKey.Text = "add"; this.BtnAddKey.Text = "add";
this.BtnAddKey.Click += new System.EventHandler(this.BtnAddKey_Click); this.BtnAddKey.Click += new System.EventHandler(this.BtnAddKey_Click);
...@@ -369,16 +422,17 @@ namespace SmartScan ...@@ -369,16 +422,17 @@ namespace SmartScan
this.TxtKey.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20))))); this.TxtKey.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.TxtKey.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.TxtKey.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtKey.BorderWidth = 2; this.TxtKey.BorderWidth = 2;
this.TxtKey.Location = new System.Drawing.Point(182, 6); this.TxtKey.Location = new System.Drawing.Point(243, 8);
this.TxtKey.Margin = new System.Windows.Forms.Padding(4);
this.TxtKey.MaxLength = 32767; this.TxtKey.MaxLength = 32767;
this.TxtKey.Name = "TxtKey"; this.TxtKey.Name = "TxtKey";
this.TxtKey.Padding = new System.Windows.Forms.Padding(3); this.TxtKey.Padding = new System.Windows.Forms.Padding(4);
this.TxtKey.SelectedText = ""; this.TxtKey.SelectedText = "";
this.TxtKey.SelectionLength = 0; this.TxtKey.SelectionLength = 0;
this.TxtKey.SelectionStart = 0; this.TxtKey.SelectionStart = 0;
this.TxtKey.ShowDel = true; this.TxtKey.ShowDel = true;
this.TxtKey.ShowQuery = false; this.TxtKey.ShowQuery = false;
this.TxtKey.Size = new System.Drawing.Size(168, 45); this.TxtKey.Size = new System.Drawing.Size(224, 56);
this.TxtKey.TabIndex = 30; this.TxtKey.TabIndex = 30;
// //
// LstKey // LstKey
...@@ -387,51 +441,23 @@ namespace SmartScan ...@@ -387,51 +441,23 @@ namespace SmartScan
this.LstKey.BorderStyle = Asa.FaceControl.ControlShape.Rectangle; this.LstKey.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.LstKey.BorderWidth = 2; this.LstKey.BorderWidth = 2;
this.LstKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); this.LstKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LstKey.Location = new System.Drawing.Point(6, 6); this.LstKey.Location = new System.Drawing.Point(8, 8);
this.LstKey.Margin = new System.Windows.Forms.Padding(4);
this.LstKey.Name = "LstKey"; this.LstKey.Name = "LstKey";
this.LstKey.Padding = new System.Windows.Forms.Padding(3); this.LstKey.Padding = new System.Windows.Forms.Padding(4);
this.LstKey.SelectedIndex = -1; this.LstKey.SelectedIndex = -1;
this.LstKey.Size = new System.Drawing.Size(170, 300); this.LstKey.Size = new System.Drawing.Size(227, 375);
this.LstKey.TabIndex = 21; this.LstKey.TabIndex = 21;
this.LstKey.SelectedIndexChanged += new System.EventHandler(this.LstKey_SelectedIndexChanged); this.LstKey.SelectedIndexChanged += new System.EventHandler(this.LstKey_SelectedIndexChanged);
// //
// btn_adddatetime
//
this.btn_adddatetime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.btn_adddatetime.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.btn_adddatetime.BorderWidth = 2;
this.btn_adddatetime.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.btn_adddatetime.HoldPress = false;
this.btn_adddatetime.Location = new System.Drawing.Point(6, 357);
this.btn_adddatetime.Name = "btn_adddatetime";
this.btn_adddatetime.Padding = new System.Windows.Forms.Padding(3);
this.btn_adddatetime.Size = new System.Drawing.Size(218, 45);
this.btn_adddatetime.TabIndex = 36;
this.btn_adddatetime.Text = "添加日期时间";
this.btn_adddatetime.Click += new System.EventHandler(this.btn_adddatetime_Click);
//
// ChkResetidbydate
//
this.ChkResetidbydate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ChkResetidbydate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.ChkResetidbydate.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.ChkResetidbydate.BorderWidth = 0;
this.ChkResetidbydate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkResetidbydate.Location = new System.Drawing.Point(6, 316);
this.ChkResetidbydate.Name = "ChkResetidbydate";
this.ChkResetidbydate.Padding = new System.Windows.Forms.Padding(3);
this.ChkResetidbydate.Size = new System.Drawing.Size(218, 35);
this.ChkResetidbydate.TabIndex = 25;
this.ChkResetidbydate.Text = "序号每日重置";
//
// UsrMacro // UsrMacro
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.facePanel1); this.Controls.Add(this.facePanel1);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "UsrMacro"; this.Name = "UsrMacro";
this.Size = new System.Drawing.Size(848, 533); this.Size = new System.Drawing.Size(1131, 666);
this.facePanel1.ResumeLayout(false); this.facePanel1.ResumeLayout(false);
this.PnlReelid.ResumeLayout(false); this.PnlReelid.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
...@@ -461,6 +487,6 @@ namespace SmartScan ...@@ -461,6 +487,6 @@ namespace SmartScan
private Asa.FaceControl.FaceButton btn_up; private Asa.FaceControl.FaceButton btn_up;
private Asa.FaceControl.FaceButton btn_setriid; private Asa.FaceControl.FaceButton btn_setriid;
private Asa.FaceControl.FaceButton btn_adddatetime; private Asa.FaceControl.FaceButton btn_adddatetime;
private Asa.FaceControl.FaceCheckBox ChkResetidbydate; private Asa.FaceControl.FaceComboBox CmbResetidBy;
} }
} }
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Windows.Forms; using System.Windows.Forms;
using Asa.FaceControl;
using BLL; using BLL;
using Model; using Model;
...@@ -13,6 +14,8 @@ namespace SmartScan ...@@ -13,6 +14,8 @@ namespace SmartScan
public UsrMacro() public UsrMacro()
{ {
InitializeComponent(); InitializeComponent();
//CmbResetidBy.Tag = "not";
CmbResetidBy.Items.AddRange(new string[] { Language.Dialog("ResetidByNone"), Language.Dialog("ResetidByDay"), Language.Dialog("ResetidByMonth") });
keyCopy = new(BLLCommon.macroKey); keyCopy = new(BLLCommon.macroKey);
LstKey.Items.AddRange(keyCopy.ToArray()); LstKey.Items.AddRange(keyCopy.ToArray());
setRIkey(); setRIkey();
...@@ -21,7 +24,13 @@ namespace SmartScan ...@@ -21,7 +24,13 @@ namespace SmartScan
TxtPostfix.Text = BLLCommon.config.ReelIDPostfix; TxtPostfix.Text = BLLCommon.config.ReelIDPostfix;
NumReelIDPlaces.Value = BLLCommon.config.ReelIDPlaces; NumReelIDPlaces.Value = BLLCommon.config.ReelIDPlaces;
ChkReelIDFillZero.Checked = BLLCommon.config.ReelIDFillZero; ChkReelIDFillZero.Checked = BLLCommon.config.ReelIDFillZero;
ChkResetidbydate.Checked = BLLCommon.config.ReelIDAutoResetByDate; int sel = Config.REEL_ID_AutoResetStrategy;
if (sel < 0 || sel > CmbResetidBy.Items.Count - 1)
{
Config.REEL_ID_AutoResetStrategy = 0;
sel = 0;
}
CmbResetidBy.SelectedIndex = sel;
Asa.FaceControl.Language.SetLanguage(this); Asa.FaceControl.Language.SetLanguage(this);
} }
...@@ -41,10 +50,11 @@ namespace SmartScan ...@@ -41,10 +50,11 @@ namespace SmartScan
BLLCommon.config.ReelIDPostfix = TxtPostfix.Text; BLLCommon.config.ReelIDPostfix = TxtPostfix.Text;
BLLCommon.config.ReelIDPlaces = (int)NumReelIDPlaces.Value; BLLCommon.config.ReelIDPlaces = (int)NumReelIDPlaces.Value;
BLLCommon.config.ReelIDFillZero = ChkReelIDFillZero.Checked; BLLCommon.config.ReelIDFillZero = ChkReelIDFillZero.Checked;
BLLCommon.config.ReelIDAutoResetByDate = ChkResetidbydate.Checked; Config.REEL_ID_AutoResetStrategy = CmbResetidBy.SelectedIndex;
BLLCommon.config.Save(); BLLCommon.config.Save();
} }
void setRIkey() { void setRIkey()
{
LstKey.Items.Clear(); LstKey.Items.Clear();
LstKey.Items.AddRange(keyCopy.ToArray()); LstKey.Items.AddRange(keyCopy.ToArray());
for (int i = 0; i < LstKey.Items.Count; i++) for (int i = 0; i < LstKey.Items.Count; i++)
...@@ -57,7 +67,7 @@ namespace SmartScan ...@@ -57,7 +67,7 @@ namespace SmartScan
private void LstKey_SelectedIndexChanged(object sender, EventArgs e) private void LstKey_SelectedIndexChanged(object sender, EventArgs e)
{ {
if(LstKey.SelectedIndex>=0) if (LstKey.SelectedIndex >= 0)
TxtKey.Text = keyCopy[LstKey.SelectedIndex]; TxtKey.Text = keyCopy[LstKey.SelectedIndex];
} }
...@@ -114,9 +124,9 @@ namespace SmartScan ...@@ -114,9 +124,9 @@ namespace SmartScan
private void btn_up_Click(object sender, EventArgs e) private void btn_up_Click(object sender, EventArgs e)
{ {
if (LstKey.SelectedIndex == -1 || LstKey.SelectedIndex ==0) return; if (LstKey.SelectedIndex == -1 || LstKey.SelectedIndex == 0) return;
keyCopy.Insert(LstKey.SelectedIndex - 1, keyCopy[LstKey.SelectedIndex]); keyCopy.Insert(LstKey.SelectedIndex - 1, keyCopy[LstKey.SelectedIndex]);
keyCopy.RemoveAt(LstKey.SelectedIndex+1); keyCopy.RemoveAt(LstKey.SelectedIndex + 1);
LstKey.Items.Clear(); LstKey.Items.Clear();
LstKey.Items.AddRange(keyCopy.ToArray()); LstKey.Items.AddRange(keyCopy.ToArray());
LstKey.SelectedIndex = LstKey.SelectedIndex - 1; LstKey.SelectedIndex = LstKey.SelectedIndex - 1;
...@@ -125,8 +135,8 @@ namespace SmartScan ...@@ -125,8 +135,8 @@ namespace SmartScan
private void btn_down_Click(object sender, EventArgs e) private void btn_down_Click(object sender, EventArgs e)
{ {
if (LstKey.SelectedIndex == -1 || LstKey.SelectedIndex == keyCopy.Count-1) return; if (LstKey.SelectedIndex == -1 || LstKey.SelectedIndex == keyCopy.Count - 1) return;
keyCopy.Insert(LstKey.SelectedIndex+2, keyCopy[LstKey.SelectedIndex]); keyCopy.Insert(LstKey.SelectedIndex + 2, keyCopy[LstKey.SelectedIndex]);
keyCopy.RemoveAt(LstKey.SelectedIndex); keyCopy.RemoveAt(LstKey.SelectedIndex);
LstKey.Items.Clear(); LstKey.Items.Clear();
LstKey.Items.AddRange(keyCopy.ToArray()); LstKey.Items.AddRange(keyCopy.ToArray());
......
...@@ -385,6 +385,12 @@ ...@@ -385,6 +385,12 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="App.ico" /> <Content Include="App.ico" />
<Content Include="Language\en-US.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Language\zh-CN.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Resources\copy.png" /> <None Include="Resources\copy.png" />
<None Include="Resources\validate.png" /> <None Include="Resources\validate.png" />
<None Include="Resources\filter.png" /> <None Include="Resources\filter.png" />
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!