コード例 #1
0
        public ActionResult Index(string tabId, int parentId)
        {
            var result = FieldService.InitList(parentId);
            var model  = FieldListViewModel.Create(result, tabId, parentId);

            return(JsonHtml("Index", model));
        }
コード例 #2
0
        public ActionResult MultipleSelectForExportExpanded(string tabId, int parentId, int[] IDs)
        {
            var result = FieldService.InitList(parentId);
            var model  = new FieldSelectableListViewModel(result, tabId, parentId, IDs, ActionCode.MultipleSelectFieldForExportExpanded)
            {
                IsMultiple = true
            };

            return(JsonHtml("MultiSelectIndex", model));
        }
コード例 #3
0
        public async Task <ActionResult> MultipleSelectForExportExpanded(string tabId, int parentId, [FromBody] SelectedItemsViewModel selModel)
        {
            var result = FieldService.InitList(parentId);
            var model  = new FieldSelectableListViewModel(result, tabId, parentId, selModel.Ids, ActionCode.MultipleSelectFieldForExportExpanded)
            {
                IsMultiple = true
            };

            return(await JsonHtml("MultiSelectIndex", model));
        }