DSRM030MF.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. #include "CDSCodeF.h"
  23. #include "CDSFacilityF.h"
  24. #include "CDSNodeF.h"
  25. #include "CDSLinkF.h"
  26. #include "CDSIfscF.h"
  27. #include "CDSRoadF.h"
  28. #include "CDSDsrcSectF.h"
  29. //---------------------------------------------------------------------------
  30. #include "WindowMsgF.h"
  31. #include "cxButtons.hpp"
  32. #include "cxCalendar.hpp"
  33. #include "cxContainer.hpp"
  34. #include "cxControls.hpp"
  35. #include "cxDropDownEdit.hpp"
  36. #include "cxEdit.hpp"
  37. #include "cxGraphics.hpp"
  38. #include "cxGroupBox.hpp"
  39. #include "cxLabel.hpp"
  40. #include "cxLookAndFeelPainters.hpp"
  41. #include "cxLookAndFeels.hpp"
  42. #include "cxMaskEdit.hpp"
  43. #include "cxPC.hpp"
  44. #include "cxPCdxBarPopupMenu.hpp"
  45. #include "cxSpinEdit.hpp"
  46. #include "cxSplitter.hpp"
  47. #include "cxTextEdit.hpp"
  48. #include "cxTimeEdit.hpp"
  49. #include "dxSkinBlack.hpp"
  50. #include "dxSkinBlue.hpp"
  51. #include "dxSkinCaramel.hpp"
  52. #include "dxSkinCoffee.hpp"
  53. #include "dxSkinDarkRoom.hpp"
  54. #include "dxSkinDarkSide.hpp"
  55. #include "dxSkinFoggy.hpp"
  56. #include "dxSkinGlassOceans.hpp"
  57. #include "dxSkiniMaginary.hpp"
  58. #include "dxSkinLilian.hpp"
  59. #include "dxSkinLiquidSky.hpp"
  60. #include "dxSkinLondonLiquidSky.hpp"
  61. #include "dxSkinMcSkin.hpp"
  62. #include "dxSkinMoneyTwins.hpp"
  63. #include "dxSkinOffice2007Black.hpp"
  64. #include "dxSkinOffice2007Blue.hpp"
  65. #include "dxSkinOffice2007Green.hpp"
  66. #include "dxSkinOffice2007Pink.hpp"
  67. #include "dxSkinOffice2007Silver.hpp"
  68. #include "dxSkinOffice2010Black.hpp"
  69. #include "dxSkinOffice2010Blue.hpp"
  70. #include "dxSkinOffice2010Silver.hpp"
  71. #include "dxSkinsCore.hpp"
  72. #include "dxSkinscxPCPainter.hpp"
  73. #include "dxSkinSeven.hpp"
  74. #include "dxSkinSharp.hpp"
  75. #include "dxSkinSilver.hpp"
  76. #include "dxSkinStardust.hpp"
  77. #include "FRAME_DsrcListF.h"
  78. #include "cxRadioGroup.hpp"
  79. #include "cxClasses.hpp"
  80. #include "cxCustomData.hpp"
  81. #include "cxData.hpp"
  82. #include "cxDataStorage.hpp"
  83. #include "cxDBData.hpp"
  84. #include "cxFilter.hpp"
  85. #include "cxGrid.hpp"
  86. #include "cxGridCustomTableView.hpp"
  87. #include "cxGridCustomView.hpp"
  88. #include "cxGridDBTableView.hpp"
  89. #include "cxGridLevel.hpp"
  90. #include "cxGridTableView.hpp"
  91. #include "cxStyles.hpp"
  92. #include "cxCheckBox.hpp"
  93. #include "cxCalc.hpp"
  94. #include "FRAME_DsrcSectListF.h"
  95. #include "FRAME_OpenMapF.h"
  96. class TDSRM030M : public TForm
  97. {
  98. __published: // IDE-managed Components
  99. TTimer *TmrShow;
  100. TShape *ShpTitle;
  101. TcxButton *BtnClose;
  102. TLabel *LblCaption;
  103. TShape *ShpList;
  104. TEdit *EdFocus;
  105. TPanel *PnlBack;
  106. TPanel *PnlLeft;
  107. TcxSplitter *cxSplitter1;
  108. TcxGroupBox *cxGroupBox3;
  109. TcxGroupBox *GrpMap;
  110. TPanel *PnlMenu;
  111. TcxButton *BtnEdit;
  112. TcxButton *BtnInsert;
  113. TcxButton *BtnDelete;
  114. TcxButton *BtnSave;
  115. TcxLabel *cxLabel11;
  116. TcxLabel *cxLabel12;
  117. TcxGroupBox *GrpInfo;
  118. TcxTextEdit *EdRseSectId;
  119. TcxTextEdit *EdStartSpotId;
  120. TcxTextEdit *EdStartSpotNm;
  121. TcxTextEdit *EdRseSectName;
  122. TcxTextEdit *EdEndSpotId;
  123. TcxTextEdit *EdEndSpotNm;
  124. TcxTextEdit *EdRseSectLength;
  125. TImage *ImgDesc01;
  126. TcxLabel *cxLabel1;
  127. TImage *ImgDesc02;
  128. TcxLabel *cxLabel2;
  129. TImage *ImgDesc03;
  130. TcxLabel *cxLabel3;
  131. TImage *ImgDesc04;
  132. TcxLabel *cxLabel4;
  133. TImage *ImgDesc05;
  134. TcxLabel *cxLabel5;
  135. TcxGroupBox *GrpLink;
  136. TcxGrid *CxLink;
  137. TcxGridTableView *TvLink;
  138. TcxGridColumn *ColLink1;
  139. TcxGridColumn *ColLink2;
  140. TcxGridColumn *ColLink3;
  141. TcxGridColumn *ColLink4;
  142. TcxGridLevel *GlLink;
  143. TcxGridColumn *ColLink5;
  144. TcxGridColumn *ColLink6;
  145. TcxGroupBox *cxGroupBox4;
  146. TPanel *PnlLinkEdit;
  147. TImage *ImgDesc06;
  148. TcxLabel *cxLabel6;
  149. TcxTextEdit *EdLinkId;
  150. TcxButton *BtnLinkAdd;
  151. TcxButton *BtnLinkDel;
  152. TcxGroupBox *cxGroupBox5;
  153. TcxSplitter *cxSplitter2;
  154. TFRAMEDsrcList *FRAMEDsrcList1;
  155. TcxCheckBox *cxCheckBox1;
  156. TcxCheckBox *cxCheckBox2;
  157. TFRAMEDsrcSectList *FRAMEDsrcSectList1;
  158. TcxGridColumn *ColLink7;
  159. TcxLabel *cxLabel14;
  160. TcxCheckBox *ChkViewIcon;
  161. TcxCheckBox *ChkGisZoom;
  162. TFRAMEOpenMap *FRAMEOpenMap1;
  163. TcxGridColumn *ColSeq;
  164. void __fastcall FormShow(TObject *Sender);
  165. void __fastcall TmrShowTimer(TObject *Sender);
  166. void __fastcall BtnCloseClick(TObject *Sender);
  167. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  168. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  169. void __fastcall BtnEditClick(TObject *Sender);
  170. void __fastcall BtnInsertClick(TObject *Sender);
  171. void __fastcall BtnDeleteClick(TObject *Sender);
  172. void __fastcall BtnSaveClick(TObject *Sender);
  173. void __fastcall FRAMEDsrcList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  174. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  175. void __fastcall cxCheckBox1Click(TObject *Sender);
  176. void __fastcall cxCheckBox2Click(TObject *Sender);
  177. void __fastcall BtnLinkDelClick(TObject *Sender);
  178. void __fastcall BtnLinkAddClick(TObject *Sender);
  179. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  180. TShiftState AShift, bool &AHandled);
  181. void __fastcall FRAMEDsrcSectList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  182. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  183. void __fastcall ChkGisZoomClick(TObject *Sender);
  184. void __fastcall ChkViewIconClick(TObject *Sender);
  185. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  186. bool &ADone);
  187. private: // User declarations
  188. void __fastcall CommClose();
  189. TcxDataController *m_pGDC;
  190. String FTitle;
  191. bool FUpdate;
  192. bool FNewDb;
  193. bool EditMode;
  194. public:
  195. String sJs;
  196. int FLayerIdx;
  197. TItsDsrcSectManager *MyItsDsrcSectManager;
  198. public: // User declarations
  199. __fastcall TDSRM030M(TComponent* Owner);
  200. void __fastcall FormInit();
  201. void __fastcall UpdateRseIcon();
  202. void __fastcall UpdateList();
  203. void __fastcall UpdateEditLink();
  204. void __fastcall AddRemoveLink(String ALinkId);
  205. void __fastcall DisplayInfo(TItsDsrcSect* AObj);
  206. void __fastcall DisplaySectLink(TItsDsrcSect* AObj);
  207. void __fastcall RefreshSectLink();
  208. void __fastcall ChangeEditMode(int AEdit);
  209. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  210. };
  211. //---------------------------------------------------------------------------
  212. extern PACKAGE TDSRM030M *DSRM030M;
  213. //---------------------------------------------------------------------------
  214. #endif