00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef Product_HPP
00012 #define Product_HPP
00013
00014 #include "read_write_base.hpp"
00015
00016 class Product_Obj: public read_write_base
00017 {
00018 public:
00019 identifier Id;
00020 llong Product_Line;
00021 string Name;
00022 string Description;
00023 int Lines_Custom_Text;
00024 string SKU;
00025 bool Designer;
00026 llong Manufacturer;
00027
00028
00029 Product_Obj():read_write_base()
00030 ,Id(0LL)
00031 ,Product_Line(0LL)
00032 ,Name("")
00033 ,Description("")
00034 ,Lines_Custom_Text(0)
00035 ,SKU("")
00036 ,Designer(false)
00037 ,Manufacturer(0LL)
00038 {
00039
00040 data_name("Product");
00041
00042 addDXMap( new llongXfer("Id", &Id ));
00043 addDXMap( new llongXfer("Product_Line", &Product_Line ));
00044
00045 addDXMap( new stringXfer("Name", &Name ));
00046 addDXMap( new stringXfer("Description", &Description ));
00047 addDXMap( new intXfer("Lines_Custom_Text", &Lines_Custom_Text ));
00048 addDXMap( new stringXfer("SKU", &SKU ));
00049 addDXMap( new boolXfer("Designer", &Designer ));
00050 addDXMap( new llongXfer("Manufacturer", &Manufacturer ));
00051 }
00052
00053 int decrementStock( long Product_Id, long Product_Count)
00054 {
00055 return 0L;
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069 }
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084 };
00085 #endif
00086
00087