EVSP300MF.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. //---------------------------------------------------------------------------
  2. #ifndef EVSP300MFH
  3. #define EVSP300MFH
  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_VmsListF.h"
  78. #include "FRAME_OpenMapF.h"
  79. #include "CDSVmsIxrF.h"
  80. #include "CDSVmsCtlrF.h"
  81. #include "CDSSgnlCtlrF.h"
  82. #include "cxCalc.hpp"
  83. class TEVSP300M : public TForm
  84. {
  85. __published: // IDE-managed Components
  86. TTimer *TmrShow;
  87. TShape *ShpTitle;
  88. TcxButton *BtnClose;
  89. TLabel *LblCaption;
  90. TShape *ShpList;
  91. TEdit *EdFocus;
  92. TPanel *PnlBack;
  93. TPanel *PnlLeft;
  94. TcxSplitter *cxSplitter1;
  95. TcxGroupBox *cxGroupBox3;
  96. TcxGroupBox *GrpMap;
  97. TPanel *PnlMap;
  98. TFRAMEVmsList *FRAMEVmsList1;
  99. TcxSplitter *cxSplitter2;
  100. TPanel *PnlGrp;
  101. TPanel *PnlMenu;
  102. TcxButton *BtnEdit;
  103. TcxButton *BtnDelete;
  104. TcxButton *BtnSave;
  105. TcxGroupBox *GrpInfo;
  106. TcxLabel *cxLabel11;
  107. TcxLabel *cxLabel12;
  108. TPanel *PnlEdit;
  109. TImage *ImgDesc19;
  110. TImage *ImgDesc02;
  111. TImage *ImgDesc11;
  112. TcxTextEdit *EdCtlrId;
  113. TcxTextEdit *EdCtlrlNm;
  114. TcxTextEdit *EdNmbr;
  115. TcxLabel *cxLabel2;
  116. TcxLabel *cxLabel5;
  117. TcxLabel *cxLabel14;
  118. TcxGroupBox *GrpLink;
  119. TcxLabel *cxLabel9;
  120. TcxLabel *cxLabel15;
  121. TPanel *Panel1;
  122. TPanel *PnlLink;
  123. TImage *ImgDesc06;
  124. TcxLabel *cxLabel6;
  125. TcxTextEdit *EdVmsNmbr;
  126. TcxButton *BtnLinkCopy;
  127. TcxGrid *CxIxr;
  128. TcxGridTableView *TvIxr;
  129. TcxGridColumn *ColLink1;
  130. TcxGridColumn *ColLink2;
  131. TcxGridColumn *ColLink3;
  132. TcxGridColumn *ColLink4;
  133. TcxGridColumn *ColLink5;
  134. TcxGridColumn *ColLink6;
  135. TcxGridLevel *GlIxr;
  136. TcxButton *BtnUp;
  137. TcxButton *BtnDown;
  138. TcxButton *BtnLinkDel;
  139. TcxCheckBox *ChkViewIcon;
  140. TcxLabel *lblNone;
  141. TcxLabel *lblSpdErr;
  142. TcxLabel *lblText1;
  143. TcxLabel *lblText2;
  144. TcxLabel *lblText3;
  145. TcxLabel *lblText6;
  146. TcxLabel *lblText5;
  147. TcxLabel *lblText4;
  148. TcxLabel *lblText9;
  149. TcxLabel *lblText8;
  150. TcxLabel *lblText7;
  151. TcxLabel *lblText10;
  152. TcxLabel *lblText11;
  153. TcxLabel *lblText12;
  154. TcxLabel *lblText13;
  155. TFRAMEOpenMap *FRAMEOpenMap1;
  156. TcxGridColumn *ColSeq;
  157. TcxButton *BtnInsert;
  158. TcxCheckBox *cxCheckBox1;
  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 BtnSaveClick(TObject *Sender);
  166. void __fastcall BtnLinkCopyClick(TObject *Sender);
  167. void __fastcall TvIxrCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  168. TShiftState AShift, bool &AHandled);
  169. void __fastcall FRAMEVmsList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  170. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  171. TShiftState AShift, bool &AHandled);
  172. void __fastcall BtnLinkDelClick(TObject *Sender);
  173. void __fastcall BtnUpClick(TObject *Sender);
  174. void __fastcall BtnDownClick(TObject *Sender);
  175. void __fastcall ChkViewIconClick(TObject *Sender);
  176. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  177. bool &ADone);
  178. private: // User declarations
  179. void __fastcall CommClose();
  180. TcxDataController *m_pGDC;
  181. String FTitle;
  182. bool FUpdate;
  183. bool FNewDb;
  184. bool EditMode;
  185. public:
  186. String sJs;
  187. int FLayerIdx;
  188. int FInitComm;
  189. int FSelComm;
  190. public: // User declarations
  191. __fastcall TEVSP300M(TComponent* Owner);
  192. void __fastcall UpdateSkin();
  193. void __fastcall FormInit();
  194. void __fastcall UpdateList();
  195. void __fastcall UpdateIcon();
  196. void __fastcall UpdateIconIxr();
  197. void __fastcall UpdateEditLink();
  198. void __fastcall UpdateIxrSelect(String AIxrNmbr, int ASelFalg);
  199. void __fastcall DisplayInfo(TVmsCtlr* AObj);
  200. void __fastcall DisplayRltnIxr(TVmsCtlr* AObj);
  201. void __fastcall RefreshRltnIxr();
  202. void __fastcall ChangeEditMode(int AEdit);
  203. void __fastcall AddRemoveIxr(String AIxrNmbr);
  204. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  205. };
  206. //---------------------------------------------------------------------------
  207. extern PACKAGE TEVSP300M *EVSP300M;
  208. //---------------------------------------------------------------------------
  209. #endif