コード例 #1
0
 public ActionResult MoviesInTheaterGrid()
 {
     gridMvcHelper = new GridMvcHelper();
     List<tbl_Movie> moviesList = new LoadData().LoadMoviesData();
     var model = new BuildGrids().BuildMovieSubGrids(moviesList);
     return View(gridMvcHelper.GetAjaxGrid(model.AsQueryable()));
 }
コード例 #2
0
        public ActionResult MoviesInTheaterGrid()
        {
            gridMvcHelper = new GridMvcHelper();
            List <tbl_Movie> moviesList = new LoadData().LoadMoviesData();
            var model = new BuildGrids().BuildMovieSubGrids(moviesList);

            return(View(gridMvcHelper.GetAjaxGrid(model.AsQueryable())));
        }
コード例 #3
0
        public virtual ActionResult GridGetAllNavigation()
        {
            gridMvcHelper = new GridMvcHelper();
            IOrderedQueryable <CMSNavigation> allNavigation = CMSNavigation.GetAll().OrderBy(x => x.sort);
            AjaxGrid <CMSNavigation>          grid          = this.gridMvcHelper.GetAjaxGrid(allNavigation);

            return(PartialView(grid));
        }
コード例 #4
0
        public virtual ActionResult GridGetAllNavigationPager(string txtSearch, int?page)
        {
            gridMvcHelper = new GridMvcHelper();
            IOrderedQueryable <CMSNavigation> allData = CMSNavigation.GetAll().OrderBy(x => x.sort);

            if (!string.IsNullOrEmpty(txtSearch))
            {
                allData = allData.Where(x => x.Name.Contains(txtSearch) || x.Controller.Contains(txtSearch)).OrderBy(x => x.sort);
            }
            AjaxGrid <CMSNavigation> grid = this.gridMvcHelper.GetAjaxGrid(allData, page);
            object jsonData = this.gridMvcHelper.GetGridJsonData(grid, MVC.CMSNavigation.Views.GridGetAllNavigation, this);

            return(Json(jsonData, JsonRequestBehavior.AllowGet));
        }
コード例 #5
0
 public EczaneGrupController(IEczaneGrupService eczaneGrupService,
                             IEczaneService eczaneService,
                             IEczaneNobetGrupService eczaneNobetGrupService,
                             IEczaneGrupTanimService eczaneGrupTanimService,
                             INobetUstGrupService nobetUstGrupService,
                             IUserService userService,
                             INobetGrupService nobetGrupService,
                             INobetGorevTipService nobetGorevTipService,
                             INobetGrupGorevTipService nobetGrupGorevTipService,
                             INobetUstGrupSessionService nobetUstGrupSessionService)
 {
     _eczaneGrupService          = eczaneGrupService;
     _eczaneService              = eczaneService;
     _nobetUstGrupService        = nobetUstGrupService;
     _eczaneGrupTanimService     = eczaneGrupTanimService;
     _eczaneNobetGrupService     = eczaneNobetGrupService;
     _userService                = userService;
     _nobetGrupService           = nobetGrupService;
     _nobetGorevTipService       = nobetGorevTipService;
     _nobetGrupGorevTipService   = nobetGrupGorevTipService;
     _nobetUstGrupSessionService = nobetUstGrupSessionService;
     this.gridMvcHelper          = new GridMvcHelper();
 }
コード例 #6
0
 public GridMvcController()
 {
     this.gridMvcHelper = new GridMvcHelper();
     this.data          = new FootballersData();
 }
コード例 #7
0
        //private IDemoData data;



        //this.data = new FootballersData();



        public gridMVCSortingController(IEczaneGrupService eczaneGrupService)
        {
            this.gridMvcHelper = new GridMvcHelper();
            _eczaneGrupService = eczaneGrupService;
        }
コード例 #8
0
 public HomeController()
 {
     this.gridMvcHelper = new GridMvcHelper();
     this.data = new FootballersData();
 }
コード例 #9
0
 public HomeController(IRepository repository)
 {
     this.gridMvcHelper = new GridMvcHelper();
     _repository        = repository;
 }
コード例 #10
0
 public ArticleController(IArticleService articleService, ICategoryService categoryService, IGridMvcHelper gmHelper)
 {
     this.ArticleService = articleService;
     this.CategoryService = categoryService;
     this.GridMvcHelper = gmHelper;
 }