//
//  AccomplishmentsDataController.h
//  EAMNext
//
//  Created by Satish Kumar Jakkula on 6/24/20.
//

#import "RecordDataController.h"
#import "R5EVENTS.h"

NS_ASSUME_NONNULL_BEGIN

@class R5EVENTACCOMPLISHMENTS;

@interface AccomplishmentsDataController : RecordDataController
{
    R5EVENTACCOMPLISHMENTS *_recordValue;
}

@property (nonatomic, strong)               R5EVENTS                *workOrder;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic)                       BOOL                    departmentSecurityReadOnly;
@property (nonatomic)                       BOOL                    jTAuthReadOnly;
@property (nonatomic)                       BOOL                    isWorkRequest;
@property (nonatomic)                       BOOL                    isWorkOrderCompleted;
@property (nonatomic)                       BOOL                    jTAuthIsDelete;
@property (nonatomic)                       BOOL                    isAddMode;
@property (nonatomic, strong)               NSDictionary            *UDFields;

- (BOOL)validateInput;

- (void)addAccomplishment;
- (void)updateAccomplishment;
- (void)deleteAccomplishment;

- (void)getAccomplishmentsForWorkOrderDefault:(NSString *)workOrderNumber;
- (void)getAccomplishment;
- (void)getAccomplishmentPK:(NSString *)strPK event:(NSString *)strEvent activity:(NSString *)strActivity;
- (void)getWOAccomplishments:(NSString *)workOrderNumber;

- (void)enableFields:(BOOL )enable;


@end

NS_ASSUME_NONNULL_END
