Example #1
0
        /// <summary>
        /// 获取WIP修改记录详情
        /// </summary>
        /// <param name="searchModel"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        public PagedListModel <WIPAlterDetialModel> GetWIPAlterRecordDetialAPI(WIPDetialSearchParam searchModel, Page page)
        {
            var totalCount    = 0;
            var wipdetialData = flowChartMasterRepository.GetWIPAlterRecordDetialData(searchModel, page);

            totalCount    = wipdetialData.Count;
            wipdetialData = wipdetialData.Skip(page.Skip).Take(page.PageSize).ToList();

            wipdetialData.ForEach(p =>
            {
                p.alterTime = p.Modified_Date.ToString("yyyy-MM-dd");
                p.WIP_Add   = p.WIP_Old + p.WIP_Add;
            }
                                  );
            return(new PagedListModel <WIPAlterDetialModel>(totalCount, wipdetialData));
        }