//
//  AssetInventoryDataController.h
//  EAMiPad
//
//  Created by Lakshmi Kothapalli on 10/25/2012.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "RecordDataController.h"
#import "R5ASSETINVENTORYPARAMS.h"
#import "R5ASSETINVENTORYRESULTS.h"
#import "EAMAssetInventory.h"
@protocol AssetInventoryDataControllerDelegate
@optional
- (void)AssetInventoryDataControllerGetSessionSuccess:(int)recordCount;
- (void)AssetInventoryDataControllerGetAssetsSuccess:(int)recordCount;
- (void)AssetInventoryDataControllerGetAssetsSuccess:(int)recordCount andHasMoreData:(BOOL )moreData;
- (void)AssetInventoryDataControllerGetSessionFailed:(NSString *)error;
- (void)AssetInventoryDataControllerGetAssetsFailed:(NSString *)error;
- (void)AssetInventorySyncSuccess:(NSArray *)data;
- (void)AssetInventorySyncFailed:(NSString *)error;
@end

@class EAMAppDelegate;
@class DBQuery;
@class GridData;
//@class R5ASSETINVENTORYPARAMS;
//@class EAMAssetInventory;

@interface AssetInventoryDataController : RecordDataController
{
    R5ASSETINVENTORYRESULTS   *_recordValue;
   
}
@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong)               DBQuery                 *dbqueryHandler;
@property (nonatomic, strong)               EAMAssetInventory       *assetInventory;
@property (nonatomic, strong)             R5ASSETINVENTORYPARAMS    *assetParams;
@property (nonatomic,       )             BOOL                      isAddMode;
@property (nonatomic        )               BOOL                        newAssetAdded;
@property (nonatomic, strong)               NSString                    *newlyAddedAssetId;
- (void)getSessions;
- (void)getAssetInventoryResults:(NSString *)sessionID forSearchString:(NSString *)searchString;
- (void)getAssetInventoryResults:(NSString *)sessionID forSearchString:(NSString *)searchString andCurrentPosition:(NSInteger )currentPosition;
- (void)syncAssetInventoryResult;
-(void)deleteAssetInventory;
- (void)loadRecordViewLayoutForAssetInventory;
- (LOVData *)getLOVDataSource:(NSString *)lovName;
- (R5ASSETINVENTORYRESULTS *)validateSelections:(R5ASSETINVENTORYRESULTS *)assetInventoryResults;
- (BOOL)checkAssetExists:(R5ASSETINVENTORYRESULTS *)assetResultData;
- (void)getObjType;
@end
