示例#1
0
        public JsonResult GetModelList()
        {
            //return this.PartialView();
            IList<Road> roads = Road.GetList();
            //return this.PartialView(autos);
            //JsonConvert.SerializeObject(autos);

            var stateList = Road.GetList();
            var model = new JqData()
            {
                records = 10,
                page = 1,
                rows = roads,
                total = stateList.Count
            };
            return this.Json(model, JsonRequestBehavior.AllowGet);
        }
        public JsonResult GetModelList(GridSettings grid)
        {
            IList<TractionCharacteristics> tractionCharacteristics = TractionCharacteristics.GetList();

            var stateList = TractionCharacteristics.GetList();
            var model = new JqData()
            {
                records = 10,
                page = 1,
                rows = tractionCharacteristics,
                total = stateList.Count
            };
            return this.Json(model, JsonRequestBehavior.AllowGet);
        }
示例#3
0
        public JsonResult GetModelList(GridSettings grid)
        {
            IList<RoadKind> roads = RoadKind.GetList();

            var stateList = RoadKind.GetList();
            var model = new JqData()
            {
                records = 10,
                page = 1,
                rows = roads,
                total = stateList.Count
            };
            return this.Json(model, JsonRequestBehavior.AllowGet);
        }
        public JsonResult GetModelList(GridSettings grid)
        {
            IList<OpenpitBlocks> openpitBlocks = OpenpitBlocks.GetList();

            var stateList = OpenpitBlocks.GetList();
            var model = new JqData()
            {
                records = 10,
                page = 1,
                rows = openpitBlocks,
                total = stateList.Count
            };
            return this.Json(model, JsonRequestBehavior.AllowGet);
        }
示例#5
0
        public JsonResult GetModelList(GridSettings grid)
        {
            IList<Engines> engines = Engines.GetList();

            var stateList = Engines.GetList();
            var model = new JqData()
            {
                records = 10,
                page = 1,
                rows = engines,
                total = stateList.Count
            };
            return this.Json(model, JsonRequestBehavior.AllowGet);
        }
        public JsonResult GetModelList()
        {
            IList<EnterpriseAuto> autos = EnterpriseAuto.GetList();

            var stateList = EnterpriseAuto.GetList();
            var model = new JqData()
            {
                records = 10,
                page = 1,
                rows = autos,
                total = stateList.Count
            };
            return this.Json(model, JsonRequestBehavior.AllowGet);
        }