private bool validarPrioridad(int prioridad) { Consulta c = new Consulta(); try { DataTable objDtDatos = c.consultarCruceAfiliado(0); if (objDtDatos == null) return true; DataView d = new DataView(objDtDatos); d.RowFilter = "prioridad = " + prioridad; return d.ToTable().Rows.Count == 0; } catch (Exception ex) { throw ex; } }
private DataTable getDataTable() { Consulta c = new Consulta(); DataTable objDtDatos = null; try { objDtDatos = c.consultarCruceAfiliado(0); } catch (Exception ex) { Logger.generarLogError(ex.Message, new System.Diagnostics.StackFrame(true), ex); this.RadWindowManager1.RadAlert(Utilities.errorMessage(), 400, 200, Utilities.windowTitle(TypeMessage.error_message), null, Utilities.pathImageMessage(TypeMessage.error_message)); } return objDtDatos; }