// // OrderFeesDetailModel.m // IBOSS // // Created by 关宏厚 on 2018/11/19. // Copyright © 2018 elongtian. All rights reserved. // #import "OrderFeesDetailModel.h" @implementation OrderFeesDetailModel - (void)parseDic:(NSDictionary *)dic{ if(dic!=nil){ _feeNo=[dic objectForKey:@"FeeNo"]; _priceDecimal=[[dic objectForKey:@"PriceDecimal"]intValue]; NSString *priceDecimalPlaces = [NSString stringWithFormat:@"%@%d%@",@"%.",_priceDecimal,@"f"]; _objectTypeName=[dic objectForKey:@"ObjectTypeName"]; _objectName=[dic objectForKey:@"ObjectName"]; _feeItemName=[dic objectForKey:@"FeeItemName"]; double feeSumValue=[[dic objectForKey:@"FeeSum"]doubleValue]; _feeSum=[NSString stringWithFormat:priceDecimalPlaces,feeSumValue]; double confirmFeeSumValue=[[dic objectForKey:@"ConfirmFeeSum"]doubleValue]; _confirmFeeSum=[NSString stringWithFormat:priceDecimalPlaces,confirmFeeSumValue]; double factManufactureSumValue=[[dic objectForKey:@"FactManufactureSum"]doubleValue]; _factManufactureSum=[NSString stringWithFormat:priceDecimalPlaces,factManufactureSumValue]; _feeAuditFlag=[[dic objectForKey:@"FeeAuditFlag"]intValue]; _checkUserName=[dic objectForKey:@"CheckUserName"]; _invoiceStatusName=[dic objectForKey:@"InvoiceStatusName"]; _remarks=[dic objectForKey:@"Remarks"]; } } @end