public JsonResult buscarOrdenesMedicas(string dni) { BLOrden bl = new BLOrden(); List <ELOrdenMedica> lstOrdenMedica = bl.BL_ConsultarOM(dni); return(Json(lstOrdenMedica, JsonRequestBehavior.AllowGet)); }
public JsonResult registrarOrden(int habreposo, int nOrdenMedId) { BLOrden bl = new BLOrden(); string res = bl.BL_registrarOrden(habreposo, nOrdenMedId); return(Json(res, JsonRequestBehavior.AllowGet)); }
public JsonResult ListadoOrden(string documento, int estado) { BLOrden bl = new BLOrden(); List <ELOrdenIntervencion> lstOrdenIntervencion = bl.BL_ConsultarOI(documento, estado); return(Json(lstOrdenIntervencion, JsonRequestBehavior.AllowGet)); }
//ARB : Registra estado Post Operatorio del paciente public JsonResult registrarPostOpe(int nHistoriaClinica, string cSubjetivo, string cApreciacion) { BLOrden bl = new BLOrden(); string res = bl.BL_Insertar_SOAP(nHistoriaClinica, cSubjetivo, cApreciacion); return(Json(res, JsonRequestBehavior.AllowGet)); }
public JsonResult buscarPacienteHistoria(string hc) { BLOrden bl = new BLOrden(); ELPaciente objBuscarPaciente = bl.BL_BuscarPaciente("", hc); return(Json(objBuscarPaciente, JsonRequestBehavior.AllowGet)); }
private void button6_Click(object sender, EventArgs e) { BLOrden enlaceOrden = new BLOrden(); tabla.Clear(); ordenes = enlaceOrden.ObtenerOrdenesTerminadas(dateTimePicker.Value); AddOrdenesToTB(ordenes); }
public JsonResult buscarPaciente(string dni) { BLOrden bl = new BLOrden(); ELPaciente objBuscarPaciente = bl.BL_BuscarPaciente(dni, ""); return(Json(objBuscarPaciente, JsonRequestBehavior.AllowGet)); }
private void BtnAbrir_Click(object sender, EventArgs e) { BLOrden enlaceOrden = new BLOrden(); tabla.Rows.Clear(); int mes = ((KeyValuePair <int, string>)comboMes.SelectedItem).Key; int ano = Convert.ToInt32(campAno.Text); int area = ((KeyValuePair <int, string>)comboArea.SelectedItem).Key; List <int> contadorByTarifas = new List <int>(); foreach (Paquete i in Tarifario.GetInstance().Paquetes.Values) { if (area == i.IdArea)// { contadorByTarifas.Add(i.IdData); } } Dictionary <int, ReporteMensual> reporte = enlaceOrden.ObtenerReporteMensual(area, ano, mes); double[,] general = new double[4, 3]; foreach (int idTarifa in contadorByTarifas) { DataRow row = tabla.NewRow(); row[0] = Tarifario.GetInstance().Paquetes[idTarifa].Nombre; row[1] = (reporte[0].ExisteId(idTarifa)? reporte[0].Detalle[idTarifa].Cantidad : 0); //contador P row[2] = (reporte[0].ExisteId(idTarifa) ? reporte[0].Detalle[idTarifa].Total : 0.00m); //Total P row[3] = (reporte[0].ExisteId(idTarifa) ? reporte[0].Detalle[idTarifa].Acumulado : 0) + (int)row[1]; //acumulador P general[0, 0] += (int)row[1]; general[0, 1] += (double)row[2]; general[0, 2] += (int)row[3]; row[4] = (reporte[1].ExisteId(idTarifa) ? reporte[1].Detalle[idTarifa].Cantidad : 0); // Contador S row[5] = (reporte[1].ExisteId(idTarifa) ? reporte[1].Detalle[idTarifa].Acumulado : 0) + (int)row[4]; //acumulador S general[1, 0] += (int)row[4]; general[1, 1] += 0; general[1, 2] += (int)row[5]; row[6] = (reporte[2].ExisteId(idTarifa) ? reporte[2].Detalle[idTarifa].Cantidad : 0); //Contador Ex row[7] = (reporte[2].ExisteId(idTarifa) ? reporte[2].Detalle[idTarifa].Acumulado : 0) + (int)row[6]; //acumulador Ex general[2, 0] += (int)row[6]; general[2, 1] += 0; general[2, 2] += (int)row[7]; row[8] = (int)row[1] + (int)row[4] + (int)row[6]; row[9] = (int)row[3] + (int)row[5] + (int)row[7]; general[3, 0] += (int)row[8]; general[3, 1] += (general[0, 1] + general[1, 1] + general[2, 1]); general[3, 2] += (int)row[9]; tabla.Rows.Add(row); } campCantPar.Text = general[0, 0].ToString(); campEfec.Text = String.Format("{0:0.00}", general[0, 1]); campAcuPar.Text = general[0, 2].ToString(); campCantSis.Text = general[1, 0].ToString(); campAcuSis.Text = general[1, 2].ToString(); campCantExo.Text = general[2, 0].ToString(); campAcuExo.Text = general[2, 2].ToString(); campCantTotal.Text = general[3, 0].ToString(); campEfecTotal.Text = String.Format("{0:0.00}", general[3, 1]); campAcumTotal.Text = general[3, 2].ToString(); }