-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCL_map_TBCLIENT.cpp
More file actions
133 lines (111 loc) · 3.29 KB
/
Copy pathCL_map_TBCLIENT.cpp
File metadata and controls
133 lines (111 loc) · 3.29 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#include "CL_map_TBCLIENT.h"
using namespace NS_Composants;
CL_map_TBCLIENT::CL_map_TBCLIENT()
{
this->numero_client = -1;
this->nom_client = "RIEN";
this->prenom_client = "RIEN";
this->adresse_facturation = "RIEN";
this->adresse_livraison = "RIEN";
this->date_naissance = "RIEN";
this->date_premier_achat = "RIEN";
}
String^ CL_map_TBCLIENT::SELECT()
{
return "SELECT numero_client, nom_client, prenom_client, adresse_facturation, adresse_livraison, date_naissance, date_premier_achat " +
"FROM TB_CLIENT;";
}
String^ CL_map_TBCLIENT::INSERT()
{
return "INSERT INTO TB_CLIENT " +
"(nom_client, prenom_client, adresse_facturation, adresse_livraison, date_naissance, date_premier_achat) " +
"VALUES('" + this->getNomCLient() + "','" + this->getPrenomCLient() + "','" + this->getAdresseFact() + "','" + this->getAdresseLivr() + "','" + this->getDateNaiss() + "','" + this->getDatePremAchat() + "');SELECT @@IDENTITY;";
}
String^ CL_map_TBCLIENT::UPDATE()
{
return "UPDATE TB_CLIENT " +
"SET nom_client = '" + this->getNomCLient() + "', prenom_client = '" + this->getPrenomCLient() + "'adresse_facturation = '" + this->getAdresseFact() + "'adresse_livraison = '" + this->getAdresseLivr() + "'date_naissance = '" + this->getDateNaiss() + "'date_premier_achat = '" + this->getDatePremAchat() + "' " +
"WHERE(numero_client = " + this->getNumClient() + ");";
}
String^ CL_map_TBCLIENT::DELETE()
{
return "DELETE FROM TB_CLIENT " +
"WHERE(numero_client = " + this->getNumClient() + ");";
}
void CL_map_TBCLIENT::setNumClient(int numero_client)
{
if (numero_client > 0)
{
this->numero_client = numero_client;
}
}
void CL_map_TBCLIENT::setPrenomCLient(String^ prenom_client)
{
if (prenom_client != "")
{
this->prenom_client = prenom_client;
}
}
void CL_map_TBCLIENT::setNomCLient(String^ nom_client)
{
if (nom_client != "")
{
this->nom_client = nom_client;
}
}
void CL_map_TBCLIENT::setAdresseFact(String^ adresse_facturation)
{
if (adresse_facturation != "")
{
this->adresse_facturation = adresse_facturation;
}
}
void CL_map_TBCLIENT::setAdresseLivr(String^ adresse_livraison)
{
if (adresse_livraison != "")
{
this->adresse_livraison = adresse_livraison;
}
}
void CL_map_TBCLIENT::setDatePremAchat(String^ date_premier_achat)
{
if (date_premier_achat != "")
{
this->date_premier_achat = date_premier_achat;
}
}
void CL_map_TBCLIENT::setDateNaiss(String^ date_naissance)
{
if (date_naissance != "")
{
this->date_naissance = date_naissance;
}
}
int CL_map_TBCLIENT::getNumClient()
{
return this->numero_client;
}
String^ CL_map_TBCLIENT::getPrenomCLient()
{
return this->prenom_client;
}
String^ CL_map_TBCLIENT::getNomCLient()
{
return this->nom_client;
}
String^ CL_map_TBCLIENT::getAdresseFact()
{
return this->adresse_facturation;
}
String^ CL_map_TBCLIENT::getAdresseLivr()
{
return this->adresse_livraison;
}
String^ CL_map_TBCLIENT::getDatePremAchat()
{
return this->date_premier_achat;
}
String^ CL_map_TBCLIENT::getDateNaiss()
{
return this->date_naissance;
}