public void getPreQxyEstadoPreqx(int id) { SelectViewModel select = new SelectViewModel(); this.lstEstadosPreQx = new List <FiltroModel>(); this.lstEstadosPreQx = select.listaEstadosPreQx(); this.lstTipoAnestesia = new List <FiltroModel>(); this.lstTipoAnestesia = select.listaTipoAnestesia(); this.lstPreQx = new List <ListaPreQx>(); ICartaGarantiaService _service = new CartaGarantiaService(); this.lstPreQx = DTOToModel.listarPreQx(_service.preqxXcarta(id)); }
public void getProgramadorCartaEstadoOIqx(int id) { SelectViewModel select = new SelectViewModel(); this.quirurgicaModel = new OIQuirurgicaModel(); IOrdenIQxService _service = new OrdenIQxService(); var oiq = _service.getCartaOrden(id); this.quirurgicaModel = DTOToModel.getCartaOIQx(oiq); if (oiq.cirugias != null) { this.quirurgicaModel.Procedimientos = DTOToModel.filtroModel(oiq.cirugias); } this.lstPreQx = new List <ListaPreQx>(); ICartaGarantiaService _servicepreqx = new CartaGarantiaService(); var pre = _servicepreqx.preqxXcarta(id); if (pre.Count > 0) { this.lstPreQx = DTOToModel.listarPreQx(pre); } }