//
//  InformationTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 16/4/29.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "InformationTableViewCell.h"

@implementation InformationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


#pragma mark -赋值
- (void)setModel:(MyclientEntityModel *)model
{
    [self.personHeader sd_setImageWithURL:[NSURL URLWithString:model.consumer.picture] placeholderImage:ReplaceImage];
    self.personName.text = model.consumer.name;
    self.personPhoneNumber.text = model.consumer.mobile;
    self.recentTime.text = model.consumer.lastVisitedTime;
    self.Guideservices.text = [[Shoppersmanager manager].shoppers.employee realName];
    self.personLocation.text = [BaseViewController isMunicipality:model.consumer.province withCity:model.consumer.city withCountry:model.consumer.country withDetailAddress:model.consumer.address];
    self.setCurrentCustomer.selected = model.selectedState;
}

#pragma mark -设为当前用户
- (IBAction)SelectedButtonClick:(UIButton *)sender {
    
    if (self.blockSeletced) {
        self.blockSeletced(_indexNumber);
    }
    sender.selected = YES;
}

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

    // Configure the view for the selected state
}

@end
