AVIM020MF.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. //---------------------------------------------------------------------------
  2. #ifndef AVIM020MFH
  3. #define AVIM020MFH
  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 "cxCalendar.hpp"
  29. #include "cxContainer.hpp"
  30. #include "cxControls.hpp"
  31. #include "cxDropDownEdit.hpp"
  32. #include "cxEdit.hpp"
  33. #include "cxGraphics.hpp"
  34. #include "cxGroupBox.hpp"
  35. #include "cxLabel.hpp"
  36. #include "cxLookAndFeelPainters.hpp"
  37. #include "cxLookAndFeels.hpp"
  38. #include "cxMaskEdit.hpp"
  39. #include "cxPC.hpp"
  40. #include "cxPCdxBarPopupMenu.hpp"
  41. #include "cxSpinEdit.hpp"
  42. #include "cxSplitter.hpp"
  43. #include "cxTextEdit.hpp"
  44. #include "cxTimeEdit.hpp"
  45. #include "dxSkinBlack.hpp"
  46. #include "dxSkinBlue.hpp"
  47. #include "dxSkinCaramel.hpp"
  48. #include "dxSkinCoffee.hpp"
  49. #include "dxSkinDarkRoom.hpp"
  50. #include "dxSkinDarkSide.hpp"
  51. #include "dxSkinFoggy.hpp"
  52. #include "dxSkinGlassOceans.hpp"
  53. #include "dxSkiniMaginary.hpp"
  54. #include "dxSkinLilian.hpp"
  55. #include "dxSkinLiquidSky.hpp"
  56. #include "dxSkinLondonLiquidSky.hpp"
  57. #include "dxSkinMcSkin.hpp"
  58. #include "dxSkinMoneyTwins.hpp"
  59. #include "dxSkinOffice2007Black.hpp"
  60. #include "dxSkinOffice2007Blue.hpp"
  61. #include "dxSkinOffice2007Green.hpp"
  62. #include "dxSkinOffice2007Pink.hpp"
  63. #include "dxSkinOffice2007Silver.hpp"
  64. #include "dxSkinOffice2010Black.hpp"
  65. #include "dxSkinOffice2010Blue.hpp"
  66. #include "dxSkinOffice2010Silver.hpp"
  67. #include "dxSkinsCore.hpp"
  68. #include "dxSkinscxPCPainter.hpp"
  69. #include "dxSkinSeven.hpp"
  70. #include "dxSkinSharp.hpp"
  71. #include "dxSkinSilver.hpp"
  72. #include "dxSkinStardust.hpp"
  73. #include "cxRadioGroup.hpp"
  74. #include "cxClasses.hpp"
  75. #include "cxCustomData.hpp"
  76. #include "cxData.hpp"
  77. #include "cxDataStorage.hpp"
  78. #include "cxDBData.hpp"
  79. #include "cxFilter.hpp"
  80. #include "cxGrid.hpp"
  81. #include "cxGridCustomTableView.hpp"
  82. #include "cxGridCustomView.hpp"
  83. #include "cxGridDBTableView.hpp"
  84. #include "cxGridLevel.hpp"
  85. #include "cxGridTableView.hpp"
  86. #include "cxStyles.hpp"
  87. #include "FRAME_GisMapF.h"
  88. #include "cxCheckBox.hpp"
  89. #include "cxCalc.hpp"
  90. #include "FRAME_AviListF.h"
  91. #include "FRAME_AviSectListF.h"
  92. class TAVIM020M : public TForm
  93. {
  94. __published: // IDE-managed Components
  95. TTimer *TmrShow;
  96. TShape *ShpTitle;
  97. TcxButton *BtnClose;
  98. TLabel *LblCaption;
  99. TShape *ShpList;
  100. TEdit *EdFocus;
  101. TPanel *PnlBack;
  102. TPanel *PnlLeft;
  103. TcxSplitter *cxSplitter1;
  104. TcxGroupBox *cxGroupBox3;
  105. TcxGroupBox *GrpMap;
  106. TPanel *PnlMenu;
  107. TcxButton *BtnEdit;
  108. TcxButton *BtnInsert;
  109. TcxButton *BtnDelete;
  110. TcxButton *BtnSave;
  111. TcxLabel *cxLabel11;
  112. TcxLabel *cxLabel12;
  113. TcxGroupBox *cxGroupBox5;
  114. TcxSplitter *cxSplitter2;
  115. TPanel *PnlInfo;
  116. TcxGroupBox *GrpInfo;
  117. TImage *ImgDesc01;
  118. TImage *ImgDesc03;
  119. TImage *ImgDesc04;
  120. TImage *ImgDesc05;
  121. TImage *ImgDesc07;
  122. TImage *ImgDesc12;
  123. TImage *ImgDesc08;
  124. TImage *ImgDesc09;
  125. TImage *ImgDesc10;
  126. TImage *ImgDesc13;
  127. TImage *ImgDesc14;
  128. TImage *ImgDesc11;
  129. TcxLabel *cxLabel1;
  130. TcxLabel *cxLabel3;
  131. TcxLabel *cxLabel4;
  132. TcxLabel *cxLabel5;
  133. TcxSpinEdit *SeAVI_SECT_DSTC;
  134. TcxLabel *cxLabel7;
  135. TcxLabel *cxLabel8;
  136. TcxLabel *cxLabel9;
  137. TcxComboBox *CbAVI_CTLR_MNGM_NMBR;
  138. TcxTextEdit *EdAVI_SECT_NMBR;
  139. TcxLabel *cxLabel2;
  140. TcxLabel *cxLabel10;
  141. TcxLabel *cxLabel13;
  142. TcxSpinEdit *SeSPOT_NUM;
  143. TcxSpinEdit *SeSTND_DRFT_VAL;
  144. TcxLabel *cxLabel14;
  145. TcxSpinEdit *SeSMTH_FCTR;
  146. TcxLabel *cxLabel15;
  147. TcxLabel *cxLabel16;
  148. TcxTextEdit *EdId;
  149. TPanel *PnlMap;
  150. TcxGroupBox *GrpLink;
  151. TcxGrid *CxLink;
  152. TcxGridTableView *TvLink;
  153. TcxGridColumn *ColLink1;
  154. TcxGridColumn *ColLink2;
  155. TcxGridColumn *ColLink3;
  156. TcxGridColumn *ColLink4;
  157. TcxGridColumn *ColLink5;
  158. TcxGridColumn *ColLink6;
  159. TcxGridLevel *GlLink;
  160. TPanel *PnlLinkEdit;
  161. TImage *ImgDesc06;
  162. TcxLabel *cxLabel6;
  163. TcxTextEdit *EdLinkId;
  164. TcxButton *BtnLinkAdd;
  165. TcxButton *BtnLinkDel;
  166. TcxGroupBox *GrpGis;
  167. TFRAMEGisMap *FRAMEGisMap1;
  168. TcxCheckBox *ChkGisZoom;
  169. TcxLabel *cxLabel17;
  170. TFRAMEAviList *FRAMEAviList1;
  171. TFRAMEAviSectList *FRAMEAviSectList1;
  172. TcxTextEdit *EdAVI_SECT_NM;
  173. TcxLabel *cxLabel18;
  174. TcxSpinEdit *SeSHRT_PASS_HH;
  175. TcxSpinEdit *SeLNST_PASS_HH;
  176. TcxTextEdit *EdSTRT_SPOT_NM;
  177. TcxTextEdit *EdEND_SPOT_NM;
  178. TcxSpinEdit *SeMIN_SPED;
  179. TcxSpinEdit *SeMAX_SPED;
  180. void __fastcall FormShow(TObject *Sender);
  181. void __fastcall TmrShowTimer(TObject *Sender);
  182. void __fastcall BtnCloseClick(TObject *Sender);
  183. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  184. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  185. void __fastcall BtnEditClick(TObject *Sender);
  186. void __fastcall BtnInsertClick(TObject *Sender);
  187. void __fastcall BtnDeleteClick(TObject *Sender);
  188. void __fastcall BtnSaveClick(TObject *Sender);
  189. void __fastcall FRAMEGisMap1xclntMapMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  190. void __fastcall BtnLinkDelClick(TObject *Sender);
  191. void __fastcall BtnLinkAddClick(TObject *Sender);
  192. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  193. TShiftState AShift, bool &AHandled);
  194. void __fastcall FRAMEAviSectList1TvListCellDblClickSect(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  195. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  196. void __fastcall FRAMEAviList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  197. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  198. void __fastcall ChkGisZoomClick(TObject *Sender);
  199. private: // User declarations
  200. void __fastcall CommClose();
  201. TcxDataController *m_pGDC;
  202. String FTitle;
  203. bool FUpdate;
  204. bool FNewDb;
  205. public:
  206. public: // User declarations
  207. __fastcall TAVIM020M(TComponent* Owner);
  208. void __fastcall FormInit();
  209. void __fastcall UpdateAviIcon();
  210. void __fastcall UpdateList();
  211. void __fastcall DisplayInfo(TItsAviSect* AObj);
  212. void __fastcall DisplayParam(TItsAviSect* AObj);
  213. void __fastcall DisplayCndt(TItsAviSect* AObj);
  214. void __fastcall DisplayLink(TItsAviSect* AObj);
  215. void __fastcall RefreshLink();
  216. void __fastcall ChangeEditMode(int AEdit);
  217. };
  218. //---------------------------------------------------------------------------
  219. extern PACKAGE TAVIM020M *AVIM020M;
  220. //---------------------------------------------------------------------------
  221. #endif