ContrastModelItemCell.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // CartItemCell.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-7-9.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. //#import "TouchLabel.h"
  10. #import "StrikethroughLabel.h"
  11. @class ContrastModelItemCell;
  12. //@protocol ModelItemCellDelegate <NSObject>
  13. //
  14. //-(void) returnQTY:(int)qty ;//indexPath :(NSIndexPath*) indexPath;
  15. //
  16. //@end
  17. @interface ContrastModelItemCell : UITableViewCell
  18. //@property (nonatomic, weak) id<ModelItemCellDelegate> delegate;
  19. @property (strong, nonatomic) IBOutlet UIButton *masterBtn;
  20. @property (nonatomic,strong) NSDictionary *master_items;
  21. @property (strong, nonatomic) IBOutlet UILabel *labelDescription;
  22. //@property (strong, nonatomic) IBOutlet UILabel *labelCurrency;
  23. @property (strong, nonatomic) IBOutlet UILabel *labelPrice;
  24. @property (strong, nonatomic) IBOutlet UITextField *editCount;
  25. @property (strong, nonatomic) IBOutlet UIButton *btnImage;
  26. @property (strong, nonatomic) IBOutlet UILabel *labelUnitPrice;
  27. @property (strong, nonatomic) IBOutlet UILabel *bundleLabel;
  28. @property (strong, nonatomic) NSDictionary* bundle_item;
  29. -(void) set_Count:(int) count;
  30. @property (strong, nonatomic) IBOutlet UIButton *bundleButton;
  31. @property (strong, nonatomic) IBOutlet UIStepper *stepper;
  32. -(void) init_Stepper:(int) step max:(int) max min:(int)min value:(int)value;
  33. @property (strong,nonatomic) NSString* cart_id;
  34. @property int pre_val;
  35. @property double unit_price;
  36. @property double discount;
  37. @property (strong, nonatomic) IBOutlet StrikethroughLabel *labelOldPrice;
  38. @property (strong, nonatomic) IBOutlet UILabel *labelDiscount;
  39. @property (strong, nonatomic) IBOutlet UILabel *labelMasterpack;
  40. //@property (strong,nonatomic) NSIndexPath* from;
  41. @property (strong, nonatomic) IBOutlet UILabel *labelNotes;
  42. @property (weak, nonatomic) IBOutlet UILabel *labelMpack;
  43. @property bool enable_longpress;
  44. @property bool noprice;
  45. @property (strong, nonatomic) IBOutlet UIImageView *img_checkmark;
  46. @property (strong, nonatomic) IBOutlet UILabel *labelNoSuchModel;
  47. @property (strong, nonatomic) IBOutlet UILabel *labelOutOfStock;
  48. @property (nonatomic , copy) void (^onReturnQTY)(int qty , NSDictionary* ext);
  49. @property (strong, nonatomic) IBOutlet UILabel *available_qty_label;
  50. @property (strong, nonatomic) IBOutlet UILabel *available_qty_value_label;
  51. @property (strong, nonatomic) IBOutlet UILabel *qty_Label; // wish list qty
  52. @property int totalchange;
  53. @property (nonatomic,copy) NSString *imageName;///<图片标识,若图片更改则标识更改,那么就重新加载图片
  54. -(void) cancel_setQTY;
  55. //@property (strong,nonatomic) NSString* last_edit;
  56. //@property int step;
  57. //@property int quantity;
  58. @end