VDSM200MF.h 6.6 KB

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