//
//  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
{
    _model = model;
//    NSLog(@"%@",[NSURL URLWithString:_model.picture]);
    [self.personHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:ReplaceImage];
    self.personName.text = _model.name;
    self.personPhoneNumber.text = _model.mobile;
    self.recentTime.text = _model.lastVisitedTime;
    self.Guideservices.text = [[Shoppersmanager manager].Shoppers.employee realName];
    self.personLocation.text = _model.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
