PersonInformationTableViewCell.m 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//
//  PersonInformationTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 16/5/4.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "PersonInformationTableViewCell.h"

@implementation PersonInformationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
勾芒's avatar
勾芒 committed
16
    
勾芒's avatar
勾芒 committed
17 18 19 20 21 22
    [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:[[Customermanager manager] customerID]] placeholderImage:REPLACEIMAGE];
    self.customerName.text = [[Customermanager manager] customerName];
    self.companyName.text = [[Customermanager manager] customerName];
    self.companyLocation.text = [[Customermanager manager] cutomerAddress];
    self.customerPhoneNumber.text = [[Customermanager manager] customerPhoneNumber];

23 24
}

勾芒's avatar
勾芒 committed
25

勾芒's avatar
勾芒 committed
26 27 28 29 30 31 32 33 34 35
- (void)setModel:(TOConsumerEntity *)model
{
    _model = model;
     [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:REPLACEIMAGE];
    self.customerName.text = _model.name;
    self.companyName.text = _model.name;
    self.customerAddress.text = _model.address;
    self.customerPhoneNumber.text = _model.mobile;
}

勾芒's avatar
勾芒 committed
36 37 38



39 40 41 42 43 44 45
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end