DetailHeaderCell.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // DetailHeaderCell.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-6-5.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "PhotoStackView.h"
  10. #import "RTLabel.h"
  11. @class DetailHeaderCell;
  12. @protocol DetailHeaderCellDelegate <NSObject>
  13. @required
  14. - (void) SelectorClicked:(UIView*) trigger;
  15. -(void) stepClicked:(int) value;
  16. //- (void) LongPress:(UIView*)view row:(int) x column:(int) y;
  17. //- (void) LongPress:(UIView*)view row:(int) x;
  18. //- (void) Tap:(UIView*)view row:(int) x column:(int) y;
  19. //- (void) Tap:(UIView*)view row:(int) x;
  20. @end
  21. @interface DetailHeaderCell : UITableViewCell<PhotoStackViewDataSource, PhotoStackViewDelegate,UIAlertViewDelegate>
  22. {
  23. @private
  24. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  25. id <DetailHeaderCellDelegate> __weak celldelegate;
  26. }
  27. @property (weak, nonatomic) id <DetailHeaderCellDelegate> celldelegate;
  28. //@property (nonatomic, strong) PhotoStackView *photoStack;
  29. @property (strong, nonatomic) IBOutlet PhotoStackView *photoStack;
  30. @property (weak, nonatomic) IBOutlet UIPageControl *pageControl;
  31. -(void)setup;
  32. @property (nonatomic, strong) NSArray *photos;
  33. @property (nonatomic, strong) NSArray *urls;
  34. @property (nonatomic, strong) NSString *product_id;
  35. //@property long detailID;
  36. //@property (strong, nonatomic) IBOutlet UILabel *itemIDLabel;
  37. //@property (strong, nonatomic) IBOutlet UILabel *descriptionLabel;
  38. @property (strong, nonatomic) IBOutlet RTLabel *descriptionRTLabel;
  39. @property (strong, nonatomic) IBOutlet UILabel *priceLabel;
  40. //@property (strong, nonatomic) IBOutlet UILabel *shipLabel;
  41. @property (strong, nonatomic) IBOutlet UILabel *selector_nameLabel;
  42. //@property (strong, nonatomic) IBOutlet UIButton *selector_valLabel;
  43. @property (strong, nonatomic) IBOutlet UIImageView *selector_dorpdown;
  44. @property (strong, nonatomic) IBOutlet UILabel *selector_valLabel;
  45. @property (strong, nonatomic) IBOutlet UIImageView *selector_imageView;
  46. @property (strong, nonatomic) IBOutlet UILabel *count_Label;
  47. @property (strong, nonatomic) IBOutlet UILabel *incomingcount_Label;
  48. @property (strong, nonatomic) IBOutlet UIButton *selector_Button;
  49. @property (strong, nonatomic) IBOutlet UILabel *property_nameLabel;
  50. @property (strong, nonatomic) IBOutlet UILabel *property_valLabel;
  51. @property (strong, nonatomic) IBOutlet UIStepper *stepper;
  52. @property (strong, nonatomic) IBOutlet UITextField *quantity_text;
  53. @property (strong, nonatomic) IBOutlet UIButton *btnaddCart;
  54. @property (strong, nonatomic) IBOutlet UIButton *btnaddWish;
  55. @property (strong, nonatomic) IBOutlet UIButton *btnaddPortfolio;
  56. @property (strong, nonatomic) IBOutlet UILabel *eta_label;
  57. @property (strong, nonatomic) IBOutlet UILabel *incoming_stock_label;
  58. @property (strong, nonatomic) IBOutlet UILabel *etaval_label;
  59. @property (strong, nonatomic) IBOutlet UIImageView *qrcode_imageview;
  60. @property (strong, nonatomic) IBOutlet UILabel *model_label;
  61. @property (strong, nonatomic) IBOutlet UILabel *cqyt_label;
  62. @property (nonatomic,copy) void(^shopCartBlock)(UIImageView *imageView);
  63. @property (nonatomic,copy) void(^set_cqty)(int cqty);
  64. @property (nonatomic,copy) void(^set_update_data)(bool bupdate);
  65. @property (nonatomic,copy) void(^WatchlistBlock)(UIImageView *imageView);
  66. @property (nonatomic,copy) void(^PortfolioBlock)(UIImageView *imageView);
  67. - (void)AddPhoto :(UIImage*)photo ;
  68. @property (strong, nonatomic) IBOutlet UILabel *selector_label;
  69. -(void)Hide_selector:(bool) bhide;
  70. -(void)ClearPhotos;
  71. @property int cqty;
  72. @property int step;
  73. @property int quantity;
  74. @end