InformationTableViewCell.m 1.32 KB
//
//  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;
    [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 = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress: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