//
//  GISDataController.h
//  EAMNext
//
//  Created by Ram Madichetty on 7/13/16.
//
//

#import <Foundation/Foundation.h>
#import "RecordDataController.h"
#import "R5OBJECTS.h"
#import "R5WORKSPACEMOVES.h"
#import "R5WORKSPACEMOVEEQUIPMENT.h"

@protocol EquipmentInspectionDataControllerDelegate <NSObject>
@optional
- (void)didGetWorkspaceMoves:(NSArray *)workspaceMoves withError:(NSError *)error;
- (void)didGetFuelLevels:(NSArray *)fuelLevels withError:(NSError *)error;
- (void)didGetWorkspaces:(NSArray *)workspaces withError:(NSError *)error;
- (void)didGetWorkspaceMoveDefault:(R5WORKSPACEMOVES *)data withError:(NSError *)error;
- (void)didSyncWorkspaceMove:(R5WORKSPACEMOVES *)data withError:(NSError *)error;
- (void)didSyncWorkspaceMoveEquipment:(R5WORKSPACEMOVEEQUIPMENT *)data withError:(NSError *)error;
- (void)didGetWorkspaceMoveEquipmentIds:(NSArray *)workspaceMoveEquipmentIds withError:(NSError *)error;
- (void)didGetWorkspaceMoveEquipmentForCode:(NSArray *)data withError:(NSError *)error;
- (void)didGetEquipmentDepartment:(NSString *)department withError:(NSError *)error;
- (void)didGetSingleMoveStatus:(NSArray *)data withError:(NSError *)error;
- (void)didGetEmployeeId:(NSString *)employeeId withError:(NSError *)error;
- (void)didProcessStatusChange:(NSError *)error;
- (void)didGetNCFSeverities:(NSArray *)severities withError:(NSError *)error;
- (void)didGetNCFTypes:(NSArray *)types withError:(NSError *)error;
- (void)didGetNCFAreas:(NSArray *)areas withError:(NSError *)error;
- (void)didGetWorkspaceMoveDefaultDescription:(NSString *)description withError:(NSError *)error;
- (void)didGetFilePath:(NSString *)filePath withError:(NSError *)error;
- (void)didGetNonconformities:(NSArray *)nonConformities withError:(NSError *)error;
@end


@interface EquipmentInspectionDataController : RecordDataController
- (void)getWorkspaceMoves;
- (void)getWorkspaceMoveEquipmentIds:(NSString *)workspaceMoveId withCode:(NSString *) workspaceMoveEquipmentCode;
- (void)getFuelLevels;
- (void)getWorkspaces;
- (void)getNCFSeverities;
- (void)getNCFTypes;
- (void)getNCFAreas;
- (void)getNonConformities:(NSString *)equipmentName : (NSString *)equipmentOrg : (NSString *)areaName;
- (void)getNonconformitiesByEquipmentCode:(NSString *)equipmentName;
- (void)syncWorkspaceMove:(R5WORKSPACEMOVES *) workspaceMove;
- (void)syncWorkspaceMoveEquipment:(R5WORKSPACEMOVEEQUIPMENT *) workspaceMove;
- (void)getWorkspaceMoveDefault;
- (void)getWorkspaceMoveEquipmentForCode:(NSString *) capturedBarcode;
- (void)getEquipmentDepartment:(NSString *) code withOrg:(NSString *)org withDesc:(NSString *) desc;
- (void)getSingleMoveStatus;
- (void)getEmployeeId;
- (void)getWorkspaceMoveDefaultDescription;
- (void)processStatusChange:(NSString *) workspaceMoveId;
- (void)createNonconformitiesFromResult:(NSArray *)data;
- (LOVData *)getEquipmentLOVDefinition:(NSString *)searchText;
- (LOVData *)getWorkspacesLOVDefinition;
@end

