//
//  ProductLibraryView.h
//  Lighting
//
//  Created by mac on 16/5/11.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ProductCollectionPictureCell.h"
@protocol AddProductPicturedelegate <NSObject>

@required

//回调
- (void)addProductImage:(UIImage *)image productModel:(TOGoodsEntity*)productModel;
- (void)restProductBtnImage;

@end

@interface ProductLibraryView :BaseViewController<UIGestureRecognizerDelegate,UITableViewDelegate,UITableViewDataSource,UITableViewDataSource,UICollectionViewDataSource,
UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
@property (nonatomic,strong) id<AddProductPicturedelegate> delegate;
@property (nonatomic,strong) UIView *subView;
@property (nonatomic,strong) UIView *headerView;
@property (nonatomic,strong) UITableView *seceneTableView;
@property (nonatomic,strong) UITableView *pictureTableView;
@property (nonatomic,strong) UIButton *kongJianBtn;
@property (nonatomic,strong) UIButton *fengGeBtn;
@property (nonatomic,strong) UIButton *leiXingBtn;
@property (nonatomic,strong) NSMutableArray *nameData;
@property (nonatomic,strong) NSMutableArray  *arrayData;
@property (nonatomic,strong) NSMutableArray *array1;
@property (nonatomic,strong) NSMutableArray *array2;
@property (nonatomic,strong) NSMutableArray *array3;
@property (nonatomic,strong) UICollectionView *collectionView;
//筛选数据源
@property (nonatomic,strong) NSMutableArray *screeningDatas;
@property (nonatomic,strong) GoodsFilter *goodsFilter;
//商品数据源对象
@property (nonatomic,strong) NSMutableArray *datasArray;
//商品iD
@property (nonatomic,copy) NSString *goodsID;
//当前页数
@property (nonatomic,assign) int indexPage;
//  搜索code
@property (nonatomic,copy) NSString *selectedCode;
/**
 *  筛选模型
 */
@property (nonatomic,strong) GoodsCondition *condtionModel;
/**
 *  总页数
 */
@property (nonatomic,assign) int totalPages;
/**
 *  当前筛选按钮选中状态
 */
@property (nonatomic,assign) NSInteger selectedIndex;
@property (nonatomic,strong) NSMutableArray * cellArray;
@property (nonatomic,strong) NSMutableArray * showSection;
@property (nonatomic,strong) NSMutableArray * typeBtnArray;
@property (nonatomic,strong) NSMutableArray * sectionBtnArray;
@property (nonatomic,strong) NSMutableArray * cellBtnArray;
@property (nonatomic,strong)UITextField * searchTextField;

@end
