CDSVmsFormF.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //---------------------------------------------------------------------------
  2. #ifndef CDSVmsFormFH
  3. #define CDSVmsFormFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <stdio.h>
  7. #include <ADODB.hpp>
  8. #include <DB.hpp>
  9. //---------------------------------------------------------------------------
  10. #include "ITSLibF.h"
  11. //---------------------------------------------------------------------------
  12. #define FORM_OBJ_KIND_FIGURE "H"
  13. #define FORM_OBJ_KIND_IMAGE "I"
  14. #define FORM_OBJ_KIND_TEXT "P"
  15. #define FORM_OBJ_KIND_CCTV "C"
  16. #define FORM_OBJ_KIND_MOVIE "M"
  17. /*
  18. * class
  19. */
  20. class TFormObjCell
  21. {
  22. public:
  23. TFormObjCell() {};
  24. ~TFormObjCell(){};
  25. public:
  26. int OBJ_SEQ;
  27. String OBJ_ID;
  28. int OBJ_PSTN_X;
  29. int OBJ_PSTN_Y;
  30. };
  31. /*
  32. * class
  33. */
  34. class TCDSVmsForm
  35. {
  36. public:
  37. TCDSVmsForm() {};
  38. ~TCDSVmsForm() {};
  39. public:
  40. String VMS_FORM_ID;
  41. String VALID_YN;
  42. public:
  43. void Init();
  44. };
  45. //---------------------------------------------------------------------------
  46. /*
  47. * Manager
  48. */
  49. class TCDSVmsFormManager
  50. {
  51. public:
  52. TCDSVmsFormManager();
  53. virtual ~TCDSVmsFormManager();
  54. public:
  55. TItsMap<String, TCDSVmsForm*> FLists;
  56. public:
  57. void Init();
  58. bool LoadFromDb(TADOConnection *ADbConn=NULL);
  59. void AddVmsForm(String AVMS_FORM_ID, String AVALID_YN);
  60. bool IsValid(String AVMS_FORM_ID);
  61. };
  62. //---------------------------------------------------------------------------
  63. extern TCDSVmsFormManager *CDSVmsFormManager;
  64. //---------------------------------------------------------------------------
  65. #endif