private bool consultar() { try { if (!validar("consultar")) { return(false); } clsRolesOPE objMatri = new clsRolesOPE(strNombreAplica); objMatri.Documento = this.txtIdentificacion.Text.Trim(); objMatri.GvGen = this.gvMatricula; if (!objMatri.consultarOpe()) { mostrarMsj(objMatri.Error); objMatri = null; return(false); } mostrarMsj(objMatri.Mensaje); objMatri = null; inhabilitarControles("consultar"); return(true); } catch (Exception ex) { mostrarMsj(ex.Message); return(false); } }
private void agregarRol() { try { if (!validar("agregarRol")) { return; } clsRolesOPE objMatri = new clsRolesOPE(strNombreAplica); objMatri.Documento = this.txtIdentificacion.Text.Trim(); objMatri.IdRol = Convert.ToInt32(this.ddlRol.SelectedValue); objMatri.GvGen = this.gvMatricula; if (!objMatri.registrarOpe()) { mostrarMsj(objMatri.Error); objMatri = null; return; } mostrarMsj(objMatri.Mensaje); objMatri = null; inhabilitarControles("agregarRol"); } catch (Exception ex) { mostrarMsj(ex.Message); } }
private void llenarDropDown(DropDownList ddlDrop) { try { clsRolesOPE objOpe = new clsRolesOPE(strNombreAplica); objOpe.DdlGen = ddlDrop; if (!objOpe.llenarDrop()) { mostrarMsj(objOpe.Error); return; } } catch (Exception ex) { mostrarMsj(ex.Message); } }