private void BtnEditMoto_Click(object sender, EventArgs e) { ServiçoEditar EditMoto = new ServiçoEditar(); if (datanasc == "") { nome = txtNomeMoto.Text; rg = txtRGMoto.Text; cpf = txtCPFMoto.Text; cnh = txtCNHMoto.Text; datacnh = txtValCNHMoto.Text.Replace("/", "-"); try { EditMoto.EditarMoto(nome, rg, cpf, cnh, datacnh); } catch { } } else { nome = txtNomeMoto.Text; rg = txtRGMoto.Text; cpf = txtCPFMoto.Text; cnh = txtCNHMoto.Text; datacnh = txtValCNHMoto.Text.Replace("/", "-"); datanasc = txtDataNascMoto.Text; try { EditMoto.EditarMoto(nome, rg, cpf, cnh, datacnh, datanasc); } catch { } } }
private void BtnEditMoto_Click(object sender, EventArgs e) { ServiçoEditar EditMoto = new ServiçoEditar(); nome = txtNomeMoto.Text; datanasc = txtDataNascMoto.Text; rg = txtRGMoto.Text; cpf = txtCPFMoto.Text; cnh = txtCNHMoto.Text; datacnh = txtValCNHMoto.Text; statusMoto = txtStatusMoto.Text; try { EditMoto.EditarMoto(nome, rg, cpf, cnh, datacnh, datanasc, statusMoto); Limpar(); } catch { } }
private void btnEditLoca_Click(object sender, EventArgs e) { ServiçoEditar EditLoca = new ServiçoEditar(); CodLocacao = Convert.ToInt32(txtCodLoca.Text); CodLCliente = Convert.ToInt32(txtCodCliente.Text); DataLocacao = txtDataLoca.Text; DataDevolucao = txtDataDevolucao.Text; LocalRetirada = txtLocalRetirada.Text; Quantidade = txtQntLoca.Text; ValorLocacao = txtValorLoca.Text; try { EditLoca.EditarLoca(CodLocacao, CodLCliente, DataLocacao, DataDevolucao, LocalRetirada, Quantidade, ValorLocacao); btnEditLoca.Enabled = false; } catch { } }
private void btnEditar_Click(object sender, EventArgs e) { ServiçoEditar EditViagem = new ServiçoEditar(); CodViagem = Convert.ToInt32(txtCodViagem.Text); CodVVeiculo = Convert.ToInt32(txtCodVeiculo.Text); CodVMoto = Convert.ToInt32(txtCodMotorista.Text); DataViagem = txtDataViagem.Text; EntregArEm = txtEngregArEm.Text; EntregEEm = txtEntregEem.Text; Motivo = txtMotivo.Text; Situacao = txtSituacao.Text; try { EditViagem.EditarViagem(CodViagem, CodVVeiculo, CodVMoto, DataViagem, EntregArEm, EntregEEm, Motivo, Situacao); Limpar(); } catch { } }
private void btnEditar_Click(object sender, EventArgs e) { ServiçoEditar EditCliente = new ServiçoEditar(); Nome = txtNomeCliente.Text; CPFouCNPJ = txtCPFouCNPJ.Text; Endereco = txtEndeCliente.Text; Bairro = txtBairroCliente.Text; Estado = txtEstadoCliente.Text; Categoria = txtCateCliente.Text; ValCCNH = txtValCCNH.Text; ValorPago = txtValorPagoCliente.Text; StatusCliente = txtStatusCliente.Text; try { EditCliente.EditarCliente(Nome, CPFouCNPJ, Endereco, Bairro, Estado, Categoria, ValCCNH, ValorPago, StatusCliente); Limpar(); } catch { } }
private void btnEditSegMoto_Click(object sender, EventArgs e) { ServiçoEditar EditSegMoto = new ServiçoEditar(); NumApolice = Convert.ToInt32(txtNApolice.Text); CPFMoto = txtCPFMoto.Text; Seguradora = txtSeguradora.Text; Corretor = txtCorretor.Text; DataInicioSM = txtDataInicio.Text; DataVencSM = txtDataVenc.Text; ValorSM = txtValor.Text; SituacaoSM = txtSituacao.Text; try { EditSegMoto.EditarSegMoto(NumApolice, CPFMoto, Seguradora, Corretor, DataInicioSM, DataVencSM, ValorSM, SituacaoSM); btnEditSegMoto.Enabled = false; Limpar(); } catch { } }
private void btnEditVei_Click(object sender, EventArgs e) { ServiçoEditar EditVei = new ServiçoEditar(); Marca = txtMarca.Text; Cor = txtCor.Text; KMAtual = txtKMAtual.Text; Combustivel = txtCombustivel.Text; Renavam = txtRenavam.Text; Chassi = txtChassi.Text; Modelo = txtModelo.Text; Ano = txtAno.Text; SituacaoVei = txtSituacao.Text; Placa = txtPlaca.Text; Pneu = txtPneu.Text; try { EditVei.EditarVei(Marca, Cor, KMAtual, Combustivel, Renavam, Chassi, Modelo, Ano, SituacaoVei, Placa, Pneu); Limpar(); } catch { } }