public ActionResult FDCDeviceExport(string channel_name) { string strFileName = channel_name + ".csv"; byte[] file = FDCExportModel.GetFDCDeviceExportFile(channel_name); return(File(file, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", strFileName)); }
public ActionResult FDCExport(string type) { byte[] file = FDCExportModel.GetFDCExportFile(type); return(File(file, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "FDCEXPORT_" + DateTime.Now.ToString("yyyy_MM_dd") + "_" + type + ".xlsx")); }
public ActionResult FDC() { ViewData["FDCDevice"] = FDCExportModel.GetAllDevice(); return(View()); }