//
//  OilOrderTableViewCell.m
//  total
//
//  Created by 曹云霄 on 16/6/22.
//  Copyright © 2016年 free. All rights reserved.
//

#import "OilOrderTableViewCell.h"

@implementation OilOrderTableViewCell

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

#pragma mark -赋值
- (void)setModel:(NSDictionary *)model
{
    _model = model;
    self.belongsGasStationLabe.text = _model[@"store"][@"name"]?_model[@"store"][@"name"]:_model[@"org"][@"name"];
    self.createNameLabe.text = _model[@"createInfo"][@"operator"][@"operName"];
    self.createTimeLabe.text = _model[@"createInfo"][@"time"];
    self.orderNumberLabe.text = _model[@"billnumber"];
    self.stateImageView.image = [GTOCommonTools returnOrderStateImage:_model[@"state"]];
}

#pragma mark -去查看
- (IBAction)gotoDetailsButtonClickAction:(UIButton *)sender {
    
    NSLog(@"去查看");
}


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

    // Configure the view for the selected state
}

@end
