VMSMA00MF.h 7.7 KB

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