//
//  SupervisionTableViewCell.m
//  patrol
//
//  Created by 曹云霄 on 16/9/1.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "SupervisionTableViewCell.h"

@implementation SupervisionTableViewCell

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

#pragma mark - 赋值
- (void)setStoresModel:(Results *)storesModel
{
    self.storesNameLabel.text = [NSString stringWithFormat:@"%@",storesModel.store_name];
    self.scoreLabel.text = [NSString stringWithFormat:@"%.2f%@",storesModel.score,@"分"];
    if (storesModel.score == 0 || !storesModel.score) {
        self.scoreLabel.hidden = YES;
    }else {
        self.scoreLabel.hidden = NO;
    }
    self.taskStateImageView.image = storesModel.resultState?TCImage(@"complete"):TCImage(@"unfinished");
    self.finishProgressLabel.text = storesModel.resultState?nil:@"未提交";
    self.finishProgressLabel.hidden = storesModel.resultState;
    
}















@end
