//
//  DocumentsViewController.h
//  EAMiPad
//
//  Created by Lakshmi Kothapalli on 04/23/2012.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

/*
 *********************************************************************************************
 ****************** NOTE: OBSOLETE FILE. USE FOR REFERENCE PURPOSES ONLY *********************
 *********************************************************************************************
 */

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import "Utility.h"
#import "RecordViewController.h"
#import "ListViewController.h"

@interface UIImagePickerController(NewImagePicker)
-(BOOL)shouldAutorotate;
@end

@implementation UIImagePickerController(NewImagePicker)
-(BOOL)shouldAutorotate{
    return NO;
}
@end
@class EAMAppDelegate;
@class R5DOCUMENTS;
@class DocumentsDataController;
@class ContainerView;


@interface DocumentsViewController : UIViewController<UIScrollViewDelegate, RecordViewDelegate, UIImagePickerControllerDelegate,
UINavigationControllerDelegate, UIPopoverControllerDelegate>
{
 
}

@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong) IBOutlet      UIScrollView            *listScrollView;
@property (nonatomic, strong) IBOutlet      UINavigationItem        *navigationTitle;
@property (nonatomic, strong)               R5DOCUMENTS             *currentRecord;
@property (nonatomic, strong)               DocumentsDataController *documentsDataController;
@property (nonatomic, strong)               RecordViewController    *recordViewController;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               NSString                *equipmentNumber;
@property (nonatomic, strong)               NSString                *nonConformityCode;
@property (nonatomic, strong)               NSString                *equipmentOrg;
@property (nonatomic, strong)               NSString                *department;
@property (nonatomic, strong) IBOutlet      UIButton                *addButton;
@property (nonatomic, strong) IBOutlet      UIButton                *saveButton;
@property (nonatomic, strong) IBOutlet      UIButton                *cancelButton;
@property (nonatomic, strong) IBOutlet      UIButton                *deleteButton;
@property (nonatomic, strong) IBOutlet      UIView                  *listBackView;
@property (nonatomic, strong) IBOutlet      UIView                  *recordView;
@property (nonatomic, strong) IBOutlet      UIView                  *menuBackgroundView;
@property (nonatomic, strong) IBOutlet      UIImageView             *backgroundImageView;
@property (nonatomic, strong) IBOutlet      UILabel                 *noDocuments;
@property (nonatomic, strong)               UIImagePickerController *picView;
@property (nonatomic, strong) IBOutlet      UIButton                *grabPicButton;
@property (nonatomic, strong)               UIPopoverController     *popoverController;
@property (nonatomic, strong)               UIImageView             *imageView;
@property (nonatomic, retain) IBOutlet      WKWebView               *documentView;
@property (nonatomic, retain) IBOutlet      UIView                  *view1;
@property (nonatomic, retain) IBOutlet      UILabel                 *codeLbl;
@property (nonatomic, retain) IBOutlet      UILabel                 *descLbl;
@property (nonatomic, retain) IBOutlet      UITextField             *descTxt;
@property (nonatomic, strong)               NSString                *fileData;
@property (nonatomic, strong) IBOutlet      UIView                  *docContainerWebView;
@property (nonatomic, strong) IBOutlet      UIView                  *docTextView;
@property (nonatomic, strong) IBOutlet      UIView                  *containerWebView;
@property (nonatomic        )           BOOL                        isCreateWorkRequestScreen;; //WorkRequest Document upload enhancement
- (IBAction)addButtonPressed:(id)sender;
- (IBAction)cancelButtonPressed:(id)sender;
- (IBAction)saveButtonPressed:(id)sender;
- (IBAction)deleteButtonPressed:(id)sender;
- (IBAction)showRecordView:(id)sender;
- (void)loadRecordViewWithId:(NSInteger )recordId;
- (IBAction)grabPicButtonPressed:(id)sender;
- (IBAction)cameraButtonPressed:(id)sender;
- (IBAction)maxDocPressed:(id)sender;
- (IBAction)textFieldDidFinishEditing:(id)sender;
@end
