//
//  ItemSearchViewController.h
//  RedAnt ERP Mobile
//
//  Created by Ray on 10/26/15.
//  Copyright © 2015 United Software Applications, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ActiveViewController.h"


@interface ItemSearchViewController : ActiveViewController<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout,UIScrollViewDelegate>//,UISearchBarDelegate>
@property (strong, nonatomic) IBOutlet UICollectionView *collectionview;
@property (strong, nonatomic) IBOutlet UISearchBar *searchBar;
@property long offset;
@property bool loadall;
@property bool showalert;
@property int categoryViewType;

@property (strong, nonatomic) IBOutlet UIView *headerView;
//@property (strong,nonatomic) NSString* keywords;

@property (strong, nonatomic) NSMutableDictionary* display_type;
@property (strong, nonatomic) NSMutableDictionary* category_data;

@property (strong, nonatomic) NSMutableDictionary* default_filter;
//@property (strong, nonatomic) NSMutableArray* selected;

//@property (strong, nonatomic) IBOutlet UIView *detailView;
@property (strong, nonatomic) IBOutlet UILabel *labelTotal;

@property bool showDetail;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;


@property (strong,nonatomic) NSString* covertype;

@property (strong,nonatomic) NSString* saved_covertype;
@property (strong,nonatomic) NSString* ctgid;
@property (strong,nonatomic) NSString* modelname;
@property (strong,nonatomic) NSString* modeldescrip;
@property (strong,nonatomic) NSString* alert;
//@property (strong,nonatomic) NSString* available;


@property (strong,nonatomic) NSString* p_available;
@property (strong,nonatomic) NSString* p_QTY;
@property (strong,nonatomic) NSString* p_price;
@property (strong,nonatomic) NSString* p_bestseller;


@property bool isSelectionMode;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *addCartBtn;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *addWishBtn;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *addPortfolioBtn;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *selectallBtn;
@property int select_count;
@property (strong, nonatomic) IBOutlet UIToolbar *selectToolbar;


@property (strong, nonatomic) IBOutlet UILabel *label_net_err;

@property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllCheckBtn;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllBtn;


@end
