123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // TeachLogCell.m
- // LNManager
- //
- // Created by EchoShacolee on 2017/4/12.
- // Copyright © 2017年 lee. All rights reserved.
- //
- #import "TeachLogCell.h"
- @implementation TeachLogCell
- - (void)awakeFromNib {
- [super awakeFromNib];
-
- }
- -(void)setDataWithDic:(NSDictionary *)dic{
-
- _classId.text = [NSString stringWithFormat:@"%@",dic[@"CRI_CLASSID"]];
- _startTime.text = [NSString stringWithFormat:@"%@",dic[@"CRI_STARTTIME"]];
- _endTime.text = [NSString stringWithFormat:@"%@",dic[@"CRI_ENDTIME"]];
- // _stuNum.text = dic[@"STUNUM"];
- _stuNum.text = [NSString stringWithFormat:@"%@",dic[@"STUSIM"]];
-
- _kumu.text = @"";
- switch ([[NSString stringWithFormat:@"%@",dic[@"CRI_TRAIN_SUBJECT"]] integerValue]) {
- case 1:
- _kumu.text = @"科目:科目一";
- break;
- case 2:
- _kumu.text = @"科目:科目二";
- break;
- case 3:
- _kumu.text = @"科目:科目三";
- break;
- case 4:
- _kumu.text = @"科目:科目四";
- break;
-
- default:
- break;
- }
- _trainTime.text = [NSString stringWithFormat:@"训练时长:%@分钟",dic[@"CRI_VAILD_TIME"]];
- _trainKMeters.text = [NSString stringWithFormat:@"训练里程:%@km",dic[@"CRI_MILEAGE"]];
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|