public ERespuesta SIGESU_PlanificacionAct(EPlanificacion entidadPlanificacion) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionAct( entidadPlanificacion.IdPlanificacion, entidadPlanificacion.NumeroPlanificacion, entidadPlanificacion.FechaInicio, entidadPlanificacion.FechaFin, entidadPlanificacion.Remuestreo, entidadPlanificacion.Observacion, entidadPlanificacion.Estado, entidadPlanificacion.IdEspecialista, entidadPlanificacion.IdLaboratorio, entidadPlanificacion.IdPlanificacionOrigen, entidadPlanificacion.IdSucursalAlmacen ).FirstOrDefault(); ERespuesta objRespuesta = Mapper.Map <ERespuesta>(result); return(objRespuesta); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public ERespuesta SIGESU_PlanificacionLaboratorioActxIdPlanificacionxImpresion(EPlanificacionLaboratorio entidadPlanificacionLaboratorio) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionLaboratorioActxIdPlanificacionxImpresion( entidadPlanificacionLaboratorio.IdPlanificacion, entidadPlanificacionLaboratorio.NumeroVeces, entidadPlanificacionLaboratorio.Resultado, entidadPlanificacionLaboratorio.FechaCheckin, entidadPlanificacionLaboratorio.FechaeEdicion, entidadPlanificacionLaboratorio.FechaValidacion, entidadPlanificacionLaboratorio.FechaImpresion, entidadPlanificacionLaboratorio.AplicaRemuestreo, entidadPlanificacionLaboratorio.ResultadoAdverso ).FirstOrDefault(); ERespuesta objRespuesta = Mapper.Map <ERespuesta>(result); return(objRespuesta); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public EPlanificacion SIGESU_PlanificacionSelxIdPlanificacion(int IdPlanificacion) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionSelxIdPlanificacion(IdPlanificacion).FirstOrDefault(); EPlanificacion objPlanifacion = Mapper.Map <EPlanificacion>(result); return(objPlanifacion); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public ERespuesta SIGESU_PlanificacionIns(string xml) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionIns(xml).FirstOrDefault(); ERespuesta objRespuesta = Mapper.Map <ERespuesta>(result); return(objRespuesta); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public Entidades.DTO.EProducto SIGESU_ProductoSelAtributosxIdProducto(int IdProducto) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_ProductoSelAtributosxIdProducto(IdProducto).FirstOrDefault(); EProducto objProducto = Mapper.Map <EProducto>(result); return(objProducto); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public EServidor SIGESU_ServidorSel() { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_ServidorSel().FirstOrDefault(); EServidor objServidor = Mapper.Map <EServidor>(result); return(objServidor); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public EPlanificacionLaboratorio SIGESU_PlanificacionLaboratorioSelxIdPlanificacionLaboratorio(int IdPlanificacionLaboratorio) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionLaboratorioSelxIdPlanificacionLaboratorio(IdPlanificacionLaboratorio).FirstOrDefault(); EPlanificacionLaboratorio listaPlanificacionLaboratorio = Mapper.Map <EPlanificacionLaboratorio>(result); return(listaPlanificacionLaboratorio); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <EPlanificacionLaboratorio> SIGESU_PlanificacionLaboratorioSel(int?IdPlanificacion) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionLaboratorioSel(IdPlanificacion); List <EPlanificacionLaboratorio> listaPlanificacionLaboratorio = Mapper.Map <List <EPlanificacionLaboratorio> >(result); return(listaPlanificacionLaboratorio); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <EPlanificacion> SIGESU_PlanificacionSel(string FechaInicio, string FechaFin) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionSel(FechaInicio, FechaFin).ToList(); List <EPlanificacion> listaPlanificacion = Mapper.Map <List <EPlanificacion> >(result); var data = listaPlanificacion.ToList(); return(data); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <Entidades.DTO.EProducto> SIGESU_ProductoSelTodo() { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_ProductoSelTodo().Where(t => t.Estado == Constantes.EstadoProducto.activo).ToList(); List <Entidades.DTO.EProducto> listaProducto = Mapper.Map <List <Entidades.DTO.EProducto> >(result); var data = listaProducto.ToList(); return(data); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <ESurcursalAlmacen> SIGESU_SucursalAlmacenSelTodo() { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_SucursalAlmacenSelTodo().Where(t => t.Estado == Constantes.EstadoProducto.activo.ToString()).ToList(); List <ESurcursalAlmacen> listaSucursalAlmacen = Mapper.Map <List <ESurcursalAlmacen> >(result); var data = listaSucursalAlmacen.ToList(); return(data); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <ELaboratorio> SIGESU_LaboratorioSelTodo() { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_LaboratorioSelTodo().ToList(); List <ELaboratorio> listaLaboratorio = Mapper.Map <List <ELaboratorio> >(result); var data = listaLaboratorio.ToList(); return(data); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <EEspecialista> SIGESU_EspecialistaSelTodo() { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_EspecialistaSelTodo().ToList(); List <EEspecialista> listaEspecialista = Mapper.Map <List <EEspecialista> >(result); var data = listaEspecialista.ToList(); return(data); } } catch (Exception ex) { throw new Exception(ex.Message); } }