public ActionResult Index() { grid = (Grid <OrderModel>)Session[STOCKRECIVING_GIRD_MODEL]; filterModel = (TradingStockSearch)Session[STOCKRECIVING_SEARCH_MODEL]; filterModel = filterModel ?? new TradingStockSearch(); if (grid == null) { grid = new Grid <OrderModel> ( new Pager { CurrentPage = 1, PageSize = 20, Sord = "desc", Sidx = "VoucherDate" } ); grid.SearchCriteria = new OrderModel(); } long SearchQuickView = Session["SearchQuickView"] == null ? 0 : (long)Session["SearchQuickView"]; Session["SearchQuickView"] = SearchQuickView; UpdateGridData(); return(View(grid)); }
public ActionResult Index(TradingStockSearch filter, Grid <OrderModel> gridModel) { filterModel = filter; grid = gridModel; Session[STOCKRECIVING_GIRD_MODEL] = grid; Session[STOCKRECIVING_SEARCH_MODEL] = filterModel; grid.ProcessAction(); UpdateGridData(); return(PartialView("_ListData", grid)); }
public ActionResult Index(TradingStockSearch model, Grid <SalesModel> gridview) { grid = gridview; filterModel = model; Session[SALES_GIRD_MODEL] = grid; Session[SALES_SEARCH_MODEL] = filterModel; grid.ProcessAction(); UpdateGridData(); return(PartialView("_ListData", grid)); }
public ActionResult Index() { grid = (Grid <SalesModel>)Session[SALES_GIRD_MODEL]; filterModel = (TradingStockSearch)Session[SALES_SEARCH_MODEL]; filterModel = filterModel ?? new TradingStockSearch(); if (grid == null) { grid = new Grid <SalesModel> ( new Pager { CurrentPage = 1, PageSize = 20, Sord = "desc", Sidx = "VoucherDate" } ); grid.SearchCriteria = new SalesModel(); } UpdateGridData(); return(View(grid)); }