// GET: /PlantPlan/
        public ActionResult Index()
        {
            var landBlock = _landBlockService.GetLandBlockPaging(string.Empty, 1, 1000);
            var seed      = _seedBaseService.GetSeedPagingList(string.Empty, 1, 1000);

            ViewBag.LandBlock = new SelectList(landBlock.rows, "BlockID", "BlockName");
            ViewBag.SeedList  = new SelectList(seed.rows, "SeedID", "SeedName");
            return(View());
        }
예제 #2
0
        /// <summary>
        /// 获取数据列表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="rows"></param>
        /// <returns></returns>
        public JsonResult GetLandBlockList(int page, int rows)
        {
            var result = new GridList <LandBlockDto>();

            try
            {
                string blockName = RequestHelper.RequestPost("blockName", string.Empty);
                result = _landBlock.GetLandBlockPaging(blockName, page, rows);
            }
            catch (Exception)
            {
            }

            return(Json(result));
        }