-
Notifications
You must be signed in to change notification settings - Fork 0
/
C_Color.cpp
56 lines (52 loc) · 1.21 KB
/
C_Color.cpp
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
#include "C_Color.h"
#include "pch.h"
using namespace Composants;
C_Color::C_Color() {
this->paramColor = "Aucune";
this->increase = 0;
this->param = 0;
this-> modif = "Rien";
this-> valeur = "Rien";
}
void C_Color::setParamColor(String^ ParamColor) {
this->paramColor= ParamColor;
}
void C_Color::setIncrease(double Increase) {
this->increase = Increase;
}
String^ C_Color::getParamColor() {
return this->paramColor;
}
double C_Color::getIncrease() {
return this->increase;
}
void C_Color::setParam(int Param) {
this->param = Param;
}
void C_Color::setModif(String^ Modif) {
this->modif = Modif;
}
void C_Color::setValeur(String^ Valeur) {
this->valeur = Valeur;
}
int C_Color::getParam() {
return this->param;
}
String^ C_Color::getModif() {
return this->modif;
}
String^ C_Color::getValeur() {
return this->valeur;
}
String^ C_Color::insert() {
return "INSERT INTO color(Color,increase) VALUES ('" + this->getParamColor() + "','" + this->getIncrease() + "');";
}
String^ C_Color::select() {
return "SELECT * FROM color;";
}
String^ C_Color::delet() {
return "Rien";
}
String^ C_Color::update() {
return "UPDATE color SET " + this->getModif() + "='" + this->getValeur() + "' WHERE id_person = " + this->getParam();
}