DSRM030MF.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. //---------------------------------------------------------------------------
  2. #ifndef DSRM030MFH
  3. #define DSRM030MFH
  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 "CDSDsrcSectF.h"
  27. #include "FRAME_DsrcListF.h"
  28. #include "FRAME_DsrcSectListF.h"
  29. #include "FRAME_FlashMapF.h"
  30. #include "cxButtons.hpp"
  31. #include "cxCalc.hpp"
  32. #include "cxCheckBox.hpp"
  33. #include "cxClasses.hpp"
  34. #include "cxContainer.hpp"
  35. #include "cxControls.hpp"
  36. #include "cxCustomData.hpp"
  37. #include "cxData.hpp"
  38. #include "cxDataStorage.hpp"
  39. #include "cxEdit.hpp"
  40. #include "cxFilter.hpp"
  41. #include "cxGraphics.hpp"
  42. #include "cxGrid.hpp"
  43. #include "cxGridCustomTableView.hpp"
  44. #include "cxGridCustomView.hpp"
  45. #include "cxGridLevel.hpp"
  46. #include "cxGridTableView.hpp"
  47. #include "cxGroupBox.hpp"
  48. #include "cxLabel.hpp"
  49. #include "cxLookAndFeelPainters.hpp"
  50. #include "cxLookAndFeels.hpp"
  51. #include "cxSplitter.hpp"
  52. #include "cxStyles.hpp"
  53. #include "cxTextEdit.hpp"
  54. #include "dxSkinBlack.hpp"
  55. #include "dxSkinBlue.hpp"
  56. #include "dxSkinsCore.hpp"
  57. #include "dxSkinscxPCPainter.hpp"
  58. class TDSRM030M : 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. TcxLabel *cxLabel12;
  79. TcxGroupBox *cxGroupBox1;
  80. TcxTextEdit *EdRseSectId;
  81. TcxTextEdit *EdStartSpotId;
  82. TcxTextEdit *EdStartSpotNm;
  83. TcxTextEdit *EdRseSectName;
  84. TcxTextEdit *EdEndSpotId;
  85. TcxTextEdit *EdEndSpotNm;
  86. TcxTextEdit *EdRseSectLength;
  87. TImage *ImgDesc01;
  88. TcxLabel *cxLabel1;
  89. TImage *ImgDesc02;
  90. TcxLabel *cxLabel2;
  91. TImage *ImgDesc03;
  92. TcxLabel *cxLabel3;
  93. TImage *ImgDesc04;
  94. TcxLabel *cxLabel4;
  95. TImage *ImgDesc05;
  96. TcxLabel *cxLabel5;
  97. TcxLabel *cxLabel8;
  98. TcxGroupBox *cxGroupBox2;
  99. TcxGrid *CxLink;
  100. TcxGridTableView *TvLink;
  101. TcxGridColumn *ColLink1;
  102. TcxGridColumn *ColLink2;
  103. TcxGridColumn *ColLink3;
  104. TcxGridColumn *ColLink4;
  105. TcxGridLevel *GlLink;
  106. TcxGridColumn *ColLink5;
  107. TcxGridColumn *ColLink6;
  108. TcxGroupBox *cxGroupBox4;
  109. TPanel *PnlLinkEdit;
  110. TImage *ImgDesc06;
  111. TcxLabel *cxLabel6;
  112. TcxTextEdit *EdLinkId;
  113. TcxButton *BtnLinkAdd;
  114. TcxButton *BtnLinkDel;
  115. TcxGroupBox *cxGroupBox5;
  116. TcxSplitter *cxSplitter2;
  117. TFRAMEDsrcList *FRAMEDsrcList1;
  118. TcxCheckBox *cxCheckBox1;
  119. TcxCheckBox *cxCheckBox2;
  120. TcxLabel *cxLabel10;
  121. TcxLabel *cxLabel13;
  122. TFRAMEDsrcSectList *FRAMEDsrcSectList1;
  123. TcxGridColumn *ColLink7;
  124. TcxLabel *cxLabel14;
  125. TFRAMEFlashMap *FRAMEGisMap1;
  126. TcxCheckBox *ChkViewIcon;
  127. TcxCheckBox *ChkViewName;
  128. TcxCheckBox *ChkGisZoom;
  129. void __fastcall FormShow(TObject *Sender);
  130. void __fastcall TmrShowTimer(TObject *Sender);
  131. void __fastcall BtnCloseClick(TObject *Sender);
  132. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  133. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  134. void __fastcall BtnEditClick(TObject *Sender);
  135. void __fastcall BtnInsertClick(TObject *Sender);
  136. void __fastcall BtnDeleteClick(TObject *Sender);
  137. void __fastcall BtnSaveClick(TObject *Sender);
  138. void __fastcall FRAMEDsrcList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  139. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  140. void __fastcall cxCheckBox1Click(TObject *Sender);
  141. void __fastcall cxCheckBox2Click(TObject *Sender);
  142. void __fastcall BtnLinkDelClick(TObject *Sender);
  143. void __fastcall BtnLinkAddClick(TObject *Sender);
  144. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  145. TShiftState AShift, bool &AHandled);
  146. void __fastcall FRAMEDsrcSectList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  147. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  148. void __fastcall ChkGisZoomClick(TObject *Sender);
  149. void __fastcall ChkViewIconClick(TObject *Sender);
  150. private: // User declarations
  151. void __fastcall CommClose();
  152. TcxDataController *m_pGDC;
  153. String FTitle;
  154. bool FUpdate;
  155. bool FNewDb;
  156. bool MapStart;
  157. TItsDsrcSectManager *MyItsDsrcSectManager;
  158. public:
  159. public: // User declarations
  160. __fastcall TDSRM030M(TComponent* Owner);
  161. void __fastcall FormInit();
  162. void __fastcall UpdateRseIcon();
  163. void __fastcall UpdateList();
  164. void __fastcall DisplayInfo(TItsDsrcSect* AObj);
  165. void __fastcall DisplaySectLink(TItsDsrcSect* AObj);
  166. void __fastcall RefreshSectLink();
  167. void __fastcall ChangeEditMode(int AEdit);
  168. void __fastcall ShockwaveFlash1FlashCall1(TObject *ASender, const WideString request);
  169. };
  170. //---------------------------------------------------------------------------
  171. extern PACKAGE TDSRM030M *DSRM030M;
  172. //---------------------------------------------------------------------------
  173. #endif