Пример #1
0
        public bool Delete(ExamenLaboratorio objToProcess)
        {
            ExamenLaboratorioDao examenLaboratorioDao = new ExamenLaboratorioDao();
            bool flag = examenLaboratorioDao.Delete(objToProcess);

            this.error = examenLaboratorioDao.Error;
            return(flag);
        }
Пример #2
0
        public bool Save(ExamenLaboratorio objEnt)
        {
            ExamenLaboratorioDao examenLaboratorioDao = new ExamenLaboratorioDao();
            bool flag = objEnt.Id == int.MinValue ? examenLaboratorioDao.Create(objEnt) : examenLaboratorioDao.Update(objEnt);

            this.error = examenLaboratorioDao.Error;
            return(flag);
        }
Пример #3
0
        public ExamenLaboratorio Load(int id)
        {
            ExamenLaboratorioDao examenLaboratorioDao = new ExamenLaboratorioDao();
            ExamenLaboratorio    examenLaboratorio    = examenLaboratorioDao.Load(id);

            this.error = examenLaboratorioDao.Error;
            return(examenLaboratorio);
        }
Пример #4
0
        public List <ExamenLaboratorio> GetExamenLaboratorios(
            string nombre,
            bool esExterno,
            bool showAllExterno,
            bool requiereVenopuncion,
            bool showAllRequiereVenopuncion,
            bool requiereConsentimiento,
            bool showAllRequiereConsentimiento,
            bool activo,
            bool showAllActivo)
        {
            ExamenLaboratorioDao     examenLaboratorioDao = new ExamenLaboratorioDao();
            List <ExamenLaboratorio> examenLaboratorios   = examenLaboratorioDao.GetExamenLaboratorios(nombre, esExterno, showAllExterno, requiereVenopuncion, showAllRequiereVenopuncion, requiereConsentimiento, showAllRequiereConsentimiento, activo, showAllActivo);

            this.error = examenLaboratorioDao.Error;
            return(examenLaboratorios);
        }
Пример #5
0
        public DataTable GetList(
            string nombre,
            bool esExterno,
            bool showAllExterno,
            bool requiereVenopuncion,
            bool showAllRequiereVenopuncion,
            bool requiereConsentimiento,
            bool showAllRequiereConsentimiento,
            bool activo,
            bool showAllActivo)
        {
            ExamenLaboratorioDao examenLaboratorioDao = new ExamenLaboratorioDao();
            DataTable            list = examenLaboratorioDao.GetList(nombre, esExterno, showAllExterno, requiereVenopuncion, showAllRequiereVenopuncion, requiereConsentimiento, showAllRequiereConsentimiento, activo, showAllActivo);

            this.error = examenLaboratorioDao.Error;
            return(list);
        }