LockCell.m 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // LockCell.m
  3. // LN_School
  4. //
  5. // Created by EchoShacolee on 2017/4/17.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import "LockCell.h"
  9. @implementation LockCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. -(void)upDataWithDic:(NSDictionary *)dic{
  19. _timeLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_OPE_DATE"]];
  20. _statusLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_LOCK_STATUS"]];
  21. if ([_statusLab.text isEqualToString:@"解锁"]) {
  22. _statusLab.textColor =defGreen;
  23. }else if ([_statusLab.text isEqualToString:@"锁定"]){
  24. _statusLab.textColor = [UIColor redColor];
  25. }
  26. // if ([[NSString stringWithFormat:@"%@",dic[@"TLR_LOCK_STATUS"]] isEqualToString:@"1"]) {
  27. // _statusLab.text = @"锁定";
  28. // _statusLab.textColor = [UIColor redColor];
  29. // }else{
  30. // _statusLab.text = @"解锁";
  31. // _statusLab.textColor = defGreen;
  32. // }
  33. }
  34. @end