コード例 #1
0
        private async Task LoadAsync(DateTime date, string month)
        {
            ButtonPressed = month;

            GetPeriod(month);

            if (ButtonPressed == "Year")
            {
                var l_all_atendimentos = await _appAtendimento.ByAll(date);

                Input.Add(l_all_atendimentos);

                var setores = _appSetores.List();

                foreach (Setor s in setores)
                {
                    var setor = await _appAtendimento.BySetor(s.Nome, date);

                    if (setor.Count() > 1)
                    {
                        Input.Add(setor);
                    }
                }
            }
            else
            {
                await LoadAsyncMonth(Periodo);
            }
        }