IDB0120MF.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. //---------------------------------------------------------------------------
  2. #ifndef IDB0120MFH
  3. #define IDB0120MFH
  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 "CDSCodeF.h"
  25. #include "CDSDsrcF.h"
  26. #include "CDSDsrcOfferSectF.h"
  27. #include "cxButtons.hpp"
  28. #include "cxCheckBox.hpp"
  29. #include "cxClasses.hpp"
  30. #include "cxContainer.hpp"
  31. #include "cxControls.hpp"
  32. #include "cxCustomData.hpp"
  33. #include "cxData.hpp"
  34. #include "cxDataStorage.hpp"
  35. #include "cxDropDownEdit.hpp"
  36. #include "cxEdit.hpp"
  37. #include "cxFilter.hpp"
  38. #include "cxGraphics.hpp"
  39. #include "cxGrid.hpp"
  40. #include "cxGridCustomTableView.hpp"
  41. #include "cxGridCustomView.hpp"
  42. #include "cxGridLevel.hpp"
  43. #include "cxGridTableView.hpp"
  44. #include "cxGroupBox.hpp"
  45. #include "cxLabel.hpp"
  46. #include "cxLookAndFeelPainters.hpp"
  47. #include "cxLookAndFeels.hpp"
  48. #include "cxMaskEdit.hpp"
  49. #include "cxSplitter.hpp"
  50. #include "cxStyles.hpp"
  51. #include "cxTextEdit.hpp"
  52. #include "dxSkinBlack.hpp"
  53. #include "dxSkinBlue.hpp"
  54. #include "dxSkinsCore.hpp"
  55. #include "dxSkinscxPCPainter.hpp"
  56. #include "FRAME_AtrdListF.h"
  57. #include "FRAME_GoogleMapF.h"
  58. #include "GMClasses.hpp"
  59. #include "GMLinkedComponents.hpp"
  60. #include "GMMap.hpp"
  61. #include "GMPolyline.hpp"
  62. #include "GMPolylineVCL.hpp"
  63. //---------------------------------------------------------------------------
  64. //---------------------------------------------------------------------------
  65. #ifndef POLY_MANAGER
  66. #define POLY_MANAGER
  67. class TPolyManager
  68. {
  69. public:
  70. TPolyManager() {};
  71. virtual ~TPolyManager() { FLists.RemoveAll(); };
  72. public:
  73. ListMap<TPolyline> FLists;
  74. public:
  75. };
  76. //---------------------------------------------------------------------------
  77. #endif
  78. class TIDB0120M : public TForm
  79. {
  80. __published: // IDE-managed Components
  81. TTimer *TmrShow;
  82. TShape *ShpTitle;
  83. TcxButton *BtnClose;
  84. TLabel *LblCaption;
  85. TShape *ShpList;
  86. TEdit *EdFocus;
  87. TPanel *PnlBack;
  88. TPanel *PnlLeft;
  89. TcxSplitter *cxSplitter1;
  90. TcxGroupBox *cxGroupBox3;
  91. TcxGroupBox *GrpMap;
  92. TPanel *PnlMenu;
  93. TcxButton *BtnEdit;
  94. TcxButton *BtnInsert;
  95. TcxButton *BtnDelete;
  96. TcxButton *BtnSave;
  97. TcxLabel *cxLabel11;
  98. TPanel *PnlInfo;
  99. TcxGroupBox *GrpInfo;
  100. TImage *ImgDesc01;
  101. TImage *ImgDesc03;
  102. TImage *ImgDesc04;
  103. TImage *ImgDesc07;
  104. TcxLabel *cxLabel1;
  105. TcxLabel *cxLabel3;
  106. TcxLabel *cxLabel4;
  107. TcxLabel *cxLabel7;
  108. TcxTextEdit *EdATRD_ID;
  109. TcxTextEdit *EdId;
  110. TPanel *PnlMap;
  111. TcxGroupBox *GrpLink;
  112. TcxGrid *CxLink;
  113. TcxGridTableView *TvLink;
  114. TcxGridColumn *ColLink1;
  115. TcxGridColumn *ColLink2;
  116. TcxGridColumn *ColLink3;
  117. TcxGridColumn *ColLink4;
  118. TcxGridColumn *ColLink5;
  119. TcxGridColumn *ColLink6;
  120. TcxGridLevel *GlLink;
  121. TPanel *PnlLinkEdit;
  122. TImage *ImgDesc06;
  123. TcxLabel *cxLabel6;
  124. TcxTextEdit *EdLinkId;
  125. TcxButton *BtnLinkAdd;
  126. TcxButton *BtnLinkDel;
  127. TcxGroupBox *GrpGis;
  128. TcxTextEdit *EdATRD_NM;
  129. TcxTextEdit *EdAREA_CD;
  130. TFRAMEAtrdList *FRAMEAtrdList1;
  131. TcxComboBox *CbDRCT_CD;
  132. TcxButton *BtnUp;
  133. TcxButton *BtnDown;
  134. TImage *ImgDesc99;
  135. TcxLabel *cxLabel2;
  136. TcxTextEdit *EdDRCT_NM;
  137. TFRAMEGoogleMap *FRAMEGoogleMap1;
  138. TGMPolyline *GMPolyLink;
  139. TcxLabel *lblInput;
  140. TcxLabel *lblInQry;
  141. TcxLabel *lblDigitErr;
  142. TcxLabel *lblText1;
  143. TcxLabel *lblText2;
  144. TcxLabel *lblText3;
  145. TcxLabel *lblText4;
  146. TcxLabel *lblText5;
  147. TTimer *TmrClear;
  148. TcxCheckBox *ChkGisZoom;
  149. void __fastcall FormShow(TObject *Sender);
  150. void __fastcall TmrShowTimer(TObject *Sender);
  151. void __fastcall BtnCloseClick(TObject *Sender);
  152. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  153. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  154. void __fastcall BtnEditClick(TObject *Sender);
  155. void __fastcall BtnInsertClick(TObject *Sender);
  156. void __fastcall BtnDeleteClick(TObject *Sender);
  157. void __fastcall BtnSaveClick(TObject *Sender);
  158. void __fastcall BtnLinkDelClick(TObject *Sender);
  159. void __fastcall BtnLinkAddClick(TObject *Sender);
  160. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  161. TShiftState AShift, bool &AHandled);
  162. void __fastcall FRAMEAtrdList1TvListCellDblClickSect(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  163. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  164. void __fastcall ChkGisZoomClick(TObject *Sender);
  165. void __fastcall BtnUpClick(TObject *Sender);
  166. void __fastcall BtnDownClick(TObject *Sender);
  167. void __fastcall TmrClearTimer(TObject *Sender);
  168. void __fastcall GMPolyLinkClick(TObject *Sender, TLatLng *LatLng, int Index,
  169. TLinkedComponent *LinkedComponent);
  170. private: // User declarations
  171. void __fastcall CommClose();
  172. TcxDataController *m_pGDC;
  173. String FTitle;
  174. bool FUpdate;
  175. bool FNewDb;
  176. TPolyManager* FPolyManager;
  177. TPolyline* FSelLink;
  178. TColor FSelColor;
  179. void __fastcall FRAMEGoogleMapOnZoomChange(TObject *Sender);
  180. public:
  181. public: // User declarations
  182. __fastcall TIDB0120M(TComponent* Owner);
  183. void __fastcall FormInit();
  184. void __fastcall UpdateList();
  185. void __fastcall InitGisLink();
  186. void __fastcall ClearGisLink();
  187. void __fastcall DisplayInfo(TItsAtrd* AObj);
  188. void __fastcall DisplayLink(TItsAtrd* AObj);
  189. void __fastcall RefreshLink();
  190. void __fastcall ChangeEditMode(int AEdit);
  191. };
  192. //---------------------------------------------------------------------------
  193. extern PACKAGE TIDB0120M *IDB0120M;
  194. //---------------------------------------------------------------------------
  195. #endif