AVIM010MF.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. //---------------------------------------------------------------------------
  2. #ifndef AVIM010MFH
  3. #define AVIM010MFH
  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 "cxCalendar.hpp"
  26. #include "cxContainer.hpp"
  27. #include "cxControls.hpp"
  28. #include "cxDropDownEdit.hpp"
  29. #include "cxEdit.hpp"
  30. #include "cxGraphics.hpp"
  31. #include "cxGroupBox.hpp"
  32. #include "cxLabel.hpp"
  33. #include "cxLookAndFeelPainters.hpp"
  34. #include "cxLookAndFeels.hpp"
  35. #include "cxMaskEdit.hpp"
  36. #include "cxPC.hpp"
  37. #include "cxPCdxBarPopupMenu.hpp"
  38. #include "cxSpinEdit.hpp"
  39. #include "cxSplitter.hpp"
  40. #include "cxTextEdit.hpp"
  41. #include "cxTimeEdit.hpp"
  42. #include "dxSkinBlack.hpp"
  43. #include "dxSkinBlue.hpp"
  44. #include "dxSkinCaramel.hpp"
  45. #include "dxSkinCoffee.hpp"
  46. #include "dxSkinDarkRoom.hpp"
  47. #include "dxSkinDarkSide.hpp"
  48. #include "dxSkinFoggy.hpp"
  49. #include "dxSkinGlassOceans.hpp"
  50. #include "dxSkiniMaginary.hpp"
  51. #include "dxSkinLilian.hpp"
  52. #include "dxSkinLiquidSky.hpp"
  53. #include "dxSkinLondonLiquidSky.hpp"
  54. #include "dxSkinMcSkin.hpp"
  55. #include "dxSkinMoneyTwins.hpp"
  56. #include "dxSkinOffice2007Black.hpp"
  57. #include "dxSkinOffice2007Blue.hpp"
  58. #include "dxSkinOffice2007Green.hpp"
  59. #include "dxSkinOffice2007Pink.hpp"
  60. #include "dxSkinOffice2007Silver.hpp"
  61. #include "dxSkinOffice2010Black.hpp"
  62. #include "dxSkinOffice2010Blue.hpp"
  63. #include "dxSkinOffice2010Silver.hpp"
  64. #include "dxSkinsCore.hpp"
  65. #include "dxSkinscxPCPainter.hpp"
  66. #include "dxSkinSeven.hpp"
  67. #include "dxSkinSharp.hpp"
  68. #include "dxSkinSilver.hpp"
  69. #include "dxSkinStardust.hpp"
  70. #include "cxRadioGroup.hpp"
  71. #include "cxClasses.hpp"
  72. #include "cxCustomData.hpp"
  73. #include "cxData.hpp"
  74. #include "cxDataStorage.hpp"
  75. #include "cxDBData.hpp"
  76. #include "cxFilter.hpp"
  77. #include "cxGrid.hpp"
  78. #include "cxGridCustomTableView.hpp"
  79. #include "cxGridCustomView.hpp"
  80. #include "cxGridDBTableView.hpp"
  81. #include "cxGridLevel.hpp"
  82. #include "cxGridTableView.hpp"
  83. #include "cxStyles.hpp"
  84. #include "FRAME_GisMapF.h"
  85. #include "cxCheckBox.hpp"
  86. #include "FRAME_AviListF.h"
  87. class TAVIM010M : public TForm
  88. {
  89. __published: // IDE-managed Components
  90. TTimer *TmrShow;
  91. TShape *ShpTitle;
  92. TcxButton *BtnClose;
  93. TLabel *LblCaption;
  94. TShape *ShpList;
  95. TEdit *EdFocus;
  96. TPanel *PnlBack;
  97. TPanel *PnlLeft;
  98. TcxSplitter *cxSplitter1;
  99. TcxGroupBox *cxGroupBox3;
  100. TcxGroupBox *GrpMap;
  101. TcxGroupBox *GrpInfo;
  102. TPanel *PnlMenu;
  103. TcxSplitter *cxSplitter2;
  104. TcxButton *BtnEdit;
  105. TcxButton *BtnInsert;
  106. TcxButton *BtnDelete;
  107. TcxButton *BtnSave;
  108. TcxTextEdit *EdAVI_CTLR_MNGM_NMBR;
  109. TcxTextEdit *EdAVI_LCTN_NM;
  110. TcxTextEdit *EdAVI_CTLR_IP;
  111. TcxTextEdit *EdAVI_CTLR_CMNC_PORT;
  112. TcxTextEdit *EdId;
  113. TcxSpinEdit *SeX_CRDN;
  114. TcxSpinEdit *SeY_CRDN;
  115. TcxLabel *cxLabel1;
  116. TImage *ImgDesc01;
  117. TcxLabel *cxLabel2;
  118. TImage *ImgDesc02;
  119. TcxLabel *cxLabel3;
  120. TcxLabel *cxLabel4;
  121. TcxLabel *cxLabel6;
  122. TcxLabel *cxLabel7;
  123. TcxLabel *cxLabel8;
  124. TcxLabel *cxLabel9;
  125. TcxLabel *cxLabel10;
  126. TImage *ImgDesc03;
  127. TImage *ImgDesc04;
  128. TImage *ImgDesc05;
  129. TImage *ImgDesc06;
  130. TImage *ImgDesc07;
  131. TImage *ImgDesc08;
  132. TImage *ImgDesc09;
  133. TImage *ImgDesc10;
  134. TcxLabel *cxLabel11;
  135. TcxLabel *cxLabel12;
  136. TcxLabel *cxLabel15;
  137. TcxCheckBox *ChkViewIcon;
  138. TFRAMEGisMap *FRAMEGisMap1;
  139. TcxComboBox *CbAVI_VALD_YN;
  140. TcxLabel *cxLabel5;
  141. TcxLabel *cxLabel13;
  142. TImage *ImgDesc11;
  143. TcxSpinEdit *SeAVI_MNGM_LANE_NUM;
  144. TcxSpinEdit *SeAVI_CMRA_NUM;
  145. TcxSpinEdit *SeAVI_DTCT_NUM;
  146. TcxLabel *cxLabel16;
  147. TFRAMEAviList *FRAMEAviList1;
  148. TcxTextEdit *EdAVI_ID;
  149. TcxLabel *cxLabel17;
  150. TcxTextEdit *EdLINK_ID;
  151. TcxComboBox *CbAVI_MAIN_CTLR_YN;
  152. TcxTextEdit *EdAVI_DTCT_NM;
  153. TImage *ImgDesc12;
  154. TcxLabel *cxLabel14;
  155. TcxLabel *cxLabel18;
  156. TcxSpinEdit *SeAVI_CLCT_CYCL;
  157. TImage *ImgDesc13;
  158. TcxLabel *cxLabel19;
  159. TImage *ImgDesc14;
  160. TcxComboBox *CbAVI_LAMP_AUTO_YN;
  161. TcxLabel *cxLabel20;
  162. TImage *ImgDesc15;
  163. TcxTextEdit *EdAVI_LAMP_ON_HMS;
  164. TcxTextEdit *EdAVI_LAMP_OFF_HMS;
  165. TcxLabel *cxLabel21;
  166. TImage *ImgDesc16;
  167. TImage *ImgDesc17;
  168. TcxLabel *cxLabel22;
  169. TcxComboBox *CbAVI_LAMP_ON_YN;
  170. TcxTextEdit *EdRMRK;
  171. TcxLabel *cxLabel23;
  172. TImage *ImgDesc18;
  173. void __fastcall FormShow(TObject *Sender);
  174. void __fastcall TmrShowTimer(TObject *Sender);
  175. void __fastcall BtnCloseClick(TObject *Sender);
  176. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  177. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  178. void __fastcall FRAMEGisMap1xclntMapMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  179. void __fastcall ChkViewIconClick(TObject *Sender);
  180. void __fastcall BtnEditClick(TObject *Sender);
  181. void __fastcall BtnInsertClick(TObject *Sender);
  182. void __fastcall BtnDeleteClick(TObject *Sender);
  183. void __fastcall BtnSaveClick(TObject *Sender);
  184. void __fastcall FRAMEAviList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  185. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  186. private: // User declarations
  187. void __fastcall CommClose();
  188. TcxDataController *m_pGDC;
  189. String FTitle;
  190. bool FUpdate;
  191. bool FNewDb;
  192. public:
  193. public: // User declarations
  194. __fastcall TAVIM010M(TComponent* Owner);
  195. void __fastcall FormInit();
  196. void __fastcall UpdateAviIcon();
  197. void __fastcall DisplayInfo(TItsAvi* AObj);
  198. void __fastcall ChangeEditMode(int AEdit);
  199. };
  200. //---------------------------------------------------------------------------
  201. extern PACKAGE TAVIM010M *AVIM010M;
  202. //---------------------------------------------------------------------------
  203. #endif