// // CategoryViewController.h // RedAnt ERP Mobile // // Created by Ray on 14-5-27. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved. // #import //#import "PhotoStackViewController.h" //#import "SearchFilterViewController.h" #import "EnumSelectViewController.h" #import "RAViewController.h" #import "ActiveViewController.h" #import "CategoryHeaderView.h" typedef void (^add_to_cart_Handler)(void); @interface CategoryViewController : ActiveViewController //@property (strong, nonatomic) IBOutlet UIView *headerView; @property (strong,nonatomic) NSString* modelname; @property (strong,nonatomic) NSString* modeldescrip; @property bool showalert; @property (strong, nonatomic) IBOutlet CategoryHeaderView *headerView; @property (strong, nonatomic) IBOutlet UICollectionView *collectionview; @property (strong, nonatomic) IBOutlet UITableView *tableview; @property bool showDetail; @property UIInterfaceOrientation orientation; @property int categoryViewType; //@property (strong, nonatomic) IBOutlet UIView *detailView; //@property (strong, nonatomic) IBOutlet UITableView *detailTable; @property (strong, nonatomic) IBOutlet UILabel *cagegoryLabel; //@property (strong,nonatomic) NSString* detailid; @property (strong,nonatomic) NSString* categoryid; @property BOOL loading; @property bool loadall; @property long offset; //-(void) showDetailat:(NSString*) item_id category_id:(NSString*) category_id index:(long)index; -(void) showCategory; -(void) reload; -(void) loadMore; @property (strong, nonatomic) NSMutableDictionary* display_type; @property (strong, nonatomic) NSMutableDictionary* category_data; @property (strong, nonatomic) NSMutableDictionary* filter_val; @property (strong,nonatomic) NSDictionary* detail_data; @property (strong,nonatomic) NSString* categoryString; @property (strong,nonatomic)NSDictionary* categoryMenu; //@property (strong,nonatomic) NSString* category_ //@property PhotoStackViewController* photoStack; @property (strong, nonatomic) IBOutlet UIToolbar *selectToolbar; @property (strong, nonatomic) IBOutlet UILabel *labelTotal; //@property (strong, nonatomic) NSMutableArray *checkedItems; @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 (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum; @property int select_count; @property (strong, nonatomic) IBOutlet UILabel *label_net_err; @property (weak, nonatomic) IBOutlet UIButton *btn_select; @property (strong,nonatomic) NSString* p_alert; @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 (copy, nonatomic)void (^add_to_cart_Handler)(void); @property (copy, nonatomic) add_to_cart_Handler handler; //@property bool disable_refresh; @property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllBtn; @property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllCheckBtn; @end