// // SaleInputListTableViewCell.m // RealEstateManagement // // Created by Javen on 2016/11/2. // Copyright © 2016年 上海勾芒信息科技. All rights reserved. // #import "SaleInputListTableViewCell.h" #import "CalculateHelper.h" @implementation SaleInputListTableViewCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)configCellWithArray:(NSMutableArray *)array indexPath:(NSIndexPath *)indexPath { self.model = array[indexPath.row]; self.labelTItle.text = self.model.contract.name; NSDecimalNumber *total = nil; for (HMSaleInputDetail_payments *cellModel in self.model.payments) { total = [CalculateHelper calculateNum1:total num2:cellModel.total type:CalculateTypeAdd]; } self.labelBillCount.text = [NSString stringWithFormat:@"%@",total.moneyValue]; self.labelTime.text = self.model.saleDate; self.imgState.image = [UIImage imageNamed:self.model.z_state.img]; self.labelBillNumber.text = self.model.billNumber; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end