Beispiel #1
0
        public ActionResult CompareTemplateObjectFormatVersions(string tabId, int parentId, int[] IDs)
        {
            var version = _formatService.GetMergedObjectFormatVersion(IDs, parentId, false);
            var model   = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, false);

            ViewData[SpecialKeys.IsEntityReadOnly] = true;
            return(JsonHtml("CompareObjectFormatVersionProperties", model));
        }
Beispiel #2
0
        public async Task <ActionResult> CompareWithCurrentPageObjectFormatVersion(string tabId, int parentId, int id, string successfulActionCode)
        {
            var version = _formatService.GetMergedObjectFormatVersion(new[] { id, ObjectFormatVersion.CurrentVersionId }, parentId, true);
            var model   = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, true);

            ViewData[SpecialKeys.IsEntityReadOnly] = true;
            model.SuccesfulActionCode = successfulActionCode;
            return(await JsonHtml("CompareObjectFormatVersionProperties", model));
        }
Beispiel #3
0
        public async Task <ActionResult> CompareTemplateObjectFormatVersions(
            string tabId, int parentId, [FromBody] SelectedItemsViewModel selModel
            )
        {
            var version = _formatService.GetMergedObjectFormatVersion(selModel.Ids, parentId, false);
            var model   = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, false);

            ViewData[SpecialKeys.IsEntityReadOnly] = true;
            return(await JsonHtml("CompareObjectFormatVersionProperties", model));
        }