CDSProcessF.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //---------------------------------------------------------------------------
  2. #ifndef CDSProcessFH
  3. #define CDSProcessFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <ADODB.hpp>
  7. #include <DB.hpp>
  8. #include "cxCustomData.hpp"
  9. #include "ITSLibF.h"
  10. #include "ITSDbF.h"
  11. //---------------------------------------------------------------------------
  12. /*
  13. * Process class
  14. */
  15. class TItsProcess
  16. {
  17. public:
  18. TItsProcess();
  19. virtual ~TItsProcess();
  20. void Clear();
  21. private:
  22. bool FModified;
  23. bool FCompleted;
  24. int FEditMode;
  25. public:
  26. String SYST_ID;
  27. String SYST_TYPE;
  28. String SYST_NMBR;
  29. String SYST_NM;
  30. String SYST_IP_1;
  31. String SYST_IP_2;
  32. String PRGM_PORT;
  33. String HOST_NM;
  34. String OS_NM;
  35. String DEL_YN;
  36. String STTS_DSPL_YN;
  37. public:
  38. String FMEM_DEL;
  39. String FCommStatus; // 장비 통신상태값
  40. String FDoorStatus; // 장비 Door상태값
  41. int FGridIndex; // 메인폼에 뿌려지는 그리드 인덱스
  42. protected:
  43. public:
  44. __property bool Modified = {read = FModified};
  45. __property bool Completed = {read = FCompleted, write = FCompleted};
  46. __property int GridIndex = {read = FGridIndex, write = FGridIndex };
  47. __property int EditMode = {read = FEditMode, write = FEditMode };
  48. __property String MEM_DEL = {read = FMEM_DEL, write = FMEM_DEL };
  49. __property String CommStatus = {read = FCommStatus, write = FCommStatus };
  50. __property String DoorStatus = {read = FDoorStatus, write = FDoorStatus };
  51. };
  52. //---------------------------------------------------------------------------
  53. /*
  54. * Process Manager
  55. */
  56. class TItsProcessManager
  57. {
  58. public:
  59. TItsProcessManager();
  60. virtual ~TItsProcessManager();
  61. public:
  62. TItsMap<String, TItsProcess*> FLists;
  63. public:
  64. bool LoadFromDb(TADOConnection *ADbConn=NULL);
  65. bool LoadProcessStatusFromDb(TADOConnection *ADbConn=NULL);
  66. };
  67. //---------------------------------------------------------------------------
  68. extern TItsProcessManager *ItsProcessManager;
  69. //---------------------------------------------------------------------------
  70. #endif