Exemple #1
0
        static void Main(string[] args)
        {
//            Console.WriteLine(MDXScriptBuilder.getNavRusAccountList());

            //ICollection<ReconciliationItem> records = NAVOFF.Calc(2016, 6);
            //ICollection<ReconciliationItem> records2 = NAVOFF.Calc(2017, 6);
            //Console.WriteLine("Создано {0} записей", records.Count);



            ICollection <ParameterSet> parameters = new List <ParameterSet>();

            parameters.Add(new ParameterSet(2017, 6));
            //parameters.Add(new ParameterSet(2016, 6));
            //parameters.Add(new ParameterSet(2016, 6));


            DateTime start;  DateTime end;

            foreach (var item in parameters)
            {
                start = DateTime.Now;
                ICollection <ReconciliationItem> records = NAVOFF.GetData(item.year, item.month);
                end = DateTime.Now;
                Console.WriteLine("Получено {0} записей за {1}", records.Count, end - start);
            }

            ICollection <Company> records2 = OFF.getCompanies();

            foreach (var item in records2)
            {
                Console.WriteLine(item.name);
            }

            Console.WriteLine("------------------------------------------------");
            ICollection <TD_CRM_Accrual_Storno_LED> documents = OFF.getDocuments();

            foreach (var item in documents)
            {
                Console.WriteLine(item.ToString());
            }

            Console.WriteLine(Environment.NewLine + "Press any key to continue.");
            Console.ReadKey();
        }
Exemple #2
0
 public ButtonMachine()
 {
     currentState = OFF.GetInstance();
 }