//
//  MeterHistoryDataController.h
//  EAMNext
//
//  Created by Bhavani Srikantam on 14/10/16.
//
//

#import "RecordDataController.h"

@class EAMAppDelegate;
@class EAMReadings;
@class WebQuery;
@class DBQuery;
@class GridData;
@class R5READINGS;
@class R5OBJUSAGEDEFS;
@interface MeterHistoryDataController : RecordDataController
{
    R5READINGS   *_recordValue;
}

@property (nonatomic, unsafe_unretained)    EAMAppDelegate          *appDelegate;
@property (nonatomic, strong)            DBQuery           *dbqueryHandler;
@property (nonatomic, strong)            NSString          *equipmentCode;
@property (nonatomic, strong)            NSString          *equipmentOrg;
@property (nonatomic, strong)            NSString          *uomCode;
@property (nonatomic, strong)            NSString          *physicalMeter;
@property (nonatomic, strong)            EAMReadings       *currentRecord;

-(id)initWithMeter:(R5OBJUSAGEDEFS *)objUsage;
-(void)getMeterHistory;
-(void)getEquipmentUsageMeter;
- (BOOL)validateInput;

@end
