| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // OrderItemModel.m
- // IBOSSIPAD
- //
- // Created by iHope on 14-8-20.
- // Copyright (c) 2014年 elongtian. All rights reserved.
- //
- #import "OrderItemModel.h"
- #import "DateFormat.h"
- @implementation OrderItemModel
- -(void)ParseDic:(NSDictionary *)dic
- {
- if(dic!=nil){
- _address = [dic objectForKey:@"Address"];
- _channelName = [dic objectForKey:@"ChannelName"];
- _customerCode = [dic objectForKey:@"CustomerCode"];
- _customerName = [dic objectForKey:@"CustomerName"];
- _customerTypeName = [dic objectForKey:@"CustomerTypeName"];
- _discount = [dic objectForKey:@"Discount"];
- double goodsAmountValue=[[dic objectForKey:@"GoodsAmount"]doubleValue];
- NSString *createTime= [dic objectForKey:@"CreateTime"];
- if(createTime!=nil){
- _createDate= [DateFormat dateFormatSplit:createTime];
- }
- _goodsAmount = [NSString stringWithFormat:@"%lf",goodsAmountValue];
- double markedPriceAmountValue= [[dic objectForKey:@"MarkedPriceAmount"]doubleValue];
- _markedPriceAmount =[NSString stringWithFormat:@"%lf",markedPriceAmountValue] ;
- int orderIdValue= [[dic objectForKey:@"OrderID"]intValue];
- _orderID = [NSString stringWithFormat:@"%d",orderIdValue] ;
- _orderNo = [dic objectForKey:@"OrderNo"];
- _organizationName = [dic objectForKey:@"OrganizationName"];
- _staffName = [dic objectForKey:@"StaffName"];
- double earnestAmountValue= [[dic objectForKey:@"EarnestAmount"]doubleValue];
-
- _earnestAmount=[NSString stringWithFormat:@"%lf",earnestAmountValue];
- double totalAmountValue= [[dic objectForKey:@"TotalAmount"]doubleValue];
- _totalAmount=[NSString stringWithFormat:@"%lf",totalAmountValue];
- double discountAmountValue= [[dic objectForKey:@"DiscountAmount"]doubleValue];
- _discountAmount=[NSString stringWithFormat:@"%lf",discountAmountValue];
- _telephone=[dic objectForKey:@"Telephone"];
- _remarks=[dic objectForKey:@"Remarks"]==nil?@"":[dic objectForKey:@"Remarks"];
- _isChecked=NO;
-
-
- }
-
- }
- @end
|