Blame view

DUREX Vendor Control/MenuTableViewController.h 2.83 KB
Imanol-Mikel Barba Sabariego authored
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"
Imanol-Mikel Barba Sabariego authored
12
#import "Stack.h"
Imanol-Mikel Barba Sabariego authored
13
#import "DatePickerViewController.h"
Imanol-Mikel Barba Sabariego authored
14
15
#import "PriceChangerViewController.h"
#import "NameChangerViewController.h"
Imanol-Mikel Barba Sabariego authored
16
#import "Sensors.h"
Imanol-Mikel Barba Sabariego authored
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)
Imanol-Mikel Barba Sabariego authored
22
#define MENU_HEADERS                        nil
Imanol-Mikel Barba Sabariego authored
23
Imanol-Mikel Barba Sabariego authored
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)
Imanol-Mikel Barba Sabariego authored
26
#define MAINTENANCE_HEADERS              NSLocalizedString(@"Sensors", nil),NSLocalizedString(@"Commands", nil)
Imanol-Mikel Barba Sabariego authored
27
Imanol-Mikel Barba Sabariego authored
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"
Imanol-Mikel Barba Sabariego authored
31
Imanol-Mikel Barba Sabariego authored
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"
Imanol-Mikel Barba Sabariego authored
37
38
39
40

enum {
    MENU = 0,
    MAINTENANCE,
Imanol-Mikel Barba Sabariego authored
41
    SALES,
Imanol-Mikel Barba Sabariego authored
42
    BASIC_CONFIGURATION,
Imanol-Mikel Barba Sabariego authored
43
    REPORT,
Imanol-Mikel Barba Sabariego authored
44
45
} navigationLevel;
Imanol-Mikel Barba Sabariego authored
46
@interface MenuTableViewController : UITableViewController <DatePickerViewControllerDelegate,PriceChangerViewControllerDelegate,NameChangerViewControllerDelegate>
Imanol-Mikel Barba Sabariego authored
47
Imanol-Mikel Barba Sabariego authored
48
@property (strong,nonatomic) Stack *parentLayout;
Imanol-Mikel Barba Sabariego authored
49
50
51
@property (strong,nonatomic) DatePickerViewController *datePickerViewController;
@property (strong,nonatomic) PriceChangerViewController *priceChangerViewController;
@property (strong,nonatomic) NameChangerViewController *nameChangerViewController;
Imanol-Mikel Barba Sabariego authored
52
@property (strong,nonatomic) Sensors *sensorStatus;
Imanol-Mikel Barba Sabariego authored
53
Imanol-Mikel Barba Sabariego authored
54
55
- (void) navBack;
Imanol-Mikel Barba Sabariego authored
56
@end