public IQueryable <DemissionRateAndWorkSchedule> GetDSPlanList(DRAWS_QueryParam searchModel, Page page, out int totalcount)
        {
            var query = from DW in DataContext.DemissionRateAndWorkSchedule select DW;

            totalcount = query.Count();
            return(query.OrderBy(p => p.Product_Date).GetPage(page));
        }
示例#2
0
        public PagedListModel <DemissionRateAndWorkScheduleDTO> GetDSPlanList(DRAWS_QueryParam searchModel, Page page)
        {
            int totalcount = 0;
            var result     = PRP_Repository.GetDSPlanList(searchModel, page, out totalcount);
            var dtoList    = AutoMapper.Mapper.Map <IList <DemissionRateAndWorkScheduleDTO> >(result);

            return(new PagedListModel <DemissionRateAndWorkScheduleDTO>(totalcount, dtoList));
        }
示例#3
0
        /// <summary>
        /// 离职率/排版计划维护
        /// </summary>
        /// <returns></returns>
        public ActionResult GetDRAWScheduleList(DRAWS_QueryParam searchParams, Page page)
        {
            var apiUrl = string.Format("ProductionResourcePlan/GetDSPlanListAPI");
            HttpResponseMessage responMessage = APIHelper.APIPostAsync(searchParams, page, apiUrl);
            var result = responMessage.Content.ReadAsStringAsync().Result;

            return(Content(result, "application/json"));
        }