IFM0010MF.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //---------------------------------------------------------------------------
  2. #ifndef IFM0010MFH
  3. #define IFM0010MFH
  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. //---------------------------------------------------------------------------
  20. #include "FRAME_UnRegFacilityListF.h"
  21. #include "cxButtons.hpp"
  22. #include "cxContainer.hpp"
  23. #include "cxControls.hpp"
  24. #include "cxEdit.hpp"
  25. #include "cxGraphics.hpp"
  26. #include "cxGroupBox.hpp"
  27. #include "cxLookAndFeelPainters.hpp"
  28. #include "cxLookAndFeels.hpp"
  29. #include "cxSplitter.hpp"
  30. #include "dxSkinBlack.hpp"
  31. #include "dxSkinBlue.hpp"
  32. #include "dxSkinsCore.hpp"
  33. #include "FRAME_FacilityListF.h"
  34. #include "cxLabel.hpp"
  35. class TIFM0010M : public TForm
  36. {
  37. __published: // IDE-managed Components
  38. TShape *ShpTitle;
  39. TcxButton *BtnSearch;
  40. TcxButton *BtnClose;
  41. TLabel *LblCaption;
  42. TEdit *EdFocus;
  43. TShape *ShpList;
  44. TTimer *TmrShow;
  45. TPanel *Panel1;
  46. TcxGroupBox *cxGroupBox1;
  47. TcxGroupBox *cxGroupBox2;
  48. TcxSplitter *cxSplitter1;
  49. TPanel *PnlBottom;
  50. TPanel *Panel2;
  51. TFRAMEUnRegFacilityList *FRAMEUnRegFacilityList1;
  52. TcxButton *BtnEdit;
  53. TcxButton *BtnDelete;
  54. TcxButton *BtnApply;
  55. TcxButton *BtnInsert;
  56. TFRAMEFacilityList *FRAMEFacilityList1;
  57. TcxLabel *cxLabel1;
  58. TcxLabel *cxLabel2;
  59. TcxLabel *cxLabel3;
  60. TcxLabel *cxLabel4;
  61. void __fastcall FormShow(TObject *Sender);
  62. void __fastcall TmrShowTimer(TObject *Sender);
  63. void __fastcall BtnSearchClick(TObject *Sender);
  64. void __fastcall BtnCloseClick(TObject *Sender);
  65. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  66. void __fastcall BtnEditClick(TObject *Sender);
  67. void __fastcall BtnDeleteClick(TObject *Sender);
  68. void __fastcall BtnApplyClick(TObject *Sender);
  69. void __fastcall BtnInsertClick(TObject *Sender);
  70. void __fastcall FRAMEFacilityList1TvListCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  71. bool &ADone);
  72. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  73. void __fastcall FRAMEFacilityList1ColumnPropertiesValidate(TObject *Sender, Variant &DisplayValue, TCaption &ErrorText,
  74. bool &Error);
  75. private: // User declarations
  76. void __fastcall CommClose();
  77. String FTitle;
  78. TcxDataController *m_pGDC1;
  79. TcxDataController *m_pGDC2;
  80. bool FUpdate;
  81. bool FDbUpdate;
  82. public:
  83. public: // User declarations
  84. __fastcall TIFM0010M(TComponent* Owner);
  85. void __fastcall FormInit();
  86. void __fastcall RefreshData();
  87. void __fastcall ChangeEditMode(bool AEdit);
  88. bool __fastcall IsUpdate();
  89. void __fastcall SaveData();
  90. };
  91. //---------------------------------------------------------------------------
  92. extern PACKAGE TIFM0010M *IFM0010M;
  93. //---------------------------------------------------------------------------
  94. #endif