VDSM010MF.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. //---------------------------------------------------------------------------
  2. #ifndef VDSM010MFH
  3. #define VDSM010MFH
  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. //---------------------------------------------------------------------------
  23. #include "WindowMsgF.h"
  24. #include "FRAME_VdsListF.h"
  25. #include "cxButtons.hpp"
  26. #include "cxCheckBox.hpp"
  27. #include "cxContainer.hpp"
  28. #include "cxControls.hpp"
  29. #include "cxDropDownEdit.hpp"
  30. #include "cxEdit.hpp"
  31. #include "cxGraphics.hpp"
  32. #include "cxGroupBox.hpp"
  33. #include "cxLabel.hpp"
  34. #include "cxLookAndFeelPainters.hpp"
  35. #include "cxLookAndFeels.hpp"
  36. #include "cxMaskEdit.hpp"
  37. #include "cxSpinEdit.hpp"
  38. #include "cxSplitter.hpp"
  39. #include "cxTextEdit.hpp"
  40. #include "dxSkinBlack.hpp"
  41. #include "dxSkinBlue.hpp"
  42. #include "dxSkinsCore.hpp"
  43. #include "FRAME_GoogleMapF.h"
  44. #include "GMClasses.hpp"
  45. #include "GMLinkedComponents.hpp"
  46. #include "GMMap.hpp"
  47. #include "GMMarker.hpp"
  48. #include "GMMarkerVCL.hpp"
  49. class TVDSM010M : public TForm
  50. {
  51. __published: // IDE-managed Components
  52. TTimer *TmrShow;
  53. TShape *ShpTitle;
  54. TcxButton *BtnClose;
  55. TLabel *LblCaption;
  56. TShape *ShpList;
  57. TEdit *EdFocus;
  58. TPanel *PnlBack;
  59. TPanel *PnlLeft;
  60. TcxSplitter *cxSplitter1;
  61. TcxGroupBox *cxGroupBox3;
  62. TPanel *PnlBottom;
  63. TcxGroupBox *GrpInfo;
  64. TPanel *PnlMenu;
  65. TcxSplitter *cxSplitter2;
  66. TcxGroupBox *GrpMap;
  67. TcxCheckBox *ChkViewIcon;
  68. TcxCheckBox *ChkViewName;
  69. TFRAMEGoogleMap *FRAMEGoogleMap1;
  70. TGMMarker *GMMarker1;
  71. TGMMarker *GMMarkerNew;
  72. TcxLabel *lblFileName;
  73. TcxLabel *lblInput;
  74. TcxLabel *lblInQry;
  75. TcxLabel *lblDigit;
  76. TcxLabel *lblDigitErr;
  77. TcxLabel *lblDel1;
  78. TcxLabel *lblDel2;
  79. TcxLabel *lblDel3;
  80. TFRAMEVdsList *FRAMEVdsList1;
  81. TcxButton *BtnEdit;
  82. TcxButton *BtnInsert;
  83. TcxButton *BtnDelete;
  84. TcxButton *BtnSave;
  85. TPanel *PnlEdit;
  86. TImage *ImgDesc01;
  87. TImage *ImgDesc02;
  88. TImage *ImgDesc03;
  89. TImage *ImgDesc04;
  90. TImage *ImgDesc05;
  91. TImage *ImgDesc06;
  92. TImage *ImgDesc07;
  93. TImage *ImgDesc08;
  94. TImage *ImgDesc09;
  95. TImage *ImgDesc10;
  96. TImage *ImgDesc11;
  97. TImage *ImgDesc21;
  98. TcxTextEdit *EdMngmNmbr;
  99. TcxTextEdit *EdLctn;
  100. TcxTextEdit *EdIP;
  101. TcxTextEdit *EdPort;
  102. TcxSpinEdit *SePosX;
  103. TcxSpinEdit *SePosY;
  104. TcxLabel *cxLabel1;
  105. TcxLabel *cxLabel2;
  106. TcxLabel *cxLabel3;
  107. TcxLabel *cxLabel4;
  108. TcxLabel *cxLabel6;
  109. TcxLabel *cxLabel7;
  110. TcxLabel *cxLabel8;
  111. TcxLabel *cxLabel9;
  112. TcxLabel *cxLabel10;
  113. TcxComboBox *CbTypeCd;
  114. TcxLabel *cxLabel11;
  115. TcxLabel *cxLabel12;
  116. TcxComboBox *CbValidYn;
  117. TcxLabel *cxLabel5;
  118. TcxLabel *cxLabel13;
  119. TcxSpinEdit *SeClctCycle;
  120. TcxSpinEdit *SeSttsCycl;
  121. TcxSpinEdit *SeBordNum;
  122. TcxTextEdit *EdVdsId;
  123. TcxLabel *cxLabel14;
  124. TcxTextEdit *EdId;
  125. void __fastcall FormShow(TObject *Sender);
  126. void __fastcall TmrShowTimer(TObject *Sender);
  127. void __fastcall BtnCloseClick(TObject *Sender);
  128. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  129. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  130. void __fastcall ChkViewIconClick(TObject *Sender);
  131. void __fastcall BtnEditClick(TObject *Sender);
  132. void __fastcall BtnInsertClick(TObject *Sender);
  133. void __fastcall BtnDeleteClick(TObject *Sender);
  134. void __fastcall BtnSaveClick(TObject *Sender);
  135. void __fastcall FRAMEVdsList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  136. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  137. void __fastcall GMMarker1Click(TObject *Sender, TLatLng *LatLng, int Index, TLinkedComponent *LinkedComponent);
  138. void __fastcall GMMarker1DragEnd(TObject *Sender, TLatLng *LatLng, int Index,
  139. TLinkedComponent *LinkedComponent);
  140. void __fastcall GMMarkerNewDragEnd(TObject *Sender, TLatLng *LatLng, int Index,
  141. TLinkedComponent *LinkedComponent);
  142. private: // User declarations
  143. void __fastcall CommClose();
  144. TcxDataController *m_pGDC;
  145. String FTitle;
  146. bool FUpdate;
  147. bool FNewDb;
  148. bool MapStart;
  149. bool EditMode;
  150. public:
  151. TMarker *FNewMkr;
  152. TMarker *FSelMkr;
  153. public: // User declarations
  154. __fastcall TVDSM010M(TComponent* Owner);
  155. void __fastcall FormInit();
  156. void __fastcall UpdateIcon();
  157. void __fastcall DisplayInfo(TItsVds* AObj, bool AMoveVms=false);
  158. void __fastcall SelListData();
  159. TMarker * _fastcall FindObjectMarker(String AId);
  160. void __fastcall ChangeEditMode(int AEdit);
  161. };
  162. //---------------------------------------------------------------------------
  163. extern PACKAGE TVDSM010M *VDSM010M;
  164. //---------------------------------------------------------------------------
  165. #endif