| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- //
- // OrderAuditListModel.m
- // IBOSS
- //
- // Created by 关宏厚 on 2018/11/13.
- // Copyright © 2018 elongtian. All rights reserved.
- //
- #import "OrderAuditListModel.h"
- #import "DateFormat.h"
- @implementation OrderAuditListModel
- - (void)parseDic:(NSDictionary *)dic{
- if(dic!=nil){
- _orderId=[[dic objectForKey:@"OrderID"]intValue];
- _priceDecimal=[[dic objectForKey:@"PriceDecimal"]intValue];
- _weightDecimal=[[dic objectForKey:@"WeightDecimal"]intValue];
- _checkFlag=[[dic objectForKey:@"CheckFlag"]boolValue];
- _orderNo= [dic objectForKey:@"OrderNo"];
- _orderStatus=[dic objectForKey:@"InvoiceStatusName"];
- _customerCode=[dic objectForKey:@"CustomerCode"];
- _orderType=[dic objectForKey:@"OrderTypeName"];
- _customerName=[dic objectForKey:@"CustomerName"];
- _telephone=[dic objectForKey:@"Telephone"];
- _organizationName=[dic objectForKey:@"OrganizationName"];
- _staffName=[dic objectForKey:@"StaffName"];
- _customerAddress=[dic objectForKey:@"Address"];
- NSString *priceDecimalPlaces = [NSString stringWithFormat:@"%@%d%@",@"%.",_priceDecimal,@"f"];
-
- NSString *weightDecimalPlaces = [NSString stringWithFormat:@"%@%d%@",@"%.",_weightDecimal,@"f"];
- double goodsAmountValue= [[dic objectForKey:@"GoodsAmount"]doubleValue];
- _goodsAmount=[NSString stringWithFormat:priceDecimalPlaces,goodsAmountValue];
- double totalAmountValue= [[dic objectForKey:@"TotalAmount"]doubleValue];
- _totalAmount=[NSString stringWithFormat:priceDecimalPlaces,totalAmountValue];
- double feesAmountValue=[[dic objectForKey:@"FeeAmount"]doubleValue];
- _feesAmount=[NSString stringWithFormat:priceDecimalPlaces,feesAmountValue];
- _contacts=[dic objectForKey:@"Contacts"];
- NSString *accountDateStr=[dic objectForKey:@"AccountDate"];
- _accountDate=[DateFormat dateFormatSplit:accountDateStr];
- double discountAmountValue=[[dic objectForKey:@"DiscountAmount"]doubleValue];
- _discountAmount=[NSString stringWithFormat:priceDecimalPlaces,discountAmountValue];
- double markedPriceAmountValue=[[dic objectForKey:@"MarkedPriceAmount"]doubleValue];
- _markedPriceAmount=[NSString stringWithFormat:priceDecimalPlaces,markedPriceAmountValue];
- double earnestAmountValue=[[dic objectForKey:@"EarnestAmount"]doubleValue];
-
- _earnestAmount=[NSString stringWithFormat:priceDecimalPlaces,earnestAmountValue];
- double giveMarkedPriceAmountValue=[[dic objectForKey:@"GiveMarkedPriceAmount"]doubleValue];
- _giveMarkedPriceAmount=[NSString stringWithFormat:priceDecimalPlaces,giveMarkedPriceAmountValue];
- double earnestRateValue=[[dic objectForKey:@"EarnestRate"]doubleValue];
- _earnestRate=[NSString stringWithFormat:priceDecimalPlaces,earnestRateValue];
- double totalEarnestAmountValue=[[dic objectForKey:@"TotalEarnestAmount"]doubleValue];
- _totalEarnestAmount=[NSString stringWithFormat:priceDecimalPlaces,totalEarnestAmountValue];
-
- double totalEarnestRateValue=[[dic objectForKey:@"TotalEarnestRate"]doubleValue];
-
- _totalEarnestRate=[NSString stringWithFormat:@"%.2f",totalEarnestRateValue];
-
- double orderEarnestSumValue=[[dic objectForKey:@"OrderEarnestSum"]doubleValue];
- _orderEarnestSum=[NSString stringWithFormat:priceDecimalPlaces,orderEarnestSumValue];
- double discountValue=[[dic objectForKey:@"Discount"]doubleValue];
- _discount=[NSString stringWithFormat:@"%.2f",discountValue];
- _accountCategoryName=[dic objectForKey:@"AccountCategoryName"];
- _otherContact=[dic objectForKey:@"OtherContact"];
- _customerTypeName=[dic objectForKey:@"CustomerTypeName"];
- _subSalesMan=[dic objectForKey:@"SubSalesMan"];
- _channelName=[dic objectForKey:@"ChannelName"];
- _contractNumber=[dic objectForKey:@"ContractNumber"];
- _otherInvoiceNo=[dic objectForKey:@"OtherInvoiceNo"];
- double totalVolumeValue= [[dic objectForKey:@"TotalVolume"]doubleValue];
- _totalVolume=[NSString stringWithFormat:@"%.6f",totalVolumeValue];
- _deliveryFlag=[[dic objectForKey:@"DeliveryFlag"]boolValue];
- _installationFlag=[[dic objectForKey:@"InstallationFlag"]boolValue];
- _existPromotionFlag=[[dic objectForKey:@"ExistPromotionFlag"]boolValue];
- NSString *estimateDeliveryDateStr=[dic objectForKey:@"EstimateDeliveryDate"];
- _estimateDeliveryDate= [DateFormat dateFormatSplit: estimateDeliveryDateStr];
- _decorationProcessName=[dic objectForKey:@"DecorationProcessName"];
- double weightValue=[[dic objectForKey:@"Weight"]doubleValue];
- _weight=[NSString stringWithFormat:weightDecimalPlaces,weightValue];;
-
- NSString *estimateInstallationDateStr=[dic objectForKey:@"EstimateInstallationDate"];
- _estimateInstallationDate =[DateFormat dateFormatSplit: estimateInstallationDateStr];
-
- _deliveryAreaName=[dic objectForKey:@"DeliveryAreaName"];
- _floorsName=[dic objectForKey:@"FloorsName"];
- int stepNoValue=[[dic objectForKey:@"StepNo"]intValue];
- _stepNo=[NSString stringWithFormat:@"%d",stepNoValue];;
- _reviewerName=[dic objectForKey:@"ReviewerName"];
- _auditReason=[dic objectForKey:@"AuditReason"];
- _documentaryOrderNo=[dic objectForKey:@"DocumentaryOrderNo"];
- _reversedOrderNo=[dic objectForKey:@"ReversedOrderNo"];
- _documentationClerk=[dic objectForKey:@"DocumentationClerk"];
- int attachmentCountValue=[[dic objectForKey:@"AttachmentCount"]intValue];
- _attachmentCount=[NSString stringWithFormat:@"%d",attachmentCountValue];;
- _createUser=[dic objectForKey:@"CreateUser"];
- _createTime=[dic objectForKey:@"CreateTime"];
- _updateUser=[dic objectForKey:@"UpdateUser"];
- _updateTime=[dic objectForKey:@"UpdateTime"];
- _remarks=[dic objectForKey:@"Remarks"];
-
- }
- }
- @end
|