public v_VisaoAtendimentoPlantao() { InitializeComponent(); this.m_tempoAtendimento = new m_TempoAtendimento(); this.c_tempoAtendimento = new c_TempoAtendimento(); this.m_corretorPlantao = new m_CorretorPlantao(); this.c_corretorPlantao = new c_CorretorPlantao(); this.m_plantao = new m_Plantao(); this.c_plantao = new c_Plantao(); }
public void ExcluirTempoAtendimento(m_TempoAtendimento m_tempoAtendimento) { MySqlConnection conexao = c_ConexaoMySql.GetConexao(); MySqlCommand comando = c_ConexaoMySql.GetComando(conexao); comando.CommandType = System.Data.CommandType.Text; comando.CommandText = "delete from tempoatendimento where idtempoatendimento = @idtempoatendimento;"; comando.Parameters.Add(new MySqlParameter("@idtempoatendimento", m_tempoAtendimento.idtempoatendimento)); comando.ExecuteNonQuery(); conexao.Clone(); }
public v_NovoPlantao(string UsuarioCad) { InitializeComponent(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); this.m_plantao = new m_Plantao(); this.c_plantao = new c_Plantao(); this.m_tempoAtendimento = new m_TempoAtendimento(); this.c_tempoAtendimento = new c_TempoAtendimento(); this.m_corretorPlantao = new m_CorretorPlantao(); this.c_corretorPlantao = new c_CorretorPlantao(); _UsuarioCad = UsuarioCad; }
public v_VisaoAtendimentoPlantao(int CodigoPlantao) { InitializeComponent(); this.m_tempoAtendimento = new m_TempoAtendimento(); this.c_tempoAtendimento = new c_TempoAtendimento(); this.m_corretorPlantao = new m_CorretorPlantao(); this.c_corretorPlantao = new c_CorretorPlantao(); this.m_plantao = new m_Plantao(); this.c_plantao = new c_Plantao(); m_corretorPlantao.fk_plantao_corretorplantao = CodigoPlantao; m_tempoAtendimento.fk_plantao_tempoatendimento = CodigoPlantao; m_plantao.idplantao = CodigoPlantao; gbxCorretores.Text = gbxCorretores.Text + " - Equipe " + c_plantao.CarregarNomeEquipePlantao(m_plantao); }
public void AlterarAtendimentoHoraFinal(m_TempoAtendimento m_tempoAtendimento) { MySqlConnection conexao = c_ConexaoMySql.GetConexao(); MySqlCommand comando = c_ConexaoMySql.GetComando(conexao); comando.CommandType = System.Data.CommandType.Text; comando.CommandText = "update tempoatendimento set atendimentohorafinal = @atendimentohorafinal where idtempoatendimento = @idtempoatendimento;"; comando.Parameters.Add(new MySqlParameter("@idtempoatendimento", m_tempoAtendimento.idtempoatendimento)); comando.Parameters.Add(new MySqlParameter("@atendimentohorafinal", m_tempoAtendimento.atendimentohorafinal)); comando.ExecuteNonQuery(); conexao.Clone(); }
public void NovoTempoAtendimento(m_TempoAtendimento m_tempoAtendimento) { MySqlConnection conexao = c_ConexaoMySql.GetConexao(); MySqlCommand comando = c_ConexaoMySql.GetComando(conexao); comando.CommandType = CommandType.Text; comando.CommandText = "insert into tempoatendimento(atendimentohorainicial,fk_plantao_tempoatendimento,fk_corretorplantao_tempoatendimento) values (@atendimentohorainicial,@fk_plantao_tempoatendimento,@fk_corretorplantao_tempoatendimento);"; comando.Parameters.Add(new MySqlParameter("@atendimentohorainicial", m_tempoAtendimento.atendimentohorainicial)); comando.Parameters.Add(new MySqlParameter("@fk_corretorplantao_tempoatendimento", m_tempoAtendimento.fk_corretorplantao_tempoatendimento)); comando.Parameters.Add(new MySqlParameter("@fk_plantao_tempoatendimento", m_tempoAtendimento.fk_plantao_tempoatendimento)); comando.ExecuteNonQuery(); conexao.Clone(); }