12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // StudentListCell.m
- // LNManager
- //
- // Created by apple on 2017/5/5.
- // Copyright © 2017年 lee. All rights reserved.
- //
- #import "StudentListCell.h"
- @implementation StudentListCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- -(void)setDataDic:(NSDictionary *)dataDic {
-
- _dataDic = dataDic;
-
- //赋值
- _nameLabel.text = dataDic[@"TSO_NAME"];
-
- _carTypeLabel.text = dataDic[@"TSO_TRAINTYPE"];
-
- NSString *subject = [NSString stringWithFormat:@"%@",dataDic[@"TSO_STATE"]];
- switch ([subject integerValue]) {
- case 1:
- _dateLabel.text = @"科目一";
- _dateLabel.textColor = COLOR_THEME;
- break;
- case 2:
- _dateLabel.text = @"科目二";
- _dateLabel.textColor = COLOR_THEME;
- break;
- case 3:
- _dateLabel.text = @"科目三";
- _dateLabel.textColor = COLOR_THEME;
- break;
- case 4:
- _dateLabel.text = @"科目四";
- _dateLabel.textColor = COLOR_THEME;
- break;
- case 5:
- _dateLabel.text = @"已结业";
- _dateLabel.textColor = [UIColor redColor];
- break;
-
- default:
- break;
- }
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|