private void PayRateInput_Load(object sender, EventArgs e) { this.Text = "职级工资标准表"; SalaryNode root = SalaryNode.GetSalaryNode(""); TreeNode rootNode = treeView1.Nodes.Add(root.标识.ToString(), root.称); //生成薪等 foreach (SalaryNode grade in root.子节点) { if (AccessController.CheckGrade(grade.标识)) { TreeNode gradeNode = rootNode.Nodes.Add(grade.标识.ToString(), grade.称); gradeNode.Tag = grade; } } }
private void PayRateInput_Load(object sender, EventArgs e) { this.Text = "职级工资录入 - " + (this.是验证录入 ? "验证录入" : "初次录入"); SalaryNode root = SalaryNode.GetSalaryNode(""); TreeNode rootNode = treeView1.Nodes.Add(root.标识.ToString(), root.称); //生成薪等 foreach (SalaryNode grade in root.子节点) { if (grade.已撤销 == false && AccessController.CheckGrade(grade.标识)) { TreeNode gradeNode = rootNode.Nodes.Add(grade.标识.ToString(), grade.称); gradeNode.Tag = grade; } } treeView1.ExpandAll(); }
private void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e) { if (e.Column.FieldName == "薪级名称") { RepositoryItemImageComboBox comboBox = new RepositoryItemImageComboBox(); comboBox.SelectedValueChanged += comboBox_SelectedValueChanged; EmpSalaryStepInput row = gridView1.GetRow(e.RowHandle) as EmpSalaryStepInput; SalaryNode grade = SalaryNode.GetSalaryNode(row.薪等标识); if (grade != null) { foreach (SalaryNode step in grade.子节点) { ImageComboBoxItem item = new ImageComboBoxItem(); item.Description = step.称; item.Value = step.标识; comboBox.Items.Add(item); } e.RepositoryItem = comboBox; } } }