protected void Page_Load(object sender, EventArgs e) { if (!Powers.HasAuth(LoginUser.Auths, AuthType.SEP, Powers.A601)) { throw new Exception("没有权限访问"); } }
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); } }
protected void Page_Load(object sender, EventArgs e) { if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A108)) { throw new ApplicationException("没有权限访问"); } }
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); }
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); }
protected override void Validation() { //权限验证 if (!Powers.HasAuth(_LoginUser.Auths, AuthType.SEP, Powers.A503)) { throw MessageKeys.AppException(MessageKeys._NoAuth); } }
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)); }
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); }
public List <Auth> GetAllAuth(Account loginUser) { if (!Powers.HasAuth(loginUser.Auths, AuthType.SEP, Powers.A103)) { throw MessageKeys.AppException(MessageKeys._NoAuth); } return(GetAllAuth()); }
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); }
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); }
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); }
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); }
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); }
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); }
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); } }
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); }
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); }
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); }
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); }
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); }
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); }
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; }
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); }
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); }
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; }
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); }
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; }
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); }
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); }