//
//  PlanToolDataController.h
//  EAMiPad
//
//  Created by Divya Sivakumar on 5/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "RecordDataController.h"
#import "EAMAppDelegate.h"

@class R5TOOLPLAN;
@class DBQuery;
@class GridData;
@class EAMToolPlan;

@interface PlanToolDataController : RecordDataController
{
    
    R5TOOLPLAN *_recordValue;
}


@property (nonatomic, unsafe_unretained)    EAMAppDelegate          *appDelegate;
@property (nonatomic, strong)               DBQuery                 *dbqueryHandler;
@property (nonatomic, strong)               EAMToolPlan            *eamToolPlan;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic)                       BOOL                    isAddMode;

- (void)getPlanToolGridSummary;
- (void)getPlanToolsDefault;
- (void)addPlanTool;
- (void)updatePlanTool;
- (void)deletePlanTool;
- (void)getPlanToolsRecord;
- (BOOL)validateInput;
- (void)enableFields:(BOOL)setReadOnly;
-(void)disableFields:(BOOL)setReadOnly;
@end
