//
//  MetersDataController.h
//  EAMNext
//
//  Created by Bhavani Srikantam on 02/09/16.
//
//

#import "RecordDataController.h"

@class EAMAppDelegate;
@class EAMObjUsageDefs;
@class WebQuery;
@class DBQuery;
@class GridData;
@class R5METERS;
@class R5OBJUSAGEDEFS;


@interface MetersDataController : RecordDataController
{
    R5OBJUSAGEDEFS   *_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          *objRType;
@property (nonatomic, strong)            EAMObjUsageDefs         *objUsage;
@property (nonatomic)                       BOOL                    isAddMode;

-(void)getMeters;
-(void)getEquipmentUsageMeter;
-(void)addEquipmentUsageMeter;
-(void)updateEquipmentUsageMeter;
-(void)deleteEquipmentUsageMeter;
- (BOOL)validateInput;
- (LOVData *)getLOVDataSource:(NSString *)lovName;
- (PickerData *)getPickerDataSource:(NSString *)fieldName;
@end


