// // 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 [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]; } - (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; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end