//
//  LOVData.h
//  iEAM
//
//  Created by Weikang Ding on 10-5-2.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WebQueryParameters.h"
#import "WebQuery.h"

@class EAMAppDelegate;

@interface LOVData : NSObject {
}

@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;

@property (nonatomic,strong)    NSString    *lovName;
@property (nonatomic,strong)    NSString    *lovGridName;
@property (nonatomic,strong)    NSString    *lovDataSpyID;
@property (nonatomic,strong)    NSString    *lovUserFunction;
@property (nonatomic)           GridQueryType   lovGridType;
@property (nonatomic,strong)    NSString    *lovDefaultFilter;
@property (nonatomic,strong)    NSString    *lovKeyField;
@property (nonatomic,strong)    NSString    *lovParameter;
@property (nonatomic,strong)    NSString    *lovReturnFieldName;

@property (nonatomic,strong)    NSString    *lovFields;
@property (nonatomic,strong)    NSString    *lovFieldsID;
@property (nonatomic,strong)    NSString    *lovFieldsPosition;
@property (nonatomic,strong)    NSString    *lovFieldsVisible;
@property (nonatomic,strong)    NSString    *lovFieldsAlignment;

@property (nonatomic,readonly)  NSArray     *lovFieldsList;
@property (nonatomic,readonly)  NSArray     *lovFieldsIDList;
@property (nonatomic,readonly)  NSArray     *lovFieldsPositionList;
@property (nonatomic,readonly)  NSArray     *lovFieldsVisibleList;
@property (nonatomic,readonly)  NSArray     *lovFieldsAlignmentList;

@property (nonatomic,strong)    NSArray     *lovDefaultValuesList;
//For adding support to select records as per secondary value
@property (nonatomic,strong)    NSArray     *lovRecord;

@property (nonatomic, strong)   WebQueryParameters   *lovQueryParams;
@property (nonatomic, strong)   NSString    *lovTitle;
@property (nonatomic        )   ConnectionMode  connectionMode;
@property (nonatomic, )         BOOL        lovManual;

@property (nonatomic, strong)   NSString    *lovRecPos;
@property (nonatomic, strong)   NSString    *lovRecRet;
@property (nonatomic, strong)   NSString    *lovHeader;

@property (nonatomic, )         BOOL        lovSearchByField;
@property (nonatomic, strong)   NSArray     *lovKeyFieldsDescList;
@property (nonatomic, strong)   NSString    *lovSelectedKeyField;
@property (nonatomic        )   BOOL        lovSmart;
@property (nonatomic        )   BOOL        lovShowStructure;
@property (nonatomic, strong)   NSString    *lovCode;
@property (nonatomic        )   BOOL        isOpertorChecklist;
@property (nonatomic        )   BOOL        lovSmartEquipment;
@property (nonatomic        )   BOOL        valueScanned;

@end
