//
        // GET: /TabletisingCommandSubSystem/TabletisingStartStop/
        public ActionResult Index()
        {
            var model = new TabletisingStartStopViewModel()
            {
                GridTabletising         = GenerateGridTabletising(),
                GridTabletisingSelected = GenerateGridTabletisingSelected()
            };

            return(View(model));
        }
        public ActionResult ShowTabletising(TabletisingStartStopViewModel model, GridSettings gridSettings)
        {
            var terminalNo = _identityService.FindTerminalNo(HttpContext.User.Identity);

            if (string.IsNullOrEmpty(gridSettings.SortField))
            {
                gridSettings.SortField = "F41_KndCmdNo";
                gridSettings.SortOrder = SortOrder.Asc;
            }
            var result = _tabletisingStartStopDomain.SearchCriteria(gridSettings, terminalNo);

            if (!result.IsSuccess)
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
            return(Json(result.Data, JsonRequestBehavior.AllowGet));
        }