VMSM400MF.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSM400MFH
  3. #define VMSM400MFH
  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 "cxButtons.hpp"
  25. #include "cxCalendar.hpp"
  26. #include "cxContainer.hpp"
  27. #include "cxControls.hpp"
  28. #include "cxDropDownEdit.hpp"
  29. #include "cxEdit.hpp"
  30. #include "cxGraphics.hpp"
  31. #include "cxGroupBox.hpp"
  32. #include "cxLabel.hpp"
  33. #include "cxLookAndFeelPainters.hpp"
  34. #include "cxLookAndFeels.hpp"
  35. #include "cxMaskEdit.hpp"
  36. #include "cxPC.hpp"
  37. #include "cxPCdxBarPopupMenu.hpp"
  38. #include "cxSpinEdit.hpp"
  39. #include "cxSplitter.hpp"
  40. #include "cxTextEdit.hpp"
  41. #include "cxTimeEdit.hpp"
  42. #include "dxSkinBlack.hpp"
  43. #include "dxSkinBlue.hpp"
  44. #include "dxSkinCaramel.hpp"
  45. #include "dxSkinCoffee.hpp"
  46. #include "dxSkinDarkRoom.hpp"
  47. #include "dxSkinDarkSide.hpp"
  48. #include "dxSkinFoggy.hpp"
  49. #include "dxSkinGlassOceans.hpp"
  50. #include "dxSkiniMaginary.hpp"
  51. #include "dxSkinLilian.hpp"
  52. #include "dxSkinLiquidSky.hpp"
  53. #include "dxSkinLondonLiquidSky.hpp"
  54. #include "dxSkinMcSkin.hpp"
  55. #include "dxSkinMoneyTwins.hpp"
  56. #include "dxSkinOffice2007Black.hpp"
  57. #include "dxSkinOffice2007Blue.hpp"
  58. #include "dxSkinOffice2007Green.hpp"
  59. #include "dxSkinOffice2007Pink.hpp"
  60. #include "dxSkinOffice2007Silver.hpp"
  61. #include "dxSkinOffice2010Black.hpp"
  62. #include "dxSkinOffice2010Blue.hpp"
  63. #include "dxSkinOffice2010Silver.hpp"
  64. #include "dxSkinsCore.hpp"
  65. #include "dxSkinscxPCPainter.hpp"
  66. #include "dxSkinSeven.hpp"
  67. #include "dxSkinSharp.hpp"
  68. #include "dxSkinSilver.hpp"
  69. #include "dxSkinStardust.hpp"
  70. #include "cxRadioGroup.hpp"
  71. #include "cxClasses.hpp"
  72. #include "cxCustomData.hpp"
  73. #include "cxData.hpp"
  74. #include "cxDataStorage.hpp"
  75. #include "cxDBData.hpp"
  76. #include "cxFilter.hpp"
  77. #include "cxGrid.hpp"
  78. #include "cxGridCustomTableView.hpp"
  79. #include "cxGridCustomView.hpp"
  80. #include "cxGridDBTableView.hpp"
  81. #include "cxGridLevel.hpp"
  82. #include "cxGridTableView.hpp"
  83. #include "cxStyles.hpp"
  84. #include "cxCheckBox.hpp"
  85. #include "FRAME_VmsListF.h"
  86. #include "cxImage.hpp"
  87. #include "cxButtonEdit.hpp"
  88. #include "cxBlobEdit.hpp"
  89. class TVMSM400M : public TForm
  90. {
  91. __published: // IDE-managed Components
  92. TTimer *TmrShow;
  93. TShape *ShpTitle;
  94. TcxButton *BtnClose;
  95. TLabel *LblCaption;
  96. TShape *ShpList;
  97. TEdit *EdFocus;
  98. TPanel *PnlBack;
  99. TPanel *PnlLeft;
  100. TcxSplitter *cxSplitter1;
  101. TcxGroupBox *GrpList;
  102. TPanel *Panel1;
  103. TPanel *PnlVmsList;
  104. TPanel *PnlSymbol;
  105. TcxSplitter *cxSplitter2;
  106. TcxGroupBox *cxGroupBox1;
  107. TcxGroupBox *cxGroupBox2;
  108. TFRAMEVmsList *FRAMEVmsList1;
  109. TcxGrid *CxList;
  110. TcxGridTableView *TvList;
  111. TcxGridColumn *ColLink1;
  112. TcxGridColumn *ColLink2;
  113. TcxGridColumn *ColLink3;
  114. TcxGridColumn *ColLink4;
  115. TcxGridColumn *ColLink5;
  116. TcxGridColumn *ColLink6;
  117. TcxGridLevel *GlList;
  118. TPanel *PnlMenu;
  119. TcxButton *BtnEdit;
  120. TcxButton *BtnInsert;
  121. TcxButton *BtnDelete;
  122. TcxButton *BtnSave;
  123. TPanel *Panel4;
  124. TcxButton *BtnDownload;
  125. TPanel *PnlCmd;
  126. TPanel *PnlInfo2;
  127. TImage *ImgPreView;
  128. TcxLabel *cxLabel18;
  129. TImage *ImgDesc01;
  130. TcxLabel *cxLabel1;
  131. TImage *ImgDesc02;
  132. TcxTextEdit *EdNmbr;
  133. TcxLabel *cxLabel2;
  134. TImage *ImgDesc03;
  135. TcxTextEdit *EdExpl;
  136. TcxButtonEdit *EdImageFileName;
  137. TcxLabel *cxLabel3;
  138. TImage *ImgDesc04;
  139. TcxButton *BtnSaveImgFile;
  140. TSaveDialog *SaveDialog;
  141. TOpenPictureDialog *OpenBmp;
  142. TcxTextEdit *EdVmsCd;
  143. TcxLabel *lblText1;
  144. TcxLabel *lblText2;
  145. TcxLabel *lblText3;
  146. TcxLabel *lblText4;
  147. TcxLabel *lblText5;
  148. TcxComboBox *CbType;
  149. TcxLabel *cxLabel6;
  150. TImage *ImgDesc14;
  151. TcxLabel *LblDesc;
  152. TImage *ImgTemp;
  153. TcxLabel *lblImgSize;
  154. void __fastcall FormShow(TObject *Sender);
  155. void __fastcall TmrShowTimer(TObject *Sender);
  156. void __fastcall BtnCloseClick(TObject *Sender);
  157. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  158. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  159. void __fastcall BtnEditClick(TObject *Sender);
  160. void __fastcall BtnSaveClick(TObject *Sender);
  161. void __fastcall BtnInsertClick(TObject *Sender);
  162. void __fastcall BtnDeleteClick(TObject *Sender);
  163. void __fastcall BtnSaveImgFileClick(TObject *Sender);
  164. void __fastcall EdImageFileNameClick(TObject *Sender);
  165. void __fastcall OpenBmpCanClose(TObject *Sender, bool &CanClose);
  166. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  167. TMouseButton AButton, TShiftState AShift,
  168. bool &AHandled);
  169. void __fastcall ColLink2CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
  170. TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
  171. void __fastcall BtnDownloadClick(TObject *Sender);
  172. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
  173. TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
  174. void __fastcall CbTypePropertiesChange(TObject *Sender);
  175. void __fastcall PnlMenuDblClick(TObject *Sender);
  176. private: // User declarations
  177. void __fastcall CommClose();
  178. TcxDataController *m_pGDC;
  179. String FTitle;
  180. bool FUpdate;
  181. bool FNewDb;
  182. bool EditMode;
  183. TList *FListSymb;
  184. DWORD FFileSize;
  185. bool FImageUpdate;
  186. bool FIsUpdate;
  187. int FOldWidth, FOldHeight;
  188. int FNewWidth, FNewHeight;
  189. public:
  190. public: // User declarations
  191. __fastcall TVMSM400M(TComponent* Owner);
  192. void __fastcall FormInit();
  193. void __fastcall ClearSymbloList();
  194. void __fastcall LoadImageSymbol();
  195. void __fastcall DisplayInfo();
  196. bool __fastcall UpdateVmsImage(String ANmbr, String AExpl, String ATypeCd);
  197. bool __fastcall InsertVmsImage(String ANmbr, String AExpl, String AFileName, String ATypeCd);
  198. void __fastcall ChangeEditMode(int AEdit);
  199. };
  200. //---------------------------------------------------------------------------
  201. extern PACKAGE TVMSM400M *VMSM400M;
  202. //---------------------------------------------------------------------------
  203. #endif