資源簡介
對一汽卡車零部件上的二維碼解析,以用于擴展供應商零部件信息追溯系統
只對零件產品信息進行解析不能解析其防偽碼
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Text.Regularexpressions;
namespace?QRcodeDecrypt.AfterDecrypt
{
????/*定義一個regex正則表達式用來判斷輸入的數據是否符合格式
?*?LB107前5位必須是LB107
?*?[1-9A-Y]第6位只能是1到9,A到Y
?*?[1-9A-C]第7位只能是1到9,A到C
?*?[0-3]第8位只能是0到3
?*?[0-9]第9位只能是0到9
?*?[A-Z0-9]{2}第10、11位只能是任意大寫字母或數字
?*?[0-9]{7}第12到18位只能是數字
?*?[A-Z0-9\\-\\.\\$\\+\\%]+后面跟1個或多個大寫字母或數字或-.$+%
?*?[\\*|\\/]后面必須跟1個*或者/
?*?[A-Z0-9]+后面必須跟1個或多個大寫字母或數字
?*?[\\*]后面必須跟個*
?*?0后面必須跟個0
?*?[A-Z0-9]*后面必須跟0個或多個大寫字母或數字
?*/
????public?class?AfterDecryptDataReader
????{
????????//匹配一汽二維碼格式
????????private?Regex?r?=?new?Regex(“LB107[1-9A-Y][1-9A-C][0-3][0-9][A-Z0-9]{2}[0-9]{7}[A-Z0-9\\-\\.\\$\\+\\%]+[\\*|\\/][A-Z0-9]+[\\*][A-Z0-9]*“);
????????private?bool?Data_JieMaHou_GeShiJianCha;
????????public?bool?DATA_JMH_GSJC
????????{
????????????private?set
????????????{
????????????????Data_JieMaHou_GeShiJianCha?=?value;
????????????}
????????????g
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1395??2019-03-21?12:00??DllBox\DllBox.sln
????..A..H.?????28160??2019-04-11?09:23??DllBox\DllBox.suo
?????文件???????4639??2019-03-27?14:03??DllBox\QRcodeDecrypt\AfterDecrypt\AfterDecryptDataReader.cs
?????文件????????874??2019-03-22?13:30??DllBox\QRcodeDecrypt\AfterDecrypt\UserSIMICException.cs
?????文件????????507??2019-03-21?12:03??DllBox\QRcodeDecrypt\BeforeDecrypt\AsciiAndChar.cs
?????文件???????1590??2019-03-21?12:01??DllBox\QRcodeDecrypt\BeforeDecrypt\DataFenJie.cs
?????文件???????2833??2019-04-11?09:21??DllBox\QRcodeDecrypt\BeforeDecrypt\DataJieMi.cs
?????文件???????2161??2019-03-21?12:03??DllBox\QRcodeDecrypt\BeforeDecrypt\MiMaBiao.cs
?????文件???????9216??2019-04-11?09:21??DllBox\QRcodeDecrypt\bin\Debug\QRcodeDecrypt.dll
?????文件??????30208??2019-04-11?09:21??DllBox\QRcodeDecrypt\bin\Debug\QRcodeDecrypt.pdb
?????文件????????363??2019-03-21?11:52??DllBox\QRcodeDecrypt\obj\Debug\JIEMI.csproj.FileListAbsolute.txt
?????文件????????363??2019-03-22?13:09??DllBox\QRcodeDecrypt\obj\Debug\QRcodeDecrypt.csproj.FileListAbsolute.txt
?????文件???????9216??2019-04-11?09:21??DllBox\QRcodeDecrypt\obj\Debug\QRcodeDecrypt.dll
?????文件??????30208??2019-04-11?09:21??DllBox\QRcodeDecrypt\obj\Debug\QRcodeDecrypt.pdb
?????文件???????1354??2019-03-21?11:45??DllBox\QRcodeDecrypt\Properties\AssemblyInfo.cs
?????文件???????2812??2019-03-22?11:33??DllBox\QRcodeDecrypt\QRcodeDecrypt.csproj
?????文件???????9216??2019-04-11?09:21??DllBox\test\bin\Debug\QRcodeDecrypt.dll
?????文件??????30208??2019-04-11?09:21??DllBox\test\bin\Debug\QRcodeDecrypt.pdb
?????文件???????5120??2019-04-11?09:23??DllBox\test\bin\Debug\test.exe
?????文件??????13824??2019-04-11?09:23??DllBox\test\bin\Debug\test.pdb
?????文件??????14328??2019-04-11?09:23??DllBox\test\bin\Debug\test.vshost.exe
?????文件????????490??2007-07-21?02:33??DllBox\test\bin\Debug\test.vshost.exe.manifest
?????文件???????5486??2019-04-11?09:21??DllBox\test\obj\Debug\ResolveAssemblyReference.cache
?????文件????????404??2019-04-11?09:23??DllBox\test\obj\Debug\test.csproj.FileListAbsolute.txt
?????文件???????5120??2019-04-11?09:23??DllBox\test\obj\Debug\test.exe
?????文件??????13824??2019-04-11?09:23??DllBox\test\obj\Debug\test.pdb
?????文件????????994??2019-04-11?09:23??DllBox\test\Program.cs
?????文件???????1364??2019-03-12?10:06??DllBox\test\Properties\AssemblyInfo.cs
?????文件???????2723??2019-03-22?12:03??DllBox\test\test.csproj
?????目錄??????????0??2019-03-12?09:56??DllBox\QRcodeDecrypt\obj\Debug\Refactor
............此處省略21個文件信息
- 上一篇:統計大文件每個字符出現的次數
- 下一篇:倚天字型翻譯
評論
共有 條評論