CategoryViewController.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // CategoryViewController.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-5-27.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. //#import "PhotoStackViewController.h"
  10. //#import "SearchFilterViewController.h"
  11. #import "EnumSelectViewController.h"
  12. #import "RAViewController.h"
  13. #import "ActiveViewController.h"
  14. #import "CategoryHeaderView.h"
  15. typedef void (^add_to_cart_Handler)(void);
  16. @interface CategoryViewController : ActiveViewController<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout/*,UITableViewDataSource,UITableViewDelegate*/,UIScrollViewDelegate,/*SearchFilterDelegate,*/CategoryMenuDelegate,UIAlertViewDelegate>
  17. //@property (strong, nonatomic) IBOutlet UIView *headerView;
  18. @property (strong,nonatomic) NSString* modelname;
  19. @property (strong,nonatomic) NSString* modeldescrip;
  20. @property bool showalert;
  21. @property (strong, nonatomic) IBOutlet CategoryHeaderView *headerView;
  22. @property (strong, nonatomic) IBOutlet UICollectionView *collectionview;
  23. @property (strong, nonatomic) IBOutlet UITableView *tableview;
  24. @property bool showDetail;
  25. @property UIInterfaceOrientation orientation;
  26. @property int categoryViewType;
  27. //@property (strong, nonatomic) IBOutlet UIView *detailView;
  28. //@property (strong, nonatomic) IBOutlet UITableView *detailTable;
  29. @property (strong, nonatomic) IBOutlet UILabel *cagegoryLabel;
  30. //@property (strong,nonatomic) NSString* detailid;
  31. @property (strong,nonatomic) NSString* categoryid;
  32. @property BOOL loading;
  33. @property bool loadall;
  34. @property long offset;
  35. -(void) showDetailat:(NSString*) item_id category_id:(NSString*) category_id index:(long)index;
  36. -(void) showCategory;
  37. -(void) reload;
  38. -(void) loadMore;
  39. @property (strong, nonatomic) NSMutableDictionary* display_type;
  40. @property (strong, nonatomic) NSMutableDictionary* category_data;
  41. @property (strong, nonatomic) NSMutableDictionary* filter_val;
  42. @property (strong,nonatomic) NSDictionary* detail_data;
  43. @property (strong,nonatomic) NSString* categoryString;
  44. @property (strong,nonatomic)NSDictionary* categoryMenu;
  45. //@property (strong,nonatomic) NSString* category_
  46. //@property PhotoStackViewController* photoStack;
  47. @property (strong, nonatomic) IBOutlet UIToolbar *selectToolbar;
  48. @property (strong, nonatomic) IBOutlet UILabel *labelTotal;
  49. //@property (strong, nonatomic) NSMutableArray *checkedItems;
  50. @property bool isSelectionMode;
  51. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addCartBtn;
  52. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addWishBtn;
  53. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addPortfolioBtn;
  54. @property (strong, nonatomic) IBOutlet UIBarButtonItem *selectallBtn;
  55. @property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;
  56. @property int select_count;
  57. @property (strong, nonatomic) IBOutlet UILabel *label_net_err;
  58. @property (strong,nonatomic) NSString* p_alert;
  59. @property (strong,nonatomic) NSString* p_available;
  60. @property (strong,nonatomic) NSString* p_QTY;
  61. @property (strong,nonatomic) NSString* p_price;
  62. @property (strong,nonatomic) NSString* p_bestseller;
  63. //@property (copy, nonatomic)void (^add_to_cart_Handler)(void);
  64. @property (copy, nonatomic) add_to_cart_Handler handler;
  65. //@property bool disable_refresh;
  66. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllBtn;
  67. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllCheckBtn;
  68. @end