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

#import "RecordDataController.h"
#import "R5IRPLANPARTS.h"

@class EAMAppDelegate;
@class EAMIRPlanParts;
@class R5IRPLANPARTS;



@interface IRPlanPartsDataController : RecordDataController
{
    
    R5IRPLANPARTS *_recordValue;
}
@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               EAMIRPlanParts              *planParts;
@property (nonatomic, strong)               NSString                *transactionType;
@property (nonatomic)                       BOOL                    isAddMode;
@property (nonatomic)                       BOOL                    departmentSecurityReadOnly;
@property (nonatomic)                       BOOL                    jTAuthReadOnly;
@property (nonatomic)                       BOOL                    jTAuthIsDelete;
@property (nonatomic)                       BOOL                    isWorkRequest;
@property (nonatomic)                       BOOL                    isWorkOrderCompleted;
@property (nonatomic, strong)               NSString                *activity;


- (void)loadRecordViewLayoutForParts;
- (LOVData *)getLOVDataSource:(NSString *)lovName;

- (void)getWorkOrderPart;
- (void)getWorkOrderPartDefault;
- (void)addPart;
- (void)updatePart;
- (void)deletePart;
- (BOOL)validateInput;
- (void)enableFields:(BOOL)setReadOnly;

- (void)getPartsGridSummary;

@end
