コード例 #1
0
 public override void OnBeginIndex()
 {
     using (var tipoIdentificacionService = new TipoIdentificacionService())
     {
         ViewBag.TipoIdentificacionService = new SelectList(tipoIdentificacionService.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "DurCit").ToList(), "Id", "Descripcion", null);
     }
 }
コード例 #2
0
 public PersonasController()
 {
     TipoIdentificacionService = new TipoIdentificacionService();
     ProvinciaService          = new ProvinciaService();
     CantoneService            = new CantoneService();
     EntityService             = new PersonaService();
     Title = "Personas";
 }
コード例 #3
0
        public override void OnBeginIndex()
        {
            var duracionCitaMin = new TipoIdentificacionService(EntityService.UnitOfWork);

            ViewBag.AppointmentLenght = new SelectList(duracionCitaMin.Where(x => x.SubTipoIdentificacion.Codigo == "DurCitMin").ToList(), "Codigo", "Descripcion");
            ViewBag.TipoCitaId        = new SelectList(duracionCitaMin.Where(x => x.SubTipoIdentificacion.Codigo == "TipCit").ToList(), "Id", "Descripcion");
            ViewBag.EstadoCitaId      = new SelectList(duracionCitaMin.Where(x => x.SubTipoIdentificacion.Codigo == "EstCit").ToList(), "Id", "Descripcion");
        }
コード例 #4
0
 public AppointmentController()
 {
     Title                     = "Agendas";
     PersonaService            = new PersonaService();
     horarioService            = new HorarioService();
     EmpresaService            = new EmpresaService();
     UsuarioService            = new UsuarioService();
     TipoIdentificacionService = new TipoIdentificacionService();
     agendaService             = new AgendaService();
     EntityService             = new AppointmentService();
 }
コード例 #5
0
        private void Listas(PersonasViewModel model)
        {
            ViewBag.ProvinciassId = new SelectList(new ProvinciaService(EntityService.UnitOfWork).GetAll().ToList(), "Id", "Descripcion", model.ProvinciasId);
            ViewBag.CantonessId   = new SelectList(new CantoneService(EntityService.UnitOfWork).GetAll().ToList(), "Id", "Descripcion", model.CantonesId);

            var tipoDocumento = new TipoIdentificacionService(EntityService.UnitOfWork);

            ViewBag.TipoIdentificaciones = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "DocIde").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.TipoIdentificacionId);
            ViewBag.TipoSangre           = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "TipSan").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.TipoSangreId);
            ViewBag.SexoIds      = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "Sex").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.SexoId);
            ViewBag.EstadoCivil  = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "EstCiv").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.EstadoCivilId);
            ViewBag.TipoPaciente = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "TipPac").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.TipoPacienteId);
            ViewBag.SeguroMedico = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "SegMed").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.SeguroMedicoId);
            ViewBag.TipoPariente = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "TipoPar").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.TipoParienteId);
            ViewBag.Ocupacion    = new SelectList(tipoDocumento.GetAll().Where(x => x.SubTipoIdentificacion.Codigo == "Ocu").OrderBy(x => x.Codigo).ToList(), "Id", "Descripcion", model.OcupacionId);
        }
コード例 #6
0
 public TipoIdentificacionController()
 {
     SubTipoIdentificacionService = new SubTipoIdentificacionService();
     EntityService = new TipoIdentificacionService();
     Title         = "Tipo Identificación";
 }
コード例 #7
0
ファイル: BaseApiController.cs プロジェクト: maurizauns/tesis
 public BaseApiController(TipoIdentificacionService tipoIdentificacionService)
 {
     _tipoIdentificacionService = tipoIdentificacionService;
 }