/// <summary>
        /// 更新相关员工的帐套
        /// </summary>
        private void UpdateEmployeeAccountSetWithNewPara()
        {
            List <EmployeeSalary> employeeSalarys =
                _DalEmployeeAccountSet.GetEmployeeAccountSetByAccountSetParaID(_AccountSetParaID);

            foreach (EmployeeSalary salary in employeeSalarys)
            {
                foreach (AccountSetItem item in salary.AccountSet.Items)
                {
                    if (item.AccountSetPara.AccountSetParaID == _AccountSetParaID)
                    {
                        item.AccountSetPara.AccountSetParaName  = _AccountSetParaName;
                        item.AccountSetPara.IsVisibleToEmployee = _IsVisibleToEmployee;
                        item.AccountSetPara.IsVisibleWhenZero   = _IsVisibleWhenZero;
                        item.AccountSetPara.Description         = _Description;
                    }
                }
                UpdateEmployeeAccountSet updateEmployeeAccountSet =
                    new UpdateEmployeeAccountSet(salary.Employee.Account.Id, salary.AccountSet, _OperatorName,
                                                 DateTime.Now,
                                                 salary.AccountSet.Description + "(" + DateTime.Now.ToShortDateString() +
                                                 _OperatorName + "修改帐套参数操作,系统自动生成历史)", _DalAccountSet,
                                                 _DalEmployeeAccountSet);
                updateEmployeeAccountSet.Excute();
            }
            _EmployeeSalaryListTest = employeeSalarys;
        }
        public void UpdateEmployeeAccountSetFacade(int employeeID, AccountSet accountSet,
                                                   string backAccountsName, DateTime changeDate, string description)
        {
            UpdateEmployeeAccountSet updateEmployeeAccountSet =
                new UpdateEmployeeAccountSet(employeeID, accountSet, backAccountsName, changeDate, description);

            updateEmployeeAccountSet.Excute();
        }
Example #3
0
 private void UpdateEmployeeAccountSetAfterMerge(List <EmployeeSalary> employeeSalarys)
 {
     if (employeeSalarys == null || employeeSalarys.Count == 0)
     {
         return;
     }
     foreach (EmployeeSalary salary in employeeSalarys)
     {
         UpdateEmployeeAccountSet updateEmployeeAccountSet =
             new UpdateEmployeeAccountSet(salary.Employee.Account.Id, salary.AccountSet, _OperatorName, DateTime.Now,
                                          salary.AccountSet.Description + "(" + DateTime.Now.ToShortDateString() +
                                          _OperatorName + "修改帐套操作,系统自动生成历史)", _DalAccountSet,
                                          _DalEmployeeAccountSet);
         updateEmployeeAccountSet.Excute();
     }
 }