public IActionResult ExportExcel(DataPrivilegeListVM vm) { vm.SearcherMode = vm.Ids != null && vm.Ids.Count > 0 ? ListVMSearchModeEnum.CheckExport : ListVMSearchModeEnum.Export; var data = vm.GenerateExcel(); return(File(data, "application/vnd.ms-excel", $"Export_DataPrivilege_{DateTime.Now.ToString("yyyy-MM-dd")}.xls")); }
public string Search(DataPrivilegeListVM vm) { return(vm.GetJson(false)); }
public IActionResult ExportExcel(DataPrivilegeListVM vm) { return(vm.GetExportData()); }
public ActionResult Index(DataPrivilegeListVM vm) { vm.Searcher.TableNames = Wtm.DataPrivilegeSettings.ToListItems(x => x.PrivillegeName, x => x.ModelName); return(PartialView(vm)); }