//
//  PermitToWorkLOTODataController.h
//  EAMNext
//
//  Created by Surojit Bhattacharya on 1/14/20.
//

#import "RecordDataController.h"
#import "R5PERMITTOWORKLOTO.h"
#import "R5PERMITTOWORK.h"

@interface PermitToWorkLOTODataController : RecordDataController

@property (nonatomic, strong) DBQuery            *dbqueryHandler;
@property (nonatomic, strong) R5PERMITTOWORKLOTO *recordValue;
@property (nonatomic, strong) R5PERMITTOWORK     *permitToWork;
@property (nonatomic        ) BOOL               isAddMode;
@property (nonatomic, strong) NSDictionary       *UDFields;

- (void)getPermitToWorkList:(NSString *)permitToCode;
- (void)getPermitToWorkLoto;
- (void)getPermitToWorkLOTODefault;
- (void)addPermitToWorkLOTO;
- (void)updatePermitToWorkLOTO;
- (void)deletePermitToWorkOTO;
- (void)loadRecordViewLayoutForPermitToWorkLOTO;
- (BOOL)validateInput;
- (void)enableFields:(BOOL)setReadOnly;
- (BOOL)validateAddLOTOStatus;
- (BOOL)validateEditLOTOStatus;
- (BOOL)validateDeleteLOTOStatus;
- (void)isolatePermitToWork:(int)isolateParameter;
- (void)getChecklistForLoto:(R5PERMITTOWORKLOTO *)pLotoRecord;


@end

