예제 #1
0
        public async Task OnGetAsync(Guid id)
        {
            ReunioesGetResult = await reunioesClient.GetAsync(id);

            if (ReunioesGetResult != null && ReunioesGetResult.PlanoDeAcaoId.HasValue)
            {
                PlanosDeAcaoGetResult = await planosDeAcaoClient.GetAsync(ReunioesGetResult.PlanoDeAcaoId.Value);
            }
        }
예제 #2
0
        public async Task OnGetAsync(Guid cipaId, Guid reuniaoId, Guid ataId)
        {
            var todosMembros = (await cipasClient.GetAsync(cipaId))?.Membros;

            var reuniao = await reunioesClient.GetAsync(reuniaoId);

            Membros = todosMembros.Where(m => !reuniao.Ata.Participantes.Any(p => p.ParticipanteNomeCompleto == m.NomeCompleto) &&
                                         !reuniao.Ata.Ausentes.Any(a => a.AusenteNomeCompleto == m.NomeCompleto));

            ReuniaoId = reuniaoId;
            AtaId     = ataId;
        }
예제 #3
0
        public async Task OnGetAsync(Guid id)
        {
            var reunioesGetResult = await reunioesClient.GetAsync(id);

            ReunioesPut = new ReunioesPut()
            {
                MesDeReferencia = reunioesGetResult.MesDeReferencia,
                DataPrevista    = reunioesGetResult.DataPrevista?.Date,
                HorarioPrevisto = reunioesGetResult.DataPrevista?.ToString("h:mm tt", CultureInfo.InvariantCulture),
                Local           = reunioesGetResult.Local
            };
            ReuniaoId = id;
        }
예제 #4
0
        public async Task OnGetAsync(Guid reuniaoId, Guid ataId)
        {
            var reunioesGetResult = await reunioesClient.GetAsync(reuniaoId);

            ReunioesAtasPut = new ReunioesAtasPut()
            {
                Local         = reunioesGetResult.Ata?.Local,
                Data          = reunioesGetResult.Ata?.Inicio?.Date,
                HorarioInicio = reunioesGetResult.Ata?.Inicio?.ToString("h:mm tt", CultureInfo.InvariantCulture),
                HorarioFim    = reunioesGetResult.Ata?.Termino?.ToString("h:mm tt", CultureInfo.InvariantCulture)
            };

            ReuniaoId = reuniaoId;
            AtaId     = ataId;
        }
예제 #5
0
        public async Task OnGetAsync(Guid reuniaoId, Guid ataId, Guid assuntoId)
        {
            var reunioesGetResult = await reunioesClient.GetAsync(reuniaoId);

            var assunto = reunioesGetResult?.Ata?.Assuntos?.FirstOrDefault(a => a.AssuntoId == assuntoId);

            ReunioesAtasAssuntosPut = new ReunioesAtasAssuntosPut()
            {
                ClassificacaoDaInformacao = assunto?.ClassificacaoDaInformacao,
                Tipo      = assunto?.Tipo,
                Descricao = assunto?.Descricao,
                Keywords  = assunto?.Keywords
            };

            ReuniaoId = reuniaoId;
            AtaId     = ataId;
            AssuntoId = assuntoId;
        }
예제 #6
0
        public async Task OnGetAsync(Guid reuniaoId)
        {
            ReunioesGetResult = await reunioesClient.GetAsync(reuniaoId);

            ReuniaoId = reuniaoId;
        }
예제 #7
0
 public async Task OnGetAsync(Guid id)
 {
     UserPrincipal     = userPrincipalBuilder.UserPrincipal;
     ReunioesGetResult = await reunioesClient.GetAsync(id);
 }