1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // LockCell.m
- // LN_School
- //
- // Created by EchoShacolee on 2017/4/17.
- // Copyright © 2017年 Danson. All rights reserved.
- //
- #import "LockCell.h"
- @implementation LockCell
- - (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
- }
- -(void)upDataWithDic:(NSDictionary *)dic{
-
- NSString *nameStr = [NSString stringWithFormat:@"%@",dic[@"TLR_USER"]];
- if (nameStr) {
- _nameLab.text = nameStr;
- }else{
- _nameLab.text = @"";
- }
-
- _timeLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_OPE_DATE"]];
-
- if ([[NSString stringWithFormat:@"%@",dic[@"TLR_LOCK_STATUS"]] isEqualToString:@"1"]) {
- _statusLab.text = @"锁定";
- _statusLab.textColor = [UIColor redColor];
- }else{
- _statusLab.text = @"未锁定";
- _statusLab.textColor = RQMianColor;
- }
- }
- @end
|