예제 #1
0
        private void PreencherComboBoxes()
        {
            var cliente = new ClientesPFDao().GetAll()
                          .Where(c => c.IsAtivo)
                          .ToList();

            var veiculo = new VeiculosDao().GetAll()
                          //.Where(v => v.IsAtivo)
                          .ToList();

            comboCliente.DataSource    = cliente;
            comboCliente.DisplayMember = "Nome";

            comboCarro.DataSource    = veiculo;
            comboCarro.DisplayMember = "Placa";
        }
예제 #2
0
        // GET: Motoristas
        public ActionResult Index()
        {
            var motoristas = new ClientesPFDao().GetMotoristas();

            return(View(motoristas));
        }
예제 #3
0
        // GET: Motoristas/Delete/5
        public ActionResult Deletar(int id)
        {
            var motorista = new ClientesPFDao().GetDetalhesMotorista(id);

            return(View(motorista));
        }
예제 #4
0
 private void RadioButton3_CheckedChanged(object sender, EventArgs e)
 {
     var cliente       = new ClientesPFDao();
     var listaClientes = cliente.GetAll();
 }