ModelItemCell.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 ModelItemCell;
  12. //@protocol ModelItemCellDelegate <NSObject>
  13. //
  14. //-(void) returnQTY:(int)qty ;//indexPath :(NSIndexPath*) indexPath;
  15. //
  16. //@end
  17. @interface ModelItemCell : 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 bool enable_longpress;
  43. @property bool noprice;
  44. @property (strong, nonatomic) IBOutlet UIImageView *img_checkmark;
  45. @property (strong, nonatomic) IBOutlet UILabel *labelNoSuchModel;
  46. @property (strong, nonatomic) IBOutlet UILabel *labelOutOfStock;
  47. @property (nonatomic , copy) void (^onReturnQTY)(int qty , NSDictionary* ext);
  48. @property (strong, nonatomic) IBOutlet UILabel *available_qty_label;
  49. @property (strong, nonatomic) IBOutlet UILabel *available_qty_value_label;
  50. @property (strong, nonatomic) IBOutlet UILabel *qty_Label; // wish list qty
  51. @property int totalchange;
  52. @property (nonatomic,copy) NSString *imageName;///<图片标识,若图片更改则标识更改,那么就重新加载图片
  53. -(void) cancel_setQTY;
  54. //@property (strong,nonatomic) NSString* last_edit;
  55. //@property int step;
  56. //@property int quantity;
  57. @end