Repository navigation
Expand file tree
/
Copy pathInvoice_ManagerApp.cpp.save
More file actions
62 lines (56 loc) · 1.83 KB
/
Copy pathInvoice_ManagerApp.cpp.save
File metadata and controls
62 lines (56 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/***************************************************************
* Name: Invoice_ManagerApp.cpp
* Purpose: Code for Application Class
* Author: Jugal Naik (jugalnaik14@gmail.com)
* Created: 2020-09-16
* Copyright: Jugal Naik (jugal.tk)
* License:
**************************************************************/
#include "wx_pch.h"
#include "Invoice_ManagerApp.h"
#include <fstream>
#include "CompanyAddNew.h"
//(*AppHeaders
#include "Invoice_ManagerMain.h"
#include <wx/image.h>
//*)
IMPLEMENT_APP(Invoice_ManagerApp);
bool Invoice_ManagerApp::OnInit()
{
//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
std::fstream file("Owner", std::ios::in | std::ios::app);
if(file.good())
{
wxMessageBox("Please Create YOUR Companys Profile");
CompanyAddNew Owner(this);
Owner.Name->SetValue("Your Companys Name..");
Owner.BillTo->SetValue("Proprietors Name..");
Owner.BillToStatic->SetLabel("Proprietor :");
Owner.GSTIN->SetValue("Companys GST Identification Number..");
Owner.Address->SetValue("Clients Address..");
Owner.City->SetValue("City..");
Owner.Country->SetValue("Country..");
if(Owner.ShowModal()==wxID_OK)
{
std::vector<wxString> vec;
vec.reserve(10);
// GetData(vec,Owner.Name);
// GetData(vec,Owner.BillTo);
// GetData(vec,Owner.GSTIN);
// GetData(vec,Owner.Address);
// GetData(vec,Owner.City);
// GetData(vec,Owner.Country);
// GetData(vec,Owner.Zip);
}
}
Invoice_ManagerFrame* Frame = new Invoice_ManagerFrame(0);
Frame->Show();
SetTopWindow(Frame);
}
//*)
return wxsOK;
}