Beispiel #1
0
        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"));
        }
Beispiel #2
0
 public string Search(DataPrivilegeListVM vm)
 {
     return(vm.GetJson(false));
 }
Beispiel #3
0
 public IActionResult ExportExcel(DataPrivilegeListVM vm)
 {
     return(vm.GetExportData());
 }
Beispiel #4
0
 public ActionResult Index(DataPrivilegeListVM vm)
 {
     vm.Searcher.TableNames = Wtm.DataPrivilegeSettings.ToListItems(x => x.PrivillegeName, x => x.ModelName);
     return(PartialView(vm));
 }