// // 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 = model.name; self.companyName.text = model.company; self.customerPhoneNumber.text = model.mobile; self.customerAddress.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address]; } - (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.company; self.customerPhoneNumber.text = _model.mobile; self.customerAddress.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address]; } @end