DetailHeaderCell.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. #import "NotificationNameCenter.h"
  12. #import "YTPlayerView.h"
  13. @class DetailHeaderCell;
  14. @protocol DetailHeaderCellDelegate <NSObject>
  15. @required
  16. - (void) SelectorClicked:(UIView*) trigger;
  17. -(void) stepClicked:(int) value;
  18. //- (void) LongPress:(UIView*)view row:(int) x column:(int) y;
  19. //- (void) LongPress:(UIView*)view row:(int) x;
  20. //- (void) Tap:(UIView*)view row:(int) x column:(int) y;
  21. //- (void) Tap:(UIView*)view row:(int) x;
  22. @end
  23. @interface DetailHeaderCell : UITableViewCell<PhotoStackViewDataSource, PhotoStackViewDelegate,UIAlertViewDelegate,UITextFieldDelegate>
  24. {
  25. @private
  26. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  27. id <DetailHeaderCellDelegate> __weak celldelegate;
  28. }
  29. @property (weak, nonatomic) id <DetailHeaderCellDelegate> celldelegate;
  30. //@property (nonatomic, strong) PhotoStackView *photoStack;
  31. @property (strong, nonatomic) IBOutlet PhotoStackView *photoStack;
  32. @property (weak, nonatomic) IBOutlet UIPageControl *pageControl;
  33. -(void)setup;
  34. @property (nonatomic, strong) NSArray *photos;
  35. @property (nonatomic, strong) NSDictionary *stack_contents;
  36. @property (nonatomic, strong) NSArray *urls;
  37. @property (nonatomic, strong) NSString *product_id;
  38. //@property long detailID;
  39. //@property (strong, nonatomic) IBOutlet UILabel *itemIDLabel;
  40. //@property (strong, nonatomic) IBOutlet UILabel *descriptionLabel;
  41. @property (strong, nonatomic) IBOutlet RTLabel *descriptionRTLabel;
  42. @property (strong, nonatomic) IBOutlet UILabel *priceLabel;
  43. //@property (strong, nonatomic) IBOutlet UILabel *shipLabel;
  44. @property (strong, nonatomic) IBOutlet UILabel *selector_nameLabel;
  45. //@property (strong, nonatomic) IBOutlet UIButton *selector_valLabel;
  46. @property (strong, nonatomic) IBOutlet UIImageView *selector_dorpdown;
  47. @property (strong, nonatomic) IBOutlet UILabel *selector_valLabel;
  48. @property (strong, nonatomic) IBOutlet UIImageView *selector_imageView;
  49. @property (strong, nonatomic) IBOutlet UILabel *count_Label;
  50. @property (strong, nonatomic) IBOutlet UILabel *incomingcount_Label;
  51. @property (strong, nonatomic) IBOutlet UIButton *selector_Button;
  52. @property (strong, nonatomic) IBOutlet UILabel *property_nameLabel;
  53. @property (strong, nonatomic) IBOutlet UILabel *property_valLabel;
  54. @property (strong, nonatomic) IBOutlet UIStepper *stepper;
  55. @property (strong, nonatomic) IBOutlet UITextField *quantity_text;
  56. @property (strong, nonatomic) IBOutlet UIButton *btnaddCart;
  57. @property (strong, nonatomic) IBOutlet UIButton *btnaddWish;
  58. @property (strong, nonatomic) IBOutlet UIButton *btnaddPortfolio;
  59. @property (strong, nonatomic) IBOutlet UIButton *btnNotifyMe;
  60. @property (nonatomic,copy) void(^notifyMeBlock)();
  61. @property (weak, nonatomic) IBOutlet UIButton *btn_hangtag;
  62. @property (strong, nonatomic) IBOutlet UILabel *eta_label;
  63. @property (strong, nonatomic) IBOutlet UILabel *incoming_stock_label;
  64. @property (strong, nonatomic) IBOutlet UILabel *etaval_label;
  65. //@property (strong, nonatomic) IBOutlet UIImageView *qrcode_imageview;
  66. @property (strong, nonatomic) IBOutlet UILabel *model_label;
  67. @property (strong, nonatomic) IBOutlet UILabel *cqyt_label;
  68. @property (nonatomic,copy) void(^shopCartBlock)(UIImageView *imageView);
  69. @property (nonatomic,copy) void(^set_cqty)(int cqty);
  70. @property (nonatomic,copy) void(^set_update_data)(bool bupdate);
  71. @property (nonatomic,copy) void(^WatchlistBlock)(UIImageView *imageView);
  72. @property (nonatomic,copy) void(^PortfolioBlock)(UIImageView *imageView);
  73. - (void)AddPhoto :(UIImage*)photo ;
  74. @property (strong, nonatomic) IBOutlet UILabel *selector_label;
  75. @property (strong, nonatomic) IBOutlet UIButton *introduceBtn;
  76. @property (nonatomic,copy) void(^introduceBlock)(UIButton *sender);
  77. @property (strong, nonatomic) IBOutlet UIButton *descriptionBtn;
  78. @property (nonatomic,copy) void(^descriptionBlock)(UIButton *sender);
  79. -(void)Hide_selector:(bool) bhide;
  80. -(void)ClearPhotos;
  81. @property int cqty;
  82. @property int step;
  83. @property int quantity;
  84. @property (weak, nonatomic) IBOutlet YTPlayerView *playerView;
  85. @property (weak, nonatomic) IBOutlet UILabel *hmlg_stock_lb;
  86. @property (weak, nonatomic) IBOutlet UILabel *hmlg_stock_count_lb;
  87. @property (weak, nonatomic) IBOutlet UILabel *on_sale_lb;
  88. @end