// // XueShiCheckCell.m // LNManager // // Created by EchoShacolee on 2017/4/13. // Copyright © 2017年 lee. All rights reserved. // #import "XueShiCheckCell.h" @implementation XueShiCheckCell -(void)updataWithDic:(NSDictionary *)dic{ _nameLab.text = [NSString stringWithFormat:@"%@",dic[@"STUNAME"]]; _trainTimeLab.text = [NSString stringWithFormat:@"%@",dic[@"TIME"]]; _schoolLab.text = [NSString stringWithFormat:@"%@",dic[@"SCHOOLNAME"]]; //0:未审核;1:审核通过;2:审核未通过 NSInteger statu = [[NSString stringWithFormat:@"%@",dic[@"STATUS"]] integerValue]; switch (statu) { case 0: _statusLab.text = @"未审核"; break; case 1: _statusLab.text = @"审核通过"; break; case 2: _statusLab.text = @"审核未通过"; break; default: break; } NSInteger k = [[NSString stringWithFormat:@"%@",dic[@"TTI_SUBJECT"]] integerValue]; switch (k) { case 1: _kemuLab.text = @"第一部分"; break; case 2: _kemuLab.text = @"第二部分"; break; case 3: _kemuLab.text = @"第三部分"; break; case 4: _kemuLab.text = @"第四部分"; break; default: break; } } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end