예제 #1
0
 public formMovCompras()
 {
     InitializeComponent();
     compraDao  = new ComprasDAO();
     usuarioDao = new UsuariosDAO();
     sessaoDao  = new SessoesDAO();
 }
예제 #2
0
 public formCadSessoes()
 {
     InitializeComponent();
     sessaoDao = new SessoesDAO();
     salaDao   = new SalasDAO();
     filmeDao  = new FilmesDAO();
 }
 public FormSessaoCadastrar(Object sessao, int id, Boolean visualizar, object objSessoes)
 {
     InitializeComponent();
     this.paramentroVisualizar = visualizar;
     this.nUtils            = new Utils();
     this.nSessao           = (Sessao)sessao;
     this.pacienteDAO       = new PacienteDAO(nSessao.connMysql);
     this.nPaciente         = new Paciente();
     this.clinicaDAO        = new ClinicaDAO(nSessao.connMysql);
     this.nClinica          = new Clinica();
     this.fisioterapeutaDAO = new FisioterapeutaDAO(nSessao.connMysql);
     this.nFisioterapeuta   = new Fisioterapeuta();
     this.sessoesDAO        = new SessoesDAO(nSessao.connMysql);
     this.nSessoes          = new Sessoes();
     this.nSessoes.id       = id;
     if (objSessoes != null)
     {
         this.nSessoes = (Sessoes)objSessoes;
     }
     if (id == 0)
     {
         this.mtxtData.Text = DateTime.Now.ToString("dd/MM/yyyy");
         this.mtxtHora.Text = DateTime.Now.ToString("HH:mm");
     }
 }
예제 #4
0
 /// <summary>
 /// Construtor da classe
 /// </summary>
 /// <param name="sessao"></param>
 public FormSessoes(Object sessao)
 {
     InitializeComponent();
     this.nSessao         = (Sessao)sessao;
     this.nUtils          = new Utils();
     this.sessoesDao      = new SessoesDAO(nSessao.connMysql);
     this.nSessoes        = new Sessoes();
     this.nPaciente       = new Paciente();
     this.nFisioterapeuta = new Fisioterapeuta();
     this.nClinica        = new Clinica();
 }
예제 #5
0
 /// <summary>
 /// Construtor
 /// </summary>
 /// <param name="sessao"></param>
 public FormRelatorioGrafico(object sessao)
 {
     InitializeComponent();
     this.nSessao     = (Sessao)sessao;
     this.daoPaciente = new PacienteDAO(this.nSessao.connMysql);
     this.daoSessao   = new SessoesDAO(this.nSessao.connMysql);
     //Tratamento de erros
     try
     {
         //Obtendo dados de pacientes
         this.cbPaciente.DataSource    = this.daoPaciente.getDataTable();
         this.cbPaciente.DisplayMember = "NOME";
         this.cbPaciente.ValueMember   = "ID";
         this.cbPaciente.SelectedIndex = -1;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Erro!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }