//
//  PermitToWorkPermissionController.h
//  EAMNext
//
//  Created by Weikang Ding on 9/19/18.
//

#import "PermissionController.h"
#import "R5PERMITTOWORK.h"

@interface PermitToWorkPermissionController : PermissionController


-(id)initWithPermitToWork:(R5PERMITTOWORK *)permitToWork;

-(BOOL)canInsertComment:(NSString *)functionID error:(NSString *__autoreleasing *)errorMessage;
-(BOOL)canUpdateComment:(NSString *)functionID error:(NSString *__autoreleasing *)errorMessage;
-(BOOL)canInsertDocument:(NSString *)functionID error:(NSString *__autoreleasing *)errorMessage;
-(BOOL)canInsertContractorSignOff:(NSString *)functionID error:(NSString *__autoreleasing *)errorMessage;
-(BOOL)canInsertSignOff:(NSString *)functionID error:(NSString *__autoreleasing *)errorMessage;

-(BOOL)canInsertContractorSignOff:(NSString *)tabType andFunctionName:(NSString *)functionName error:(NSString **)errorMessage;
@end
