IDB0120MF.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. #include "dxSkinMcSkin.hpp"
  57. //---------------------------------------------------------------------------
  58. class TIDB0120M : public TForm
  59. {
  60. __published: // IDE-managed Components
  61. TTimer *TmrShow;
  62. TShape *ShpTitle;
  63. TcxButton *BtnClose;
  64. TLabel *LblCaption;
  65. TShape *ShpList;
  66. TEdit *EdFocus;
  67. TPanel *PnlBack;
  68. TPanel *PnlLeft;
  69. TcxSplitter *cxSplitter1;
  70. TcxGroupBox *cxGroupBox3;
  71. TcxGroupBox *GrpMap;
  72. TPanel *PnlMenu;
  73. TcxButton *BtnEdit;
  74. TcxButton *BtnInsert;
  75. TcxButton *BtnDelete;
  76. TcxButton *BtnSave;
  77. TcxLabel *cxLabel11;
  78. TPanel *PnlEdit;
  79. TcxGroupBox *GrpInfo;
  80. TImage *ImgDesc01;
  81. TImage *ImgDesc03;
  82. TImage *ImgDesc04;
  83. TImage *ImgDesc07;
  84. TcxLabel *cxLabel1;
  85. TcxLabel *cxLabel3;
  86. TcxLabel *cxLabel4;
  87. TcxLabel *cxLabel7;
  88. TcxTextEdit *EdATRD_ID;
  89. TcxTextEdit *EdId;
  90. TPanel *PnlMap;
  91. TcxGroupBox *GrpLink;
  92. TcxGrid *CxLink;
  93. TcxGridTableView *TvLink;
  94. TcxGridColumn *ColLink1;
  95. TcxGridColumn *ColLink2;
  96. TcxGridColumn *ColLink3;
  97. TcxGridColumn *ColLink4;
  98. TcxGridColumn *ColLink5;
  99. TcxGridColumn *ColLink6;
  100. TcxGridLevel *GlLink;
  101. TPanel *PnlLinkEdit;
  102. TImage *ImgDesc06;
  103. TcxLabel *cxLabel6;
  104. TcxTextEdit *EdLinkId;
  105. TcxButton *BtnLinkAdd;
  106. TcxButton *BtnLinkDel;
  107. TcxGroupBox *GrpGis;
  108. TcxTextEdit *EdATRD_NM;
  109. TcxTextEdit *EdAREA_CD;
  110. TFRAMEAtrdList *FRAMEAtrdList1;
  111. TcxComboBox *CbDRCT_CD;
  112. TcxButton *BtnUp;
  113. TcxButton *BtnDown;
  114. TImage *ImgDesc99;
  115. TcxLabel *cxLabel2;
  116. TcxTextEdit *EdDRCT_NM;
  117. TcxLabel *lblInput;
  118. TcxLabel *lblInQry;
  119. TcxLabel *lblDigitErr;
  120. TcxLabel *lblText1;
  121. TcxLabel *lblText2;
  122. TcxLabel *lblText3;
  123. TcxLabel *lblText4;
  124. TcxLabel *lblText5;
  125. TcxCheckBox *ChkGisZoom;
  126. TFRAMEOpenMap *FRAMEOpenMap1;
  127. TcxGridColumn *ColSeq;
  128. void __fastcall FormShow(TObject *Sender);
  129. void __fastcall TmrShowTimer(TObject *Sender);
  130. void __fastcall BtnCloseClick(TObject *Sender);
  131. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  132. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  133. void __fastcall BtnEditClick(TObject *Sender);
  134. void __fastcall BtnInsertClick(TObject *Sender);
  135. void __fastcall BtnDeleteClick(TObject *Sender);
  136. void __fastcall BtnSaveClick(TObject *Sender);
  137. void __fastcall BtnLinkDelClick(TObject *Sender);
  138. void __fastcall BtnLinkAddClick(TObject *Sender);
  139. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  140. TShiftState AShift, bool &AHandled);
  141. void __fastcall FRAMEAtrdList1TvListCellDblClickSect(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  142. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  143. void __fastcall ChkGisZoomClick(TObject *Sender);
  144. void __fastcall BtnUpClick(TObject *Sender);
  145. void __fastcall BtnDownClick(TObject *Sender);
  146. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  147. bool &ADone);
  148. private: // User declarations
  149. void __fastcall CommClose();
  150. TcxDataController *m_pGDC;
  151. String FTitle;
  152. bool FUpdate;
  153. bool FNewDb;
  154. bool EditMode;
  155. public:
  156. String sJs;
  157. int FLayerIdx;
  158. public: // User declarations
  159. __fastcall TIDB0120M(TComponent* Owner);
  160. void __fastcall FormInit();
  161. void __fastcall UpdateList();
  162. void __fastcall UpdateEditLink();
  163. void __fastcall UpdateNode();
  164. void __fastcall DisplayInfo(TItsAtrd* AObj);
  165. void __fastcall DisplayLink(TItsAtrd* AObj);
  166. void __fastcall RefreshLink();
  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 TIDB0120M *IDB0120M;
  172. //---------------------------------------------------------------------------
  173. #endif