public void Marcado(Usuario usuarioMarcado, Paciente paciente, Funcionario profissionaldesaude, Especialidade especialidade, Procedimento procedimento, Convenio convenio, string tipo, string Observacoes, string Solicitante, decimal valor, decimal valorProfissional, TipoAtendimento tipoAtendimento ) { this.Situacao = "Marcado"; this.UsuarioMarcado = usuarioMarcado; this.DataMarcado = DateTime.Now; this.Paciente = paciente; this.SetProfissionalSaude(profissionaldesaude); this.SetEspecialidade(especialidade); this.SetProcedimento(procedimento); this.SetValor(valor); this.SetTipoAgendamento(tipo); this.SetValorProfissional(valorProfissional); this.SetTipoAtendimento(tipoAtendimento); this.SetObservacao(Observacoes); this.SetConvenio(convenio); this.SetSalaEspera("Nao"); // se tipo convênio if ((this.Tipo == "C") && (this.Convenio == null)) { throw new Exception("O Campo Convênio é Obrigatório "); } if (this.Paciente == null) { throw new Exception("O Campo Paciente é Obrigatório "); } if (this.Especialidade == null) { throw new Exception("O Campo Especialidade é Obrigatório "); } if (this.Procedimento == null) { throw new Exception("O Campo Procedimento é Obrigatório "); } if (this.ProfissionalSaude == null) { throw new Exception("O Campo Profissional de Saúde é Obrigatório "); } }
public void SetTipoAtendimento(TipoAtendimento tipoAtendimento) { this.TipoAtendimento = tipoAtendimento; }