Beispiel #1
0
        public DefinicionRol()
        {
            this.funcionalidadesAgregadas = new List <String>();

            InitializeComponent();
            dao = new DAORoles();
            this.button1.Text = "Crear";
            this.LlenarListaFuncionalidades();
        }
Beispiel #2
0
        public DefinicionRol(DataGridViewRow row)
        {
            this.funcionalidadesAgregadas = new List <String>();

            dao        = new DAORoles();
            this.idRol = (Int32)row.Cells["Id"].Value;
            InitializeComponent();
            this.textBox1.Text     = row.Cells["Descripcion"].Value.ToString();
            this.checkBox1.Checked = (bool)row.Cells["Habilitado"].Value;
            this.button1.Text      = "Modificar";
            this.LlenarListaFuncionalidades();
        }
Beispiel #3
0
 public AbmRol()
 {
     InitializeComponent();
     this.dao = new DAORoles();
 }
Beispiel #4
0
        private void setupRoles()
        {
            DAORoles dao = new DAORoles();

            this.roles = dao.getRolesByUserId(user.getId());
        }