//
//  BaseRecordViewController.h
//  EAMNext
//
//  Created by Weikang Ding on 5/6/16.
//
//

#import <UIKit/UIKit.h>
#import "RecordViewController.h"
#import "RecordDataController.h"
#import "BaseModalViewController.h"

@interface BaseRecordViewController : BaseModalViewController{
    EAMAppDelegate  *_appDelegate;
}

@property (nonatomic, strong)   RecordViewController    *recordViewController;
@property (nonatomic, strong)   RecordDataController    *recordDataController;
@property (nonatomic)   BOOL    isAddMode;
@property (nonatomic, strong)   UIButton    *btnClose;
@property (nonatomic, strong)   UIButton    *btnDelete;
@property (nonatomic, strong)   UIButton    *btnSave;
@property (nonatomic, strong)   UIButton    *btnSaveAsDraft;
@property (nonatomic, strong)   UILabel     *viewTitle;
@property (nonatomic)           BOOL    readOnlyView;
@property (nonatomic)           BOOL    showSaveDraft;

//Must be called
-(void)setDataController:(RecordDataController *)dataController;

//Must Override for Close
-(void)closeAction:(id)sender;
-(void)deleteAction:(id)sender;

//Utility Function
- (void)refreshRecordView;

//Utility method
- (void)enableDisableSave:(BOOL)enabled;
//Utility method
- (void)enableDisableDelete:(BOOL)enabled;
//Utility method
-(void)enableDisableSaveAsDraft:(BOOL)enabled;

//Utility Method to Hide/Show Scan Button - Receive Asset Screen
-(void)showScanButtonOnRecordView:(BOOL)isScanButtonVisible;

//hide the delete button
- (void)hideDeleteButon:(BOOL)enabled;

@end
