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

#import "DistributionHeaderView.h"

@implementation DistributionHeaderView


+ (instancetype)initialize
{
    return [[[NSBundle mainBundle] loadNibNamed:@"DistributionHeaderView" owner:self options:nil] firstObject];
}


- (void)setModel:(PickingBill *)model
{
    _model = model;
    self.orderNumberLabe.text = _model.billnumber;
    self.orderStateLabe.text = [GTOCommonTools returnOrderStateString:_model.state];
    self.gasStationName.text = _model.store.name;
    self.oilTypeLabe.text = _model.item.name;
    self.sendNumber.text = [NSString stringWithFormat:@"%.6lf吨",[_model.quantity doubleValue]];
    self.bookingNumber.text = [NSString stringWithFormat:@"%.6lf吨",[_model.orderBillDtl.quantity doubleValue]];
    self.orderStateLabe.textColor = [GTOCommonTools returnOrderSateColor:_model.state];
}


@end
