AppointmentCell.m 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // AppointmentCell.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/5/4.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "AppointmentCell.h"
  9. @implementation AppointmentCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. [_zkzhLabel setFont:FontTitle TextColor:kTitleColor];
  13. [_sfzhLabel setFont:FontTitle TextColor:kTitleColor];
  14. [_nameLabel setFont:FontTitle TextColor:kTitleColor];
  15. [_kscsLabel setFont:FontTitle TextColor:kTitleColor];
  16. [_kskmLabel setFont:FontTitle TextColor:kTitleColor];
  17. [_ksccLabel setFont:FontTitle TextColor:kTitleColor];
  18. [_ksrqLabel setFont:FontTitle TextColor:kTitleColor];
  19. [_lshLabel setFont:FontTitle TextColor:kTitleColor];
  20. }
  21. -(void)setDataDic:(NSDictionary *)dataDic
  22. {
  23. _dataDic = dataDic;
  24. NSString *subject = @"";
  25. switch ([dataDic[@"KSKM"] integerValue]) {
  26. case 1:
  27. subject = @"科一";
  28. break;
  29. case 2:
  30. subject = @"科二";
  31. break;
  32. case 3:
  33. subject = @"科三";
  34. break;
  35. case 4:
  36. subject = @"科四";
  37. break;
  38. default:
  39. break;
  40. }
  41. _zkzhLabel.text = [NSString stringWithFormat:@"准考证号:%@",dataDic[@"ZKZMBH"]];
  42. _sfzhLabel.text = [NSString stringWithFormat:@"身份证号:%@",dataDic[@"SFZMHM"]];
  43. _nameLabel.text = [NSString stringWithFormat:@"姓名:%@",dataDic[@"XM"]];
  44. _kscsLabel.text = [NSString stringWithFormat:@"考试场数:%@",dataDic[@"KSCS"]];
  45. _kskmLabel.text = [NSString stringWithFormat:@"考试科目:%@",subject];
  46. _ksccLabel.text = [NSString stringWithFormat:@"考试场次:%@",dataDic[@"KSCC"]];
  47. _ksrqLabel.text = [NSString stringWithFormat:@"考试日期:%@",dataDic[@"KSRQ"]];
  48. _lshLabel.text = [NSString stringWithFormat:@"流水号:%@",dataDic[@"LSH"]];
  49. }
  50. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  51. [super setSelected:selected animated:animated];
  52. // Configure the view for the selected state
  53. }
  54. @end