EVSP100MF.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. //---------------------------------------------------------------------------
  2. #ifndef EVSP100MFH
  3. #define EVSP100MFH
  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 "CDSCrossF.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_SgnlCtlrListF.h"
  53. #include "dxSkinBlack.hpp"
  54. #include "dxSkinMcSkin.hpp"
  55. //---------------------------------------------------------------------------
  56. class TEVSP100M : public TForm
  57. {
  58. __published: // IDE-managed Components
  59. TTimer *TmrShow;
  60. TShape *ShpTitle;
  61. TcxButton *BtnClose;
  62. TLabel *LblCaption;
  63. TShape *ShpList;
  64. TEdit *EdFocus;
  65. TPanel *PnlBack;
  66. TPanel *PnlBottom;
  67. TcxGroupBox *GrpInfo;
  68. TPanel *PnlMenu;
  69. TcxButton *BtnEdit;
  70. TcxButton *BtnInsert;
  71. TcxButton *BtnDelete;
  72. TcxButton *BtnSave;
  73. TcxLabel *cxLabel11;
  74. TcxLabel *cxLabel12;
  75. TPanel *PnlEdit;
  76. TImage *ImgDesc02;
  77. TImage *ImgDesc03;
  78. TImage *ImgDesc04;
  79. TImage *ImgDesc11;
  80. TcxTextEdit *EdNm;
  81. TcxSpinEdit *SePosX;
  82. TcxSpinEdit *SePosY;
  83. TcxLabel *cxLabel2;
  84. TcxLabel *cxLabel6;
  85. TcxLabel *cxLabel18;
  86. TcxLabel *cxLabel8;
  87. TcxSplitter *cxSplitter2;
  88. TcxGroupBox *GrpMap;
  89. TcxLabel *lblText1;
  90. TcxLabel *lblText2;
  91. TcxLabel *lblText3;
  92. TcxLabel *lblText4;
  93. TcxLabel *lblText5;
  94. TFRAMEOpenMap *FRAMEOpenMap1;
  95. TcxLabel *cxLabel14;
  96. TcxSpinEdit *Se_STTS_CLCT_CYCL;
  97. TcxLabel *cxLabel7;
  98. TcxLabel *cxLabel10;
  99. TPanel *Panel1;
  100. TcxLabel *lblText6;
  101. TcxLabel *lblText7;
  102. TcxLabel *lblText8;
  103. TcxLabel *lblText9;
  104. TImage *ImgDesc01;
  105. TcxLabel *cxLabel1;
  106. TcxComboBox *CbType;
  107. TcxButton *BtnListDelete;
  108. TcxButton *BtnListAdd;
  109. TcxSpinEdit *Se_TRAF_CLCT_CYCL;
  110. TcxLabel *cxLabel13;
  111. TImage *ImgDesc18;
  112. TcxLabel *cxLabel4;
  113. TImage *ImgDesc15;
  114. TImage *ImgDesc25;
  115. TcxLabel *cxLabel16;
  116. TcxTextEdit *ISTL_LCTN_ADDR;
  117. TcxTextEdit *Ed_ISTL_LCTN_NM;
  118. TcxLabel *cxLabel15;
  119. TImage *ImgDesc16;
  120. TcxComboBox *Cb_CMRA_DRCT_CD;
  121. TcxSpinEdit *SeBordNum;
  122. TcxLabel *cxLabel9;
  123. TImage *ImgDesc14;
  124. TcxSpinEdit *Se_LOCAL_NO;
  125. TcxSpinEdit *Se_GROUP_NO;
  126. TcxLabel *cxLabel5;
  127. TImage *ImgDesc07;
  128. TImage *ImgDesc06;
  129. TcxLabel *cxLabel3;
  130. TcxMaskEdit *EdCtlrIp;
  131. TcxTextEdit *EdCmncPort;
  132. TcxTextEdit *EdType;
  133. TcxTextEdit *EdId;
  134. TcxTextEdit *EdNmbr;
  135. TcxGroupBox *cxGroupBox3;
  136. TFRAMESgnlCtlrList *FRAMESgnlCtlrList1;
  137. TcxSplitter *cxSplitter1;
  138. void __fastcall FormShow(TObject *Sender);
  139. void __fastcall TmrShowTimer(TObject *Sender);
  140. void __fastcall BtnCloseClick(TObject *Sender);
  141. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  142. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  143. void __fastcall BtnEditClick(TObject *Sender);
  144. void __fastcall BtnInsertClick(TObject *Sender);
  145. void __fastcall BtnDeleteClick(TObject *Sender);
  146. void __fastcall BtnSaveClick(TObject *Sender);
  147. void __fastcall FRAMESgnlCtlrList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  148. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  149. TShiftState AShift, bool &AHandled);
  150. void __fastcall Ed_VDS_PORTKeyPress(TObject *Sender, wchar_t &Key);
  151. void __fastcall Se_VDS_CHNLPropertiesChange(TObject *Sender);
  152. private: // User declarations
  153. void __fastcall CommClose();
  154. TcxDataController *m_pGDC;
  155. String FTitle;
  156. bool FUpdate;
  157. bool FNewDb;
  158. bool EditMode;
  159. public:
  160. String sJs;
  161. int FLayerIdx;
  162. public: // User declarations
  163. __fastcall TEVSP100M(TComponent* Owner);
  164. void __fastcall FormInit();
  165. void __fastcall UpdateIcon();
  166. void __fastcall DisplayInfo(TSgnlCtlr* AObj, bool AMoveObj=true);
  167. void __fastcall ChangeEditMode(int AEdit);
  168. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  169. };
  170. //---------------------------------------------------------------------------
  171. extern PACKAGE TEVSP100M *EVSP100M;
  172. //---------------------------------------------------------------------------
  173. #endif