CategoryViewController.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 (weak, nonatomic) IBOutlet UIButton *btn_select;
  59. @property (strong,nonatomic) NSString* p_alert;
  60. @property (strong,nonatomic) NSString* p_available;
  61. @property (strong,nonatomic) NSString* p_QTY;
  62. @property (strong,nonatomic) NSString* p_price;
  63. @property (strong,nonatomic) NSString* p_bestseller;
  64. //@property (copy, nonatomic)void (^add_to_cart_Handler)(void);
  65. @property (copy, nonatomic) add_to_cart_Handler handler;
  66. //@property bool disable_refresh;
  67. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllBtn;
  68. @property (strong, nonatomic) IBOutlet UIBarButtonItem *addAllCheckBtn;
  69. @end