FRAME_FacilityFailF.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. //---------------------------------------------------------------------------
  2. #ifndef FRAME_FacilityFailFH
  3. #define FRAME_FacilityFailFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <Menus.hpp>
  11. #include <ADODB.hpp>
  12. #include <DB.hpp>
  13. #include "CDSCodeF.h"
  14. #include "CDSFacilityF.h"
  15. #include "CDSFacilityFailF.h"
  16. #include "cxButtons.hpp"
  17. #include "cxCalc.hpp"
  18. #include "cxCalendar.hpp"
  19. #include "cxCheckBox.hpp"
  20. #include "cxClasses.hpp"
  21. #include "cxContainer.hpp"
  22. #include "cxControls.hpp"
  23. #include "cxCustomData.hpp"
  24. #include "cxData.hpp"
  25. #include "cxDataStorage.hpp"
  26. #include "cxDropDownEdit.hpp"
  27. #include "cxEdit.hpp"
  28. #include "cxFilter.hpp"
  29. #include "cxGraphics.hpp"
  30. #include "cxGrid.hpp"
  31. #include "cxGridCustomTableView.hpp"
  32. #include "cxGridCustomView.hpp"
  33. #include "cxGridLevel.hpp"
  34. #include "cxGridTableView.hpp"
  35. #include "cxLabel.hpp"
  36. #include "cxLookAndFeelPainters.hpp"
  37. #include "cxLookAndFeels.hpp"
  38. #include "cxStyles.hpp"
  39. #include "cxTextEdit.hpp"
  40. #include "dxSkinBlack.hpp"
  41. #include "dxSkinBlue.hpp"
  42. #include "dxSkinsCore.hpp"
  43. #include "dxSkinscxPCPainter.hpp"
  44. #include "dxSkinMcSkin.hpp"
  45. //---------------------------------------------------------------------------
  46. class TFRAMEFacilityFail : public TFrame
  47. {
  48. __published: // IDE-managed Components
  49. TPanel *PnlTop;
  50. TPanel *PnlBottom;
  51. TcxButton *BtnExlSave;
  52. TLabel *LblRecords;
  53. TcxGrid *CxList;
  54. TcxGridTableView *TvList;
  55. TcxGridColumn *Column00;
  56. TcxGridColumn *Column01;
  57. TcxGridColumn *Column02;
  58. TcxGridColumn *Column03;
  59. TcxGridColumn *Column04;
  60. TcxGridColumn *Column05;
  61. TcxGridColumn *Column06;
  62. TcxGridColumn *Column07;
  63. TcxGridColumn *Column08;
  64. TcxGridColumn *Column09;
  65. TcxGridColumn *Column10;
  66. TcxGridColumn *Column99;
  67. TcxGridLevel *GlList;
  68. TcxButton *BtnEdit;
  69. TcxButton *BtnInsert;
  70. TcxButton *BtnDelete;
  71. TcxButton *BtnApply;
  72. TcxCheckBox *ChkAutoWidth;
  73. TcxButton *BtnBestFit;
  74. TcxLabel *LblFacility;
  75. TImage *ImgDesc01;
  76. TcxButton *BtnSearch;
  77. TcxLabel *lblTitle;
  78. TcxLabel *lblFileName;
  79. TcxLabel *lblDelErr;
  80. void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
  81. void __fastcall BtnExlSaveClick(TObject *Sender);
  82. void __fastcall BtnEditClick(TObject *Sender);
  83. void __fastcall BtnInsertClick(TObject *Sender);
  84. void __fastcall BtnDeleteClick(TObject *Sender);
  85. void __fastcall BtnApplyClick(TObject *Sender);
  86. void __fastcall ChkAutoWidthPropertiesChange(TObject *Sender);
  87. void __fastcall BtnBestFitClick(TObject *Sender);
  88. void __fastcall TvListKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  89. void __fastcall TvListCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  90. bool &ADone);
  91. void __fastcall ColumnPropertiesValidate(TObject *Sender, Variant &DisplayValue, TCaption &ErrorText, bool &Error);
  92. private: // User declarations
  93. TcxDataController *m_pGDC;
  94. String FTitle;
  95. String FDefFFA;
  96. TItsFacility *FFacility;
  97. bool FUpdate;
  98. int FKeySeq;
  99. TItsCode *FCodeFFA;
  100. public: // User declarations
  101. __fastcall TFRAMEFacilityFail(TComponent* Owner);
  102. void __fastcall UpdateCheck();
  103. void __fastcall UpdateList(TItsFacility *AFacility);
  104. void __fastcall ChangeEditMode(bool AEdit);
  105. bool __fastcall GetNewId(String &ANewId);
  106. bool __fastcall AddObjectItem(TItsFacilityFail *pObj, String AMode);
  107. bool __fastcall IsUpdate();
  108. void __fastcall SaveData();
  109. void __fastcall OnCloseQuery(bool &CanClose);
  110. };
  111. //---------------------------------------------------------------------------
  112. //extern PACKAGE TFRAMEFacilityFail *FRAMEFacilityFail;
  113. //---------------------------------------------------------------------------
  114. #endif