Example #1
0
        public Plato findbykey(params object[] key)
        {
            Plato pl = (Plato)ManagerDB <Plato> .findbyKey(key);

            this.Codigo  = pl.Codigo;
            this.Detalle = pl.Detalle;
            this.Nombre  = pl.Nombre;
            this.IsNew   = false;
            return(this);
        }
Example #2
0
        public PlatoDieta findbykey(params object[] key)
        {
            PlatoDieta pd = (PlatoDieta)ManagerDB <PlatoDieta> .findbyKey(key);

            this.CodigoDieta = pd.CodigoDieta;
            this.CodigoPlato = pd.CodigoPlato;
            this.Porcion     = pd.Porcion;
            this.IsNew       = false;
            return(this);
        }
Example #3
0
        public PlatoIngrediente findbykey(params object[] key)
        {
            PlatoIngrediente pi = (PlatoIngrediente)ManagerDB <PlatoIngrediente> .findbyKey(key);

            this.Cantidad          = pi.Cantidad;
            this.CodigoIngrediente = pi.CodigoIngrediente;
            this.CodigoPlato       = pi.CodigoPlato;
            this.IsNew             = false;
            return(this);
        }
Example #4
0
        public Ingrediente findbykey(params object[] key)
        {
            Ingrediente i = (Ingrediente)ManagerDB <Ingrediente> .findbyKey(key);

            this.Codigo       = i.Codigo;
            this.Nombre       = i.Nombre;
            this.UnidadMedida = i.UnidadMedida;
            this.IsNew        = false;
            return(this);
        }
Example #5
0
        public PacienteControl findbykey(params object[] key)
        {
            PacienteControl pc = (PacienteControl)ManagerDB <PacienteControl> .findbyKey(key);

            this.DniPaciente = pc.DniPaciente;
            this.Fecha       = pc.Fecha;
            this.Peso        = pc.Peso;
            this.IsNew       = false;
            return(this);
        }
        public PacienteProfesional findbykey(params object[] key)
        {
            PacienteProfesional pf = (PacienteProfesional)ManagerDB <PacienteProfesional> .findbyKey(key);

            this.DniMedico   = pf.DniMedico;
            this.DniPaciente = pf.DniPaciente;
            this.FechaDesde  = pf.FechaDesde;
            this.FechaHasta  = pf.FechaHasta;
            this.IsNew       = false;
            return(this);
        }
Example #7
0
        public PlatoPaciente findbykey(params object[] key)
        {
            PlatoPaciente pp = (PlatoPaciente)ManagerDB <PlatoPaciente> .findbyKey(key);

            this.Cantidad    = pp.Cantidad;
            this.CodigoPlato = pp.CodigoPlato;
            this.DniPaciente = pp.DniPaciente;
            this.Fecha       = pp.Fecha;
            this.IsNew       = false;
            return(this);
        }
Example #8
0
        public DietaPaciente findbykey(params object[] key)
        {
            DietaPaciente dp = (DietaPaciente)ManagerDB <DietaPaciente> .findbyKey(key);

            this.Codigo      = dp.Codigo;
            this.CodigoDieta = dp.CodigoDieta;
            this.DniPaciente = dp.DniPaciente;
            this.Fecha       = dp.Fecha;
            this.FechaFin    = dp.FechaFin;
            this.IsNew       = false;
            return(this);
        }
Example #9
0
        public Dieta findbykey(params object[] key)
        {
            Dieta d = (Dieta)ManagerDB <Dieta> .findbyKey(key);

            this.Autor       = d.Autor;
            this.Codigo      = d.Codigo;
            this.Descripcion = d.Descripcion;
            this.FechaAlta   = d.FechaAlta;
            this.Nombre      = d.Nombre;
            this.IsNew       = false;
            return(this);
        }
Example #10
0
        public Profesional findbykey(params object[] key)
        {
            Profesional p = (Profesional)ManagerDB <Profesional> .findbyKey(key);

            if (p != null)
            {
                this.Nombre          = p.Nombre;
                this.Apellido        = p.Apellido;
                this.Domicilio       = p.Domicilio;
                this.Dni             = p.Dni;
                this.FechaAlta       = p.FechaAlta;
                this.Telefono        = p.Telefono;
                this.EsMedico        = p.EsMedico;
                this.EsNutricionista = p.EsNutricionista;
                this.IsNew           = false;
                return(this);
            }
            else
            {
                return(null);
            }
        }
Example #11
0
        public Paciente findbykey(params object[] key)
        {
            Paciente p = (Paciente)ManagerDB <Paciente> .findbyKey(key);

            if (p != null)
            {
                this.Nombre      = p.Nombre;
                this.Apellido    = p.Apellido;
                this.Domicilio   = p.Domicilio;
                this.Dni         = p.Dni;
                this.FechaAlta   = p.FechaAlta;
                this.FechaNac    = p.FechaNac;
                this.Telefono    = p.Telefono;
                this.PesoInicial = p.PesoInicial;
                this.Talla       = p.Talla;
                this.IsNew       = false;
                return(this);
            }
            else
            {
                return(null);
            }
        }
Example #12
0
 public List <PacienteControl> findAll(string criterio)
 {
     return(ManagerDB <PacienteControl> .findAll(criterio));
 }
Example #13
0
 public List <Ingrediente> findAll(string criterio)
 {
     return(ManagerDB <Ingrediente> .findAll(criterio));
 }
Example #14
0
 public bool saveObj()
 {
     return(ManagerDB <DietaPaciente> .saveObject(this));
 }
Example #15
0
 public List <DietaPaciente> findAll(string criterio)
 {
     return(ManagerDB <DietaPaciente> .findAll(criterio));
 }
Example #16
0
 public bool saveObj()
 {
     return(ManagerDB <Profesional> .saveObject(this));
 }
Example #17
0
 public bool saveObj()
 {
     return(ManagerDB <Ingrediente> .saveObject(this));
 }
Example #18
0
 public List <Profesional> findAll(string criterio)
 {
     return(ManagerDB <Profesional> .findAll(criterio));
 }
Example #19
0
 public List <Plato> findAll(string criterio)
 {
     return(ManagerDB <Plato> .findAll(criterio));
 }
Example #20
0
 public bool saveObj()
 {
     return(ManagerDB <PacienteControl> .saveObject(this));
 }
Example #21
0
 public bool saveObj()
 {
     return(ManagerDB <Plato> .saveObject(this));
 }