Exemplo n.º 1
0
        public static void ShowContractors()
        {
            List <Guid> ids = HttpClientOfOneS.GetIdsOfObjs <OneC.Contractor>();

            ConsoleKeyInfo input;
            Int32          index = 0;
            Int32          count = 1;

            do
            {
                Console.Clear();
                Console.WriteLine($"Index: {index,4}; Count: {count,4}\n\n");
                List <Guid> idsPage = ids.GetRange(index, count);
                HttpClientOfOneS.GetObjsByIds <OneC.Contractor>(idsPage).ShowOneCObjects();
                input  = Console.ReadKey();
                index += count;
            } while (input.Key != ConsoleKey.Escape);
        }
Exemplo n.º 2
0
        public static void ShowEmployees()
        {
            List <Guid> ids = HttpClientOfOneS.GetIdsOfObjs <OneC.Employee>();

            ConsoleKeyInfo input;
            Int32          index = 0;
            Int32          count = 1;

            do
            {
                Console.Clear();
                Console.WriteLine($"Index: {index,4}; Count: {count,4}\n\n");
                List <Guid> idsPage = ids.GetRange(index, count);
                //ClientOf1C.GetEmployeesByIds(idsPage).ShowOneCObjects();
                HttpClientOfOneS.GetObjsByIds <OneC.Employee>(new Guid("f9e7b11f-609a-11e7-80cb-00155d65b717")).ShowOneCObjects();
                //ClientOf1C.GetEmployeesLike("Зорін").ShowOneCObjects();
                input  = Console.ReadKey();
                index += count;
            } while (input.Key != ConsoleKey.Escape);
        }