コード例 #1
0
        public void getPacientePSxApellidos(string apellidos)
        {
            IConsultaPlanSaludService wsplan = new ConsultaPlanSaludService();

            this.pacientes = new List <PacienteModel>();
            this.pacientes = DTOToModel.listPaciente(wsplan.getAfiliadoPorApellidos(apellidos));
        }
コード例 #2
0
        public void buscarPacienteOIQ(string tipoDoc, string busqueda)
        {
            IPacienteService pacservice = new PacienteService();

            this.pacientes = new List <PacienteModel>();
            this.pacientes = DTOToModel.listPaciente
                                 (pacservice.getPacienteAll(busqueda, tipoDoc));
        }
コード例 #3
0
        public void buscarPaciente(string hcd, string nombres, string apellido1, string apellido2)
        {
            IPacienteService pacservice = new PacienteService();

            this.pacientes = new List <PacienteModel>();
            string materno = apellido2 ?? "";
            string nombre  = nombres ?? "";

            if (pacservice.getPaciente(hcd, nombre, apellido1, materno) == null)
            {
                mensajeError = "Hubo un problema, consute con el administrador";
            }
            else
            {
                this.pacientes = DTOToModel.listPaciente(pacservice.getPaciente(hcd, nombre, apellido1, materno).ToList());
            }
        }