Ejemplo n.º 1
0
        public void SetAuthTreeDataSrc()
        {
            List <Auth> sepAuths = null;

            if (LoginUser == null)
            {
                return;
            }

            sepAuths = LoginUser.FindAuthsByType(AuthType.SEP);

            _ItsView.rptAccountManageDataSrc   = FindAuthById(sepAuths, Powers.A01);
            _ItsView.rptDeptManageDataSrc      = FindAuthById(sepAuths, Powers.A02);
            _ItsView.rptBulletinsManageDataSrc = FindAuthById(sepAuths, Powers.A03);
            _ItsView.rptGoalMangeDataSrc       = FindAuthById(sepAuths, Powers.A04);
            _ItsView.rptCompanuManageDataSrc   = FindAuthById(sepAuths, Powers.A05);
            _ItsView.rptServiceManageDataSrc   = FindAuthById(sepAuths, Powers.A06);
            SetPersonalManageAuth();
        }
        private void SetAuthTreeDataSrc()
        {
            List <Auth> AAuths = LoginUser.FindAuthsByType(AuthType.HRMIS);

            if (AAuths == null)
            {
                return;
            }

            _ItsView.rptParameterDataSrc    = FindAuthById(AAuths, HrmisPowers.A01);
            _ItsView.rptAccountDataSrc      = FindAuthById(AAuths, HrmisPowers.A02);
            _ItsView.rptDepartmentDataSrc   = FindAuthById(AAuths, HrmisPowers.A03);
            _ItsView.rptEmployeeDataSrc     = FindAuthById(AAuths, HrmisPowers.A04);
            _ItsView.rptApplicationDataSrc  = FindAuthById(AAuths, HrmisPowers.A05);
            _ItsView.rptPayDataSrc          = FindAuthById(AAuths, HrmisPowers.A06);
            _ItsView.rptPerformanceDataSrc  = FindAuthById(AAuths, HrmisPowers.A07);
            _ItsView.rptTrainingDataSrc     = FindAuthById(AAuths, HrmisPowers.A08);
            _ItsView.rptReimburseDataSrc    = FindAuthById(AAuths, HrmisPowers.A09);
            _ItsView.rptDataTransferDataSrc = FindAuthById(AAuths, HrmisPowers.A10);
        }