Mercurial > mercurial > hgweb_lesearcher.cgi
comparison src/update.cpp @ 0:615a15029602 default tip
first commit.
| author | pyon@macmini |
|---|---|
| date | Sun, 10 Nov 2019 08:39:41 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:615a15029602 |
|---|---|
| 1 /* Filename : update.cpp | |
| 2 Last Change: 2019-11-08 金 14:23:08. | |
| 3 by Takayuki Mutoh | |
| 4 */ | |
| 5 #include "update.h" | |
| 6 | |
| 7 UpdateDBFrame::UpdateDBFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) | |
| 8 : wxFrame(parent, id, title, pos, size, style) | |
| 9 { | |
| 10 this->SetSizeHints(wxDefaultSize, wxDefaultSize); | |
| 11 this->SetBackgroundColour(wxColour(170, 170, 200)); | |
| 12 | |
| 13 wxFlexGridSizer* fgSizer; | |
| 14 fgSizer = new wxFlexGridSizer(0, 2, 0, 0); | |
| 15 fgSizer->SetFlexibleDirection(wxBOTH); | |
| 16 fgSizer->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED); | |
| 17 | |
| 18 m_staticTextHhs = new wxStaticText(this, wxID_ANY, wxT("被保険者CSV"), wxDefaultPosition, wxDefaultSize, 0); | |
| 19 fgSizer->Add(m_staticTextHhs, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5); | |
| 20 | |
| 21 m_filePickerHhs = new wxFilePickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("*.*"), wxDefaultPosition, wxSize(300,-1), wxFLP_CHANGE_DIR|wxFLP_FILE_MUST_EXIST|wxFLP_SMALL|wxFLP_USE_TEXTCTRL); | |
| 22 fgSizer->Add(m_filePickerHhs, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5); | |
| 23 | |
| 24 m_staticText5 = new wxStaticText(this, wxID_ANY, wxT("居宅介護支援CSV"), wxDefaultPosition, wxDefaultSize, 0); | |
| 25 fgSizer->Add(m_staticText5, 0, wxALL|wxALIGN_RIGHT, 5); | |
| 26 | |
| 27 m_filePickerCM = new wxFilePickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("*.*"), wxDefaultPosition, wxSize(300,-1), wxFLP_CHANGE_DIR|wxFLP_SMALL|wxFLP_USE_TEXTCTRL); | |
| 28 fgSizer->Add(m_filePickerCM, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5); | |
| 29 | |
| 30 fgSizer->Add(0, 0, 1, wxEXPAND, 5); | |
| 31 | |
| 32 m_buttonUpdate = new wxButton(this, ID_UPDB, wxT("更新処理"), wxDefaultPosition, wxDefaultSize, 0); | |
| 33 fgSizer->Add(m_buttonUpdate, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); | |
| 34 | |
| 35 | |
| 36 this->SetSizer(fgSizer); | |
| 37 this->Layout(); | |
| 38 | |
| 39 this->Centre(wxBOTH); | |
| 40 | |
| 41 // Connect Events | |
| 42 m_buttonUpdate->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateDBFrame::OnUpdate), NULL, this); | |
| 43 } | |
| 44 | |
| 45 UpdateDBFrame::~UpdateDBFrame() | |
| 46 { | |
| 47 // Disconnect Events | |
| 48 m_buttonUpdate->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateDBFrame::OnUpdate), NULL, this); | |
| 49 | |
| 50 } |
