-
Notifications
You must be signed in to change notification settings - Fork 0
/
CLItems.cpp
78 lines (72 loc) · 1.93 KB
/
CLItems.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include "CLItems.h"
NS_Models::CLItems::CLItems() {
this->id_items = 0;
this->items_reference = "default";
this->type = "default";
this->name = "default";
this->price_df = 0;
this->quantity = 0;
}
void NS_Models::CLItems::setId_items(int _id_items) {
this->id_items = _id_items;
}
void NS_Models::CLItems::setItems_quantity(int i_quantity)
{
this->quantity = i_quantity;
}
void NS_Models::CLItems::setItems_reference(String^ _items_ref) {
this->items_reference = _items_ref;
}
void NS_Models::CLItems::setName(String^ _item_name) {
this->name = _item_name;
}
void NS_Models::CLItems::setType(String^ _items_type) {
this->type = _items_type;
}
void NS_Models::CLItems::setPrice_df(float _price_df) {
this->price_df = _price_df;
}
void NS_Models::CLItems::setColors(String^ n_color)
{
this->color = n_color;
}
String^ NS_Models::CLItems::getColors(void)
{
return this->color;
}
int NS_Models::CLItems::getId_items(void) {
return this->id_items;
}
String^ NS_Models::CLItems::getItems_reference(void) {
return this->items_reference;
}
String^ NS_Models::CLItems::getName(void) {
return this->name;
}
String^ NS_Models::CLItems::getType(void) {
return this->type;
}
float NS_Models::CLItems::getPrice_df(void) {
return this->price_df;
}
int NS_Models::CLItems::getItems_quantity(void)
{
return this->quantity;
}
String^ NS_Models::CLItems::SELECT()
{
return "EXECUTE SelectItem @item_reference ='"+getItems_reference()+"'";
}
String^ NS_Models::CLItems::INSERT()
{
return "EXECUTE InsertItem @reference ='"+getItems_reference()+"', @quantity = '"+getItems_quantity()+"', @color = '"+ getColors()+"', @type = '"+ getType() +"', @name = '"+ getName() + "', @price = '"+getPrice_df()+"'";
}
String^ NS_Models::CLItems::UPDATE()
{
return "";
//return "EXECUTE UpdateItem @item_reference = '"+getItems_reference()";
}
String^ NS_Models::CLItems::DELETE()
{
return "";
}