コード例 #1
0
        public ActionResult Index(string namc      = "", string plant = "", string line = "", DateTime?startDate = null,
                                  DateTime?endDate = null, bool displayAllData = false)
        {
            ModelState.Clear();
            var vm = new DoorLineDataSearchVM(namc, plant, line, DateTime.Today, DateTime.Today, false);

            return(View(vm));
        }
コード例 #2
0
        public ActionResult Index()
        {
            DoorLineDataSearchVM vm = new DoorLineDataSearchVM();

            TryUpdateModel(vm);

            var html = ViewRenderedAsString.RenderViewToString("_SampleGrid", vm, ControllerContext);

            var returnJson = Json(new { success = true, html });

            returnJson.MaxJsonLength = int.MaxValue;
            return(returnJson);
        }