XueShiCheckCell.m 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // XueShiCheckCell.m
  3. // LNManager
  4. //
  5. // Created by EchoShacolee on 2017/4/13.
  6. // Copyright © 2017年 lee. All rights reserved.
  7. //
  8. #import "XueShiCheckCell.h"
  9. @implementation XueShiCheckCell
  10. -(void)updataWithDic:(NSDictionary *)dic{
  11. _nameLab.text = [NSString stringWithFormat:@"%@",dic[@"STUNAME"]];
  12. _trainTimeLab.text = [NSString stringWithFormat:@"%@",dic[@"TIME"]];
  13. _schoolLab.text = [NSString stringWithFormat:@"%@",dic[@"SCHOOLNAME"]];
  14. //0:未审核;1:审核通过;2:审核未通过
  15. NSInteger statu = [[NSString stringWithFormat:@"%@",dic[@"STATUS"]] integerValue];
  16. switch (statu) {
  17. case 0:
  18. _statusLab.text = @"未审核";
  19. break;
  20. case 1:
  21. _statusLab.text = @"审核通过";
  22. break;
  23. case 2:
  24. _statusLab.text = @"审核未通过";
  25. break;
  26. default:
  27. break;
  28. }
  29. NSInteger k = [[NSString stringWithFormat:@"%@",dic[@"TTI_SUBJECT"]] integerValue];
  30. switch (k) {
  31. case 1:
  32. _kemuLab.text = @"第一部分";
  33. break;
  34. case 2:
  35. _kemuLab.text = @"第二部分";
  36. break;
  37. case 3:
  38. _kemuLab.text = @"第三部分";
  39. break;
  40. case 4:
  41. _kemuLab.text = @"第四部分";
  42. break;
  43. default:
  44. break;
  45. }
  46. }
  47. - (void)awakeFromNib {
  48. [super awakeFromNib];
  49. // Initialization code
  50. }
  51. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  52. [super setSelected:selected animated:animated];
  53. // Configure the view for the selected state
  54. }
  55. @end