//
//  OpenWOForEquipmentDataController.h
//  EAMNext
//
//  Created by Divya Sivakumar on 10/3/16.
//
//

#import "RecordDataController.h"
#import "R5OPENEVTFOREQUIPMENT.h"
#import "Utility.h"
#import "LOVData.h"
#import "WebQuery.h"
#import "EAMAppDelegate.h"
#import "GridField.h"
#import "Login.h"
#import "DBQuery.h"
#import "GridData.h"
#import "Reachability.h"
#import "DataSyncUtility.h"

@class R5OPENEVTFOREQUIPMENT;

@interface OpenWOForEquipmentDataController : RecordDataController
{
   
}

@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic)                       BOOL                    isAddMode;
@property (nonatomic)                       BOOL                    bStatusChanged;
@property (nonatomic, strong)               NSString                *equipmentNumber;
@property (nonatomic, strong)               NSString                *latestStatus;
@property (nonatomic, strong)               NSDate                  *latestStartDate;
@property (strong, atomic)              NSMutableArray              *openWOForEquipListArray;
@property (nonatomic, strong)               NSString                *latestAssignedUser;

- (void)updateWorkOrder;

- (void)getDefaultOpenWO;
- (void)getOpenWorkOrder;
- (void)getWorkOrdersForEquipment:(NSString *) equipment andOrg:(NSString *)eqOrg withFilter:(BOOL)showPM;
- (void)enableFields:(BOOL)setReadOnly;
- (void)updateWorkOrderEquipment;
- (void)updateFieldValue:(NSString *)fieldName withValues:(NSArray *)fieldValues forItem:(R5OPENEVTFOREQUIPMENT *)openWOForEquipItem;

@end
