Mercurial > mercurial > hgweb_lesearcher.cgi
diff src/update.cpp @ 0:615a15029602 default tip
first commit.
author | pyon@macmini |
---|---|
date | Sun, 10 Nov 2019 08:39:41 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/update.cpp Sun Nov 10 08:39:41 2019 +0900 @@ -0,0 +1,50 @@ +/* Filename : update.cpp + Last Change: 2019-11-08 金 14:23:08. + by Takayuki Mutoh +*/ +#include "update.h" + +UpdateDBFrame::UpdateDBFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) + : wxFrame(parent, id, title, pos, size, style) +{ + this->SetSizeHints(wxDefaultSize, wxDefaultSize); + this->SetBackgroundColour(wxColour(170, 170, 200)); + + wxFlexGridSizer* fgSizer; + fgSizer = new wxFlexGridSizer(0, 2, 0, 0); + fgSizer->SetFlexibleDirection(wxBOTH); + fgSizer->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED); + + m_staticTextHhs = new wxStaticText(this, wxID_ANY, wxT("被保険者CSV"), wxDefaultPosition, wxDefaultSize, 0); + fgSizer->Add(m_staticTextHhs, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5); + + 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); + fgSizer->Add(m_filePickerHhs, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5); + + m_staticText5 = new wxStaticText(this, wxID_ANY, wxT("居宅介護支援CSV"), wxDefaultPosition, wxDefaultSize, 0); + fgSizer->Add(m_staticText5, 0, wxALL|wxALIGN_RIGHT, 5); + + 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); + fgSizer->Add(m_filePickerCM, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5); + + fgSizer->Add(0, 0, 1, wxEXPAND, 5); + + m_buttonUpdate = new wxButton(this, ID_UPDB, wxT("更新処理"), wxDefaultPosition, wxDefaultSize, 0); + fgSizer->Add(m_buttonUpdate, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5); + + + this->SetSizer(fgSizer); + this->Layout(); + + this->Centre(wxBOTH); + + // Connect Events + m_buttonUpdate->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateDBFrame::OnUpdate), NULL, this); +} + +UpdateDBFrame::~UpdateDBFrame() +{ + // Disconnect Events + m_buttonUpdate->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(UpdateDBFrame::OnUpdate), NULL, this); + +}