ITSSELDAYF.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #include "ITSSkinF.h"
  4. #include "ITSUtilF.h"
  5. #include "AppGlobalF.h"
  6. #include "ITSLangTransF.h"
  7. #pragma hdrstop
  8. #include "ITSSELDAYF.h"
  9. //---------------------------------------------------------------------------
  10. #pragma package(smart_init)
  11. #pragma link "cxButtons"
  12. #pragma link "cxCalendar"
  13. #pragma link "cxContainer"
  14. #pragma link "cxControls"
  15. #pragma link "cxDropDownEdit"
  16. #pragma link "cxEdit"
  17. #pragma link "cxGraphics"
  18. #pragma link "cxGroupBox"
  19. #pragma link "cxLookAndFeelPainters"
  20. #pragma link "cxLookAndFeels"
  21. #pragma link "cxMaskEdit"
  22. #pragma link "cxTextEdit"
  23. #pragma link "dxSkinBlack"
  24. #pragma link "dxSkinBlue"
  25. #pragma link "dxSkinsCore"
  26. #pragma resource "*.dfm"
  27. TITSSELDAY *ITSSELDAY = NULL;
  28. //---------------------------------------------------------------------------
  29. __fastcall TITSSELDAY::TITSSELDAY(TComponent* Owner)
  30. : TForm(Owner)
  31. {
  32. LangTrans->Translate(this, ITSDb_GetConnection());
  33. CMM_LoadForm(g_sFormsDir, this);
  34. FSelected = false;
  35. cxDateEdit1->Date = Now();
  36. }
  37. //---------------------------------------------------------------------------
  38. void __fastcall TITSSELDAY::BtnSelectClick(TObject *Sender)
  39. {
  40. FSelected = true;
  41. Close();
  42. }
  43. //---------------------------------------------------------------------------
  44. void __fastcall TITSSELDAY::BtnCancelClick(TObject *Sender)
  45. {
  46. FSelected = false;
  47. Close();
  48. }
  49. //---------------------------------------------------------------------------
  50. void __fastcall TITSSELDAY::FormClose(TObject *Sender, TCloseAction &Action)
  51. {
  52. CMM_SaveForm(g_sFormsDir, this);
  53. }
  54. //---------------------------------------------------------------------------