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;
     }
 }
Exemplo n.º 3
0
        //返回当前所有手术数据
        public ActionResult OpeAll()
        {
            OperationService    operationService = new OperationService();
            List <OperationDTO> operationDTOs    = operationService.GetAll().ToList();

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

            return(list.AsQueryable());
        }