|
1
2
3
4
5
6
7
8
9
10
11
|
//
// MenuTableViewController.h
// DUREX Vendor Control
//
// Created by Imanol Barba on 5/23/14.
// Copyright (c) 2014 Emmoco. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "EMFramework.h"
#import "CommunicationProtocol.h"
|
|
12
|
#import "Stack.h"
|
|
13
|
#import "DatePickerViewController.h"
|
|
14
15
|
#import "PriceChangerViewController.h"
#import "NameChangerViewController.h"
|
|
16
|
#import "Sensors.h"
|
|
17
|
#import "SalesLog.h"
|
|
18
19
20
|
#define num(x) [NSNumber numberWithUnsignedInt:x]
|
|
21
22
23
|
#define CELL_CARAT_TAG 100
#define MENU_ELEMENTS @"[1000]Maintenance",@"[1001]Basic Configuration",@"[1002]Sending a Report"
|
|
24
|
#define MENU_CELLS_PER_SECTION num(3)
|
|
25
|
#define MENU_HEADERS nil
|
|
26
|
|
|
27
28
29
30
31
32
33
|
#define MAINTENANCE_ELEMENTS @">[2000]Channels Present",@">[2001]Product Present in Channel",@">[2002]Channel Engine Status",@"[2003]Door Sensor",@"[2004]Coil Sensor",@">[2005]Money Collected",@">[2006]Money Returned",@">[2007]Products Sold",@">[2008]Change Available",@"[2009]Sales log",@"[2010]Incident report",@"[2011]Send report"
#define MAINTENANCE_CHANNELS @"*Channel 1",@"*Channel 2",@"*Channel 3",@"*Channel 4",@"*Channel 5",@"*Channel 6",@"*Channel 7",@"*Channel 8",@"*Channel 9",@"*Channel 10",@"*Channel 11",@"*Channel 12",@"*Channel 13",@"*Channel 14",@"*Channel 15",@"*Channel 16"
#define MAINTENANCE_MONEY_IN @"*10€ Notes",@"*5€ Notes",@"*2€ Coins",@"*1€ Coins",@"*50c Coins"
#define MAINTENANCE_MONEY_OUT @"*2€ Coins",@"*1€ Coins",@"*50c Coins"
#define MAINTENANCE_CHANGE @"*1€ Coins",@"*50c Coins"
#define MAINTENANCE_PRODUCTS @"*Product 1",@"*Product 2",@"*Product 3",@"*Product 4",@"*Product 5",@"*Product 6",@"*Product 7",@"*Product 8",@"*Product 9",@"*Product 10",@"*Product 11",@"*Product 12",@"*Product 13",@"*Product 14",@"*Product 15",@"*Product 16"
#define MAINTENANCE_CELLS_PER_SECTION num(9),num(3)
|
|
34
|
#define MAINTENANCE_HEADERS NSLocalizedString(@"Sensors", nil),NSLocalizedString(@"Commands", nil)
|
|
35
|
|
|
36
37
38
|
#define SALES_ELEMENTS @"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Normal Price",@"Discounted Price",@"1€ Change",@"50c Change"
#define SALES_CELLS_PER_SECTION num(11)
#define SALES_HEADERS @"14/06/2014"
|
|
39
|
|
|
40
|
#define CONFIGURATION_ELEMENTS @"[3000]Update Date & Time",@"[3001]Update product price",@"[3002]Update product name"
|
|
41
42
43
44
|
#define CONFIGURATION_CELLS_PER_SECTION num(3)
#define CONFIGURATION_HEADERS nil
#define CELL_IDENTIFIERS @"MenuCell",@"MaintenanceCell",@"SalesCell",@"ConfigCell",@"ReportCell"
|
|
45
46
47
48
|
enum {
MENU = 0,
MAINTENANCE,
|
|
49
|
SALES,
|
|
50
|
BASIC_CONFIGURATION,
|
|
51
|
REPORT,
|
|
52
53
|
} navigationLevel;
|
|
54
|
@interface MenuTableViewController : UITableViewController <DatePickerViewControllerDelegate,PriceChangerViewControllerDelegate,NameChangerViewControllerDelegate>
|
|
55
|
|
|
56
|
@property (strong,nonatomic) Stack *parentLayout;
|
|
57
58
59
|
@property (strong,nonatomic) DatePickerViewController *datePickerViewController;
@property (strong,nonatomic) PriceChangerViewController *priceChangerViewController;
@property (strong,nonatomic) NameChangerViewController *nameChangerViewController;
|
|
60
|
@property (strong,nonatomic) Sensors *sensorStatus;
|
|
61
|
@property (strong,nonatomic) SalesLog *salesLog;
|
|
62
|
|
|
63
64
|
- (void) navBack;
|
|
65
|
@end
|