//
//  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
    
    MyclientEntityModel *model = [Customermanager manager].model;
    [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:model.picture] placeholderImage:REPLACEIMAGE];
    self.customerName.text = [Customermanager manager].model.name;
    self.companyName.text = [Customermanager manager].model.company;
    self.companyLocation.text = [Customermanager manager].model.address;
    self.customerPhoneNumber.text = [Customermanager manager].model.mobile;

}


- (void)setModel:(TOConsumerEntity *)model
{
    _model = model;
    [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:[Customermanager manager].model.picture] placeholderImage:ReplaceImage];
    self.customerName.text = _model.name;
    self.companyName.text = _model.company;
    self.customerAddress.text = _model.address;
    self.customerPhoneNumber.text = _model.mobile;
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
