コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Powers.HasAuth(LoginUser.Auths, AuthType.SEP, Powers.A601))
     {
         throw new Exception("没有权限访问");
     }
 }
コード例 #2
0
        protected override void Validation()
        {
            if (_NewAccount.Id == _LoginUser.Id)
            {
                return;
            }

            //权限验证
            if (!Powers.HasAuth(_LoginUser.Auths, AuthType.SEP, Powers.A101))
            {
                throw MessageKeys.AppException(MessageKeys._NoAuth);
            }

            //用户名唯一性验证
            if (DalInstance.AccountDalInstance.ValidationLoginName(_NewAccount.Id, _NewAccount.LoginName))
            {
                throw MessageKeys.AppException(MessageKeys._Account_Not_Repeat);
            }

            //姓名唯一性验证
            if (DalInstance.AccountDalInstance.ValidationName(_NewAccount.Id, _NewAccount.Name))
            {
                throw MessageKeys.AppException(MessageKeys._Employee_Name_Repeat);
            }
        }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A108))
     {
         throw new ApplicationException("没有权限访问");
     }
 }
コード例 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A403))
     {
         throw new ApplicationException("没有权限访问");
     }
     new VacationListPresenter(VacationListView, IsPostBack, LoginUser);
 }
コード例 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A504))
     {
         throw new ApplicationException("没有权限访问");
     }
     new SearchEmployeeInAndOutInfoPresenter(PersonalInAndOutInfoView1, LoginUser).Initialize(IsPostBack);
 }
コード例 #6
0
 protected override void Validation()
 {
     //权限验证
     if (!Powers.HasAuth(_LoginUser.Auths, AuthType.SEP, Powers.A503))
     {
         throw MessageKeys.AppException(MessageKeys._NoAuth);
     }
 }
コード例 #7
0
ファイル: AuthBll.cs プロジェクト: zzz1985xxxwl/bjl_hrmis
 public List <Auth> GetAccountAllAuth(int accountId, Account loginUser)
 {
     if (!Powers.HasAuth(loginUser.Auths, AuthType.SEP, Powers.A103) && accountId != loginUser.Id)
     {
         throw MessageKeys.AppException(MessageKeys._NoAuth);
     }
     return(DalInstance.AuthDalInstance.GetAccountAuthTree(accountId));
 }
コード例 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A605))
     {
         throw new ApplicationException("没有权限访问");
     }
     new EmployeeWelfareSearchListPresenter(EmployeeWelfareSearchList1, LoginUser, IsPostBack);
 }
コード例 #9
0
ファイル: AuthBll.cs プロジェクト: zzz1985xxxwl/bjl_hrmis
        public List <Auth> GetAllAuth(Account loginUser)
        {
            if (!Powers.HasAuth(loginUser.Auths, AuthType.SEP, Powers.A103))
            {
                throw MessageKeys.AppException(MessageKeys._NoAuth);
            }

            return(GetAllAuth());
        }
コード例 #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A803))
            {
                throw new ApplicationException("没有权限访问");
            }
            FBQuesTypepresenter presenter = new FBQuesTypepresenter(FBQuesTypeInfoView1);

            presenter.InitView(Page.IsPostBack);
        }
コード例 #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A301))
            {
                throw new ApplicationException("没有权限访问");
            }
            DepartmentHistoryListPresenter thePresenter = new DepartmentHistoryListPresenter(DepartmentHistoryListView1);

            thePresenter.InitView(Page.IsPostBack);
        }
コード例 #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A502))
            {
                throw new ApplicationException("没有权限访问");
            }
            PlanDutyListPresenter planDutyListPresenter = new PlanDutyListPresenter(PlanDutyListView1, LoginUser);

            planDutyListPresenter.Initialize(IsPostBack);
        }
コード例 #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A601))
            {
                throw new ApplicationException("没有权限访问");
            }
            AccountSetParaPresenter thePresenter = new AccountSetParaPresenter(ManageAccountSetParaView1);

            thePresenter.InitView(Page.IsPostBack);
        }
コード例 #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A104))
            {
                throw new ApplicationException("没有权限访问");
            }
            SkillPresenter thePresenter = new SkillPresenter(SkillInfoView1);

            thePresenter.InitView(Page.IsPostBack);
        }
コード例 #15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A109))
            {
                throw new ApplicationException("没有权限访问");
            }
            CustomerInfoPresenter prestenter = new CustomerInfoPresenter(CustomerInfoAllView1);

            prestenter.InitView(Page.IsPostBack);
        }
コード例 #16
0
        protected override void Validation()
        {
            if (!Powers.HasAuth(_LoginUser.Auths, AuthType.SEP, Powers.A202))
                throw MessageKeys.AppException(MessageKeys._NoAuth);

            Position position = DalInstance.PositionDalInstance.GetPositionByName(_Position.Name);
            if (position != null)
            {
                throw MessageKeys.AppException(MessageKeys._Position_Name_Repeat);
            }
        }
コード例 #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A201))
            {
                throw new ApplicationException("没有权限访问");
            }

            AssignAuthInfoPresenter assignAuthInfoPresenter = new AssignAuthInfoPresenter(AssignHrmisAuthInfoView1, LoginUser);

            assignAuthInfoPresenter.InitView(IsPostBack);
        }
コード例 #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A401))
            {
                throw new ApplicationException("没有权限访问");
            }

            EmployeeHistoryPresenter presenter = new EmployeeHistoryPresenter(EmployeeHistoryView1, SecurityUtil.DECDecrypt(Request.QueryString["EmployeeHistoryID"]));

            presenter.InitView(IsPostBack);
        }
コード例 #19
0
        protected override void Validation()
        {
            if (!Powers.HasAuth(_LoginUser.Auths, AuthType.SEP, Powers.A203))
            {
                throw MessageKeys.AppException(MessageKeys._NoAuth);
            }

            //List<Position> positions = DalInstance.PositionDalInstance.GetPositionByGradeId(_PositionGradeId);
            //if (positions != null && positions.Count != 0)
            //    throw MessageKeys.AppException(MessageKeys._PositionGrade_HasPosition);
        }
コード例 #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A904))
            {
                throw new ApplicationException("没有权限访问");
            }

            ReimburseCustomerSearchPresenter presenter = new ReimburseCustomerSearchPresenter(ReimburseCustomerSearchView1, LoginUser);

            presenter.Initialize(IsPostBack);
        }
コード例 #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A106))
            {
                throw new ApplicationException("没有权限访问");
            }
            CompanyLinkManInfoPresenter presenter =
                new CompanyLinkManInfoPresenter(CompanyLinkManInfo1, LoginUser);

            presenter.InitView(IsPostBack);
        }
コード例 #22
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A703))
            {
                throw new ApplicationException("没有权限访问");
            }

            HRApplyEmployeeAssessPresenter hrApplyEmployeeAssessPresenter = new HRApplyEmployeeAssessPresenter(GetEmployeeForApplyView1, LoginUser);

            hrApplyEmployeeAssessPresenter.Initialize(IsPostBack);
        }
コード例 #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A105))
            {
                throw new ApplicationException("没有权限访问");
            }
            AddDiyProcessPresenter presenter = new AddDiyProcessPresenter(DiyProcessView1);

            presenter.InitView(IsPostBack);
            presenter.GoToListPage += ToListPage;
        }
コード例 #24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A704))
            {
                throw new ApplicationException("没有权限访问");
            }

            GetConfirmAssessesPresenter itsPresenter = new GetConfirmAssessesPresenter(GetConfirmAssessesView1, LoginUser);

            itsPresenter.Initialize(IsPostBack);
        }
コード例 #25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A904))
            {
                throw new ApplicationException("没有权限访问");
            }
            UpdateReimburseCustomerPresenter presenter = new UpdateReimburseCustomerPresenter(
                Convert.ToInt32(SecurityUtil.DECDecrypt(Request.QueryString["ReimburseID"])), LoginUser, ReimburseCustomerView1);

            presenter.ToMyReimbursePage += ToSearchReimbursePage;
            presenter.Init(IsPostBack);
        }
コード例 #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A604))
            {
                throw new ApplicationException("没有权限访问");
            }
            int pkid = Convert.ToInt32(SecurityUtil.DECDecrypt(Request.QueryString["EmployeeSalaryHistoryID"]));
            EmployeeSalaryHistoryDetailPresenter presenter = new EmployeeSalaryHistoryDetailPresenter(EmployeeSalaryHistoryDetailView1);

            presenter.InitView(IsPostBack, pkid);
            EmployeeSalaryHistoryDetailView1.GoToListPage += List_Command;
        }
コード例 #27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A802))
            {
                throw new ApplicationException("没有权限访问");
            }
            FeedBackBackSearchPresenter presenter = new FeedBackBackSearchPresenter(FeedBackBackSearchView1, LoginUser);

            FeedBackBackSearchView1.SearchEvent += presenter.SearchEvent;
            presenter.SetIfFrontPage(false);
            presenter.InitView(IsPostBack);
        }
コード例 #28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A105))
            {
                throw new ApplicationException("没有权限访问");
            }
            DeteleDiyProcessPresenter presenter = new DeteleDiyProcessPresenter(DiyProcessView1);

            presenter.DiyProcessID = Convert.ToInt32(SecurityUtil.DECDecrypt(Request.QueryString["DiyProcessID"]));
            presenter.InitView(IsPostBack);
            presenter.GoToListPage += ToListPage;
        }
コード例 #29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A901))
            {
                throw new ApplicationException("没有权限访问");
            }

            SearchReimburseInfoPresenter presenter = new SearchReimburseInfoPresenter(SearchReimburseInfoView1, LoginUser);

            presenter.btnViewClick += btnViewClickEvent;
            presenter.Initialize(IsPostBack);
        }
コード例 #30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A806))
            {
                throw new ApplicationException("没有权限访问");
            }
            TrainApplicationSearchPresenter presenter = new TrainApplicationSearchPresenter(SearchTrainApplicationView1, LoginUser);

            //TrainFBQuestionList1.BtnItemEvent += ToItemPage1;

            presenter.Init(IsPostBack);
        }