//
//  CommentsPanelViewController.h
//  EAMNext
//
//  Created by Weikang Ding on 4/28/16.
//
//

#import "BasePanelViewController.h"
#import "EAMAppDelegate.h"
#import "CommonCommentsEditViewController.h"
#import "RecordViewController.h"


@class R5ADDETAILS;
@class CommentsDataController;
@class R5EVENTS;
@class R5ACTIVITIES;
@class R5OBJECTS;
@class R5NONCONFORMITIES;
@class R5OPERATORCHECKLISTS;
@class R5MOBILENOTEBOOKS;
@class R5PERMITTOWORK;
@class R5PERMITTOWORKLOTO;

@interface CommentsPanelViewController : BasePanelViewController<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, unsafe_unretained)    EAMAppDelegate              *appDelegate;
@property (nonatomic, strong)               CommentsDataController      *commentsDataController;
@property (nonatomic, strong)               NSArray                     *commentsData;
@property (nonatomic, weak)                 id                          delegate;
@property (nonatomic,strong)           CommonCommentsEditViewController *commentEditView;
@property (nonatomic        )               BOOL                    isAddMode;
//Asctivity Task Instructions
@property (nonatomic, strong)                 R5ADDETAILS                *selectedComment;
@property (nonatomic        )                 BOOL                       openedFromRecordView;
@property (nonatomic, strong)                 NSMutableArray             *commentObjects;

//External modules passed into Comment
//@property (nonatomic, strong)                 NSArray                    *taskInstructionData;
//@property (nonatomic, strong)                 NSArray                    *PMCommentsData;
@property (nonatomic, strong)               R5EVENTS                    *workOrder;
@property (nonatomic, strong)               R5ACTIVITIES                *activity;
@property (nonatomic, strong)               R5OPERATORCHECKLISTS        *operatorchecklist;
@property (nonatomic, strong)               R5OBJECTS                   *equipment;
@property (nonatomic, strong)               R5NONCONFORMITIESHEADER       *nonConformity;
@property (nonatomic, strong)               R5NONCONFORMITIES    *nonConformObservation;
@property (nonatomic, strong)               R5MOBILENOTEBOOKS           *notebook;
@property (nonatomic, strong)               R5PERMITTOWORK              *permitToWork;
@property (nonatomic, strong)               R5PERMITTOWORKLOTO          *permitToWorkLoto;

@property(nonatomic) commentScreen commentType;

- (void)refresh;

@end
