VDSM200MF.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. //---------------------------------------------------------------------------
  2. #ifndef VDSM200MFH
  3. #define VDSM200MFH
  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 "FRAME_VdsDtctListF.h"
  26. #include "FRAME_VdsListF.h"
  27. #include "cxButtons.hpp"
  28. #include "cxCheckBox.hpp"
  29. #include "cxClasses.hpp"
  30. #include "cxContainer.hpp"
  31. #include "cxControls.hpp"
  32. #include "cxCustomData.hpp"
  33. #include "cxData.hpp"
  34. #include "cxDataStorage.hpp"
  35. #include "cxDropDownEdit.hpp"
  36. #include "cxEdit.hpp"
  37. #include "cxFilter.hpp"
  38. #include "cxGraphics.hpp"
  39. #include "cxGrid.hpp"
  40. #include "cxGridCustomTableView.hpp"
  41. #include "cxGridCustomView.hpp"
  42. #include "cxGridLevel.hpp"
  43. #include "cxGridTableView.hpp"
  44. #include "cxGroupBox.hpp"
  45. #include "cxLabel.hpp"
  46. #include "cxLookAndFeelPainters.hpp"
  47. #include "cxLookAndFeels.hpp"
  48. #include "cxMaskEdit.hpp"
  49. #include "cxSpinEdit.hpp"
  50. #include "cxSplitter.hpp"
  51. #include "cxStyles.hpp"
  52. #include "cxTextEdit.hpp"
  53. #include "dxSkinBlack.hpp"
  54. #include "dxSkinBlue.hpp"
  55. #include "dxSkinsCore.hpp"
  56. #include "dxSkinscxPCPainter.hpp"
  57. #include "cxCalc.hpp"
  58. #include "dxSkinMcSkin.hpp"
  59. #include "FRAME_OpenMapF.h"
  60. class TVDSM200M : public TForm
  61. {
  62. __published: // IDE-managed Components
  63. TTimer *TmrShow;
  64. TShape *ShpTitle;
  65. TcxButton *BtnClose;
  66. TLabel *LblCaption;
  67. TShape *ShpList;
  68. TEdit *EdFocus;
  69. TPanel *PnlBack;
  70. TPanel *PnlLeft;
  71. TcxSplitter *cxSplitter1;
  72. TcxGroupBox *cxGroupBox3;
  73. TFRAMEVdsDtctList *FRAMEVdsDtctList1;
  74. TcxLabel *lblText13;
  75. TcxLabel *lblText1;
  76. TcxLabel *lblText2;
  77. TcxLabel *lblText3;
  78. TcxLabel *lblText4;
  79. TcxLabel *lblText5;
  80. TPanel *PnlBottom;
  81. TcxSplitter *cxSplitter3;
  82. TcxGroupBox *GrpInfo;
  83. TPanel *PnlMenu;
  84. TcxButton *BtnEdit;
  85. TcxButton *BtnInsert;
  86. TcxButton *BtnDelete;
  87. TcxButton *BtnSave;
  88. TcxLabel *cxLabel11;
  89. TcxLabel *cxLabel12;
  90. TPanel *PnlEdit;
  91. TcxGroupBox *GrpInfoDet;
  92. TImage *ImgDesc05;
  93. TImage *ImgDesc07;
  94. TImage *ImgDesc11;
  95. TImage *ImgDesc02;
  96. TImage *ImgDesc03;
  97. TImage *ImgDesc08;
  98. TImage *ImgDesc04;
  99. TImage *ImgDesc09;
  100. TImage *ImgDesc01;
  101. TcxLabel *cxLabel5;
  102. TcxLabel *cxLabel7;
  103. TcxComboBox *CbCTLR_MNGM_NMBR;
  104. TcxComboBox *Cb_USE_YN;
  105. TcxSpinEdit *Se_ISTL_LANE;
  106. TcxSpinEdit *Se_MIN_TFVL;
  107. TcxSpinEdit *Se_MAX_TFVL;
  108. TcxLabel *cxLabel16;
  109. TcxTextEdit *EdDtctId;
  110. TcxTextEdit *EdDtctNm;
  111. TcxTextEdit *EdNmbr;
  112. TcxLabel *cxLabel2;
  113. TcxLabel *cxLabel3;
  114. TcxLabel *cxLabel18;
  115. TcxComboBox *CbType;
  116. TcxCheckBox *Chk_TFVL_CLCT_YN;
  117. TcxCheckBox *Chk_OCPY_CLCT_YN;
  118. TcxLabel *cxLabel1;
  119. TcxSpinEdit *Se_MIN_OCPY_RATE;
  120. TcxSpinEdit *Se_MAX_OCPY_RATE;
  121. TcxLabel *cxLabel4;
  122. TcxSpinEdit *Se_MIN_SPED;
  123. TcxSpinEdit *Se_MAX_SPED;
  124. TcxLabel *cxLabel8;
  125. TcxLabel *cxLabel9;
  126. TcxComboBox *Cb_DTCT_DIR;
  127. TPanel *PnlMap;
  128. TcxGroupBox *GrpLink;
  129. TcxGrid *CxLink;
  130. TcxGridTableView *TvLink;
  131. TcxGridColumn *ColSeq;
  132. TcxGridColumn *ColLink2;
  133. TcxGridColumn *ColLink3;
  134. TcxGridColumn *ColLink4;
  135. TcxGridColumn *ColLink5;
  136. TcxGridColumn *ColLink6;
  137. TcxGridLevel *GlLink;
  138. TPanel *PnlLinkEdit;
  139. TImage *ImgDesc06;
  140. TcxLabel *cxLabel6;
  141. TcxTextEdit *EdLinkId;
  142. TcxButton *BtnLinkAdd;
  143. TcxButton *BtnLinkDel;
  144. TcxTextEdit *EdVdsCtrl;
  145. TcxGroupBox *GrpMap;
  146. TFRAMEOpenMap *FRAMEOpenMap1;
  147. TcxCheckBox *ChkViewIcon;
  148. TcxCheckBox *Chk_SPED_CLCT_YN;
  149. TcxLabel *cxLabel10;
  150. TcxSplitter *cxSplitter2;
  151. TcxGroupBox *cxGroupBox5;
  152. TFRAMEVdsList *FRAMEVdsList1;
  153. TcxLabel *cxLabel13;
  154. TcxComboBox *CbVDS_CMRA_NO;
  155. TImage *ImgDesc19;
  156. TcxLabel *cxLabel14;
  157. TcxSpinEdit *Se_DETECT_LANE;
  158. TImage *ImgDesc20;
  159. void __fastcall FormShow(TObject *Sender);
  160. void __fastcall TmrShowTimer(TObject *Sender);
  161. void __fastcall BtnCloseClick(TObject *Sender);
  162. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  163. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  164. void __fastcall BtnEditClick(TObject *Sender);
  165. void __fastcall BtnInsertClick(TObject *Sender);
  166. void __fastcall BtnDeleteClick(TObject *Sender);
  167. void __fastcall BtnSaveClick(TObject *Sender);
  168. void __fastcall BtnLinkDelClick(TObject *Sender);
  169. void __fastcall BtnLinkAddClick(TObject *Sender);
  170. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  171. TShiftState AShift, bool &AHandled);
  172. void __fastcall FRAMEVdsDtctList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  173. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  174. void __fastcall FRAMEVdsList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  175. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  176. void __fastcall ChkViewIconClick(TObject *Sender);
  177. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  178. bool &ADone);
  179. void __fastcall CbCTLR_MNGM_NMBRPropertiesChange(TObject *Sender);
  180. private: // User declarations
  181. void __fastcall CommClose();
  182. TcxDataController *m_pGDC;
  183. String FTitle;
  184. bool FUpdate;
  185. bool FNewDb;
  186. bool EditMode;
  187. public:
  188. String sJs;
  189. int FLayerIdx;
  190. public: // User declarations
  191. __fastcall TVDSM200M(TComponent* Owner);
  192. void __fastcall FormInit();
  193. void __fastcall UpdateIcon();
  194. void __fastcall UpdateList();
  195. void __fastcall UpdateEditLink();
  196. void __fastcall DisplayInfo(TVdsDtct* AObj);
  197. void __fastcall DisplayLink(TVdsDtct* AObj);
  198. void __fastcall RefreshLink();
  199. void __fastcall ChangeEditMode(int AEdit);
  200. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  201. };
  202. //---------------------------------------------------------------------------
  203. extern PACKAGE TVDSM200M *VDSM200M;
  204. //---------------------------------------------------------------------------
  205. #endif