QuitShcoolList.m 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // QuitShcoolList.m
  3. // LN_School
  4. //
  5. // Created by EchoShacolee on 2017/4/22.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import "QuitShcoolList.h"
  9. @implementation QuitShcoolList
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. /*
  19. @property (weak, nonatomic) IBOutlet UILabel *name;
  20. @property (weak, nonatomic) IBOutlet UILabel *actullyPrice;
  21. @property (weak, nonatomic) IBOutlet UILabel *carType;
  22. @property (weak, nonatomic) IBOutlet UILabel *getMoney;
  23. @property (weak, nonatomic) IBOutlet UILabel *recordMan;
  24. @property (weak, nonatomic) IBOutlet UILabel *TuikuanMoney;
  25. @property (weak, nonatomic) IBOutlet UILabel *shenHeMan;
  26. @property (weak, nonatomic) IBOutlet UILabel *shenHeStatus;
  27. @property (weak, nonatomic) IBOutlet UILabel *time;
  28. */
  29. -(void)setDataDic:(NSDictionary *)dataDic{
  30. _dataDic = dataDic;
  31. NSString *stateString = @"审核中";
  32. switch ([dataDic[@"AUDITSTUATS"] integerValue]) {
  33. case 1:
  34. stateString = @"审核通过";
  35. break;
  36. case 2:
  37. stateString = @"审核拒绝";
  38. break;
  39. default:
  40. break;
  41. }
  42. _name.text = [NSString stringWithFormat:@"学生姓名: %@",dataDic[@"NAME"]];
  43. _carType.text = [NSString stringWithFormat:@"车型: %@",dataDic[@"TRAINTYPE"]];
  44. _recordMan.text = [NSString stringWithFormat:@"登记人: %@",dataDic[@"CRUSER"]];
  45. _shenHeMan.text = [NSString stringWithFormat:@"审核人: %@",dataDic[@"AUDITUSER"]];
  46. _time.text = [NSString stringWithFormat:@"申请时间: %@",dataDic[@"CRDATE"]];
  47. _actullyPrice.text = [NSString stringWithFormat:@"实际价格: %@元",dataDic[@"MONEYCHARGE"]];
  48. _getMoney.text = [NSString stringWithFormat:@"已收款金额: %@元",dataDic[@"MOENYR"]];
  49. _TuikuanMoney.text = [NSString stringWithFormat:@"退款金额: %@元",dataDic[@"MONEYREFUND"]];
  50. _shenHeStatus.text = [NSString stringWithFormat:@"审核状态: %@",stateString];
  51. }
  52. @end