12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // AppointmentCell.m
- // jiaPei
- //
- // Created by apple on 16/5/4.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "AppointmentCell.h"
- @implementation AppointmentCell
- - (void)awakeFromNib {
- [super awakeFromNib];
-
- [_zkzhLabel setFont:FontTitle TextColor:kTitleColor];
- [_sfzhLabel setFont:FontTitle TextColor:kTitleColor];
- [_nameLabel setFont:FontTitle TextColor:kTitleColor];
- [_kscsLabel setFont:FontTitle TextColor:kTitleColor];
- [_kskmLabel setFont:FontTitle TextColor:kTitleColor];
- [_ksccLabel setFont:FontTitle TextColor:kTitleColor];
- [_ksrqLabel setFont:FontTitle TextColor:kTitleColor];
- [_lshLabel setFont:FontTitle TextColor:kTitleColor];
- }
- -(void)setDataDic:(NSDictionary *)dataDic
- {
- _dataDic = dataDic;
-
- NSString *subject = @"";
- switch ([dataDic[@"KSKM"] integerValue]) {
- case 1:
- subject = @"科一";
- break;
- case 2:
- subject = @"科二";
- break;
- case 3:
- subject = @"科三";
- break;
- case 4:
- subject = @"科四";
- break;
- default:
- break;
- }
-
- _zkzhLabel.text = [NSString stringWithFormat:@"准考证号:%@",dataDic[@"ZKZMBH"]];
- _sfzhLabel.text = [NSString stringWithFormat:@"身份证号:%@",dataDic[@"SFZMHM"]];
- _nameLabel.text = [NSString stringWithFormat:@"姓名:%@",dataDic[@"XM"]];
- _kscsLabel.text = [NSString stringWithFormat:@"考试场数:%@",dataDic[@"KSCS"]];
- _kskmLabel.text = [NSString stringWithFormat:@"考试科目:%@",subject];
- _ksccLabel.text = [NSString stringWithFormat:@"考试场次:%@",dataDic[@"KSCC"]];
- _ksrqLabel.text = [NSString stringWithFormat:@"考试日期:%@",dataDic[@"KSRQ"]];
- _lshLabel.text = [NSString stringWithFormat:@"流水号:%@",dataDic[@"LSH"]];
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|