protected void Application_Start(object sender, EventArgs e) { SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin")); UDP.UDPServer myServer = new UDP.UDPServer(); DataClasses.TowTruckCleanser myCleanser = new DataClasses.TowTruckCleanser(); MiscData.LogonCheck myCheck = new MiscData.LogonCheck(); Logging.EventLogger myLogger = new Logging.EventLogger(); myLogger.LogEvent(DateTime.Now.ToString() + Environment.NewLine + "FSP Service Started", false); //Data loaded once during run of application. SQL.SQLCode mySQL = new SQL.SQLCode(); int SpeedingValue = Convert.ToInt32(mySQL.GetVarValue("Speeding")); DataClasses.GlobalData.SpeedingValue = SpeedingValue; mySQL.LoadCode1098s(); mySQL.LoadFreeways(); mySQL.LoadIncidentTypes(); mySQL.LoadLocationCoding(); mySQL.LoadServiceTypes(); mySQL.LoadTowLocations(); mySQL.LoadTrafficSpeeds(); mySQL.LoadVehiclePositions(); mySQL.LoadVehicleTypes(); mySQL.LoadContractors(); mySQL.LoadLeeways(); mySQL.LoadBeatSchedules(); mySQL.LoadDropZones(); BeatData.Beats.LoadBeats(); BeatData.Beats.LoadBeatSegments(); BeatData.YardClass.LoadYards(); DataClasses.BulkLogger myBulkLogger = new DataClasses.BulkLogger(); DataClasses.TruckDumper myDumper = new DataClasses.TruckDumper(); }
protected void Application_Start(object sender, EventArgs e) { SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin")); myServer = new UDP.UDPServer(); DataClasses.TowTruckCleanser myCleanser = new DataClasses.TowTruckCleanser(); MiscData.LogonCheck myCheck = new MiscData.LogonCheck(); Logging.EventLogger myLogger = new Logging.EventLogger(); myLogger.LogEvent(DateTime.Now.ToString() + Environment.NewLine + "FSP Service Started", false); //Data loaded once during run of application. SQL.SQLCode mySQL = new SQL.SQLCode(); int SpeedingValue = Convert.ToInt32(mySQL.GetVarValue("Speeding")); DataClasses.GlobalData.SpeedingLeeway = SpeedingValue; mySQL.LoadIncidentTypes(); mySQL.LoadLocationAbbreviations(); mySQL.LoadVehiclePositions(); mySQL.LoadVehicleTypes(); mySQL.LoadTransportations(); mySQL.LoadHighwaysBeats(); mySQL.LoadBeatsFreeways(); mySQL.LoadLeeways(); mySQL.LoadBeatSchedules(); mySQL.LoadCallSigns(); mySQL.LoadSchedules(); mySQL.LoadFreeways(); //mySQL.loadBeatData(); mySQL.loadBeatInformation(); mySQL.loadBeatSegmentData(); mySQL.loadYardData(); mySQL.loadDropSiteData(); mySQL.loadCallBoxData(); mySQL.loadActiveBeats(); DataClasses.BulkLogger myBulkLogger = new DataClasses.BulkLogger(); DataClasses.TruckDumper myDumper = new DataClasses.TruckDumper(); DataClasses.SurveyControlChecker check = new DataClasses.SurveyControlChecker(); //loop the running surveys and kill any that should be stopped MiscData.DataDumper dump = new MiscData.DataDumper(); //dump the playback data every 30 seconds WAZE.GetWAZE.startLooping(); //loop check the WAZE feed, monitor and maintain everything /* **************** * CAD INTEGRATORS * ***************/ cListener = new CADIntegration.CADListener(); cSender = new CADIntegration.CADSender(); }
protected void Application_Start(object sender, EventArgs e) { myServer = new UDP.UDPServer(); DataClasses.TowTruckCleanser myCleanser = new DataClasses.TowTruckCleanser(); MiscData.LogonCheck myCheck = new MiscData.LogonCheck(); Logging.EventLogger myLogger = new Logging.EventLogger(); myLogger.LogEvent(DateTime.Now.ToString() + Environment.NewLine + "FSP Service Started", false); //Data loaded once during run of application. SQL.SQLCode mySQL = new SQL.SQLCode(); int SpeedingValue = Convert.ToInt32(mySQL.GetVarValue("Speeding")); DataClasses.GlobalData.SpeedingLeeway = SpeedingValue; mySQL.LoadIncidentTypes(); mySQL.LoadLocationAbbreviations(); mySQL.LoadVehiclePositions(); mySQL.LoadVehicleTypes(); mySQL.LoadTransportations(); mySQL.LoadHighwaysBeats(); /* Base Data Loads, used by the tablets: Deprecated. We're not using these values anymore. * mySQL.LoadCode1098s(); * mySQL.LoadFreeways(); * mySQL.LoadServiceTypes(); * mySQL.LoadTowLocations(); * mySQL.LoadTrafficSpeeds(); * mySQL.LoadContractors(); */ mySQL.LoadBeatsFreeways(); mySQL.LoadLeeways(); mySQL.LoadBeatSchedules(); mySQL.LoadCallSigns(); mySQL.LoadSchedules(); mySQL.LoadFreeways(); //this is the new way to load polygon data, comment if necessary for production /* * mySQL.loadBeatData(); * mySQL.loadBeatSegmentData(); * mySQL.loadYardData(); * mySQL.loadDropSiteData(); */ /* DEPRECATED - We're removing Esri, replaced with db data, uncomment if necessary for production*/ BeatData.EsriBeats.LoadBeats(); BeatData.EsriBeats.LoadBeatData(); BeatData.EsriSegments.LoadSegments(); BeatData.EsriYards.LoadYards(); BeatData.EsriDropSites.LoadDropSites(); DataClasses.BulkLogger myBulkLogger = new DataClasses.BulkLogger(); DataClasses.TruckDumper myDumper = new DataClasses.TruckDumper(); DataClasses.SurveyControlChecker check = new DataClasses.SurveyControlChecker(); //loop the running surveys and kill any that should be stopped MiscData.DataDumper dump = new MiscData.DataDumper(); //dump the playback data every 30 seconds /* **************** * CAD INTEGRATORS * ***************/ cListener = new CADIntegration.CADListener(); cSender = new CADIntegration.CADSender(); }