LockCell.m 1.0 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. NSString *nameStr = [NSString stringWithFormat:@"%@",dic[@"TLR_USER"]];
  20. if (nameStr) {
  21. _nameLab.text = nameStr;
  22. }else{
  23. _nameLab.text = @"";
  24. }
  25. _timeLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_OPE_DATE"]];
  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 = RQMianColor;
  32. }
  33. }
  34. @end