| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- //
- // CategoryViewController.h
- // RedAnt ERP Mobile
- //
- // Created by Ray on 14-5-27.
- // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- //#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<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout/*,UITableViewDataSource,UITableViewDelegate*/,UIScrollViewDelegate,/*SearchFilterDelegate,*/CategoryMenuDelegate/*,UIAlertViewDelegate*/>
- //@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
|