Пример #1
0
        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));
        }
Пример #2
0
 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"));
 }
Пример #3
0
        public ActionResult FDC()
        {
            ViewData["FDCDevice"] = FDCExportModel.GetAllDevice();

            return(View());
        }