Пример #1
0
 public ActionResult Index(GridNew <Product, ProductModel> grid)
 {
     gridView = grid;
     gridView.ProcessAction();
     UpdateGrid();
     return(PartialView("_productList", gridView));
 }
Пример #2
0
 public ActionResult Index(GridNew <ServicesType, ServicesViewModel> grid)
 {
     gridView = grid;
     Session[SERVICE_SEARCH_MODEL] = grid;
     UpdateGridSupplierData();
     return(PartialView("_ListData", gridView));
 }
Пример #3
0
 public ActionResult Index(GridNew <Group, GroupModel> grid)
 {
     gridView = grid;
     Session[GROUP_SEARCH_MODEL] = grid;
     UpdateGridData();
     return(PartialView("_ListData", gridView));
 }
Пример #4
0
 public ActionResult Index(GridNew <Supplier, SupplierModels> grid)
 {
     _supplierGrid = grid;
     Session[SUPPLIER_SEARCH_MODEL] = grid;
     _supplierGrid.ProcessAction();
     UpdateGridSupplierData();
     return(PartialView("_ListData", _supplierGrid));
 }
Пример #5
0
 public ActionResult Index(GridNew <Warehouse, WareHouseModel> grid)
 {
     warehouseGird = grid;
     warehouseGird.ProcessAction();
     warehouseGird.Model = new WareHouseModel();
     UpdateGrid();
     return(PartialView("_ListData", warehouseGird));
 }
Пример #6
0
 public ActionResult Index()
 {
     warehouseGird = new GridNew <Warehouse, WareHouseModel>(
         new Pager
     {
         CurrentPage = 1,
         PageSize    = 10,
     });
     UpdateGrid();
     return(View(warehouseGird));
 }
Пример #7
0
 public ActionResult Index(long id = 0)
 {
     gridView = new GridNew <Product, ProductModel>(
         new Pager
     {
         CurrentPage = 1,
         PageSize    = 10,
         Sord        = "asc",
         Sidx        = "Name"
     });
     UpdateGrid();
     gridView.SearchCriteria = new Product();
     return(View(gridView));
 }
Пример #8
0
 public ActionResult Index()
 {
     gridView = (GridNew <ServicesType, ServicesViewModel>)Session[SERVICE_SEARCH_MODEL];
     if (gridView == null)
     {
         gridView = new GridNew <ServicesType, ServicesViewModel>(
             new Pager
         {
             CurrentPage = 1,
             PageSize    = 10,
             Sidx        = "Name",
         })
         {
             SearchCriteria = new ServicesType()
         };
     }
     UpdateGridSupplierData();
     return(View(gridView));
 }
Пример #9
0
 public ActionResult Index()
 {
     gridView = (GridNew <Group, GroupModel>)Session[GROUP_SEARCH_MODEL];
     if (gridView == null)
     {
         gridView = new GridNew <Group, GroupModel>(
             new Pager
         {
             CurrentPage = 1,
             PageSize    = 10,
             Sidx        = "Name",
         })
         {
             SearchCriteria = new Group()
         };
     }
     UpdateGridData();
     return(View(gridView));
 }
Пример #10
0
        public ActionResult Index()
        {
            _supplierGrid = (GridNew <Supplier, SupplierModels>)Session[SUPPLIER_SEARCH_MODEL];
            if (_supplierGrid == null)
            {
                _supplierGrid = new GridNew <Supplier, SupplierModels>(
                    new Pager
                {
                    CurrentPage = 1,
                    PageSize    = 10,
                    Sord        = "asc",
                    Sidx        = "FullName"
                })
                {
                    SearchCriteria = new Supplier()
                };
            }

            _supplierGrid.Model = new SupplierModels();
            UpdateGridSupplierData();
            return(View(_supplierGrid));
        }
Пример #11
0
 void Awake()
 {
     grid = GameObject.Find("Grid").GetComponent <GridNew>();
 }
Пример #12
0
    GridNew grid;     //Change if using 3D

    void Awake()
    {
        requestManager = GetComponent <PathRequestManagerNew>();
        grid           = GetComponent <GridNew>();
    }