| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // SettlementTypeModel.m
- // IBOSS
- //
- // Created by apple on 16/1/15.
- // Copyright © 2017年 沈阳东科云信软件有限公司. All rights reserved.
- //
- // 功能描述:收款方式模型
- #import "SettlementTypeModel.h"
- @implementation SettlementTypeModel
- #pragma mark - 公有函数
- /**
- 初始化
- @return <#return value description#>
- */
- - (id)init
- {
- self = [super init];
- if(self){
- self.arrSettlement = [[NSMutableArray alloc]init];
- }
- return self;
- }
- #pragma mark - 私有函数
- /**
- 解析字典
- @param dic <#dic description#>
- */
- - (void)parseDic:(NSDictionary *)dic{
- if(dic != nil){
- self.settlementId = [[dic objectForKey:@"SettlementType"]stringValue];;
- self.settlementName = [dic objectForKey:@"SettlementTypeName"];
- self.receivables = [[dic objectForKey:@"ReceivableSum"]stringValue];
- BOOL ishand = [[dic objectForKey:@"ExistsHandlingFee"] boolValue];
- if (ishand) {
- self.isNotHand = @"是";
- }else{
- self.isNotHand = @"否";
- }
-
- self.handAmount = [[dic objectForKey:@"EarnestFee"]stringValue];
- self.remark = [dic objectForKey:@"Remarks"];
- }
- }
- /**
- 解析收款方式数组
- @param arr <#arr description#>
- */
- - (void)parseSettlementArr:(NSArray *)arr{
- if(arr != nil){
- [self.arrSettlement removeAllObjects];
- for(int i = 0;i < arr.count;i++)
- {
- SettlementTypeModel * info = [SettlementTypeModel new];
- NSDictionary * dic = arr[i];
- [info parseDic:dic];
- [self.arrSettlement addObject:info];
- }
- }
- }
- @end
|