//
//  SelectOrderTableViewCell.m
//  total
//
//  Created by 曹云霄 on 16/6/27.
//  Copyright © 2016年 Delevin. All rights reserved.
//

#import "SelectOrderTableViewCell.h"

@implementation SelectOrderTableViewCell

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

- (void)setDictModel:(NSDictionary *)dictModel
{
    _dictModel = dictModel;
    self.orderNumberLabe.text = [NSString stringWithFormat:@"单号:%@",_dictModel[@"billnumber"]];
    self.oilTypeLabe.text = _dictModel[@"item"][@"name"];
    self.oilNumberLabe.text =  [NSString stringWithFormat:@"%@吨",_dictModel[@"quantity"]];
    self.oilWareHouseLabe.text = _dictModel[@"depot"][@"name"];
    self.supplierLabe.text = _dictModel[@"provider"];
    self.sendMerchant.text = _dictModel[@"fueler"][@"name"];
    self.orderBillStateImageView.image = [GTOCommonTools returnOrderStateImage:_dictModel[@"state"]];
    self.selectBoxButton.hidden = ![_dictModel[@"state"] isEqualToString:@"submit"];
}

@end
