FRMPswdChngeF.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. //---------------------------------------------------------------------------
  23. class TFRMPswdChnge : public TForm
  24. {
  25. __published: // IDE-managed Components
  26. TPanel *Panel3;
  27. TPanel *Panel1;
  28. TPanel *Panel2;
  29. TPanel *Panel4;
  30. TEdit *EdUserID;
  31. TEdit *EdPswd;
  32. TEdit *EdNewPswd;
  33. TEdit *EdCnfmNewPswd;
  34. TShape *ShpList;
  35. TShape *ShpInfo;
  36. TcxButton *BtnConfirm;
  37. TcxButton *BtnClose;
  38. TPanel *Panel5;
  39. TPanel *Panel6;
  40. TPanel *Panel7;
  41. TPanel *Panel8;
  42. TPanel *Panel9;
  43. void __fastcall btnPswdChngeClick(TObject *Sender);
  44. void __fastcall btnCloseClick(TObject *Sender);
  45. void __fastcall FormCreate(TObject *Sender);
  46. void __fastcall ShpCaptionMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  47. void __fastcall EdUserIDKeyPress(TObject *Sender, wchar_t &Key);
  48. void __fastcall EdPswdKeyPress(TObject *Sender, wchar_t &Key);
  49. void __fastcall EdNewPswdKeyPress(TObject *Sender, wchar_t &Key);
  50. void __fastcall EdCnfmNewPswdKeyPress(TObject *Sender, wchar_t &Key);
  51. private: // User declarations
  52. public: // User declarations
  53. __fastcall TFRMPswdChnge(TComponent* Owner);
  54. bool __fastcall ValidateInputField(void);
  55. void __fastcall SetLocalSkin();
  56. void __fastcall CreateParams(TCreateParams &Params);
  57. int __fastcall UpdateUserPassword(String strUserID, String strNewPswd);
  58. public:
  59. };
  60. //---------------------------------------------------------------------------
  61. extern PACKAGE TFRMPswdChnge *FRMPswdChnge;
  62. //---------------------------------------------------------------------------
  63. #endif