Rep_DetailCell.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Rep_DetailCell.m
  3. // LN_School
  4. //
  5. // Created by EchoShacolee on 2017/6/15.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import "Rep_DetailCell.h"
  9. @implementation Rep_DetailCell
  10. +(Rep_DetailCell *)cellForTableView:(UITableView *)tableView{
  11. Rep_DetailCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Rep_DetailCell"];
  12. if (!cell) {
  13. cell = [[[NSBundle mainBundle] loadNibNamed:@"Rep_DetailCell" owner:nil options:nil]lastObject];
  14. }
  15. return cell;
  16. }
  17. -(void)setDic:(NSDictionary *)dic{
  18. _dic = dic;
  19. _carNun.text = [NSString stringWithFormat:@" %@ ",dic[@"AR_CARNUM"]];
  20. _carNun.backgroundColor = RGB_COLOR(247, 196, 5);
  21. _time.text = dic[@"AR_CRDATE"];
  22. _reason.text = [NSString stringWithFormat:@"申请报修原因: %@",dic[@"AR_REASON"]];
  23. if ([dic[@"AR_REMARK"] length] != 0) {
  24. _remark.text = [NSString stringWithFormat:@"其它说明: %@",dic[@"AR_REMARK"]];
  25. }else{
  26. _remark.text = [NSString stringWithFormat:@"其它说明:暂无"];
  27. }
  28. }
  29. - (void)awakeFromNib {
  30. [super awakeFromNib];
  31. // Initialization code
  32. }
  33. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  34. [super setSelected:selected animated:animated];
  35. // Configure the view for the selected state
  36. }
  37. @end