12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // Rep_DetailCell.m
- // LN_School
- //
- // Created by EchoShacolee on 2017/6/15.
- // Copyright © 2017年 Danson. All rights reserved.
- //
- #import "Rep_DetailCell.h"
- @implementation Rep_DetailCell
- +(Rep_DetailCell *)cellForTableView:(UITableView *)tableView{
-
- Rep_DetailCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Rep_DetailCell"];
- if (!cell) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"Rep_DetailCell" owner:nil options:nil]lastObject];
- }
- return cell;
- }
- -(void)setDic:(NSDictionary *)dic{
-
- _dic = dic;
- _carNun.text = [NSString stringWithFormat:@" %@ ",dic[@"AR_CARNUM"]];
- _carNun.backgroundColor = RGB_COLOR(247, 196, 5);
-
- _time.text = dic[@"AR_CRDATE"];
-
- _reason.text = [NSString stringWithFormat:@"申请报修原因: %@",dic[@"AR_REASON"]];
-
- if ([dic[@"AR_REMARK"] length] != 0) {
- _remark.text = [NSString stringWithFormat:@"其它说明: %@",dic[@"AR_REMARK"]];
- }else{
- _remark.text = [NSString stringWithFormat:@"其它说明:暂无"];
- }
-
- }
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|