public override ActionResult Index(int?pageIndex)
        {
            int index = pageIndex ?? 1;
            IEnumerable <T_Operation> entities = (IEnumerable <T_Operation>)Session[cacheSearchKey] ??
                                                 opService.GetAll();
            IEnumerable <T_Operation> result = opService.GetSearchPagingInfo(entities, index, base.PageSize);

            return(PartialView("_OperationGrid", result));
        }
 private void LoadGrid()
 {
     try
     {
         dgOperation.ItemsSource = operationService.GetAll();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " - Erro ao consultar dados", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     finally
     {
         isEditmode = false;
     }
 }
示例#3
0
        //返回当前所有手术数据
        public ActionResult OpeAll()
        {
            OperationService    operationService = new OperationService();
            List <OperationDTO> operationDTOs    = operationService.GetAll().ToList();

            return(Json(operationDTOs));
        }
示例#4
0
 public List <Operation> GetAll()
 {
     return(operationService.GetAll());
 }
示例#5
0
 public IActionResult GetAll()
 {
     return(Ok(operationService.GetAll()));
 }
        public IQueryable <Operation> GetAll()
        {
            var list = _operationService.GetAll();

            return(list.AsQueryable());
        }