示例#1
0
 private void AbmRol_Load(object sender, EventArgs e)
 {
     try
     {
         ManipulacionComponentes.llenarComboBox(this.cmb_funcionalidad, "select fun_desc from PICO_Y_PALA.funcionalidad where fun_id <> 1", "fun_desc");
         this.txt_rol.Text           = this.rol.getNombre();
         this.chk_habilitado.Checked = this.rol.getHabilitado();
         ManipulacionComponentes.llenarListBox(this.lst_funcionalidades_a_asignar, ConfigurationManager.AppSettings["query.abm.rol.funcionalidades"].Replace("{0}", this.rol.getNombre()), "fun_desc");
         ManipulacionComponentes.llenarListBox(this.lst_funcionalidades_asignadas, ConfigurationManager.AppSettings["query.abm.rol.funcionalidades"].Replace("{0}", this.rol.getNombre()), "fun_desc");
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
         MessageBox.Show("Se ha producido un error al obtener las funcionalidades", "Error inesperado", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
 }