FRMPswdChngeF.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmPswdChngeFH
  3. #define FrmPswdChngeFH
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #include <Classes.hpp>
  7. #include <Controls.hpp>
  8. #include <StdCtrls.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <Graphics.hpp>
  11. #include <jpeg.hpp>
  12. #include <Menus.hpp>
  13. //---------------------------------------------------------------------------
  14. #include "ITSDbF.h"
  15. #include "cxButtons.hpp"
  16. #include "cxGraphics.hpp"
  17. #include "cxLookAndFeelPainters.hpp"
  18. #include "cxLookAndFeels.hpp"
  19. #include "dxSkinBlack.hpp"
  20. #include "dxSkinBlue.hpp"
  21. #include "dxSkinsCore.hpp"
  22. #include "dxSkinMcSkin.hpp"
  23. //---------------------------------------------------------------------------
  24. class TFRMPswdChnge : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TPanel *Panel3;
  28. TPanel *Panel1;
  29. TPanel *Panel2;
  30. TPanel *Panel4;
  31. TEdit *EdUserID;
  32. TEdit *EdPswd;
  33. TEdit *EdNewPswd;
  34. TEdit *EdCnfmNewPswd;
  35. TShape *ShpList;
  36. TShape *ShpInfo;
  37. TcxButton *BtnConfirm;
  38. TcxButton *BtnClose;
  39. TPanel *Panel5;
  40. TPanel *Panel6;
  41. TPanel *Panel7;
  42. TPanel *Panel8;
  43. TPanel *Panel9;
  44. void __fastcall btnPswdChngeClick(TObject *Sender);
  45. void __fastcall btnCloseClick(TObject *Sender);
  46. void __fastcall FormCreate(TObject *Sender);
  47. void __fastcall ShpCaptionMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  48. void __fastcall EdUserIDKeyPress(TObject *Sender, wchar_t &Key);
  49. void __fastcall EdPswdKeyPress(TObject *Sender, wchar_t &Key);
  50. void __fastcall EdNewPswdKeyPress(TObject *Sender, wchar_t &Key);
  51. void __fastcall EdCnfmNewPswdKeyPress(TObject *Sender, wchar_t &Key);
  52. private: // User declarations
  53. public: // User declarations
  54. __fastcall TFRMPswdChnge(TComponent* Owner);
  55. bool __fastcall ValidateInputField(void);
  56. void __fastcall SetLocalSkin();
  57. void __fastcall CreateParams(TCreateParams &Params);
  58. int __fastcall UpdateUserPassword(String strUserID, String strNewPswd);
  59. public:
  60. };
  61. //---------------------------------------------------------------------------
  62. extern PACKAGE TFRMPswdChnge *FRMPswdChnge;
  63. //---------------------------------------------------------------------------
  64. #endif