/// <summary> /// 地图导出 /// </summary> /// <param name="MapTime">UTCTime</param> /// <param name="FileName">保存路径</param> /// <returns></returns> public bool Export_Map(long MapTime, string FileName) { try { string sql = IO_AGVMapService.ExportSettings(MapTime, "agv") + IO_AGVMapService.ExportMySqlTables("tag" + MapTime, "agv") + IO_AGVMapService.ExportMySqlTables("line" + MapTime, "agv") + IO_AGVMapService.ExportMySqlTables("device" + MapTime, "agv") + IO_AGVMapService.ExportMySqlTables("widget" + MapTime, "agv") + IO_AGVMapService.ExportMySqlTables("route" + MapTime, "agv"); sql = sql + IO_AGVMapService.ExportTableContents("map", "agv", MapTime.ToString()); File.WriteAllText(FileName, sql); return(true); } catch (Exception ex) { throw new Exception(ex.Message); } }