//
//  ChecklistDataController.h
//  EAMiPad
//
//  Created by Ram Madichetty on 6/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "R5INSPECTIONTASKS.h"
#import "RecordDataController.h"

@class WebQueryParameters;

@protocol ChecklistDataControllerDelegate
    
- (void)ChecklistDataControllerGetSuccess:(NSArray *)items;
- (void)ChecklistDataControllerUpdateSuccess:(NSDictionary *)data;
- (void)ChecklistDataControllerFailed:(NSString *)fault;

@end


@interface ChecklistDataController : RecordDataController

@property (nonatomic,weak) id delegate;
@property (nonatomic)                       BOOL                    departmentSecurityReadOnly;
@property (nonatomic)                       BOOL                    jTAuthReadOnly;
@property (nonatomic)                       BOOL                    isWorkRequest;
@property (nonatomic)                       BOOL                    isActivityCompleted;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               NSString                 *activity;
- (void)getInspectionTasksForWorkOrder:(NSString *)workOrder andActivity:(NSString *)activity;
- (void)getInspectionTasks:(WebQueryParameters *)parameters; //Used by Upload
- (void)updateInspectionTasks:(NSArray *)tasks;
- (BOOL)canUpdate:(NSString *__autoreleasing *)errorMessage;

@end
