//
//  RouteInspectionDataController.h
//  EAMiPad
//
//  Created by Lakshmi Kothapalli on 03/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "RecordDataController.h"

@class EAMAppDelegate;
@class R5EVENTPOINTS;
@class EAMEVENTPOINTS;
@class DBQuery;
@class GridData;

@interface RouteInspectionDataController : RecordDataController
{
    R5EVENTPOINTS   *_recordValue;
}

@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               EAMEVENTPOINTS          *inspection;
@property (nonatomic, strong)               DBQuery                 *dbqueryHandler;
@property (nonatomic)                       BOOL                    departmentSecurityReadOnly;
@property (nonatomic)                       BOOL                    jTAuthReadOnly;
@property (nonatomic)                       BOOL                    isWorkRequest;
@property (nonatomic)                       BOOL                    isWorkOrderCompleted;
//delete permission
@property (nonatomic)                       BOOL                    jTAuthIsDelete;

-(void)loadRecordViewLayoutForInspection;
- (LOVData *)getLOVDataSource:(NSString *)lovName;
- (PickerData *)getPickerDataSource:(NSString *)fieldName;
- (BOOL)validateInput;

- (void)addInspection;
- (void)updateInspection;
- (void)deleteInspection;
- (void)getInspections;
- (void)getInspectionsForWorkOrder;
- (void)getInspectionsForWorkOrderDefault;
- (void)enableFields:(BOOL)setReadOnly;

- (void)addOrRemoveLinearAssetFields;

@end
