KWMOrderCell.h 1.8 KB
Newer Older
houweibin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
//
//  KWMOrderCell.h
//  iCemarose
//
//  Created by HouWeiBin on 16/8/30.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Buy/Buy.h"

@protocol KWMOrderCellDelegate <NSObject>
- (void)kwm_onClickShowAllWith:(NSInteger)markSection And:(BOOL)showAll;
- (void)kwm_onClickProduct:(NSNumber *)productId;
- (void)kwm_onClickCancelOrder:(BUYOrder *)order;
- (void)kwm_onClickTrandsport:(BUYOrder *)order;

@end

@interface KWMOrderCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIView *vHeader;

@property (weak, nonatomic) IBOutlet UIView *vContent;

@property (weak, nonatomic) IBOutlet UIButton *btnFooter;

@property (weak, nonatomic) IBOutlet UIButton *btnCancelOrder;

@property (weak, nonatomic) IBOutlet UIButton *btnTransport;

@property (weak, nonatomic) IBOutlet UIImageView *ivImage;

@property (weak, nonatomic) IBOutlet UILabel *lbPrice;

@property (weak, nonatomic) IBOutlet UILabel *lbSize;

@property (weak, nonatomic) IBOutlet UILabel *lbName;

@property (weak, nonatomic) IBOutlet UILabel *lbOrderNum;

@property (weak, nonatomic) IBOutlet UILabel *lbTotalPrice;

lee committed
44 45
@property (weak, nonatomic) IBOutlet UILabel *lbOrderStatus;

houweibin committed
46
@property (nonatomic) NSInteger lineCount;
houweibin committed
47 48 49

@property (nonatomic) NSInteger markSection;

houweibin committed
50
@property (nonatomic) NSString *imageUrl;
houweibin committed
51 52 53 54 55 56 57

@property(nonatomic,weak) id<KWMOrderCellDelegate> delegate;

@property (nonatomic) BUYLineItem *lineItem;

@property (nonatomic) BUYOrder *order;

houweibin committed
58
-(void)updateUI:(NSInteger)position productCount:(NSInteger)productCount showAll:(bool)showAll;
houweibin committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72

-(IBAction)onClickShowOther:(id)sender;

-(IBAction)onClickTransport:(id)sender;

-(IBAction)onClickCancelOrder:(id)sender;


@property(nonatomic,weak) IBOutlet NSLayoutConstraint *headerHeight;

@property(nonatomic,weak) IBOutlet NSLayoutConstraint *footHeight;


@end