예제 #1
0
        // GET: /Proposta/Create
        public ActionResult Create()
        {
            Seguranca.ValidaAcesso(6);
            ViewBag.IdBancoConta       = new SelectList(db.Bancos, "Id", "Nome");
            ViewBag.IdConvenio         = new SelectList(db.Convenios, "Id", "Nome");
            ViewBag.IdBanco            = new SelectList(db.Bancos, "Id", "Nome");
            ViewBag.IdTipoConta        = new SelectList(db.TiposConta, "Id", "Nome");
            ViewBag.IdUsuario          = new SelectList(db.Usuarios, "Id", "Login");
            ViewBag.IdUsuarioDigitacao = new SelectList(db.Usuarios, "Id", "Login");
            ViewBag.IdTipoTelefone     = new SelectList(db.TiposTelefone, "Id", "Nome");
            ViewBag.TiposTelefone      = db.TiposTelefone;
            ViewBag.Bancos             = db.Bancos;

            var p = new ViewModels.PropostaViewModel();

            return(View(p));
        }
예제 #2
0
        // GET: /Proposta/Create
        public ActionResult Create()
        {
            Seguranca.ValidaAcesso(6);
            ViewBag.IdBancoConta = new SelectList(db.Bancos, "Id", "Nome");
            ViewBag.IdConvenio = new SelectList(db.Convenios, "Id", "Nome");
            ViewBag.IdBanco = new SelectList(db.Bancos, "Id", "Nome");
            ViewBag.IdTipoConta = new SelectList(db.TiposConta, "Id", "Nome");
            ViewBag.IdUsuario = new SelectList(db.Usuarios, "Id", "Login");
            ViewBag.IdUsuarioDigitacao = new SelectList(db.Usuarios, "Id", "Login");
            ViewBag.IdTipoTelefone = new SelectList(db.TiposTelefone, "Id", "Nome");
            ViewBag.TiposTelefone = db.TiposTelefone;
            ViewBag.Bancos = db.Bancos;

            var p = new ViewModels.PropostaViewModel();
            return View(p);
        }