public IActionResult ExportExcel(DeviceListVM 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_Device_{DateTime.Now.ToString("yyyy-MM-dd")}.xls")); }
public override void EnterPage() { DeviceListVM.ListAllConnectedDevices(); }
public string Search(DeviceListVM vm) { return(vm.GetJson(false)); }