1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// 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