VDSM100MF.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. //---------------------------------------------------------------------------
  2. #ifndef VDSM100MFH
  3. #define VDSM100MFH
  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 "CDSVdsCtlrF.h"
  23. #include "cxButtons.hpp"
  24. #include "cxClasses.hpp"
  25. #include "cxContainer.hpp"
  26. #include "cxControls.hpp"
  27. #include "cxCustomData.hpp"
  28. #include "cxData.hpp"
  29. #include "cxDataStorage.hpp"
  30. #include "cxDropDownEdit.hpp"
  31. #include "cxEdit.hpp"
  32. #include "cxFilter.hpp"
  33. #include "cxGraphics.hpp"
  34. #include "cxGrid.hpp"
  35. #include "cxGridCustomTableView.hpp"
  36. #include "cxGridCustomView.hpp"
  37. #include "cxGridLevel.hpp"
  38. #include "cxGridTableView.hpp"
  39. #include "cxGroupBox.hpp"
  40. #include "cxLabel.hpp"
  41. #include "cxLookAndFeelPainters.hpp"
  42. #include "cxLookAndFeels.hpp"
  43. #include "cxMaskEdit.hpp"
  44. #include "cxSpinEdit.hpp"
  45. #include "cxSplitter.hpp"
  46. #include "cxStyles.hpp"
  47. #include "cxTextEdit.hpp"
  48. #include "dxSkinBlue.hpp"
  49. #include "dxSkinsCore.hpp"
  50. #include "dxSkinscxPCPainter.hpp"
  51. #include "FRAME_OpenMapF.h"
  52. #include "FRAME_VdsListF.h"
  53. //---------------------------------------------------------------------------
  54. class TVDSM100M : public TForm
  55. {
  56. __published: // IDE-managed Components
  57. TTimer *TmrShow;
  58. TShape *ShpTitle;
  59. TcxButton *BtnClose;
  60. TLabel *LblCaption;
  61. TShape *ShpList;
  62. TEdit *EdFocus;
  63. TPanel *PnlBack;
  64. TPanel *PnlLeft;
  65. TcxSplitter *cxSplitter1;
  66. TcxGroupBox *cxGroupBox3;
  67. TPanel *PnlBottom;
  68. TcxGroupBox *GrpInfo;
  69. TPanel *PnlMenu;
  70. TcxButton *BtnEdit;
  71. TcxButton *BtnInsert;
  72. TcxButton *BtnDelete;
  73. TcxButton *BtnSave;
  74. TcxLabel *cxLabel11;
  75. TcxLabel *cxLabel12;
  76. TPanel *PnlEdit;
  77. TImage *ImgDesc01;
  78. TImage *ImgDesc02;
  79. TImage *ImgDesc03;
  80. TImage *ImgDesc04;
  81. TImage *ImgDesc06;
  82. TImage *ImgDesc07;
  83. TImage *ImgDesc11;
  84. TcxTextEdit *EdVdsId;
  85. TcxTextEdit *EdVdsNm;
  86. TcxTextEdit *EdNmbr;
  87. TcxSpinEdit *SePosX;
  88. TcxSpinEdit *SePosY;
  89. TcxLabel *cxLabel1;
  90. TcxLabel *cxLabel2;
  91. TcxLabel *cxLabel3;
  92. TcxLabel *cxLabel6;
  93. TcxLabel *cxLabel18;
  94. TcxMaskEdit *EdCtlrIp;
  95. TcxComboBox *CbType;
  96. TcxLabel *cxLabel8;
  97. TcxLabel *cxLabel5;
  98. TcxTextEdit *EdCmncPort;
  99. TcxSplitter *cxSplitter2;
  100. TcxGroupBox *GrpMap;
  101. TcxSpinEdit *Se_GROUP_NO;
  102. TImage *ImgDesc14;
  103. TcxLabel *cxLabel9;
  104. TcxLabel *lblText1;
  105. TcxLabel *lblText2;
  106. TcxLabel *lblText3;
  107. TcxLabel *lblText4;
  108. TcxLabel *lblText5;
  109. TcxLabel *lblText6;
  110. TcxLabel *lblText7;
  111. TcxLabel *lblText8;
  112. TcxLabel *lblText9;
  113. TFRAMEOpenMap *FRAMEOpenMap1;
  114. TImage *ImgDesc15;
  115. TcxLabel *cxLabel4;
  116. TImage *ImgDesc18;
  117. TcxLabel *cxLabel13;
  118. TcxLabel *cxLabel14;
  119. TcxSpinEdit *SeBordNum;
  120. TcxSpinEdit *Se_TRAF_CLCT_CYCL;
  121. TcxSpinEdit *Se_STTS_CLCT_CYCL;
  122. TcxLabel *cxLabel7;
  123. TcxLabel *cxLabel10;
  124. TcxButton *BtnListAdd;
  125. TcxButton *BtnListDelete;
  126. TcxGrid *CxCmra;
  127. TcxGridTableView *TvCmra;
  128. TcxGridColumn *ColCmra1;
  129. TcxGridColumn *ColCmra2;
  130. TcxGridColumn *ColCmra3;
  131. TcxGridLevel *GlCmra;
  132. TFRAMEVdsList *FRAMEVdsList1;
  133. TcxComboBox *Cb_CMRA_DRCT_CD;
  134. TcxGridColumn *ColCmra4;
  135. TcxSpinEdit *Se_LOCAL_NO;
  136. TcxTextEdit *Ed_ISTL_LCTN_NM;
  137. TcxLabel *cxLabel15;
  138. TImage *ImgDesc16;
  139. TcxGridColumn *ColCmra5;
  140. TcxGridColumn *ColCmra6;
  141. TcxGridColumn *ColCmra7;
  142. TcxGridColumn *ColCmra8;
  143. TcxLabel *cxLabel16;
  144. TcxTextEdit *ISTL_LCTN_ADDR;
  145. TImage *ImgDesc25;
  146. void __fastcall FormShow(TObject *Sender);
  147. void __fastcall TmrShowTimer(TObject *Sender);
  148. void __fastcall BtnCloseClick(TObject *Sender);
  149. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  150. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  151. void __fastcall BtnEditClick(TObject *Sender);
  152. void __fastcall BtnInsertClick(TObject *Sender);
  153. void __fastcall BtnDeleteClick(TObject *Sender);
  154. void __fastcall BtnSaveClick(TObject *Sender);
  155. void __fastcall FRAMEVdsList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  156. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  157. TShiftState AShift, bool &AHandled);
  158. void __fastcall Ed_VDS_PORTKeyPress(TObject *Sender, wchar_t &Key);
  159. void __fastcall Se_VDS_CHNLPropertiesChange(TObject *Sender);
  160. void __fastcall BtnListAddClick(TObject *Sender);
  161. void __fastcall BtnListDeleteClick(TObject *Sender);
  162. private: // User declarations
  163. void __fastcall CommClose();
  164. TcxDataController *m_pGDC;
  165. String FTitle;
  166. bool FUpdate;
  167. bool FNewDb;
  168. bool EditMode;
  169. public:
  170. String sJs;
  171. int FLayerIdx;
  172. public: // User declarations
  173. __fastcall TVDSM100M(TComponent* Owner);
  174. void __fastcall FormInit();
  175. void __fastcall UpdateIcon();
  176. void __fastcall DisplayInfo(TVdsCtlr* AObj, bool AMoveObj=true);
  177. void __fastcall DisplayCmra(TVdsCtlr* AObj);
  178. void __fastcall ChangeEditMode(int AEdit);
  179. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  180. };
  181. //---------------------------------------------------------------------------
  182. extern PACKAGE TVDSM100M *VDSM100M;
  183. //---------------------------------------------------------------------------
  184. #endif