Inheritance: System.Data.Objects.DataClasses.EntityObject
示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the evoluciones EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToevoluciones(evolucione evolucione)
 {
     base.AddObject("evoluciones", evolucione);
 }
示例#2
0
 /// <summary>
 /// Create a new evolucione object.
 /// </summary>
 /// <param name="evaluador">Initial value of the evaluador property.</param>
 /// <param name="expediente">Initial value of the expediente property.</param>
 /// <param name="fecha">Initial value of the fecha property.</param>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="notas">Initial value of the notas property.</param>
 /// <param name="prefijo">Initial value of the prefijo property.</param>
 public static evolucione Createevolucione(global::System.String evaluador, global::System.Int64 expediente, global::System.DateTime fecha, global::System.Decimal id, global::System.String notas, global::System.Int32 prefijo)
 {
     evolucione evolucione = new evolucione();
     evolucione.evaluador = evaluador;
     evolucione.expediente = expediente;
     evolucione.fecha = fecha;
     evolucione.id = id;
     evolucione.notas = notas;
     evolucione.prefijo = prefijo;
     return evolucione;
 }
 /// <summary>
 /// Create a new evolucione object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="fecha">Initial value of the fecha property.</param>
 /// <param name="prefijo">Initial value of the prefijo property.</param>
 /// <param name="expediente">Initial value of the expediente property.</param>
 /// <param name="evaluador">Initial value of the evaluador property.</param>
 /// <param name="notas">Initial value of the notas property.</param>
 /// <param name="id_procedencia">Initial value of the id_procedencia property.</param>
 /// <param name="id_escolaridad">Initial value of the id_escolaridad property.</param>
 /// <param name="id_ocupacion">Initial value of the id_ocupacion property.</param>
 /// <param name="id_clasificacion_paciente">Initial value of the id_clasificacion_paciente property.</param>
 /// <param name="id_condicion">Initial value of the id_condicion property.</param>
 /// <param name="id_tipo_daño">Initial value of the id_tipo_daño property.</param>
 /// <param name="id_ayudas_tecnicas">Initial value of the id_ayudas_tecnicas property.</param>
 /// <param name="id_estado_alta">Initial value of the id_estado_alta property.</param>
 /// <param name="id_productividad">Initial value of the id_productividad property.</param>
 public static evolucione Createevolucione(global::System.Decimal id, global::System.DateTime fecha, global::System.Int32 prefijo, global::System.Int64 expediente, global::System.String evaluador, global::System.String notas, global::System.String id_procedencia, global::System.Int64 id_escolaridad, global::System.Int64 id_ocupacion, global::System.Int64 id_clasificacion_paciente, global::System.String id_condicion, global::System.Int64 id_tipo_daño, global::System.Int64 id_ayudas_tecnicas, global::System.Int64 id_estado_alta, global::System.Int64 id_productividad)
 {
     evolucione evolucione = new evolucione();
     evolucione.id = id;
     evolucione.fecha = fecha;
     evolucione.prefijo = prefijo;
     evolucione.expediente = expediente;
     evolucione.evaluador = evaluador;
     evolucione.notas = notas;
     evolucione.id_procedencia = id_procedencia;
     evolucione.id_escolaridad = id_escolaridad;
     evolucione.id_ocupacion = id_ocupacion;
     evolucione.id_clasificacion_paciente = id_clasificacion_paciente;
     evolucione.id_condicion = id_condicion;
     evolucione.id_tipo_daño = id_tipo_daño;
     evolucione.id_ayudas_tecnicas = id_ayudas_tecnicas;
     evolucione.id_estado_alta = id_estado_alta;
     evolucione.id_productividad = id_productividad;
     return evolucione;
 }
        public void GuardarSeguimientoPacientes(int id, int prefix, int numexp, string doctor, string patologia, string observacion,
                                                string clasifi,string grado,string ocupacion,string condicion,string referencia,
                                                string tipoDanio, string ayTec,string funEstructura,string Eteolo,string procedencia,
                                                int TDAnios,int TDMeses,int TDDias, int TSAnios,int TSMeses,int TSDias, string actParticipacion)
        {

            try
            {
                int idpatologia = GetPatologiasId(patologia);
                int idClass = GetClasificacionId(clasifi);
                int idGrado = GetGradoId(grado);
                int idOcupacion = GetOcupacionId(ocupacion);
                string idCondicion = GetCondicionId(condicion);
                string idProcedencia = GetProcedenciaId(procedencia);
                int idTipoDanio = GetTipoDanioId(tipoDanio);
                int idAyudaTecnica = GetAyudaTecnicaId(ayTec);

                DateTime date = DateTime.Parse(fecha);
                DataAccess.evolucione evo = new DataAccess.evolucione();

                evo.id = id;
                evo.fecha = date;
                evo.prefijo = prefix;
                evo.expediente = numexp;
                evo.id_diagnostico = idpatologia;
                evo.evaluador = doctor;
                evo.notas = observacion;
                evo.id_clasificacion_paciente = idClass;
                evo.id_escolaridad = idGrado;
                evo.id_ocupacion = idOcupacion;
                evo.id_tipo_daño = idTipoDanio;
                evo.id_ayudas_tecnicas = idAyudaTecnica;
                evo.funcion_estructura = funEstructura;
                evo.actividades_participacion = actParticipacion;
                evo.eteologia = Eteolo;

                // QUE ONDAS CON ESTO
                evo.id_condicion = idCondicion;
                // FALTA PROCEDENCIA
                evo.id_procedencia = idProcedencia;
                
                evo.años_tiempo_discapacidad = (long)TDAnios;
                evo.meses_tiempo_discapacidad = (long)TDMeses;
                evo.dias_tiempo_discapacidad = (long)TDDias;

                evo.dias_TSTDL = (long)TSDias;
                evo.meses_TSTDL = (long)TSMeses;
                evo.años_TSTDL = (long)TSAnios;
                


                entities.evoluciones.AddObject(evo);
                entities.SaveChanges();
            }
            catch (Exception err)
            {
                throw new Exception(err.ToString() + "--SeguimientoPacientes.cs / GuardarSeguimientoPacientes()");
            }
        }
        public string NombrePaciente(string numexp) {

            long numexpe = Convert.ToInt64(numexp);

            var query = (from p in entities.pacientes
                         where p.expediente == numexpe
                         select p.nombres).First();

            DataAccess.evolucione evo = new DataAccess.evolucione();

            return query.ToString();
        
        }
示例#6
0
        public void GuardarSeguimientoPacientes(int id, int prefix, int numexp, string doctor, string patologia, string observacion)
        {

            try
            {
                int idpatologia = GetPatologiasId(patologia);
                DateTime date = DateTime.Parse(fecha);
                DataAccess.evolucione evo = new DataAccess.evolucione();

                evo.id = id;
                evo.fecha = date;
                evo.prefijo = prefix;
                evo.expediente = numexp;
                evo.id_diagnostico = idpatologia;
                evo.evaluador = doctor;
                evo.notas = observacion;

                entities.evoluciones.AddObject(evo);
                entities.SaveChanges();

            }
            catch (Exception err)
            {
                throw new Exception(err.ToString() + "--SeguimientoPacientes.cs / GuardarSeguimientoPacientes()");
            }
        }