Пример #1
0
        private void btnCadSegMoto_Click(object sender, EventArgs e)
        {
            ServiçoCadastros CadSegMoto = new ServiçoCadastros();

            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
            {
                CadSegMoto.CadastrarSegMoto(NumApolice, CPFMoto, Seguradora, Corretor, DataInicioSM, DataVencSM, ValorSM, SituacaoSM);
            }
            catch { }
        }