Exemplo n.º 1
0
        public ActionResult ButtonManage()
        {
            TS_BUTTONDTO bDto = new TS_BUTTONDTO();
            //获取完成工差列表
            PageResult <TS_BUTTON> ef = basicsService.GetButtons(bDto);
            //获取分页数据
            BASEPAGE page = AUTOMAPING.Mapping <BASEPAGE>(ef);

            this.HttpContext.Session["Page"] = page;
            //EF实体数据转换为DTO
            bDto.Buttons = MAPPING.ConvertEntityToDtoList <TS_BUTTON, TS_BUTTONDTO>(ef.DataList.OrderBy(x => x.C_MENU_ID).ThenBy(x => x.N_INDEX).ToList());
            return(View(bDto));
        }