public override PagedResultDto <ExpenseOut> GetHistoryDatas(ExpenseInput queryModel)
        {
            var expression = Expp(queryModel);
            var data       = _historyRepository.PageList(expression, queryModel.CurrentPage,
                                                         queryModel.PageSize
                                                         , new Tuple <Expression <Func <FixedAssetsDepreciationHistory, object> >, SortOrder>(s => s.FixedAssetsCode, SortOrder.Descending)
                                                         , new Tuple <Expression <Func <FixedAssetsDepreciationHistory, object> >, SortOrder>(s => s.LineNum, SortOrder.Ascending));

            var models = new List <ExpenseOut>();
            var dic    = EnumHelper.GetValueAndDesc <CommonEnum.EnumCostAccountSplitStep>();

            foreach (var item in data.Items)
            {
                models.Add(new ExpenseOut()
                {
                    ExpenseCode    = item.FixedAssetsCode,
                    ExpenseLineNum = item.LineNum,
                    Period         = item.Period,
                    DepartNamePath = item.DepartNamePath,
                    Amount         = item.Amount,
                    CompanyName    = item.CompanyName,
                    StepName       = dic[(int)CommonEnum.EnumCostAccountSplitStep.History],
                });
            }
            return(new PagedResultDto <ExpenseOut>(data.Total, models));;
        }
        public override PagedResultDto <ExpenseOut> GetHistoryDatas(ExpenseInput queryModel)
        {
            var expression = Expp(queryModel);
            var data       = _expenseHistoryRepository.PageList(expression, queryModel.CurrentPage,
                                                                queryModel.PageSize
                                                                , new Tuple <Expression <Func <ExpenseLineConfirmHistory, object> >, SortOrder>(s => s.ExpenseCode, SortOrder.Descending)
                                                                , new Tuple <Expression <Func <ExpenseLineConfirmHistory, object> >, SortOrder>(s => s.ExpenseLineNum, SortOrder.Ascending));
            var models = _mapper.Map <List <ExpenseOut> >(data.Items);
            var dic    = EnumHelper.GetValueAndDesc <CommonEnum.EnumCostAccountSplitStep>();

            models.ForEach(s =>
            {
                s.Step     = s.Step == 0 ? -1 : s.Step;
                s.StepName = dic[s.Step];
            });
            return(new PagedResultDto <ExpenseOut>(data.Total, models));
        }