Ejemplo n.º 1
0
        public async void onSearchAlarms()
        {
            //Implement for each query Group by PropertyName : StationName , Priority or Desc.

            //ExpressGen();

            IEnumerable <IGrouping <string, Item> > groupFields =
                from item in searchList
                group item by item.FieldName;

            string[] search_Parse_Pri_List = search_Parse_Pri.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
            Console.WriteLine(search_Parse_Pri_List.Length);

            //searchParseDeleg = SearchingExpressionBuilder.GetExpression<RestorationAlarmList>(groupFields, search_Parse_Pri);
            searchParseDeleg = SearchingExpressionBuilder.GetExpression <RestorationAlarmLists>(groupFields, search_Parse_Pri_List, _search_Parse_Sec);

            if (searchParseDeleg == null)
            {
                Console.WriteLine("Expression Building Error");
            }
            else
            {
                RestAlarmsRepo.filterParseDeleg = searchParseDeleg;
                await RestAlarmsRepo.GetCustAlarmAct();

                Console.WriteLine(searchParseDeleg.Body);
            }
        }
Ejemplo n.º 2
0
        public async void onSetPageSize()
        {
            RestAlarmsRepo.pageSize = pageSize;
            await RestAlarmsRepo.GetRestAlarmAct();

            await RestAlarmsRepo.GetCustAlarmAct();

            await RestAlarmsRepo.TGetQueryAlarmAct();
        }
Ejemplo n.º 3
0
        public async void onFilterAlarms()
        {
            //Implement for each query Group by PropertyName : StationName , Priority or Desc.

            //ExpressGen();

            IEnumerable <IGrouping <string, Item> > groupFields =
                from item in filters
                group item by item.FieldName;

            filterParseDeleg = FilterExpressionBuilder.GetExpression <RestorationAlarmLists>(groupFields);

            RestAlarmsRepo.filterParseDeleg = filterParseDeleg;
            await RestAlarmsRepo.GetCustAlarmAct();

            Console.WriteLine(filterParseDeleg.Body);
        }