11
|
1 // Filename : mngdb.h
|
13
|
2 // Last Change: 2018-11-14 13:53:29.
|
11
|
3 //
|
|
4
|
|
5 #ifndef __MNGDB_H__
|
|
6 #define __MNGDB_H__
|
|
7
|
|
8 #include <wx/gdicmn.h>
|
|
9 #include <wx/font.h>
|
|
10 #include <wx/colour.h>
|
|
11 #include <wx/settings.h>
|
|
12 #include <wx/button.h>
|
|
13 #include <wx/sizer.h>
|
|
14 #include <wx/stattext.h>
|
|
15 #include <wx/datectrl.h>
|
|
16 #include <wx/dateevt.h>
|
|
17 #include <wx/filepicker.h>
|
|
18 #include <wx/statline.h>
|
|
19 #include <wx/msgdlg.h>
|
|
20
|
|
21 class ManageDBFrame : public wxFrame
|
|
22 {
|
|
23 DECLARE_EVENT_TABLE()
|
|
24 private:
|
|
25 wxString m_server;
|
|
26
|
|
27 protected:
|
|
28 wxStaticText* m_staticTextDate;
|
|
29 wxDatePickerCtrl* m_datePicker;
|
|
30 wxStaticText* m_staticTextHhs;
|
|
31 wxFilePickerCtrl* m_filePickerHhs;
|
|
32 wxStaticText* m_staticTextCcn;
|
|
33 wxFilePickerCtrl* m_filePickerCcn;
|
|
34 wxStaticLine* m_staticline;
|
|
35 wxButton* m_buttonBuild;
|
|
36 wxButton* m_buttonUpld;
|
|
37 wxButton* m_buttonExit;
|
|
38
|
|
39 public:
|
|
40 ManageDBFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxTAB_TRAVERSAL );
|
|
41 ~ManageDBFrame();
|
|
42
|
|
43 void OnBuild( wxCommandEvent& event );
|
|
44 void OnUpload( wxCommandEvent& event );
|
|
45 void OnExit( wxCommandEvent& event );
|
|
46
|
13
|
47 void SetDBdir( wxString dir );
|
|
48 void SetServer( wxString server ) { m_server = server; };
|
11
|
49 void Upload( wxString file );
|
|
50 };
|
|
51
|
|
52 #endif //__MNGDB_H__
|
|
53
|