LockCell.m 914 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. _nameLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_USER"]];
  20. _timeLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_OPE_DATE"]];
  21. if ([[NSString stringWithFormat:@"%@",dic[@"TLR_LOCK_STATUS"]] isEqualToString:@"1"]) {
  22. _statusLab.text = @"锁定";
  23. _statusLab.textColor = [UIColor redColor];
  24. }else{
  25. _statusLab.text = @"解锁";
  26. _statusLab.textColor = COLOR_THEME;
  27. }
  28. }
  29. @end