EVSP100MF.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 *ImgDesc03;
  77. TcxLabel *cxLabel6;
  78. TcxSplitter *cxSplitter2;
  79. TcxGroupBox *GrpMap;
  80. TcxLabel *lblText1;
  81. TcxLabel *lblText2;
  82. TcxLabel *lblText3;
  83. TcxLabel *lblText4;
  84. TcxLabel *lblText5;
  85. TFRAMEOpenMap *FRAMEOpenMap1;
  86. TcxLabel *cxLabel14;
  87. TcxSpinEdit *Se_STTS_CLCT_CYCL;
  88. TcxLabel *cxLabel7;
  89. TcxLabel *cxLabel10;
  90. TPanel *Panel1;
  91. TcxLabel *lblText6;
  92. TcxLabel *lblText7;
  93. TcxLabel *lblText8;
  94. TcxLabel *lblText9;
  95. TImage *ImgDesc01;
  96. TcxLabel *cxLabel1;
  97. TcxComboBox *CbType;
  98. TcxButton *BtnListDelete;
  99. TcxButton *BtnListAdd;
  100. TcxSpinEdit *Se_TRAF_CLCT_CYCL;
  101. TcxLabel *cxLabel13;
  102. TImage *ImgDesc18;
  103. TcxLabel *cxLabel4;
  104. TImage *ImgDesc15;
  105. TImage *ImgDesc25;
  106. TcxLabel *cxLabel16;
  107. TcxTextEdit *ISTL_LCTN_ADDR;
  108. TcxTextEdit *Ed_ISTL_LCTN_NM;
  109. TcxLabel *cxLabel15;
  110. TImage *ImgDesc16;
  111. TcxComboBox *Cb_CMRA_DRCT_CD;
  112. TcxSpinEdit *SeBordNum;
  113. TcxLabel *cxLabel9;
  114. TImage *ImgDesc14;
  115. TcxSpinEdit *Se_LOCAL_NO;
  116. TcxSpinEdit *Se_GROUP_NO;
  117. TcxLabel *cxLabel5;
  118. TImage *ImgDesc07;
  119. TImage *ImgDesc06;
  120. TcxLabel *cxLabel3;
  121. TcxMaskEdit *EdCtlrIp;
  122. TcxTextEdit *EdCmncPort;
  123. TcxTextEdit *EdType;
  124. TcxTextEdit *EdId;
  125. TcxSplitter *cxSplitter1;
  126. TPanel *PnlLeft;
  127. TcxGroupBox *cxGroupBox3;
  128. TFRAMESgnlCtlrList *FRAMESgnlCtlrList1;
  129. TcxGroupBox *cxGroupBox1;
  130. TcxLabel *cxLabel17;
  131. TcxLabel *cxLabel19;
  132. TPanel *Panel3;
  133. TcxSpinEdit *cxSpinEdit3;
  134. TImage *ImgDesc02;
  135. TImage *ImgDesc04;
  136. TImage *ImgDesc11;
  137. TcxTextEdit *EdNm;
  138. TcxSpinEdit *SePosX;
  139. TcxSpinEdit *SePosY;
  140. TcxLabel *cxLabel2;
  141. TcxLabel *cxLabel18;
  142. TcxLabel *cxLabel8;
  143. TcxTextEdit *EdNmbr;
  144. void __fastcall FormShow(TObject *Sender);
  145. void __fastcall TmrShowTimer(TObject *Sender);
  146. void __fastcall BtnCloseClick(TObject *Sender);
  147. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  148. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  149. void __fastcall BtnEditClick(TObject *Sender);
  150. void __fastcall BtnInsertClick(TObject *Sender);
  151. void __fastcall BtnDeleteClick(TObject *Sender);
  152. void __fastcall BtnSaveClick(TObject *Sender);
  153. void __fastcall FRAMESgnlCtlrList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  154. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  155. TShiftState AShift, bool &AHandled);
  156. void __fastcall Ed_VDS_PORTKeyPress(TObject *Sender, wchar_t &Key);
  157. void __fastcall Se_VDS_CHNLPropertiesChange(TObject *Sender);
  158. private: // User declarations
  159. void __fastcall CommClose();
  160. TcxDataController *m_pGDC;
  161. String FTitle;
  162. bool FUpdate;
  163. bool FNewDb;
  164. bool EditMode;
  165. public:
  166. String sJs;
  167. int FLayerIdx;
  168. public: // User declarations
  169. __fastcall TEVSP100M(TComponent* Owner);
  170. void __fastcall FormInit();
  171. void __fastcall UpdateIcon();
  172. void __fastcall DisplayInfo(TSgnlCtlr* AObj, bool AMoveObj=true);
  173. void __fastcall ChangeEditMode(int AEdit);
  174. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  175. };
  176. //---------------------------------------------------------------------------
  177. extern PACKAGE TEVSP100M *EVSP100M;
  178. //---------------------------------------------------------------------------
  179. #endif