CCAM101MF.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #include "ITSSkinF.h"
  4. #include "ITSUtilF.h"
  5. #include "ITSDbF.h"
  6. #include "AppGlobalF.h"
  7. #pragma hdrstop
  8. #include "CCAM101MF.h"
  9. //---------------------------------------------------------------------------
  10. #pragma package(smart_init)
  11. #pragma link "cxButtons"
  12. #pragma link "cxContainer"
  13. #pragma link "cxControls"
  14. #pragma link "cxDropDownEdit"
  15. #pragma link "cxEdit"
  16. #pragma link "cxGraphics"
  17. #pragma link "cxGroupBox"
  18. #pragma link "cxLookAndFeelPainters"
  19. #pragma link "cxLookAndFeels"
  20. #pragma link "cxMaskEdit"
  21. #pragma link "cxSpinEdit"
  22. #pragma link "cxTextEdit"
  23. #pragma link "dxSkinBlue"
  24. #pragma link "dxSkinsCore"
  25. #pragma resource "*.dfm"
  26. TCCAM101M *CCAM101M = NULL;
  27. //---------------------------------------------------------------------------
  28. __fastcall TCCAM101M::TCCAM101M(TComponent* Owner)
  29. : TForm(Owner)
  30. {
  31. ITSSkin_Load(this);
  32. //CMM_LoadForm(g_sFormsDir, this);
  33. FUpdated = false;
  34. }
  35. //---------------------------------------------------------------------------
  36. void __fastcall TCCAM101M::CommClose()
  37. {
  38. try
  39. {
  40. //CMM_SaveForm(g_sFormsDir, this);
  41. }
  42. catch(...)
  43. {
  44. }
  45. }
  46. //---------------------------------------------------------------------------
  47. void __fastcall TCCAM101M::FormShow(TObject *Sender)
  48. {
  49. APP_FillCode(Cb_CMRA_DRCT_CD, "VDSC");
  50. Refresh();
  51. }
  52. //---------------------------------------------------------------------------
  53. void __fastcall TCCAM101M::BtnCloseClick(TObject *Sender)
  54. {
  55. FUpdated = false;
  56. Close();
  57. }
  58. //---------------------------------------------------------------------------
  59. void __fastcall TCCAM101M::FormClose(TObject *Sender, TCloseAction &Action)
  60. {
  61. CommClose();
  62. CCAM101M = NULL;
  63. //Action = caFree;
  64. }
  65. //---------------------------------------------------------------------------
  66. void __fastcall TCCAM101M::BtnSaveClick(TObject *Sender)
  67. {
  68. FUpdated = true;
  69. Close();
  70. }
  71. //---------------------------------------------------------------------------