// // 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 = @""; NSInteger auditStatus = [dataDic[@"AUDITSTATUS"] integerValue]; switch (auditStatus) { case 0: { stateString = @"未审核"; break; } case 1: { stateString = @"审核通过"; break; } case 2: { stateString = @"审核拒绝"; break; } default: { stateString = @"未知"; 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"]]; self.userInteractionEnabled = [dataDic[@"AUDITSTATUS"] integerValue] == 0 ? YES : NO; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end