VMSM200MF.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSM200MFH
  3. #define VMSM200MFH
  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 "CDSVmsCtlrF.h"
  26. #include "cxButtons.hpp"
  27. #include "cxCalendar.hpp"
  28. #include "cxContainer.hpp"
  29. #include "cxControls.hpp"
  30. #include "cxDropDownEdit.hpp"
  31. #include "cxEdit.hpp"
  32. #include "cxGraphics.hpp"
  33. #include "cxGroupBox.hpp"
  34. #include "cxLabel.hpp"
  35. #include "cxLookAndFeelPainters.hpp"
  36. #include "cxLookAndFeels.hpp"
  37. #include "cxMaskEdit.hpp"
  38. #include "cxPC.hpp"
  39. #include "cxPCdxBarPopupMenu.hpp"
  40. #include "cxSpinEdit.hpp"
  41. #include "cxSplitter.hpp"
  42. #include "cxTextEdit.hpp"
  43. #include "cxTimeEdit.hpp"
  44. #include "dxSkinBlack.hpp"
  45. #include "dxSkinBlue.hpp"
  46. #include "dxSkinCaramel.hpp"
  47. #include "dxSkinCoffee.hpp"
  48. #include "dxSkinDarkRoom.hpp"
  49. #include "dxSkinDarkSide.hpp"
  50. #include "dxSkinFoggy.hpp"
  51. #include "dxSkinGlassOceans.hpp"
  52. #include "dxSkiniMaginary.hpp"
  53. #include "dxSkinLilian.hpp"
  54. #include "dxSkinLiquidSky.hpp"
  55. #include "dxSkinLondonLiquidSky.hpp"
  56. #include "dxSkinMcSkin.hpp"
  57. #include "dxSkinMoneyTwins.hpp"
  58. #include "dxSkinOffice2007Black.hpp"
  59. #include "dxSkinOffice2007Blue.hpp"
  60. #include "dxSkinOffice2007Green.hpp"
  61. #include "dxSkinOffice2007Pink.hpp"
  62. #include "dxSkinOffice2007Silver.hpp"
  63. #include "dxSkinOffice2010Black.hpp"
  64. #include "dxSkinOffice2010Blue.hpp"
  65. #include "dxSkinOffice2010Silver.hpp"
  66. #include "dxSkinsCore.hpp"
  67. #include "dxSkinscxPCPainter.hpp"
  68. #include "dxSkinSeven.hpp"
  69. #include "dxSkinSharp.hpp"
  70. #include "dxSkinSilver.hpp"
  71. #include "dxSkinStardust.hpp"
  72. #include "cxRadioGroup.hpp"
  73. #include "cxClasses.hpp"
  74. #include "cxCustomData.hpp"
  75. #include "cxData.hpp"
  76. #include "cxDataStorage.hpp"
  77. #include "cxDBData.hpp"
  78. #include "cxFilter.hpp"
  79. #include "cxGrid.hpp"
  80. #include "cxGridCustomTableView.hpp"
  81. #include "cxGridCustomView.hpp"
  82. #include "cxGridDBTableView.hpp"
  83. #include "cxGridLevel.hpp"
  84. #include "cxGridTableView.hpp"
  85. #include "cxStyles.hpp"
  86. #include "cxCheckBox.hpp"
  87. #include "cxCalc.hpp"
  88. #include "FRAME_FlashMapF.h"
  89. #include "FRAME_VmsIfscListF.h"
  90. class TVMSM200M : public TForm
  91. {
  92. __published: // IDE-managed Components
  93. TTimer *TmrShow;
  94. TShape *ShpTitle;
  95. TcxButton *BtnClose;
  96. TLabel *LblCaption;
  97. TShape *ShpList;
  98. TEdit *EdFocus;
  99. TPanel *PnlBack;
  100. TPanel *PnlLeft;
  101. TcxSplitter *cxSplitter1;
  102. TcxGroupBox *cxGroupBox3;
  103. TcxGroupBox *GrpMap;
  104. TPanel *PnlMap;
  105. TcxGroupBox *GrpGis;
  106. TFRAMEVmsIfscList *FRAMEVmsIfscList1;
  107. TcxSplitter *cxSplitter2;
  108. TPanel *PnlGrp;
  109. TPanel *PnlMenu;
  110. TcxButton *BtnEdit;
  111. TcxButton *BtnInsert;
  112. TcxButton *BtnDelete;
  113. TcxButton *BtnSave;
  114. TcxGroupBox *cxGroupBox2;
  115. TcxGroupBox *GrpInfo;
  116. TcxLabel *cxLabel11;
  117. TcxLabel *cxLabel12;
  118. TPanel *PnlEdit;
  119. TImage *ImgDesc19;
  120. TImage *ImgDesc02;
  121. TImage *ImgDesc04;
  122. TImage *ImgDesc12;
  123. TImage *ImgDesc11;
  124. TcxTextEdit *EdIfscNm;
  125. TcxTextEdit *EdStrNm;
  126. TcxTextEdit *EdIfscId;
  127. TcxLabel *cxLabel2;
  128. TcxLabel *cxLabel5;
  129. TcxLabel *cxLabel10;
  130. TcxLabel *cxLabel13;
  131. TcxLabel *cxLabel14;
  132. TcxComboBox *CbDetr;
  133. TcxTextEdit *EdEndNm;
  134. TcxGroupBox *GrpLink;
  135. TcxLabel *cxLabel9;
  136. TcxLabel *cxLabel15;
  137. TPanel *Panel1;
  138. TPanel *PnlLink;
  139. TImage *ImgDesc06;
  140. TcxLabel *cxLabel6;
  141. TcxTextEdit *EdLinkId;
  142. TcxButton *BtnLinkCopy;
  143. TcxGrid *CxLink;
  144. TcxGridTableView *TvLink;
  145. TcxGridColumn *ColLink1;
  146. TcxGridColumn *ColLink2;
  147. TcxGridColumn *ColLink3;
  148. TcxGridColumn *ColLink4;
  149. TcxGridColumn *ColLink5;
  150. TcxGridColumn *ColLink6;
  151. TcxGridLevel *GlLink;
  152. TLabel *Label17;
  153. TLabel *Label18;
  154. TLabel *Label19;
  155. TLabel *Label01;
  156. TLabel *Label02;
  157. TLabel *Label03;
  158. TcxTextEdit *EdMin3;
  159. TcxTextEdit *EdMax3;
  160. TcxTextEdit *EdMin2;
  161. TcxTextEdit *EdMax2;
  162. TcxTextEdit *EdMin1;
  163. TcxTextEdit *EdMax1;
  164. TcxButton *BtnSaveAll;
  165. TcxButton *BtnUp;
  166. TcxButton *BtnDown;
  167. TcxButton *BtnLinkDel;
  168. TFRAMEFlashMap *FRAMEGisMap1;
  169. TcxCheckBox *ChkViewIcon;
  170. TcxCheckBox *ChkViewName;
  171. TPanel *Panel2;
  172. TcxButton *BtnVmsIfscSet;
  173. TcxCheckBox *ChkAxisYn;
  174. TImage *ImgDesc07;
  175. TcxLabel *cxLabel1;
  176. TcxTextEdit *EdRoadNm;
  177. TImage *ImgDesc08;
  178. TcxLabel *cxLabel3;
  179. TcxTextEdit *EdSpotNm;
  180. TcxLabel *lblNone;
  181. TcxLabel *lblSpdErr;
  182. TcxLabel *lblText1;
  183. TcxLabel *lblText2;
  184. TcxLabel *lblText3;
  185. TcxLabel *lblText6;
  186. TcxLabel *lblText5;
  187. TcxLabel *lblText4;
  188. TcxLabel *lblText9;
  189. TcxLabel *lblText8;
  190. TcxLabel *lblText7;
  191. TcxLabel *lblText10;
  192. TcxLabel *lblText11;
  193. TcxLabel *lblText12;
  194. TcxLabel *lblText13;
  195. void __fastcall FormShow(TObject *Sender);
  196. void __fastcall TmrShowTimer(TObject *Sender);
  197. void __fastcall BtnCloseClick(TObject *Sender);
  198. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  199. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  200. void __fastcall BtnEditClick(TObject *Sender);
  201. void __fastcall BtnInsertClick(TObject *Sender);
  202. void __fastcall BtnDeleteClick(TObject *Sender);
  203. void __fastcall BtnSaveClick(TObject *Sender);
  204. void __fastcall BtnLinkCopyClick(TObject *Sender);
  205. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  206. TShiftState AShift, bool &AHandled);
  207. void __fastcall FRAMEVmsIfscList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  208. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  209. TShiftState AShift, bool &AHandled);
  210. void __fastcall EdMin3KeyPress(TObject *Sender, wchar_t &Key);
  211. void __fastcall BtnLinkDelClick(TObject *Sender);
  212. void __fastcall BtnSaveAllClick(TObject *Sender);
  213. void __fastcall BtnUpClick(TObject *Sender);
  214. void __fastcall BtnDownClick(TObject *Sender);
  215. void __fastcall ChkViewIconClick(TObject *Sender);
  216. void __fastcall BtnVmsIfscSetClick(TObject *Sender);
  217. void __fastcall FRAMEVmsIfscList1TvListFocusedRecordChanged(TcxCustomGridTableView *Sender,
  218. TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord,
  219. bool ANewItemRecordFocusingChanged);
  220. private: // User declarations
  221. void __fastcall CommClose();
  222. TcxDataController *m_pGDC;
  223. String FTitle;
  224. bool FUpdate;
  225. bool FNewDb;
  226. bool MapStart;
  227. bool EditMode;
  228. public:
  229. public: // User declarations
  230. __fastcall TVMSM200M(TComponent* Owner);
  231. void __fastcall UpdateSkin();
  232. void __fastcall FormInit();
  233. void __fastcall UpdateList();
  234. void __fastcall UpdateVmsIcon();
  235. void __fastcall FillDetrList(int ADetrId);
  236. void __fastcall DisplayInfo(TVmsIfsc* AObj);
  237. void __fastcall DisplayLink(TVmsIfsc* AObj);
  238. void __fastcall RefreshLink();
  239. void __fastcall ChangeEditMode(int AEdit);
  240. bool __fastcall CheckDeleteIfsc(String AIfscId);
  241. bool __fastcall CheckSpeedValue();
  242. void __fastcall AddRemoveLink(String ALinkId, String ALinkNm);
  243. void __fastcall ShockwaveFlash1FlashCall1(TObject *ASender, const WideString request);
  244. };
  245. //---------------------------------------------------------------------------
  246. extern PACKAGE TVMSM200M *VMSM200M;
  247. //---------------------------------------------------------------------------
  248. #endif