Ejemplo n.º 1
0
        protected async System.Threading.Tasks.Task Load()
        {
            var sdeGetParameterByParameterIdResult = await Sde.GetParameterByParameterId(parameterId : ParameterId);

            parameter = sdeGetParameterByParameterIdResult;

            var sdeGetExtractsResult = await Sde.GetExtracts();

            getExtractsForExtractIdResult = sdeGetExtractsResult.Value.AsODataEnumerable();
        }
        protected async System.Threading.Tasks.Task Load()
        {
            var sdeGetExtractsResult = await Sde.GetExtracts();

            getExtractsForExtractIdResult = sdeGetExtractsResult.Value.AsODataEnumerable();

            parameter = new Sde3.Models.Sde.Parameter()
            {
            };
        }
        protected async System.Threading.Tasks.Task Grid0LoadData(LoadDataArgs args)
        {
            try
            {
                var sdeGetExtractsResult = await Sde.GetExtracts(filter : $@"(contains(Name,""{search}"") or contains(Description,""{search}"") or contains(ExternalCode,""{search}"")) and {(string.IsNullOrEmpty(args.Filter)? "true" : args.Filter)}", orderby : $"{args.OrderBy}", top : args.Top, skip : args.Skip, count : args.Top != null && args.Skip != null);

                getExtractsResult = sdeGetExtractsResult.Value.AsODataEnumerable();

                getExtractsCount = sdeGetExtractsResult.Count;
            }
            catch (System.Exception sdeGetExtractsException)
            {
                NotificationService.Notify(new NotificationMessage()
                {
                    Severity = NotificationSeverity.Error, Summary = $"Error", Detail = $"Unable to load Extracts"
                });
            }
        }