//
//  NotebookDataController.h
//  EAMNext
//
//  Created by Ram Madichetty on 9/25/17.
//
//

#import "RecordDataController.h"
@class EAMAppDelegate;
@class R5MOBILENOTEBOOKS;
@class R5MOBILENOTEBOOKEMAILS;
@class R5MOBILENOTEBOOKREFERENCES;
@class EAMMobileNotebooks;
@class EAMMobileNotebookEmails;
@class EAMMobileNotebookReferences;

@interface NotebookDataController : RecordDataController
{
    R5MOBILENOTEBOOKS   *_recordValue;
    R5MOBILENOTEBOOKEMAILS *_notebookEmail;
    R5MOBILENOTEBOOKREFERENCES *_notebookReferences;
}

@property (nonatomic) BOOL isAddMode;
@property (nonatomic, strong) EAMMobileNotebooks            *mobileNotebooks;
@property (nonatomic, strong) EAMMobileNotebookEmails       *mobileNotebookEmail;
@property (nonatomic, strong) EAMMobileNotebookReferences   *mobileNotebookReferences;
@property (nonatomic, unsafe_unretained)    EAMAppDelegate  *appDelegate;
@property (nonatomic, strong)               DBQuery         *dbqueryHandler;
@property (nonatomic) BOOL mCopyFlag;
@property (nonatomic, strong)   NSDictionary                *customFields;
@property (nonatomic, assign)               BOOL                    isCustomFieldValueChanged;
@property (nonatomic) BOOL isSaveAsDraft;
@property (nonatomic, assign)               BOOL                    isReferenceScreen;
@property (nonatomic, strong)  NSDictionary *UDFields;

- (void)getNotebookList:(NSString *)searchString andCurrentPosition:(NSInteger )currentPosition;
- (void)getNotebookItem:(NSString *)code;
- (void)getNotebookReferenceItem:(NSString *)code;
- (LOVData *)getLOVDataSource:(NSString *)lovName;
-(void)getMobileNotebookDefault;
-(void)addMobileNotebook;
- (BOOL)validateInput;
-(void)deleteMobileNotebook;
-(void)loadRecordViewLayoutForNoteBook;
- (void)addCustomFields;
-(void)enableFields:(BOOL)setReadOnly;
-(void)updateMobileNotebook;
@end
