DetailHeaderCell.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. @class DetailHeaderCell;
  11. @protocol DetailHeaderCellDelegate <NSObject>
  12. @required
  13. - (void) SelectorClicked:(UIView*) trigger;
  14. -(void) stepClicked:(int) value;
  15. //- (void) LongPress:(UIView*)view row:(int) x column:(int) y;
  16. //- (void) LongPress:(UIView*)view row:(int) x;
  17. //- (void) Tap:(UIView*)view row:(int) x column:(int) y;
  18. //- (void) Tap:(UIView*)view row:(int) x;
  19. @end
  20. @interface DetailHeaderCell : UITableViewCell<PhotoStackViewDataSource, PhotoStackViewDelegate,UIAlertViewDelegate>
  21. {
  22. @private
  23. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  24. id <DetailHeaderCellDelegate> __weak celldelegate;
  25. }
  26. @property (weak, nonatomic) id <DetailHeaderCellDelegate> celldelegate;
  27. //@property (nonatomic, strong) PhotoStackView *photoStack;
  28. @property (strong, nonatomic) IBOutlet PhotoStackView *photoStack;
  29. @property (weak, nonatomic) IBOutlet UIPageControl *pageControl;
  30. -(void)setup;
  31. @property (nonatomic, strong) NSArray *photos;
  32. @property (nonatomic, strong) NSString *product_id;
  33. //@property long detailID;
  34. //@property (strong, nonatomic) IBOutlet UILabel *itemIDLabel;
  35. @property (strong, nonatomic) IBOutlet UILabel *descriptionLabel;
  36. @property (strong, nonatomic) IBOutlet UILabel *priceLabel;
  37. //@property (strong, nonatomic) IBOutlet UILabel *shipLabel;
  38. @property (strong, nonatomic) IBOutlet UILabel *selector_nameLabel;
  39. //@property (strong, nonatomic) IBOutlet UIButton *selector_valLabel;
  40. @property (strong, nonatomic) IBOutlet UILabel *selector_valLabel;
  41. @property (strong, nonatomic) IBOutlet UIImageView *selector_imageView;
  42. @property (strong, nonatomic) IBOutlet UILabel *count_Label;
  43. @property (strong, nonatomic) IBOutlet UIButton *selector_Button;
  44. @property (strong, nonatomic) IBOutlet UILabel *property_nameLabel;
  45. @property (strong, nonatomic) IBOutlet UILabel *property_valLabel;
  46. @property (strong, nonatomic) IBOutlet UIStepper *stepper;
  47. @property (strong, nonatomic) IBOutlet UITextField *quantity_text;
  48. @property (strong, nonatomic) IBOutlet UIButton *btnaddCart;
  49. @property (strong, nonatomic) IBOutlet UIButton *btnaddWish;
  50. @property (strong, nonatomic) IBOutlet UILabel *eta_label;
  51. @property (strong, nonatomic) IBOutlet UILabel *etaval_label;
  52. @property (strong, nonatomic) IBOutlet UIImageView *qrcode_imageview;
  53. @property (strong, nonatomic) IBOutlet UILabel *model_label;
  54. @property (strong, nonatomic) IBOutlet UILabel *cqyt_label;
  55. @property (nonatomic,copy) void(^shopCartBlock)(UIImageView *imageView);
  56. @property (nonatomic,copy) void(^set_cqty)(int cqty);
  57. @property (nonatomic,copy) void(^set_update_data)(bool bupdate);
  58. @property (nonatomic,copy) void(^WatchlistBlock)(UIImageView *imageView);
  59. - (void)AddPhoto :(UIImage*)photo ;
  60. @property (strong, nonatomic) IBOutlet UILabel *selector_label;
  61. @property int cqty;
  62. @property int step;
  63. @property int quantity;
  64. @end