//
//  ScheduleLaborDataController.h
//  EAMNext
//
//  Created by susobhan on 28/09/16.
//
//

#import "RecordDataController.h"
#import "R5ACTSCHEDULES.h"
#import "R5ACTIVITIES.h"


@class EAMAppDelegate;
@class R5ACTSCHEDULES;
@class EAMScheduleLabor;
@class GridData;
@class DBQuery;
@interface ScheduleLaborDataController : RecordDataController
{
    R5ACTSCHEDULES *_recordValue;
}
@property (nonatomic, strong)               NSString                *activity;
@property (nonatomic, unsafe_unretained)    EAMAppDelegate          *appDelegate;
@property (nonatomic, strong)               DBQuery                 *dbqueryHandler;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               NSString                *recordId;

@property (nonatomic, strong)               EAMScheduleLabor      *schedulelabor;
@property (nonatomic)                       BOOL                    isAddMode;
@property (nonatomic)                       BOOL                    recordViewDisabled;
@property (nonatomic, strong)               R5ACTIVITIES            *activities;


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

- (void)updateScheduleLabor;
- (void)addScheduleLabor;
- (void)deleteScheduleLabor;

- (void)getWorkOrderScheduleDefault;
- (BOOL)validateInput;
- (void)enableFields:(BOOL)setReadOnly;
- (void)getScheduleLaboGridSummary;
// for disconnected mode
- (void)getLaborRecord;
-(BOOL)validateScheduleLabor:(R5ACTIVITIES *)pActivities;

@end
