DSRM010MF.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. //---------------------------------------------------------------------------
  2. #ifndef DSRM010MFH
  3. #define DSRM010MFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <DB.hpp>
  10. #include <DBClient.hpp>
  11. #include <FMTBcd.hpp>
  12. #include <Provider.hpp>
  13. #include <SqlExpr.hpp>
  14. #include <Menus.hpp>
  15. #include <ExtCtrls.hpp>
  16. #include <Graphics.hpp>
  17. #include <ComCtrls.hpp>
  18. #include <ADODB.hpp>
  19. #include <Dialogs.hpp>
  20. #include <ExtDlgs.hpp>
  21. //---------------------------------------------------------------------------
  22. #include "CDSCodeF.h"
  23. #include "CDSFacilityF.h"
  24. //---------------------------------------------------------------------------
  25. #include "WindowMsgF.h"
  26. #include "FRAME_DsrcListF.h"
  27. #include "cxButtons.hpp"
  28. #include "cxCheckBox.hpp"
  29. #include "cxContainer.hpp"
  30. #include "cxControls.hpp"
  31. #include "cxDropDownEdit.hpp"
  32. #include "cxEdit.hpp"
  33. #include "cxGraphics.hpp"
  34. #include "cxGroupBox.hpp"
  35. #include "cxLabel.hpp"
  36. #include "cxLookAndFeelPainters.hpp"
  37. #include "cxLookAndFeels.hpp"
  38. #include "cxMaskEdit.hpp"
  39. #include "cxSpinEdit.hpp"
  40. #include "cxSplitter.hpp"
  41. #include "cxTextEdit.hpp"
  42. #include "dxSkinBlack.hpp"
  43. #include "dxSkinBlue.hpp"
  44. #include "dxSkinsCore.hpp"
  45. #include "dxSkinMcSkin.hpp"
  46. #include "FRAME_OpenMapF.h"
  47. class TDSRM010M : public TForm
  48. {
  49. __published: // IDE-managed Components
  50. TTimer *TmrShow;
  51. TShape *ShpTitle;
  52. TcxButton *BtnClose;
  53. TLabel *LblCaption;
  54. TShape *ShpList;
  55. TEdit *EdFocus;
  56. TPanel *PnlBack;
  57. TPanel *PnlLeft;
  58. TcxSplitter *cxSplitter1;
  59. TcxGroupBox *cxGroupBox3;
  60. TcxGroupBox *GrpMap;
  61. TFRAMEDsrcList *FRAMEDsrcList1;
  62. TcxGroupBox *GrpInfo;
  63. TPanel *PnlMenu;
  64. TcxSplitter *cxSplitter2;
  65. TcxButton *BtnEdit;
  66. TcxButton *BtnInsert;
  67. TcxButton *BtnDelete;
  68. TcxButton *BtnSave;
  69. TFRAMEOpenMap *FRAMEOpenMap1;
  70. TPanel *PnlEdit;
  71. TImage *ImgDesc01;
  72. TImage *ImgDesc02;
  73. TImage *ImgDesc03;
  74. TImage *ImgDesc04;
  75. TImage *ImgDesc05;
  76. TImage *ImgDesc06;
  77. TImage *ImgDesc07;
  78. TImage *ImgDesc08;
  79. TImage *ImgDesc09;
  80. TImage *ImgDesc10;
  81. TImage *ImgDesc11;
  82. TImage *ImgDesc12;
  83. TcxLabel *cxLabel7;
  84. TcxLabel *cxLabel10;
  85. TcxTextEdit *EdRseId;
  86. TcxTextEdit *EdRoadSpotId;
  87. TcxTextEdit *EdLogCnncId;
  88. TcxTextEdit *EdLogCnncPwd;
  89. TcxTextEdit *EdIstlLctnNm;
  90. TcxTextEdit *EdIP;
  91. TcxTextEdit *EdPort;
  92. TcxTextEdit *EdId;
  93. TcxSpinEdit *SePosX;
  94. TcxSpinEdit *SePosY;
  95. TcxLabel *cxLabel1;
  96. TcxLabel *cxLabel2;
  97. TcxLabel *cxLabel3;
  98. TcxLabel *cxLabel4;
  99. TcxLabel *cxLabel5;
  100. TcxLabel *cxLabel6;
  101. TcxLabel *cxLabel8;
  102. TcxLabel *cxLabel9;
  103. TcxLabel *cxLabel11;
  104. TcxLabel *cxLabel12;
  105. TcxComboBox *CbMnfcCmpyCd;
  106. TcxLabel *cxLabel18;
  107. TcxLabel *cxLabel19;
  108. TcxSpinEdit *SeCLCT_ABNR_BASI;
  109. TcxGroupBox *cxGroupBox1;
  110. TcxLabel *cxLabel20;
  111. TcxSpinEdit *SeAbnrAll;
  112. TcxButton *BtnSaveAll;
  113. void __fastcall FormShow(TObject *Sender);
  114. void __fastcall TmrShowTimer(TObject *Sender);
  115. void __fastcall BtnCloseClick(TObject *Sender);
  116. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  117. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  118. void __fastcall FRAMEDsrcList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  119. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  120. void __fastcall BtnEditClick(TObject *Sender);
  121. void __fastcall BtnInsertClick(TObject *Sender);
  122. void __fastcall BtnDeleteClick(TObject *Sender);
  123. void __fastcall BtnSaveClick(TObject *Sender);
  124. void __fastcall BtnSaveAllClick(TObject *Sender);
  125. void __fastcall EdPortKeyPress(TObject *Sender, wchar_t &Key);
  126. private: // User declarations
  127. void __fastcall CommClose();
  128. TcxDataController *m_pGDC;
  129. String FTitle;
  130. bool FUpdate;
  131. bool FNewDb;
  132. bool EditMode;
  133. public:
  134. String sJs;
  135. int FLayerIdx;
  136. public: // User declarations
  137. __fastcall TDSRM010M(TComponent* Owner);
  138. void __fastcall FormInit();
  139. void __fastcall UpdateIcon();
  140. void __fastcall DisplayInfo(TItsDsrc* AObj, bool AMoveObj=true);
  141. void __fastcall ChangeEditMode(int AEdit);
  142. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  143. };
  144. //---------------------------------------------------------------------------
  145. extern PACKAGE TDSRM010M *DSRM010M;
  146. //---------------------------------------------------------------------------
  147. #endif