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

#import "RecordDataController.h"
#import "R5ADDCOSTS.h"
//#import "R5ACTIVITIES.h"

@class EAMAppDelegate;
@class EAMAdditionalCosts;
@class R5ADDCOSTS;
@class GridData;
@class DBQuery;
@class R5ACTIVITIES;

@interface AdditionalCostDataController : RecordDataController
{
    R5ADDCOSTS *_recordValue;
}
@property (nonatomic, strong)               NSString                *activity;
@property (nonatomic, strong)               R5ACTIVITIES            *currentActivity;
@property (nonatomic, unsafe_unretained)    EAMAppDelegate          *appDelegate;
@property (nonatomic, strong)               DBQuery                 *dbqueryHandler;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               EAMAdditionalCosts      *additionalCosts;
@property (nonatomic, strong)               NSString                *transactionType;
@property (nonatomic)                       BOOL                    departmentSecurityReadOnly;
@property (nonatomic)                       BOOL                    jTAuthReadOnly;
@property (nonatomic)                       BOOL                    isWorkRequest;
@property (nonatomic)                       BOOL                    isWorkOrderCompleted;
@property (nonatomic)                       BOOL                    isAddMode;
@property (nonatomic)                       BOOL                    mbJTAuthIsDelete;
@property (nonatomic)                       BOOL                    recordViewDisabled;


- (void)loadRecordViewLayoutForCosts;
- (PickerData *)getPickerDataSource:(NSString *)fieldName;
- (LOVData *)getLOVDataSource:(NSString *)lovName;

//- (void)getAdditionalCost;
- (void)getAdditionalCostDefault;
- (void)addCost;
- (void)updateCost;
- (BOOL)validateInput;
- (void)enableFields:(BOOL)setReadOnly;
- (void)deleteCost;
- (void)getAdditionalCostsGridSummary;
// for disconnected mode
- (void)getAddCostRecord;

- (void)checkCompletedChildWO;
- (void)saveSplitData;
- (void)enableEquipmentFieldForTransactionLog:(BOOL ) setReadOnly;
- (void)disableFieldsForMECChilds:(BOOL ) setReadOnly;

@end
