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{
-
- _timeLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_OPE_DATE"]];
- _statusLab.text = [NSString stringWithFormat:@"%@",dic[@"TLR_LOCK_STATUS"]];
- if ([_statusLab.text isEqualToString:@"解锁"]) {
- _statusLab.textColor =defGreen;
- }else if ([_statusLab.text isEqualToString:@"锁定"]){
- _statusLab.textColor = [UIColor redColor];
- }
- // if ([[NSString stringWithFormat:@"%@",dic[@"TLR_LOCK_STATUS"]] isEqualToString:@"1"]) {
- // _statusLab.text = @"锁定";
- // _statusLab.textColor = [UIColor redColor];
- // }else{
- // _statusLab.text = @"解锁";
- // _statusLab.textColor = defGreen;
- // }
-
- }
- @end
|