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

#import "BasePanelViewController.h"
#import "RecordViewController.h"
#import "R5OBJECTS.h"
#import "R5EVENTS.h"
#import "R5NONCONFORMITIESHEADER.h"
#import "R5NONCONFORMITIES.h"
#import "R5MOBILENOTEBOOKS.h"
#import "R5PERMITTOWORK.h"
#import "R5PERMITTOWORKLOTO.h"
@class R5DOCUMENTS;
@class R5EVENTS;
@class R5PERMITTOWORKLOTO;
//@class R5OBJECTS;
@class DocumentsDataController;

@interface DocumentsPanelViewController : BasePanelViewController<UITableViewDelegate,UITableViewDataSource,UIImagePickerControllerDelegate,UINavigationControllerDelegate, UIPopoverControllerDelegate,UIVideoEditorControllerDelegate>
@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong)               R5DOCUMENTS             *currentRecord;
@property (nonatomic, strong)               DocumentsDataController *documentsDataController;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               NSString                *equipmentNumber;
@property (nonatomic, strong)               NSString                *equipmentOrg;
@property (nonatomic, strong)               NSString                *department;
@property (nonatomic, strong)               NSString                *nonConformityCode;
@property (nonatomic, strong)               NSString                *nonConformityObservationCode;
// Adding the following properties to make this panel more generic
@property (nonatomic, strong)               NSString                *entity;
@property (nonatomic, strong)               NSString                *codeNumber;
@property (nonatomic, strong)               NSString                *functionType;

@property (nonatomic, strong)               R5EVENTS                *workOrder;
    @property (nonatomic, strong)           R5MOBILENOTEBOOKS       *mobileNoteBook;
@property (nonatomic, strong)               R5OBJECTS               *equipment;
@property (nonatomic, strong)               R5NONCONFORMITIESHEADER       *nonConformity;
@property (nonatomic, strong)               R5NONCONFORMITIES       *nonConformObservation;
@property (nonatomic, strong)               R5PERMITTOWORK       *permitToWork;
@property (nonatomic, strong)               R5PERMITTOWORKLOTO          *permitToWorkLoto;

@property (nonatomic, weak)               UIViewController        *docViewerVC;
@property (nonatomic, weak)                 id                      delegate;
@property BOOL isFromNoteBook;
@property BOOL isFromJSIWorkOrder;
@property BOOL isFromJSIChecklist;
@property BOOL isAddEnabledFromChecklist;

typedef enum documentScreenType{
    documentScreenTypeOther,
    documentScreenTypeLoto,
    documentScreenTypeIsolationMethod,
    documentScreenTypeIsolationPoint,
    documentScreenTypeLotoChecklist,
    documentScreenTypeObservation,
    documentScreenTypeNonconformity
}documentScreenType;

@property(nonatomic) documentScreenType documentType;
@end
