VMSM200MF.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. void __fastcall FormShow(TObject *Sender);
  181. void __fastcall TmrShowTimer(TObject *Sender);
  182. void __fastcall BtnCloseClick(TObject *Sender);
  183. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  184. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  185. void __fastcall BtnEditClick(TObject *Sender);
  186. void __fastcall BtnInsertClick(TObject *Sender);
  187. void __fastcall BtnDeleteClick(TObject *Sender);
  188. void __fastcall BtnSaveClick(TObject *Sender);
  189. void __fastcall BtnLinkCopyClick(TObject *Sender);
  190. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  191. TShiftState AShift, bool &AHandled);
  192. void __fastcall FRAMEVmsIfscList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  193. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  194. TShiftState AShift, bool &AHandled);
  195. void __fastcall EdMin3KeyPress(TObject *Sender, wchar_t &Key);
  196. void __fastcall BtnLinkDelClick(TObject *Sender);
  197. void __fastcall BtnSaveAllClick(TObject *Sender);
  198. void __fastcall BtnUpClick(TObject *Sender);
  199. void __fastcall BtnDownClick(TObject *Sender);
  200. void __fastcall ChkViewIconClick(TObject *Sender);
  201. void __fastcall BtnVmsIfscSetClick(TObject *Sender);
  202. void __fastcall FRAMEVmsIfscList1TvListFocusedRecordChanged(TcxCustomGridTableView *Sender,
  203. TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord,
  204. bool ANewItemRecordFocusingChanged);
  205. private: // User declarations
  206. void __fastcall CommClose();
  207. TcxDataController *m_pGDC;
  208. String FTitle;
  209. bool FUpdate;
  210. bool FNewDb;
  211. bool MapStart;
  212. bool EditMode;
  213. public:
  214. public: // User declarations
  215. __fastcall TVMSM200M(TComponent* Owner);
  216. void __fastcall UpdateSkin();
  217. void __fastcall FormInit();
  218. void __fastcall UpdateList();
  219. void __fastcall UpdateVmsIcon();
  220. void __fastcall FillDetrList(int ADetrId);
  221. void __fastcall DisplayInfo(TVmsIfsc* AObj);
  222. void __fastcall DisplayLink(TVmsIfsc* AObj);
  223. void __fastcall RefreshLink();
  224. void __fastcall ChangeEditMode(int AEdit);
  225. bool __fastcall CheckDeleteIfsc(String AIfscId);
  226. bool __fastcall CheckSpeedValue();
  227. void __fastcall AddRemoveLink(String ALinkId, String ALinkNm);
  228. void __fastcall ShockwaveFlash1FlashCall1(TObject *ASender, const WideString request);
  229. };
  230. //---------------------------------------------------------------------------
  231. extern PACKAGE TVMSM200M *VMSM200M;
  232. //---------------------------------------------------------------------------
  233. #endif