public ERespuesta SIGESU_PlanificacionLaboratorioActxIdPlanificacion(EPlanificacionLaboratorio entidadPlanificacionLaboratorio) { try { using (var db = new SIGESUEntities()) { var result = db.SIGESU_PlanificacionLaboratorioActxIdPlanificacion( 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 ERespuesta SIGESU_PlanificacionLaboratorioActxIdPlanificacion(EPlanificacionLaboratorio entidadPlanificacionLaboratorio) { try { return(objPlanificacionLaboratorio.SIGESU_PlanificacionLaboratorioActxIdPlanificacion(entidadPlanificacionLaboratorio)); } 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 ActionResult PlanificacionImprimir(int IdPlanificacionLaboratorio) { try { EServidor entidadServidor = new EServidor(); entidadServidor = objServidor.SIGESU_ServidorSel(); EPlanificacionLaboratorio entidadPlanificacionLaboratorio = objPlanificacionLaboratorio.SIGESU_PlanificacionLaboratorioSelxIdPlanificacionLaboratorio(IdPlanificacionLaboratorio); entidadPlanificacionLaboratorio.FechaImpresion = entidadServidor.FechaHoraActual; ERespuesta objRespuesta = objPlanificacionLaboratorio.SIGESU_PlanificacionLaboratorioActxIdPlanificacionxImpresion(entidadPlanificacionLaboratorio); return(Json(objRespuesta)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public ActionResult PlanificacionLaboratorioActResultadoAdverso(int IdPlanificacionLaboratorio, string Resultado) { try { EServidor entidadServidor = new EServidor(); entidadServidor = objServidor.SIGESU_ServidorSel(); EPlanificacionLaboratorio entidadPlanificacionLaboratorio = objPlanificacionLaboratorio.SIGESU_PlanificacionLaboratorioSelxIdPlanificacionLaboratorio(IdPlanificacionLaboratorio); entidadPlanificacionLaboratorio.ResultadoAdverso = Resultado; entidadPlanificacionLaboratorio.FechaeEdicion = entidadServidor.FechaHoraActual; ERespuesta objRespuesta = objPlanificacionLaboratorio.SIGESU_PlanificacionLaboratorioAct(entidadPlanificacionLaboratorio); return(Json(objRespuesta)); } catch (Exception ex) { throw new Exception(ex.Message); } }