| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // OtherInStorageListModel.m
- // IBOSSmini
- //
- // Created by guan hong hou on 2018/4/23.
- // Copyright © 2018年 elongtian. All rights reserved.
- //
- #import "OtherInStorageListModel.h"
- @implementation OtherInStorageListModel
- -(void)parseDic:(NSDictionary *)dic{
- if(dic!=nil){
- _enterId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"EnterID"]integerValue]];
- _enterNo=[dic objectForKey:@"EnterNo"];
- _inventoryEnterTypeName=[dic objectForKey:@"InventoryEnterTypeName"];
- _enterType=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"EnterType"]integerValue]];
- _customerId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"CustomerID"]integerValue]];
- _customerCode=[dic objectForKey:@"CustomerCode"];
- _customerName=[dic objectForKey:@"CustomerName"];
- _staffId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"StaffID"]integerValue]];
- _staffName=[dic objectForKey:@"StaffName"];
- _organizationId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"OrganizationID"]integerValue]];
- _organizationName=[dic objectForKey:@"OrganizationName"];
- _contacts=[dic objectForKey:@"Contacts"];
- _telephone=[dic objectForKey:@"Telephone"];
- _address=[dic objectForKey:@"Address"];
- _driverId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"Driver"]integerValue]];
- _driverName=[dic objectForKey:@"DriverName"];
- _dockerId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"Docker"]integerValue]];
- _dockerName=[dic objectForKey:@"DockerName"];
- _status=[[dic objectForKey:@"Status"]integerValue];
- _invoiceStatusId=[[dic objectForKey:@"InvoiceStatusID"]integerValue];
- _invoiceStatusName=[dic objectForKey:@"InvoiceStatusName"];
- _reversedEnterNo=[dic objectForKey:@"ReversedEnterNo"];
- _supplierId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"SupplierID"]integerValue]];
- _supplierName=[dic objectForKey:@"SupplierName"];
- _feeAmount=[NSString stringWithFormat:@"%.2f",[[dic objectForKey:@"FeeAmount"]doubleValue]];
- _accountDate=[DateFormat dateFormatSplit:[dic objectForKey:@"AccountDate"]];
- _invoiceLayoutId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"InvoiceLayoutID"]integerValue]];
- _invoiceLayoutName=[dic objectForKey:@"InvoiceLayoutName"];
- _createUserName=[dic objectForKey:@"CreateUserName"];
- _sourceNo=[dic objectForKey:@"SourceNo"];
- if(_sourceNo==nil||[_sourceNo isEqualToString:@""]){
- _remarks=[dic objectForKey:@"Remarks"];
- }
- else{
- NSString *originalRemarks= [dic objectForKey:@"Remarks"];
- if(originalRemarks==nil||[originalRemarks isEqualToString:@""]){
- _remarks=[NSString stringWithFormat:@"%@,",_sourceNo];
- }
- else{
- _remarks=[NSString stringWithFormat:@"%@,%@",_sourceNo,originalRemarks];
-
- }
- }
- }
-
- }
- @end
|