RtDataCollectionCallback.cs 771 B

123456789101112131415161718192021222324252627282930313233
  1. using Aitex.Common.Util;
  2. using Aitex.Core.RT.DataCollection;
  3. using Aitex.Core.RT.Event;
  4. using Aitex.Triton160.Common;
  5. using Aitex.Triton160.RT;
  6. namespace Aitex.RT.Module
  7. {
  8. class RtDataCollectionCallback : IDataCollectionCallback
  9. {
  10. public void PostDBFailedEvent()
  11. {
  12. EV.PostMessage(ModuleName.System.ToString(), EventEnum.DbConnFailed, ModuleNameString.ToCstring(ModuleName.System));
  13. }
  14. public string GetSqlUpdateFile()
  15. {
  16. return PathManager.GetCfgDir() + "SqlUpdate.sql";
  17. }
  18. public string GetDataTablePrefix()
  19. {
  20. return ModuleName.System.ToString();
  21. }
  22. public string GetDBName()
  23. {
  24. return RtInstance.DbName;
  25. }
  26. }
  27. }