private void OnEmployeeSelectd(object sender, EmployeeInfo emp)
        {
            if (currEntryRows.Find(a => a.员工编号 == emp.员工编号) == null)
            {
                MonthlyWageLoanItemEntry item = MonthlyWageLoanItemEntry.AddMonthlyWageLoanItemEntry(emp.员工编号, emp.姓名, year, month, isCheck);
                //如果记录已生效,清除生效标记
                if (item.已生效)
                {
                    item.生效时间 = DateTime.MinValue;
                    item.Save();

                    MonthlyWageLoanItemEntry opposite = item.另一人录入的记录;
                    if (opposite != null)
                    {
                        opposite.生效时间 = DateTime.MinValue;
                        opposite.Save();
                    }
                }
                currEntryRows.Add(item);
                gridControl1.RefreshDataSource();
                bandedGridView1.FocusedRowHandle = bandedGridView1.RowCount - 1;

                MyHelper.WriteLog(LogType.信息, "新增员工每月报账工资录入记录", item.ToString <MonthlyWageLoanItemEntry>());
            }
        }
        private void btn保存_Click(object sender, EventArgs e)
        {
            currMonthlyWageLoanItemEntry.约定税率   = spinEdit约定税率.Value;
            currMonthlyWageLoanItemEntry.月借款标准  = spinEdit月借款标准.Value;
            currMonthlyWageLoanItemEntry.应出勤天数  = spinEdit应出勤天数.Value;
            currMonthlyWageLoanItemEntry.实际出勤天数 = spinEdit实际出勤天数.Value;
            currMonthlyWageLoanItemEntry.实际借款金额 = spinEdit实际借款金额.Value;
            currMonthlyWageLoanItemEntry.代缴个税   = spinEdit代缴个税.Value;
            currMonthlyWageLoanItemEntry.税后实发金额 = spinEdit税后实发金额.Value;

            currMonthlyWageLoanItemEntry.录入人  = AccessController.CurrentUser.姓名;
            currMonthlyWageLoanItemEntry.录入时间 = DateTime.Now;
            currMonthlyWageLoanItemEntry.Save();

            Close();
        }