Ejemplo n.º 1
0
 private void btnPesquisaVei_Click(object sender, EventArgs e)
 {
     if (txtPlaca.Text != "   -")
     {
         string[] Dados = new string[10];
         Placa = txtPlaca.Text;
         ServiçoExibir SelecttVei = new ServiçoExibir();
         Dados = SelecttVei.SelectVei(Placa);
         txtCodVeiculo.Text  = Dados[0];
         txtMarca.Text       = Dados[1];
         txtCor.Text         = Dados[2];
         txtKMAtual.Text     = Dados[3];
         txtCombustivel.Text = Dados[4];
         txtRenavam.Text     = Dados[5];
         txtChassi.Text      = Dados[6];
         txtModelo.Text      = Dados[7];
         txtAno.Text         = Dados[8];
         txtSituacao.Text    = Dados[9];
         txtPneu.Text        = Dados[10];
     }
     else
     {
         MessageBox.Show("Ops, Digite uma Placa para Pesquisar");
     }
 }
Ejemplo n.º 2
0
        private void BtnPesqMoto_Click(object sender, EventArgs e)
        {
            ServiçoExibir ExibMoto = new ServiçoExibir();


            dataGridMoto.DataSource = ExibMoto.ExibirMoto();
        }
Ejemplo n.º 3
0
        private void CodMax()
        {
            tblNome = "tblClientes";
            txtNome = "CodCliente";
            ServiçoExibir SelecttMax = new ServiçoExibir();

            txtCodCliente.Text = Convert.ToString(SelecttMax.SelectMax(tblNome, txtNome));
        }
Ejemplo n.º 4
0
        private void CodMax()
        {
            tblNome = "tblMotorista";
            txtNome = "codMoto";
            ServiçoExibir SelecttMax = new ServiçoExibir();

            txtCodMoto.Text = Convert.ToString(SelecttMax.SelectMax(tblNome, txtNome));
        }
Ejemplo n.º 5
0
        private void CodMax()
        {
            tblNome = "tblViagens";
            txtNome = "CodViagem";
            ServiçoExibir SelecttMax = new ServiçoExibir();

            txtCodViagem.Text = Convert.ToString(SelecttMax.SelectMax(tblNome, txtNome));
        }
Ejemplo n.º 6
0
        private void CodMax()
        {
            tblNome = "tblLocacao";
            txtNome = "CodLocacao";
            ServiçoExibir SelecttMax = new ServiçoExibir();

            txtCodLoca.Text = Convert.ToString(SelecttMax.SelectMax(tblNome, txtNome));
        }
Ejemplo n.º 7
0
        private void Atualizar()
        {
            ServiçoExibir ExibSegMoto = new ServiçoExibir();

            dataGridSegMoto.DataSource       = ExibSegMoto.ExibirSegMoto();
            dataGridSegMoto.Columns[0].Width = 70;
            dataGridSegMoto.Columns[1].Width = 80;
            dataGridSegMoto.Columns[2].Width = 95;
            dataGridSegMoto.Columns[3].Width = 80;
            dataGridSegMoto.Columns[4].Width = 80;
        }
Ejemplo n.º 8
0
 private void btnPesqLoca_Click(object sender, EventArgs e)
 {
     if (txtCodLoca.Text != "")
     {
         string[] Dados = new string[6];
         CodLocacao = Convert.ToInt32(txtCodLoca.Text);
         ServiçoExibir SelecttLoca = new ServiçoExibir();
         Dados = SelecttLoca.SelectLoca(CodLocacao);
         txtCodCliente.Text    = Dados[0];
         txtDataLoca.Text      = Dados[1];
         txtDataDevolucao.Text = Dados[2];
         txtLocalRetirada.Text = Dados[3];
         txtQntLoca.Text       = Dados[4];
         txtValorLoca.Text     = Dados[5];
         btnEditLoca.Enabled   = true;
     }
     else
     {
         MessageBox.Show("Ops, Digite uma Codigo de Locação para Pesquisar");
     }
 }
Ejemplo n.º 9
0
 private void btnPesqSegMoto_Click(object sender, EventArgs e)
 {
     if (txtNApolice.Text != "")
     {
         string[] Dados = new string[7];
         NumApolice = Convert.ToInt32(txtNApolice.Text);
         ServiçoExibir SelecttSegMoto = new ServiçoExibir();
         Dados              = SelecttSegMoto.SelectSegMoto(NumApolice);
         txtCPFMoto.Text    = Dados[0];
         txtSeguradora.Text = Dados[1];
         txtCorretor.Text   = Dados[2];
         txtDataInicio.Text = Dados[3];
         txtDataVenc.Text   = Dados[4];
         txtValor.Text      = Dados[5];
         txtSituacao.Text   = Dados[6];
     }
     else
     {
         MessageBox.Show("Ops, Digite uma Numero da Apolice para Pesquisar");
         btnEditSegMoto.Enabled = true;
     }
 }
Ejemplo n.º 10
0
 private void btnPesquisar_Click(object sender, EventArgs e)
 {
     if (txtCodViagem.Text != "")
     {
         string[] Dados = new string[7];
         CodViagem = Convert.ToInt32(txtCodViagem.Text);
         ServiçoExibir SelecttViagem = new ServiçoExibir();
         Dados = SelecttViagem.SelectViagem(CodViagem);
         txtCodVeiculo.Text   = Dados[0];
         txtCodMotorista.Text = Dados[1];
         txtDataViagem.Text   = Dados[2];
         txtEngregArEm.Text   = Dados[3];
         txtEntregEem.Text    = Dados[4];
         txtMotivo.Text       = Dados[5];
         txtSituacao.Text     = Dados[6];
         btnEditar.Enabled    = true;
     }
     else
     {
         MessageBox.Show("Ops, Digite uma CODIGO VIAGEM para Pesquisar");
     }
 }
Ejemplo n.º 11
0
        private void BtnPesquisaMoto_Click(object sender, EventArgs e)
        {
            if (txtCPFMoto.Text != "         /")
            {
                string[] Dados = new string[7];
                cpf = txtCPFMoto.Text;
                ServiçoExibir SelecttMoto = new ServiçoExibir();
                Dados                = SelecttMoto.SelectMoto(cpf);
                txtNomeMoto.Text     = Dados[0];
                txtDataNascMoto.Text = Dados[1];
                txtRGMoto.Text       = Dados[2];
                txtCodMoto.Text      = Dados[3];
                txtCNHMoto.Text      = Dados[4];
                txtValCNHMoto.Text   = Dados[5];
                txtStatusMoto.Text   = Dados[6];

                btnEditMoto.Enabled = true;
            }
            else
            {
                MessageBox.Show("Ops, Digite um CPF para Pesquisar");
            }
        }
Ejemplo n.º 12
0
 private void btnPesquisar_Click(object sender, EventArgs e)
 {
     if (txtCPFouCNPJ.Text != "         /")
     {
         string[] Dados = new string[9];
         CPFouCNPJ = txtCPFouCNPJ.Text;
         ServiçoExibir SelecttCliente = new ServiçoExibir();
         Dados = SelecttCliente.SelectCliente(CPFouCNPJ);
         txtCodCliente.Text       = Dados[0];
         txtNomeCliente.Text      = Dados[1];
         txtEndeCliente.Text      = Dados[2];
         txtBairroCliente.Text    = Dados[3];
         txtEstadoCliente.Text    = Dados[4];
         txtCateCliente.Text      = Dados[5];
         txtValCCNH.Text          = Dados[6];
         txtValorPagoCliente.Text = Dados[7];
         txtStatusCliente.Text    = Dados[8];
     }
     else
     {
         MessageBox.Show("Ops, Digite um CPFouCNPJ para Pesquisar");
     }
 }
Ejemplo n.º 13
0
        private void Atualizar()
        {
            ServiçoExibir ExibLoca = new ServiçoExibir();

            dataGridLoca.DataSource = ExibLoca.ExibirLoca();
        }
Ejemplo n.º 14
0
        private void Atualizar()
        {
            ServiçoExibir ExibVei = new ServiçoExibir();

            dataGridVei.DataSource = ExibVei.ExibirVei();
        }
Ejemplo n.º 15
0
        private void Atualizar()
        {
            ServiçoExibir ExibiVia = new ServiçoExibir();

            dataGridViagem.DataSource = ExibiVia.ExibirViagem();
        }
Ejemplo n.º 16
0
        private void Atualizar()
        {
            ServiçoExibir ExibCliente = new ServiçoExibir();

            dataGridCliente.DataSource = ExibCliente.ExibirCliente();
        }
Ejemplo n.º 17
0
        private void Atualizar()
        {
            ServiçoExibir ExibMoto = new ServiçoExibir();

            dataGridMoto.DataSource = ExibMoto.ExibirMoto();
        }
Ejemplo n.º 18
0
        private void btnExibListaSegMoto_Click(object sender, EventArgs e)
        {
            ServiçoExibir ExibSegMoto = new ServiçoExibir();

            dataGridSegMoto.DataSource = ExibSegMoto.ExibirSegMoto();
        }