Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("running....");

            ProcessRequiredFiles.GetDatasetsData(args);
            ProcessInputXlsxFile.ParseInputXlsxFileIntoCustomerDetailsRecord();
            ValidateData.PreRegExMatchValidateCustomerDetailsRecord();
            StaticVariable.CustomerDetailsDataRecord.Clear();
            ProcessInputXlsxFile.MatchInputXlsxFileWithRegEx(StaticVariable.InputXlsxFileDetails);
            Prefixes.ProcessPrefixesData();
            ValidateData.PostRegExMatchValidateCustomerDetailsRecord();
            Prefixes.ValidatePrefixesData();
            ValidateData.DisplayMissingDetails();

            RearrangeCompletedFiles.CreateCategoryMatrix();
            RearrangeCompletedFiles.WriteToV6TwbXlsxFile();
            RearrangeCompletedFiles.WriteOutV5Tc2Files();
            RearrangeCompletedFiles.CopyOutputXlsxFileToV6OpUtilFolder(StaticVariable.MoveOutputSpreadSheetToV6TwbFolder);
            RearrangeCompletedFiles.WriteInputXLSXFileDetailsToFinalFolder();
            ErrorProcessing.CreateAndWriteToRegExMatchedLog();


            //ValidateData.TestMethod();
            StaticVariable.ProgressDetails.Add(Environment.NewLine + "........finished");
            StaticVariable.ConsoleOutput.Add(Environment.NewLine + "........finished");
            ErrorProcessing.OutputToLogs(StaticVariable.ProgressDetails, StaticVariable.DirectoryName + @"\" + Constants.ProgressLog);
            ErrorProcessing.OutputToLogs(StaticVariable.ConsoleOutput, StaticVariable.DirectoryName + @"\" + Constants.ConsoleErrorLog);
            ErrorProcessing.OutputConsoleLog();
            Console.WriteLine("oxo....");
            MessageBox.Show("oxo");
            Environment.Exit(Constants.KillProgram);
        }