//
//  TempIDHandler.h
//  EAMNext
//
//  Created by Ram Madichetty on 6/13/16.
//
//

#import <Foundation/Foundation.h>

typedef enum
{
    TempIDTypeWorkOrder,
    TempIDTypeEquipment,
    TempIDTypeAdditionalCosts,
    TempIDTypeDocument,
    TempIDTypeInspection,
    TempIDTypeNonconformity,
    TempIDTypeMobileNotebook
}TempIDType;


@interface TempIDHandler : NSObject

@property (nonatomic, weak) id delegate;

+(void)addPermID:(NSString *)permID forTempID:(NSString *)tempID forType:(TempIDType )type;
-(id)init;
-(void)dealloc;

+(void)lockWorkOrderForUpload:(NSString *)workOrder;
+(void)clearLockForUpload;
+(BOOL)isWorkOrderLockedForUpload:(NSString *)workOrder;
+(BOOL)isValidWorkOrder:(NSString *)workOrder;
+(NSString *)getLockedWorkOrder;


@end
