//
//  ChooseParentViewController.h
//  XFFruit
//
//  Created by 陈俊俊 on 15/9/2.
//  Copyright (c) 2015年 Xummer. All rights reserved.
//

#import "ICRBaseViewController.h"
#import "MaskCell.h"
#import "MJRefresh.h"

typedef void(^ChoseBaseInfo)(NSArray *baseInfos);
typedef NS_ENUM(NSInteger, WareHouseType) {
    WareHouseTypeALl = 0,
    WareHouseTypeCenter,
    WareHouseTypeNotCenter,
};

@interface ChooseParentViewController : ICRBaseViewController

@property (nonatomic,assign) BOOL isMoreChose;//是否是多选
@property (nonatomic,strong)NSMutableArray *dataArr;
@property (nonatomic,strong)NSMutableArray *indexArr;
@property (nonatomic,strong)NSMutableArray *selectArr;//别的页面传过来
@property (nonatomic,strong)UITableView *tableView;
@property (nonatomic,strong)UITextField *selectTextFiled;
@property (nonatomic,strong)NSIndexPath *currentIndexPath;
@property (nonatomic,strong)NSString *tableStr;
@property (nonatomic,assign) BOOL isRefresh;
@property (nonatomic,copy)ChoseBaseInfo choseBaseInfo;
@property (nonatomic,assign)BOOL isFirst;
@property (nonatomic,strong)NSString *selectStr;
@property (nonatomic,assign)NSInteger currentPage;
@property (nonatomic,strong)NSString *startDate;

//选择仓库定制参数

/**
 *  是否产品中心仓
 */
@property (nonatomic, assign) WareHouseType warehouseType;


- (void)endRefreshing;
- (void)getBaseDataFromServer;
- (BOOL)isHaveIndexPath:(NSIndexPath *)indexPath;
- (void)deleteTextFieldStr;
- (void)fetchDataList:(NSString *)titleStr tableStr:(NSString *)tableStr;
- (void)tableViewRefresh:(NSString *)titltstr;
@end
