1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // RegionsCell.m
- // LNManager
- //
- // Created by EchoShacolee on 2017/4/18.
- // Copyright © 2017年 lee. All rights reserved.
- //
- #import "RegionsCell.h"
- @implementation RegionsCell
- - (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{
-
- NSArray *array = @[];
- NSString *text = @"";
-
- array = @[@"RI_NAME",@"NAME",@"TR_NAME",@"TSP_NAME"];
- for (NSString *str in array) {
- if ([[dic allKeys] containsObject:str]) {
- text = dic[str];
- }
- }
- self.nameLab.text = text;
- self.nameLab.textColor = defGreen;
-
-
-
- array = @[@"RI_ADDRESS",@"ADDRESS",@"TR_ADDRESS",@"TSP_ADDRESS"];
- for (NSString *str in array) {
- if ([[dic allKeys] containsObject:str]) {
- text = dic[str];
- }
- }
- self.address.text = [NSString stringWithFormat:@"地址:%@",text];
-
- NSString * statusStr = [NSString stringWithFormat:@"%@",dic[@"RI_AUDIT_STATUS"]];//审核状态: 0未申请; 1审核中; 2已审核;
- NSInteger status = [statusStr integerValue];
- if (status == 0) {
- self.statusLab.text = @"未申请";
- self.statusLab.textColor = [UIColor redColor];
- }else if (status == 1){
- self.statusLab.text = @"审核中";
- self.statusLab.textColor = [UIColor lightGrayColor];
- }else if (status == 2){
- self.statusLab.text = @"已审核";
- self.statusLab.textColor = [UIColor darkGrayColor];
- }
- }
- @end
|