private void SelectJobGradeForm_Load(object sender, EventArgs e) { List <JobGrade> grades = JobGrade.GetJobGrades(salary_plan); listBoxControl职级.Items.Clear(); //可查看的级别 List <RoleLevel> lvList = AccessController.我管理的职等.FindAll(a => a.公司编码 == company_code); if (command == "查看各职等管理人员薪酬执行明细" || command == "查看各职等人员薪酬结构明细表" || command == "录入各职等等管理人员薪酬执行明细" || command == "录入异动人员薪酬执行明细") { if (company != "软件开发") { if (lvList.Find(a => a.职等名称 == "副总经理以上") != null) { listBoxControl职级.Items.Add("副总经理以上"); } if (lvList.Find(a => a.职等名称 == "管培生") != null) { listBoxControl职级.Items.Add("管培生"); } } } foreach (JobGrade grade in grades) { bool allow = false; if (lvList.Find(a => BelongToGrade(grade.称, a.职等名称)) != null) { allow = true; } if (company == "软件开发") { allow = true; } if (allow) { listBoxControl职级.Items.Add(grade.称); } } spin年度.Properties.MaxValue = DateTime.Today.Year + 1; spin年度.EditValue = DateTime.Today.Year; if (company == "软件开发") { cbSemiannual.Properties.Items.Clear(); cbSemiannual.Properties.Items.Add("年"); cbSemiannual.SelectedIndex = 0; } }
private void EditGradeSalaryStandardForm_Load(object sender, EventArgs e) { //初始化职等列表 List <JobGrade> grades = JobGrade.GetJobGrades(grade.薪酬体系); cb对比的职等.Properties.Items.Clear(); foreach (JobGrade g in grades) { cb对比的职等.Properties.Items.Add(g.称); } LoadData(); }
protected void LoadData() { currRows = JobGrade.GetJobGrades(salary_plan); gridControl1.DataSource = currRows; gridControl1.RefreshDataSource(); //初始化对比的职等 repositoryItemGrades.Items.Clear(); foreach (JobGrade grade in currRows) { repositoryItemGrades.Items.Add(grade.称); } }