IDB0120MF.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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 "cxButtons.hpp"
  25. #include "cxCalc.hpp"
  26. #include "cxCheckBox.hpp"
  27. #include "cxClasses.hpp"
  28. #include "cxContainer.hpp"
  29. #include "cxControls.hpp"
  30. #include "cxCustomData.hpp"
  31. #include "cxData.hpp"
  32. #include "cxDataStorage.hpp"
  33. #include "cxDropDownEdit.hpp"
  34. #include "cxEdit.hpp"
  35. #include "cxFilter.hpp"
  36. #include "cxGraphics.hpp"
  37. #include "cxGrid.hpp"
  38. #include "cxGridCustomTableView.hpp"
  39. #include "cxGridCustomView.hpp"
  40. #include "cxGridLevel.hpp"
  41. #include "cxGridTableView.hpp"
  42. #include "cxGroupBox.hpp"
  43. #include "cxLabel.hpp"
  44. #include "cxLookAndFeelPainters.hpp"
  45. #include "cxLookAndFeels.hpp"
  46. #include "cxMaskEdit.hpp"
  47. #include "cxSplitter.hpp"
  48. #include "cxStyles.hpp"
  49. #include "cxTextEdit.hpp"
  50. #include "dxSkinBlack.hpp"
  51. #include "dxSkinBlue.hpp"
  52. #include "dxSkinsCore.hpp"
  53. #include "dxSkinscxPCPainter.hpp"
  54. #include "FRAME_AtrdListF.h"
  55. #include "FRAME_OpenMapF.h"
  56. //---------------------------------------------------------------------------
  57. class TIDB0120M : public TForm
  58. {
  59. __published: // IDE-managed Components
  60. TTimer *TmrShow;
  61. TShape *ShpTitle;
  62. TcxButton *BtnClose;
  63. TLabel *LblCaption;
  64. TShape *ShpList;
  65. TEdit *EdFocus;
  66. TPanel *PnlBack;
  67. TPanel *PnlLeft;
  68. TcxSplitter *cxSplitter1;
  69. TcxGroupBox *cxGroupBox3;
  70. TcxGroupBox *GrpMap;
  71. TPanel *PnlMenu;
  72. TcxButton *BtnEdit;
  73. TcxButton *BtnInsert;
  74. TcxButton *BtnDelete;
  75. TcxButton *BtnSave;
  76. TcxLabel *cxLabel11;
  77. TPanel *PnlEdit;
  78. TcxGroupBox *GrpInfo;
  79. TImage *ImgDesc01;
  80. TImage *ImgDesc03;
  81. TImage *ImgDesc04;
  82. TImage *ImgDesc07;
  83. TcxLabel *cxLabel1;
  84. TcxLabel *cxLabel3;
  85. TcxLabel *cxLabel4;
  86. TcxLabel *cxLabel7;
  87. TcxTextEdit *EdATRD_ID;
  88. TcxTextEdit *EdId;
  89. TPanel *PnlMap;
  90. TcxGroupBox *GrpLink;
  91. TcxGrid *CxLink;
  92. TcxGridTableView *TvLink;
  93. TcxGridColumn *ColLink1;
  94. TcxGridColumn *ColLink2;
  95. TcxGridColumn *ColLink3;
  96. TcxGridColumn *ColLink4;
  97. TcxGridColumn *ColLink5;
  98. TcxGridColumn *ColLink6;
  99. TcxGridLevel *GlLink;
  100. TPanel *PnlLinkEdit;
  101. TImage *ImgDesc06;
  102. TcxLabel *cxLabel6;
  103. TcxTextEdit *EdLinkId;
  104. TcxButton *BtnLinkAdd;
  105. TcxButton *BtnLinkDel;
  106. TcxGroupBox *GrpGis;
  107. TcxTextEdit *EdATRD_NM;
  108. TcxTextEdit *EdAREA_CD;
  109. TFRAMEAtrdList *FRAMEAtrdList1;
  110. TcxComboBox *CbDRCT_CD;
  111. TcxButton *BtnUp;
  112. TcxButton *BtnDown;
  113. TImage *ImgDesc99;
  114. TcxLabel *cxLabel2;
  115. TcxTextEdit *EdDRCT_NM;
  116. TcxLabel *lblInput;
  117. TcxLabel *lblInQry;
  118. TcxLabel *lblDigitErr;
  119. TcxLabel *lblText1;
  120. TcxLabel *lblText2;
  121. TcxLabel *lblText3;
  122. TcxLabel *lblText4;
  123. TcxLabel *lblText5;
  124. TcxCheckBox *ChkGisZoom;
  125. TFRAMEOpenMap *FRAMEOpenMap1;
  126. TcxGridColumn *ColSeq;
  127. void __fastcall FormShow(TObject *Sender);
  128. void __fastcall TmrShowTimer(TObject *Sender);
  129. void __fastcall BtnCloseClick(TObject *Sender);
  130. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  131. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  132. void __fastcall BtnEditClick(TObject *Sender);
  133. void __fastcall BtnInsertClick(TObject *Sender);
  134. void __fastcall BtnDeleteClick(TObject *Sender);
  135. void __fastcall BtnSaveClick(TObject *Sender);
  136. void __fastcall BtnLinkDelClick(TObject *Sender);
  137. void __fastcall BtnLinkAddClick(TObject *Sender);
  138. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  139. TShiftState AShift, bool &AHandled);
  140. void __fastcall FRAMEAtrdList1TvListCellDblClickSect(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  141. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  142. void __fastcall ChkGisZoomClick(TObject *Sender);
  143. void __fastcall BtnUpClick(TObject *Sender);
  144. void __fastcall BtnDownClick(TObject *Sender);
  145. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  146. bool &ADone);
  147. private: // User declarations
  148. void __fastcall CommClose();
  149. TcxDataController *m_pGDC;
  150. String FTitle;
  151. bool FUpdate;
  152. bool FNewDb;
  153. bool EditMode;
  154. public:
  155. String sJs;
  156. int FLayerIdx;
  157. public: // User declarations
  158. __fastcall TIDB0120M(TComponent* Owner);
  159. void __fastcall FormInit();
  160. void __fastcall UpdateList();
  161. void __fastcall UpdateEditLink();
  162. void __fastcall UpdateNode();
  163. void __fastcall DisplayInfo(TItsAtrd* AObj);
  164. void __fastcall DisplayLink(TItsAtrd* AObj);
  165. void __fastcall RefreshLink();
  166. void __fastcall ChangeEditMode(int AEdit);
  167. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  168. };
  169. //---------------------------------------------------------------------------
  170. extern PACKAGE TIDB0120M *IDB0120M;
  171. //---------------------------------------------------------------------------
  172. #endif