public override List <ExpenseAccount> GetExpenseAccountFromHistory()
        {
            _period = (string.IsNullOrEmpty(_period) || _period.Length != 7) ? DateTime.Now.AddMonths(-1).ToString("yyyy-MM") : _period;
            Expression <Func <FixedAssetsDepreciationHistory, bool> > expression = s => s.Period == _period && s.Status == 0;

            if (!string.IsNullOrEmpty(_expenseCode))
            {
                expression = expression.And(s => s.FixedAssetsCode == _expenseCode);
            }

            var entities = _historyRepository.Where(expression).Select(s => new ExpenseAccount()
            {
                ExpenseCode        = s.FixedAssetsCode,
                ExpenseLineNum     = s.LineNum,
                DepartID           = s.DepartID,
                DepartNamePath     = s.DepartNamePath,
                ConfirmDate        = s.CreateTime,
                Period             = s.Period,
                Amount             = s.Amount,
                Status             = s.Status,
                CreateTime         = s.CreateTime,
                CreateUserID       = s.CreateUserID,
                CreateUserName     = s.CreateUserName,
                LastUpdateTime     = s.LastUpdateTime,
                LastUpdateUserID   = s.LastUpdateUserID,
                LastUpdateUserName = s.LastUpdateUserName,
                CompanyCode        = s.CompanyCode,
                CompanyName        = s.CompanyName,
                SourceId           = 0,
                ExpenseType        = (int)CommonEnum.EnumExpenseType.FixedAssetsDepreciation
            }).ToList();

            return(entities);
        }
        public override List <ExpenseAccount> GetExpenseAccountFromHistory()
        {
            _period = (string.IsNullOrEmpty(_period) || _period.Length != 7) ? DateTime.Now.AddMonths(-1).ToString("yyyy-MM") : _period;
            Expression <Func <ExpenseLineConfirmHistory, bool> > expression = s => s.Period == _period && s.Status == 0;

            if (!string.IsNullOrEmpty(_expenseCode))
            {
                expression = expression.And(s => s.ExpenseCode == _expenseCode);
            }

            var entities = _expenseHistoryRepository.Where(expression).Select(s => _mapper.Map <ExpenseAccount>(s)).ToList();

            entities.ForEach(s => s.ExpenseType = (int)CommonEnum.EnumExpenseType.ReimbursementAndBorrowing);
            return(entities);
        }