// // PayInRealityTableViewCell.m // LN_School // // Created by apple on 2017/4/21. // Copyright © 2017年 Danson. All rights reserved. // #import "PayInRealityTableViewCell.h" @implementation PayInRealityTableViewCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } -(void)setDataDic:(NSDictionary *)dataDic { _dataDic = dataDic; NSString *stateString = @"待审核"; switch ([dataDic[@"AUDITSTATUS"] integerValue]) { case 1: stateString = @"审核通过"; break; case 2: stateString = @"审核拒绝"; break; default: break; } _orderNumLabel.text = [NSString stringWithFormat:@"订单号:%@",dataDic[@"ORDER_ID"]]; _stuNameLabel.text = [NSString stringWithFormat:@"学员:%@",dataDic[@"RO_USER_NAME"]]; _priceLabel.text = [NSString stringWithFormat:@"%@元",dataDic[@"MONEY"]]; _cashierLabel.text = [NSString stringWithFormat:@"收款人:%@",dataDic[@"CRUSERNAME"]]; _stateLabel.text = stateString; _timeLabel.text = [NSString stringWithFormat:@"收款时间:%@",dataDic[@"CRTIME"]]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end