PayInRealityTableViewCell.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // PayInRealityTableViewCell.m
  3. // LN_School
  4. //
  5. // Created by apple on 2017/4/21.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import "PayInRealityTableViewCell.h"
  9. @implementation PayInRealityTableViewCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. -(void)setDataDic:(NSDictionary *)dataDic {
  15. _dataDic = dataDic;
  16. NSString *stateString = @"待审核";
  17. switch ([dataDic[@"AUDITSTATUS"] integerValue]) {
  18. case 1:
  19. stateString = @"审核通过";
  20. break;
  21. case 2:
  22. stateString = @"审核拒绝";
  23. break;
  24. default:
  25. break;
  26. }
  27. _orderNumLabel.text = [NSString stringWithFormat:@"订单号:%@",dataDic[@"ORDER_ID"]];
  28. _stuNameLabel.text = [NSString stringWithFormat:@"学员:%@",dataDic[@"RO_USER_NAME"]];
  29. _priceLabel.text = [NSString stringWithFormat:@"%@元",dataDic[@"MONEY"]];
  30. _cashierLabel.text = [NSString stringWithFormat:@"收款人:%@",dataDic[@"CRUSERNAME"]];
  31. _stateLabel.text = stateString;
  32. _timeLabel.text = [NSString stringWithFormat:@"收款时间:%@",dataDic[@"CRTIME"]];
  33. }
  34. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  35. [super setSelected:selected animated:animated];
  36. // Configure the view for the selected state
  37. }
  38. @end