|
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
18
19
20
21
|
#define num(x) [NSNumber numberWithUnsignedInt:x]
#define MENU_ELEMENTS @"Maintenance",@"Basic Configuration",@"Sending a Report"
#define MENU_CELLS_PER_SECTION num(3)
|
|
22
|
#define MENU_HEADERS nil
|
|
23
|
|
|
24
25
|
#define MAINTENANCE_ELEMENTS @"Channels Present",@"Product Present in Channel",@"Channel Engine Status",@"Door Sensor",@"Coil sensor",@"Money Collected",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Money given",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Products Sold",@"Change Available",@"1€ Coins",@"50c Coins",@"Sales log",@"Incident report",@"Send report"
#define MAINTENANCE_CELLS_PER_SECTION num(21),num(3)
|
|
26
|
#define MAINTENANCE_HEADERS NSLocalizedString(@"Sensors", nil),NSLocalizedString(@"Commands", nil)
|
|
27
|
|
|
28
29
30
|
#define SALES_ELEMENTS @"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Nominal Price",@"Discounted Price",@"1€ Change",@"50c Change",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Nominal Price",@"Discounted Price",@"1€ Change",@"50c Change",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Nominal Price",@"Discounted Price",@"1€ Change",@"50c Change"
#define SALES_CELLS_PER_SECTION num(12),num(12),num(12)
#define SALES_HEADERS @"14/06/2014",@"25/06/2014",@"05/07/2014"
|
|
31
|
|
|
32
33
34
35
36
|
#define CONFIGURATION_ELEMENTS @"Update Date & Time",@"Update product price",@"Update product name"
#define CONFIGURATION_CELLS_PER_SECTION num(3)
#define CONFIGURATION_HEADERS nil
#define CELL_IDENTIFIERS @"MenuCell",@"MaintenanceCell",@"SalesCell",@"ConfigCell",@"ReportCell"
|
|
37
38
39
40
|
enum {
MENU = 0,
MAINTENANCE,
|
|
41
|
SALES,
|
|
42
|
BASIC_CONFIGURATION,
|
|
43
|
REPORT,
|
|
44
45
|
} navigationLevel;
|
|
46
|
@interface MenuTableViewController : UITableViewController <DatePickerViewControllerDelegate,PriceChangerViewControllerDelegate,NameChangerViewControllerDelegate>
|
|
47
|
|
|
48
|
@property (strong,nonatomic) Stack *parentLayout;
|
|
49
50
51
|
@property (strong,nonatomic) DatePickerViewController *datePickerViewController;
@property (strong,nonatomic) PriceChangerViewController *priceChangerViewController;
@property (strong,nonatomic) NameChangerViewController *nameChangerViewController;
|
|
52
|
@property (strong,nonatomic) Sensors *sensorStatus;
|
|
53
|
|
|
54
55
|
- (void) navBack;
|
|
56
|
@end
|