ITSSELDAYF.cpp 1.7 KB

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