Exemple #1
0
        private static bool AnalyzeIFA(ScanCodeValues analyze)
        {
            var parser = new IFAParser(analyze.ScanCode, false);

            if (parser.CanParse())
            {
                parser.Parse();
                analyze.ProductCode  = parser.ProductCode.Value;
                analyze.ExpiryDate   = parser.ExpiryDate.Value;
                analyze.BatchNumber  = parser.BatchNumber.Value;
                analyze.SerialNumber = parser.SerialNumber.Value;
                analyze.Parser       = parser;
                return(true);
            }
            return(false);
        }
Exemple #2
0
        public static ScanCodeValues Analyze(string scanCode)
        {
            var analyze = new ScanCodeValues
            {
                ScanCode = scanCode
            };

            if (!AnalyzeGS1(analyze))
            {
                if (!AnalyzeIFA(analyze))
                {
                }
            }
            ;
            return(analyze);
        }