OtherInStorageListModel.m 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // OtherInStorageListModel.m
  3. // IBOSSmini
  4. //
  5. // Created by guan hong hou on 2018/4/23.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. #import "OtherInStorageListModel.h"
  9. @implementation OtherInStorageListModel
  10. -(void)parseDic:(NSDictionary *)dic{
  11. if(dic!=nil){
  12. _enterId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"EnterID"]integerValue]];
  13. _enterNo=[dic objectForKey:@"EnterNo"];
  14. _inventoryEnterTypeName=[dic objectForKey:@"InventoryEnterTypeName"];
  15. _enterType=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"EnterType"]integerValue]];
  16. _customerId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"CustomerID"]integerValue]];
  17. _customerCode=[dic objectForKey:@"CustomerCode"];
  18. _customerName=[dic objectForKey:@"CustomerName"];
  19. _staffId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"StaffID"]integerValue]];
  20. _staffName=[dic objectForKey:@"StaffName"];
  21. _organizationId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"OrganizationID"]integerValue]];
  22. _organizationName=[dic objectForKey:@"OrganizationName"];
  23. _contacts=[dic objectForKey:@"Contacts"];
  24. _telephone=[dic objectForKey:@"Telephone"];
  25. _address=[dic objectForKey:@"Address"];
  26. _driverId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"Driver"]integerValue]];
  27. _driverName=[dic objectForKey:@"DriverName"];
  28. _dockerId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"Docker"]integerValue]];
  29. _dockerName=[dic objectForKey:@"DockerName"];
  30. _status=[[dic objectForKey:@"Status"]integerValue];
  31. _invoiceStatusId=[[dic objectForKey:@"InvoiceStatusID"]integerValue];
  32. _invoiceStatusName=[dic objectForKey:@"InvoiceStatusName"];
  33. _reversedEnterNo=[dic objectForKey:@"ReversedEnterNo"];
  34. _supplierId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"SupplierID"]integerValue]];
  35. _supplierName=[dic objectForKey:@"SupplierName"];
  36. _feeAmount=[NSString stringWithFormat:@"%.2f",[[dic objectForKey:@"FeeAmount"]doubleValue]];
  37. _accountDate=[DateFormat dateFormatSplit:[dic objectForKey:@"AccountDate"]];
  38. _invoiceLayoutId=[NSString stringWithFormat:@"%d",[[dic objectForKey:@"InvoiceLayoutID"]integerValue]];
  39. _invoiceLayoutName=[dic objectForKey:@"InvoiceLayoutName"];
  40. _createUserName=[dic objectForKey:@"CreateUserName"];
  41. _sourceNo=[dic objectForKey:@"SourceNo"];
  42. if(_sourceNo==nil||[_sourceNo isEqualToString:@""]){
  43. _remarks=[dic objectForKey:@"Remarks"];
  44. }
  45. else{
  46. NSString *originalRemarks= [dic objectForKey:@"Remarks"];
  47. if(originalRemarks==nil||[originalRemarks isEqualToString:@""]){
  48. _remarks=[NSString stringWithFormat:@"%@,",_sourceNo];
  49. }
  50. else{
  51. _remarks=[NSString stringWithFormat:@"%@,%@",_sourceNo,originalRemarks];
  52. }
  53. }
  54. }
  55. }
  56. @end