//
//  SearchViewController.h
//  RedAnt ERP Mobile
//
//  Created by Ray on 9/1/15.
//  Copyright (c) 2015 United Software Applications, Inc. All rights reserved.
//

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

@interface SearchViewController : ActiveViewController<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout,UIScrollViewDelegate,UISearchBarDelegate,UIAlertViewDelegate>
@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) IBOutlet UIView *detailView;
@property (strong, nonatomic) IBOutlet UILabel *labelTotal;

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

@property bool loadmore_matchfull;
@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 UISwitch *switch_matchfull;

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

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


@end
