public void Forecast(int StationID, DateTime TargetDate)
 {
     TargetDate = TargetDate.Date;
     DatabaseConnector dc = new DatabaseConnector();
     if (dc.SelectForecastDayStationData(StationID, TargetDate, 1).Count > 0)
         return;
     List<List<RuntimeStationData>> HistoryData = GetPredictData(StationID, TargetDate);
     List<ForecastDayStationData> DataList = dayforecastslot(HistoryData);
     foreach (ForecastDayStationData Record in DataList)
     {
         Record.StationID = StationID;
         Record.Time = TargetDate + TimeSpan.FromMinutes(Record.ID * 15);
         dc.AddForecastDayStationData(Record);
     }
 }
 public LogUser FindLogUser(int ID)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.FindLogUser(ID);
 }
 public RuntimeStationData FindRuntimeStationData(int ID)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.FindRuntimeStationData(ID);
 }
 public ConfigStationInformation FindConfigStationInformation(int ID)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.FindConfigStationInformation(ID);
 }
 public ConfigStationInformation FindConfigStationInformationByStationName(string StationName)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.FindConfigStationInformationByStationName(StationName);
 }
 public int AddRuntimeStationData(RuntimeStationData Record)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.AddRuntimeStationData(Record);
 }
 public string DMain()
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.DMain();
 }
 public int AddForecastDayStationData(ForecastDayStationData Record)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.AddForecastDayStationData(Record);
 }
 public int AddLogUser(LogUser Record)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.AddLogUser(Record);
 }
 public int AddConfigStationInformation(ConfigStationInformation Record)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.AddStationLineInformation(Record);
 }
 public List<RuntimeStationData> UpdateRuntimeStationData(int StartID, int StationID)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.UpdateRuntimeStationData(StartID,StationID);
 }
 public List<RuntimeStationData> SelectRuntimeStationData(int StationID, DateTime TargetDate)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.SelectRuntimeStationData(StationID,TargetDate);
 }
 public List<ForecastDayStationData> SelectForecastDayStationData(int StationID, DateTime TargetDate,int Forecast)
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.SelectForecastDayStationData(StationID, TargetDate,Forecast);
 }
 public List<ConfigStationInformation> SelectConfigStationInformation()
 {
     DatabaseConnector dc = new DatabaseConnector();
     return dc.SelectConfigStationInformation();
 }