Ejemplo n.º 1
0
        public FormLpuList()
        {
            InitializeComponent();

            _myStatusStrip = new MyStatusStrip(dgv, statusStrip1);

            _lpuRRController         = new LpuRRController(dgv);
            _userLpuRRListController = new UserLpuRRListController(dgv);

            _controller = _lpuRRController;

            btnShowLPUForEdit.Visible = (UserLogged.Get().Role.ID == 1);
        }
        public FormOrganizationList()
        {
            InitializeComponent();

            _myStatusStrip = new MyStatusStrip(dgv, statusStrip1);

            _organizationListController = new OrganizationListController(dgv);

            settingsToolStripMenuItem.Visible = (UserLogged.Get().RoleSF == RolesSF.Администратор);
            exportToolStripMenuItem.Visible   = (UserLogged.Get().RoleSF == RolesSF.Администратор);
            toolStripMenuItem4.Visible        = (UserLogged.Get().RoleSF == RolesSF.Администратор);
            toolStripMenuItem5.Visible        = (UserLogged.Get().RoleSF == RolesSF.Администратор);

            btnDeleteOrganization.Visible = (UserLogged.Get().RoleSF == RolesSF.Администратор);
        }
Ejemplo n.º 3
0
        public DataGridView ToDataGridView()
        {
            DataTable dt = _lpuRRList.ToDataTableWithLpuSF(UserLogged.Get());

            _dgv.DataSource = dt;

            _dgv.Columns[0].Width         = 70;
            _dgv.Columns[1].Width         = 150;
            _dgv.Columns[2].Width         = 150;
            _dgv.Columns[3].Width         = 100;
            _dgv.Columns[4].Width         = 150;
            _dgv.Columns[5].Width         = 150;
            _dgv.Columns[6].Width         = 150;
            _dgv.Columns[7].Width         = 150;
            _dgv.Columns[8].Width         = 150;
            _dgv.Columns[9].Width         = 70;
            _dgv.Columns["color"].Visible = false;

            SetStyle();

            return(_dgv);
        }
Ejemplo n.º 4
0
        public DataGridView ToDataGridView()
        {
            DataTable dt = _userLpuRRList.ToDataTableWithSF(UserLogged.Get());

            return(GetDataGridView(dt));
        }