//
//  SaleInputAuditTableViewCell.m
//  vanke
//
//  Created by Javen on 16/8/22.
//  Copyright © 2016年 gomore. All rights reserved.
//

#import "SaleInputAuditTableViewCell.h"

@implementation SaleInputAuditTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)configCellWithArr:(NSArray *)arr index:(NSIndexPath *)indexPath {
    SalesInputAuditListModel *model = arr[indexPath.row];
    self.shopName.text = model.shopName;
    self.billsCount.text = [NSString stringWithFormat:@"%.0f",model.transactions];
    self.date.text = model.salesDate;
    if ([model.state isEqualToString:@"submited"]) {
        self.statePic.image = [UIImage imageNamed:@"img_to_audit"];
    }else if ([model.state isEqualToString:@"approved"]){
        self.statePic.image = [UIImage imageNamed:@"img_audited"];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
