//
//  CommonCommentsEditViewController.h
//  EAMNext
//
//  Created by Deepa Vaidhyanathan on 6/13/16.
//
//

#import <UIKit/UIKit.h>
#import "BaseModalViewController.h"
#import "CommentsDataController.h"
#import "R5EVENTS.h"
#import "R5OBJECTS.h"
#import "R5NONCONFORMITIES.h"
#import "R5MOBILENOTEBOOKS.h"
#import "R5PERMITTOWORK.h"
#import "R5ACTIVITIES.h"
#import "R5PERMITTOWORKLOTO.h"

@interface CommonCommentsEditViewController : BaseModalViewController
{
}

@property (nonatomic, strong)   UIButton    *btnClose;
@property (nonatomic, strong)   UIButton    *btnSave;
@property (nonatomic, strong)   UIButton    *btnDelete;
@property (nonatomic, strong)   UILabel     *viewTitle;
@property (nonatomic, strong)   R5ADDETAILS *selectedComment;
@property (nonatomic        )   BOOL        isAddMode;
@property (nonatomic, strong)   CommentsDataController *commentDataController;
@property (nonatomic, strong)   R5ADDETAILS           *currentRecord;
@property (nonatomic, weak)     id delegate;
@property (nonatomic)           BOOL readOnlyView;
@property (nonatomic        )   BOOL                openedFromRecordView;

//Module Specific
@property (nonatomic, strong)   R5EVENTS        *workOrder;
@property (nonatomic, strong)   R5ACTIVITIES    *activity;
@property (nonatomic, strong)   R5NONCONFORMITIES *nonConformObservation;
@property (nonatomic, strong)   R5OBJECTS       *equipment;
@property (nonatomic, strong)   R5MOBILENOTEBOOKS   *notebook;
@property (nonatomic, strong)   R5PERMITTOWORK  *permitToWork;
@property (nonatomic, strong)   R5PERMITTOWORKLOTO  *permitToWorkLoto;

typedef enum commentScreen{
    commentScreenWO,
    commentScreenCloseWO,
    commentScreenActivity,
    commentScreenActivityPM,
    commentScreenEquipment,
    commentScreenEquipmentHistory,
    commentScreenTaskInstructions,
    commentScreenNonConformity,
    commentScreenObservation,
    commentScreenChecklist,
    commentScreenRegular,
    commentScreenNotebook,
    commentScreenOpCLTaskInstruction,  
    commentScreenPermitToWork,
    commentScreenLoto,
    commentScreenIsolationMethod,
    commentScreenIsolationPoint
}commentScreen;

@property(nonatomic) commentScreen commentType;

@end 
