private void OnEmployeeSelectd(object sender, EmployeeInfo emp)
        {
            SalaryStructureEntry item = new SalaryStructureEntry();

            item.标识    = Guid.NewGuid();
            item.员工编号  = emp.员工编号;
            item.是验证录入 = false;

            item.Save();

            currEntryRows.Add(item);

            gridControl1.RefreshDataSource();
            bandedGridView1.FocusedRowHandle = bandedGridView1.RowCount - 1;

            MyHelper.WriteLog(LogType.信息, "新增员工薪酬结构录入记录", item.ToString <SalaryStructureEntry>());
        }
        private void btn删除_Click(object sender, EventArgs e)
        {
            ColumnView colView = (ColumnView)gridControl1.MainView;

            if (colView != null)
            {
                if (MessageBox.Show("确实删除当前记录吗?", "删除提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2, 0, false) == DialogResult.Yes)
                {
                    SalaryStructureEntry currentItem = (SalaryStructureEntry)colView.GetFocusedRow();
                    currEntryRows.Remove(currentItem);
                    MyHelper.WriteLog(LogType.信息, "删除员工薪酬结构录入记录", currentItem.ToString <SalaryStructureEntry>());
                    gridControl1.RefreshDataSource();

                    SalaryStructureEntry.ClearSalaryStructureEntry(currentItem.员工编号);

                    MessageBox.Show("删除成功。", "删除提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }