Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
8c2af504
Commit
8c2af504
authored
Nov 29, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:完成积分相应模块开发,等待后台接口
parent
cc1064c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1047 additions
and
349 deletions
+1047
-349
ApplyPrizeViewController.m
Class/ApplyPrizeViewController.m
+3
-1
GiftInformationView.h
Class/GiftInformationView.h
+21
-0
GiftInformationView.m
Class/GiftInformationView.m
+42
-0
IntegralDetailsViewController.m
Class/IntegralDetailsViewController.m
+2
-0
OnlineLearningViewController.m
...rningCenter/OnlineLearning/OnlineLearningViewController.m
+2
-2
VideoDetailViewController.m
...LearningCenter/OnlineLearning/VideoDetailViewController.m
+2
-1
EmigratedMainViewController.m
...ningCenter/SkillsAssessment/EmigratedMainViewController.m
+24
-5
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+2
-2
PrizeExchangeCourierTableViewCell.h
Class/PrizeExchangeCourierTableViewCell.h
+4
-1
PrizeExchangeCourierTableViewCell.m
Class/PrizeExchangeCourierTableViewCell.m
+5
-5
PrizeExchangeDetailsViewController.m
Class/PrizeExchangeDetailsViewController.m
+28
-2
PrizeExchangeInformationTableViewCell.h
Class/PrizeExchangeInformationTableViewCell.h
+2
-0
PrizeExchangeInformationTableViewCell.m
Class/PrizeExchangeInformationTableViewCell.m
+17
-4
prizeOrderDetailsModel.h
Class/prizeOrderDetailsModel.h
+20
-0
prizeOrderDetailsModel.m
Class/prizeOrderDetailsModel.m
+40
-0
project.pbxproj
Lighting.xcodeproj/project.pbxproj
+12
-0
GuideIntegral.storyboard
Lighting/GuideIntegral.storyboard
+4
-4
BaseViewController.h
Tools/BaseViewController.h
+6
-0
BaseViewController.m
Tools/BaseViewController.m
+18
-0
opple_objc_json_client.h
Tools/opple_objc_json_client.h
+587
-240
opple_objc_json_client.m
Tools/opple_objc_json_client.m
+206
-82
No files found.
Class/ApplyPrizeViewController.m
View file @
8c2af504
...
@@ -177,7 +177,9 @@
...
@@ -177,7 +177,9 @@
NSMutableArray
*
array
=
[
NSMutableArray
array
];
NSMutableArray
*
array
=
[
NSMutableArray
array
];
for
(
PrizeListModel
*
model
in
self
.
selectArray
)
{
for
(
PrizeListModel
*
model
in
self
.
selectArray
)
{
TOPrizeBillDetailsEntity
*
entity
=
[[
TOPrizeBillDetailsEntity
alloc
]
init
];
TOPrizeBillDetailsEntity
*
entity
=
[[
TOPrizeBillDetailsEntity
alloc
]
init
];
entity
.
prize
=
model
.
fid
;
TOPrizeEntity
*
prize
=
[[
TOPrizeEntity
alloc
]
init
];
prize
.
fid
=
model
.
fid
;
entity
.
prize
=
prize
;
[
array
addObject
:
entity
];
[
array
addObject
:
entity
];
}
}
_prizeBill
.
details
=
(
NSArray
<
TOPrizeBillDetailsEntity
>
*
)
array
;
_prizeBill
.
details
=
(
NSArray
<
TOPrizeBillDetailsEntity
>
*
)
array
;
...
...
Class/GiftInformationView.h
0 → 100644
View file @
8c2af504
//
// GiftInformationView.h
// Lighting
//
// Created by 曹云霄 on 2016/11/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
GiftInformationView
:
UIView
/**
初始化礼品View
@return GiftInformationView
*/
-
(
instancetype
)
initWithializeGiftView
:(
NSString
*
)
picture
withGiftName
:(
NSString
*
)
name
;
@end
Class/GiftInformationView.m
0 → 100644
View file @
8c2af504
//
// GiftInformationView.m
// Lighting
//
// Created by 曹云霄 on 2016/11/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "GiftInformationView.h"
@implementation
GiftInformationView
/**
初始化礼品View
@return GiftInformationView
*/
-
(
instancetype
)
initWithializeGiftView
:(
NSString
*
)
picture
withGiftName
:(
NSString
*
)
name
{
if
(
self
=
[
super
init
])
{
//图片
UIImageView
*
giftImageView
=
[[
UIImageView
alloc
]
init
];
[
giftImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
picture
]
placeholderImage
:
REPLACEIMAGE
];
[
self
addSubview
:
giftImageView
];
//文字
UILabel
*
giftLabel
=
[[
UILabel
alloc
]
init
];
giftLabel
.
text
=
name
;
[
self
addSubview
:
giftLabel
];
[
giftImageView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
top
.
equalTo
(
self
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
100
,
100
));
}];
[
giftLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
giftImageView
.
mas_right
).
offset
(
10
);
make
.
top
.
equalTo
(
giftImageView
).
offset
(
10
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
100
,
30
));
}];
}
return
self
;
}
@end
Class/IntegralDetailsViewController.m
View file @
8c2af504
...
@@ -194,6 +194,8 @@
...
@@ -194,6 +194,8 @@
case
PrizeTableView
:
case
PrizeTableView
:
{
{
PrizeExchangeDetailsViewController
*
exchangeDetails
=
[[[
self
class
]
getGuideIntegralStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"PrizeExchangeDetailsViewController"
];
PrizeExchangeDetailsViewController
*
exchangeDetails
=
[[[
self
class
]
getGuideIntegralStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"PrizeExchangeDetailsViewController"
];
RsPrizeBill
*
bill
=
self
.
datasArray
[
indexPath
.
row
];
exchangeDetails
.
isDelivery
=
!
[
bill
.
bill
.
state
isEqualToString
:
TOPRIZEBILLENTITYSTATE_REQUESTED
];
[
self
.
navigationController
pushViewController
:
exchangeDetails
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
exchangeDetails
animated
:
YES
];
}
}
break
;
break
;
...
...
Class/LearningCenter/OnlineLearning/OnlineLearningViewController.m
View file @
8c2af504
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
#pragma mark - 学习模块数据
#pragma mark - 学习模块数据
-
(
void
)
getLearningModuleData
-
(
void
)
getLearningModuleData
{
{
WS
(
weakSelf
);
WS
(
weakSelf
);
[
self
CreateMBProgressHUDLoding
];
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
STUDYTYPES
)
WithCallClass
:
weakSelf
WithRequestType
:
ONE
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
STUDYTYPES
)
WithCallClass
:
weakSelf
WithRequestType
:
ONE
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
...
...
Class/LearningCenter/OnlineLearning/VideoDetailViewController.m
View file @
8c2af504
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
[
self
addChildWebViewController
];
[
self
setUpTableView
];
[
self
setUpTableView
];
}
}
...
@@ -44,7 +45,7 @@
...
@@ -44,7 +45,7 @@
webView
.
view
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
contentHeight
);
webView
.
view
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
contentHeight
);
[
weakSelf
.
studyItemDetailsTableView
reloadData
];
[
weakSelf
.
studyItemDetailsTableView
reloadData
];
}];
}];
self
.
introductionHeight
=
44
;
//默认值
self
.
introductionHeight
=
100
;
//默认值
webView
.
view
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
self
.
introductionHeight
);
webView
.
view
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
self
.
introductionHeight
);
[
self
addChildViewController
:
webView
];
[
self
addChildViewController
:
webView
];
}
}
...
...
Class/LearningCenter/SkillsAssessment/EmigratedMainViewController.m
View file @
8c2af504
...
@@ -14,6 +14,11 @@
...
@@ -14,6 +14,11 @@
@property
(
nonatomic
,
strong
)
WYPopoverController
*
popover
;
@property
(
nonatomic
,
strong
)
WYPopoverController
*
popover
;
/**
闯关数据
*/
@property
(
nonatomic
,
strong
)
PassLevelResponse
*
emigratedResponse
;
@end
@end
@implementation
EmigratedMainViewController
@implementation
EmigratedMainViewController
...
@@ -28,15 +33,29 @@
...
@@ -28,15 +33,29 @@
-
(
void
)
getThroughHistoryDatasAction
-
(
void
)
getThroughHistoryDatasAction
{
{
WS
(
weakSelf
);
WS
(
weakSelf
);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
THROUGHLIST
)
WithCallClass
:
weakSelf
WithRequestType
:
ZERO
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
PassLevelCondition
*
emigrated
=
[[
PassLevelCondition
alloc
]
init
];
emigrated
.
employeeIdEquals
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
emigrated
.
beginDateFrom
=
[[
self
class
]
getTimeby
:
-
7
];
emigrated
.
endDateTo
=
[[
self
class
]
getTimeby
:
0
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
ONE
;
page
.
rows
=
KROWS
;
emigrated
.
page
=
page
;
[
self
CreateMBProgressHUDLoding
];
NSLog
(
@"%@"
,[
emigrated
toDictionary
]);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
THROUGHLIST
)
WithCallClass
:
weakSelf
WithRequestType
:
ZERO
WithParameter
:
emigrated
WithReturnValueBlock
:^
(
id
returnValue
)
{
NSLog
(
@"%@"
,
returnValue
);
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
weakSelf
.
emigratedResponse
=
[[
PassLevelResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
}
else
{
[
weakSelf
RemoveMBProgressHUDLoding
];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}];
}
}
...
...
Class/OrderdetailsViewController.m
View file @
8c2af504
...
@@ -297,10 +297,10 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -297,10 +297,10 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
deductionModel
.
priority
=
oldPromotion
.
prority
;
deductionModel
.
priority
=
oldPromotion
.
prority
;
[
weakSelf
.
promotionInformationArray
addObject
:
deductionModel
];
[
weakSelf
.
promotionInformationArray
addObject
:
deductionModel
];
}
else
if
(
!
[
BaseViewController
isBlankString
:[
oldPromotion
.
JD
EcardDenomation
stringValue
]])
{
}
else
if
(
!
[
BaseViewController
isBlankString
:[
oldPromotion
.
jd
EcardDenomation
stringValue
]])
{
// 京东E卡
// 京东E卡
PromotionJDECardModel
*
jdECardModel
=
[[
PromotionJDECardModel
alloc
]
init
];
PromotionJDECardModel
*
jdECardModel
=
[[
PromotionJDECardModel
alloc
]
init
];
jdECardModel
.
total
=
[
oldPromotion
.
JD
EcardDenomation
integerValue
];
jdECardModel
.
total
=
[
oldPromotion
.
jd
EcardDenomation
integerValue
];
jdECardModel
.
body
=
GUIDE
;
jdECardModel
.
body
=
GUIDE
;
jdECardModel
.
type
=
JDECardAction
;
jdECardModel
.
type
=
JDECardAction
;
jdECardModel
.
priority
=
oldPromotion
.
prority
;
jdECardModel
.
priority
=
oldPromotion
.
prority
;
...
...
Class/PrizeExchangeCourierTableViewCell.h
View file @
8c2af504
...
@@ -21,5 +21,8 @@
...
@@ -21,5 +21,8 @@
*/
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
courierNumberLabel
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
courierNumberLabel
;
/**
数据源
*/
@property
(
nonatomic
,
strong
)
TOPrizeBillEntity
*
billEntity
;
@end
@end
Class/PrizeExchangeCourierTableViewCell.m
View file @
8c2af504
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
// Initialization code
// Initialization code
}
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
-
(
void
)
setBillEntity
:
(
TOPrizeBillEntity
*
)
billEntity
[
super
setSelected
:
selected
animated
:
animated
];
{
_billEntity
=
billEntity
;
// Configure the view for the selected state
self
.
courierCompanyLabel
.
text
=
_billEntity
.
logisticsCompany
;
self
.
courierNumberLabel
.
text
=
_billEntity
.
trackingNumber
;
}
}
@end
@end
Class/PrizeExchangeDetailsViewController.m
View file @
8c2af504
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#import "PrizeExchangeInformationTableViewCell.h"
#import "PrizeExchangeInformationTableViewCell.h"
#import "PrizeExchangeConsigneeTableViewCell.h"
#import "PrizeExchangeConsigneeTableViewCell.h"
#import "PrizeExchangeCourierTableViewCell.h"
#import "PrizeExchangeCourierTableViewCell.h"
#import "prizeOrderDetailsModel.h"
@interface
PrizeExchangeDetailsViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
>
@interface
PrizeExchangeDetailsViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
>
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
/**
/**
兑奖单详情
兑奖单详情
*/
*/
@property
(
nonatomic
,
strong
)
RsPrizeBil
l
*
prizeBillResult
;
@property
(
nonatomic
,
strong
)
prizeOrderDetailsMode
l
*
prizeBillResult
;
/**
/**
section title Array
section title Array
...
@@ -55,7 +56,7 @@
...
@@ -55,7 +56,7 @@
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
weakSelf
.
prizeBillResult
=
[[
RsPrizeBil
l
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
weakSelf
.
prizeBillResult
=
[[
prizeOrderDetailsMode
l
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
}
else
{
}
else
{
[
weakSelf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
[
weakSelf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
...
@@ -88,12 +89,14 @@
...
@@ -88,12 +89,14 @@
case
RewardInformation
:
case
RewardInformation
:
{
{
PrizeExchangeInformationTableViewCell
*
rewardCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"PrizeExchangeInformationTableViewCell"
forIndexPath
:
indexPath
];
PrizeExchangeInformationTableViewCell
*
rewardCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"PrizeExchangeInformationTableViewCell"
forIndexPath
:
indexPath
];
rewardCell
.
giftDetailsArray
=
self
.
prizeBillResult
.
details
;
return
rewardCell
;
return
rewardCell
;
}
}
break
;
break
;
case
LogisticsInformation
:
case
LogisticsInformation
:
{
{
PrizeExchangeCourierTableViewCell
*
logisticsCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"PrizeExchangeCourierTableViewCell"
forIndexPath
:
indexPath
];
PrizeExchangeCourierTableViewCell
*
logisticsCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"PrizeExchangeCourierTableViewCell"
forIndexPath
:
indexPath
];
logisticsCell
.
billEntity
=
self
.
prizeBillResult
.
bill
;
return
logisticsCell
;
return
logisticsCell
;
}
}
break
;
break
;
...
@@ -120,6 +123,29 @@
...
@@ -120,6 +123,29 @@
return
headerView
;
return
headerView
;
}
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
switch
(
indexPath
.
section
)
{
case
ExchangeBillInformation
:
case
ReceivingInformation
:
return
100
;
break
;
case
RewardInformation
:
{
return
self
.
prizeBillResult
.
giftHeight
;
}
break
;
case
LogisticsInformation
:
{
return
60
;
}
break
;
default
:
break
;
}
return
0
;
}
#pragma mark - lazy
#pragma mark - lazy
-
(
NSMutableArray
*
)
sectionTitleArray
-
(
NSMutableArray
*
)
sectionTitleArray
{
{
...
...
Class/PrizeExchangeInformationTableViewCell.h
View file @
8c2af504
...
@@ -10,4 +10,6 @@
...
@@ -10,4 +10,6 @@
@interface
PrizeExchangeInformationTableViewCell
:
UITableViewCell
@interface
PrizeExchangeInformationTableViewCell
:
UITableViewCell
@property
(
nonatomic
,
strong
)
NSArray
<
TOPrizeBillDetailsEntity
>
*
giftDetailsArray
;
@end
@end
Class/PrizeExchangeInformationTableViewCell.m
View file @
8c2af504
...
@@ -7,18 +7,31 @@
...
@@ -7,18 +7,31 @@
//
//
#import "PrizeExchangeInformationTableViewCell.h"
#import "PrizeExchangeInformationTableViewCell.h"
#import "GiftInformationView.h"
@implementation
PrizeExchangeInformationTableViewCell
@implementation
PrizeExchangeInformationTableViewCell
-
(
void
)
awakeFromNib
{
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
[
super
awakeFromNib
];
// Initialization code
}
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
-
(
void
)
setGiftDetailsArray
:
(
NSArray
<
TOPrizeBillDetailsEntity
>
*
)
giftDetailsArray
{
for
(
UIView
*
view
in
self
.
contentView
.
subviews
)
{
[
view
removeFromSuperview
];
}
_giftDetailsArray
=
giftDetailsArray
;
CGFloat
itemHeight
=
100
;
CGFloat
tandemInterval
=
20
;
CGFloat
horizontalInterval
=
300
;
for
(
int
i
=
0
;
i
<
_giftDetailsArray
.
count
;
i
++
)
{
TOPrizeBillDetailsEntity
*
entity
=
_giftDetailsArray
[
i
];
GiftInformationView
*
giftView
=
[[
GiftInformationView
alloc
]
initWithializeGiftView
:
entity
.
prize
.
picture
withGiftName
:
entity
.
prize
.
name
];
giftView
.
frame
=
CGRectMake
((
i
%
2
)
*
(
itemHeight
+
horizontalInterval
)
+
itemHeight
/
2
,
(
i
/
2
)
*
(
itemHeight
+
tandemInterval
)
+
tandemInterval
,
horizontalInterval
,
itemHeight
);
[
self
.
contentView
addSubview
:
giftView
];
}
}
}
@end
@end
Class/prizeOrderDetailsModel.h
0 → 100644
View file @
8c2af504
//
// prizeOrderDetailsModel.h
// Lighting
//
// Created by 曹云霄 on 2016/11/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "opple_objc_json_client.h"
@interface
prizeOrderDetailsModel
:
RsPrizeBill
/**
礼品高度
*/
@property
(
nonatomic
,
assign
)
CGFloat
giftHeight
;
@end
Class/prizeOrderDetailsModel.m
0 → 100644
View file @
8c2af504
//
// prizeOrderDetailsModel.m
// Lighting
//
// Created by 曹云霄 on 2016/11/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "prizeOrderDetailsModel.h"
@implementation
prizeOrderDetailsModel
-
(
CGFloat
)
giftHeight
{
if
(
!
_giftHeight
)
{
_giftHeight
=
[
self
calculateGiftNeedHeight
:
self
.
details
];
}
return
_giftHeight
;
}
#pragma mark - 计算礼品显示需要高度
-
(
CGFloat
)
calculateGiftNeedHeight
:
(
NSArray
<
TOPrizeBillDetailsEntity
*>*
)
gifts
{
CGFloat
height
=
0
;
NSInteger
count
=
gifts
.
count
;
CGFloat
itemHeight
=
100
;
CGFloat
interval
=
20
;
if
(
count
<=
2
)
{
height
+=
itemHeight
+
interval
*
2
;
}
else
if
(
count
%
2
==
0
||
count
%
2
==
1
){
if
(
count
%
2
==
1
)
{
count
+=
1
;
}
height
+=
(
count
/
2
)
*
itemHeight
+
((
count
/
2
)
+
1
)
*
interval
;
}
return
height
;
}
@end
Lighting.xcodeproj/project.pbxproj
View file @
8c2af504
...
@@ -171,6 +171,8 @@
...
@@ -171,6 +171,8 @@
2999B12F1DE6CD730031F79E
/* ForumViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2999B12E1DE6CD730031F79E
/* ForumViewController.m */
;
};
2999B12F1DE6CD730031F79E
/* ForumViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2999B12E1DE6CD730031F79E
/* ForumViewController.m */
;
};
299C7F5A1CE21FA800E7D7CB
/* AddressViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
299C7F581CE21FA800E7D7CB
/* AddressViewController.m */
;
};
299C7F5A1CE21FA800E7D7CB
/* AddressViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
299C7F581CE21FA800E7D7CB
/* AddressViewController.m */
;
};
299C7F5B1CE21FA800E7D7CB
/* AddressViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
299C7F591CE21FA800E7D7CB
/* AddressViewController.xib */
;
};
299C7F5B1CE21FA800E7D7CB
/* AddressViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
299C7F591CE21FA800E7D7CB
/* AddressViewController.xib */
;
};
29A7A6991DED154F00B04272
/* GiftInformationView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A7A6981DED154F00B04272
/* GiftInformationView.m */
;
};
29A7A69F1DED1A9600B04272
/* prizeOrderDetailsModel.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A7A69E1DED1A9600B04272
/* prizeOrderDetailsModel.m */
;
};
29A8D3981CD85A58004D558F
/* ClientdetailsViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A8D3971CD85A58004D558F
/* ClientdetailsViewController.m */
;
};
29A8D3981CD85A58004D558F
/* ClientdetailsViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A8D3971CD85A58004D558F
/* ClientdetailsViewController.m */
;
};
29A938221CDADE4700F21E54
/* ProductDetailsTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A938211CDADE4700F21E54
/* ProductDetailsTableViewCell.m */
;
};
29A938221CDADE4700F21E54
/* ProductDetailsTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A938211CDADE4700F21E54
/* ProductDetailsTableViewCell.m */
;
};
29A938251CDAE31200F21E54
/* ProductDetailsHeaderView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A938241CDAE31200F21E54
/* ProductDetailsHeaderView.m */
;
};
29A938251CDAE31200F21E54
/* ProductDetailsHeaderView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29A938241CDAE31200F21E54
/* ProductDetailsHeaderView.m */
;
};
...
@@ -568,6 +570,10 @@
...
@@ -568,6 +570,10 @@
299C7F571CE21FA800E7D7CB
/* AddressViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
AddressViewController.h
;
sourceTree
=
"<group>"
;
};
299C7F571CE21FA800E7D7CB
/* AddressViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
AddressViewController.h
;
sourceTree
=
"<group>"
;
};
299C7F581CE21FA800E7D7CB
/* AddressViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
AddressViewController.m
;
sourceTree
=
"<group>"
;
};
299C7F581CE21FA800E7D7CB
/* AddressViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
AddressViewController.m
;
sourceTree
=
"<group>"
;
};
299C7F591CE21FA800E7D7CB
/* AddressViewController.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
AddressViewController.xib
;
sourceTree
=
"<group>"
;
};
299C7F591CE21FA800E7D7CB
/* AddressViewController.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
AddressViewController.xib
;
sourceTree
=
"<group>"
;
};
29A7A6971DED154F00B04272
/* GiftInformationView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
GiftInformationView.h
;
sourceTree
=
"<group>"
;
};
29A7A6981DED154F00B04272
/* GiftInformationView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
GiftInformationView.m
;
sourceTree
=
"<group>"
;
};
29A7A69D1DED1A9600B04272
/* prizeOrderDetailsModel.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
prizeOrderDetailsModel.h
;
sourceTree
=
"<group>"
;
};
29A7A69E1DED1A9600B04272
/* prizeOrderDetailsModel.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
prizeOrderDetailsModel.m
;
sourceTree
=
"<group>"
;
};
29A8D3961CD85A58004D558F
/* ClientdetailsViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ClientdetailsViewController.h
;
sourceTree
=
"<group>"
;
};
29A8D3961CD85A58004D558F
/* ClientdetailsViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ClientdetailsViewController.h
;
sourceTree
=
"<group>"
;
};
29A8D3971CD85A58004D558F
/* ClientdetailsViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ClientdetailsViewController.m
;
sourceTree
=
"<group>"
;
};
29A8D3971CD85A58004D558F
/* ClientdetailsViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ClientdetailsViewController.m
;
sourceTree
=
"<group>"
;
};
29A938201CDADE4700F21E54
/* ProductDetailsTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ProductDetailsTableViewCell.h
;
sourceTree
=
"<group>"
;
};
29A938201CDADE4700F21E54
/* ProductDetailsTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ProductDetailsTableViewCell.h
;
sourceTree
=
"<group>"
;
};
...
@@ -2038,6 +2044,8 @@
...
@@ -2038,6 +2044,8 @@
29E9445E1DE455AC007CD26C
/* PrizeExchangeInformationTableViewCell.m */
,
29E9445E1DE455AC007CD26C
/* PrizeExchangeInformationTableViewCell.m */
,
29837B4E1DE58BAD009CF614
/* PrizeExchangeCourierTableViewCell.h */
,
29837B4E1DE58BAD009CF614
/* PrizeExchangeCourierTableViewCell.h */
,
29837B4F1DE58BAE009CF614
/* PrizeExchangeCourierTableViewCell.m */
,
29837B4F1DE58BAE009CF614
/* PrizeExchangeCourierTableViewCell.m */
,
29A7A6971DED154F00B04272
/* GiftInformationView.h */
,
29A7A6981DED154F00B04272
/* GiftInformationView.m */
,
);
);
name
=
Cells
;
name
=
Cells
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2047,6 +2055,8 @@
...
@@ -2047,6 +2055,8 @@
children
=
(
children
=
(
29E9444B1DE40D5F007CD26C
/* PrizeListModel.h */
,
29E9444B1DE40D5F007CD26C
/* PrizeListModel.h */
,
29E9444C1DE40D5F007CD26C
/* PrizeListModel.m */
,
29E9444C1DE40D5F007CD26C
/* PrizeListModel.m */
,
29A7A69D1DED1A9600B04272
/* prizeOrderDetailsModel.h */
,
29A7A69E1DED1A9600B04272
/* prizeOrderDetailsModel.m */
,
);
);
name
=
Models
;
name
=
Models
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2478,6 +2488,7 @@
...
@@ -2478,6 +2488,7 @@
29B3EE711DCE16130065FCCF
/* LuckyDrawViewController.m in Sources */
,
29B3EE711DCE16130065FCCF
/* LuckyDrawViewController.m in Sources */
,
293164031DCE3F780075129D
/* UsedDrawTableViewCell.m in Sources */
,
293164031DCE3F780075129D
/* UsedDrawTableViewCell.m in Sources */
,
29360C2F1CDDC47E002A5D89
/* ScreeningView.m in Sources */
,
29360C2F1CDDC47E002A5D89
/* ScreeningView.m in Sources */
,
29A7A69F1DED1A9600B04272
/* prizeOrderDetailsModel.m in Sources */
,
2985AEA21CE72F1500704C91
/* NSDictionary+ZXPUnicode.m in Sources */
,
2985AEA21CE72F1500704C91
/* NSDictionary+ZXPUnicode.m in Sources */
,
29498C601D053B7C004FA79B
/* ShoppingBagTableViewCell.m in Sources */
,
29498C601D053B7C004FA79B
/* ShoppingBagTableViewCell.m in Sources */
,
29BAA3AB1DC9FB5B00927D04
/* PromptTableViewCell.m in Sources */
,
29BAA3AB1DC9FB5B00927D04
/* PromptTableViewCell.m in Sources */
,
...
@@ -2539,6 +2550,7 @@
...
@@ -2539,6 +2550,7 @@
298534601DD4B0290023BBAE
/* AirPrintManager.m in Sources */
,
298534601DD4B0290023BBAE
/* AirPrintManager.m in Sources */
,
29ABA6EA1DE686D5007D8012
/* WkWebViewViewController.m in Sources */
,
29ABA6EA1DE686D5007D8012
/* WkWebViewViewController.m in Sources */
,
2928F83B1CD0A0CE0036D761
/* CustomTabbarController.m in Sources */
,
2928F83B1CD0A0CE0036D761
/* CustomTabbarController.m in Sources */
,
29A7A6991DED154F00B04272
/* GiftInformationView.m in Sources */
,
295DEA9C1DB70FB9006ED4A6
/* RightControlTableViewCell.m in Sources */
,
295DEA9C1DB70FB9006ED4A6
/* RightControlTableViewCell.m in Sources */
,
29A9DCAE1CEB643C00A7567A
/* CustomWKWebViewController.m in Sources */
,
29A9DCAE1CEB643C00A7567A
/* CustomWKWebViewController.m in Sources */
,
2940AE891DE7FCE4001164B0
/* VideoDetailViewController.m in Sources */
,
2940AE891DE7FCE4001164B0
/* VideoDetailViewController.m in Sources */
,
...
...
Lighting/GuideIntegral.storyboard
View file @
8c2af504
...
@@ -68,13 +68,13 @@
...
@@ -68,13 +68,13 @@
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"0Eh-Eu-GWV"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"0Eh-Eu-GWV"
>
<frame
key=
"frameInset"
minX=
"28.
52%"
minY=
"64.71%"
width=
"14.03
%"
height=
"22"
/>
<frame
key=
"frameInset"
minX=
"28.
47%"
minY=
"64.71%"
width=
"14.08
%"
height=
"22"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"季度积分排行"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"zzy-VB-gpq"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"季度积分排行"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"zzy-VB-gpq"
>
<frame
key=
"frameInset"
minX=
"28.
52%"
minY=
"30.07%"
width=
"9.32
%"
height=
"18.5"
/>
<frame
key=
"frameInset"
minX=
"28.
47%"
minY=
"30.07%"
width=
"9.37
%"
height=
"18.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.66666666669999997"
green=
"0.66666666669999997"
blue=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"textColor"
red=
"0.66666666669999997"
green=
"0.66666666669999997"
blue=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"106"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"6OB-63-x5H"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"106"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"6OB-63-x5H"
>
<frame
key=
"frameInset"
minX=
"-
0.5"
minY=
"63"
maxX=
"1"
maxY=
"0.5
"
/>
<frame
key=
"frameInset"
minX=
"-
1"
minY=
"62.5"
maxX=
"1.5"
maxY=
"1
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<prototypes>
...
@@ -396,7 +396,7 @@
...
@@ -396,7 +396,7 @@
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</tableViewCellContentView>
</tableViewCellContentView>
</tableViewCell>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"
default
"
indentationWidth=
"10"
reuseIdentifier=
"PrizeExchangeCourierTableViewCell"
rowHeight=
"60"
id=
"NIn-Su-84l"
customClass=
"PrizeExchangeCourierTableViewCell"
>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"
none
"
indentationWidth=
"10"
reuseIdentifier=
"PrizeExchangeCourierTableViewCell"
rowHeight=
"60"
id=
"NIn-Su-84l"
customClass=
"PrizeExchangeCourierTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"414"
width=
"1023.5"
height=
"60"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"414"
width=
"1023.5"
height=
"60"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"NIn-Su-84l"
id=
"slW-As-u76"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"NIn-Su-84l"
id=
"slW-As-u76"
>
...
...
Tools/BaseViewController.h
View file @
8c2af504
...
@@ -161,6 +161,12 @@
...
@@ -161,6 +161,12 @@
*/
*/
+
(
BOOL
)
isBlankString
:(
NSString
*
)
string
;
+
(
BOOL
)
isBlankString
:(
NSString
*
)
string
;
/**
* 获取当前时间之前或者之后的时间(之前传入负数)
*/
+
(
NSString
*
)
getTimeby
:(
NSInteger
)
day
;
/**
/**
选择框
选择框
...
...
Tools/BaseViewController.m
View file @
8c2af504
...
@@ -203,6 +203,24 @@
...
@@ -203,6 +203,24 @@
[
hud
hide
:
YES
afterDelay
:
3
.
0
f
];
[
hud
hide
:
YES
afterDelay
:
3
.
0
f
];
}
}
#pragma mark - 获取当前时间之前或者之后的时间(之前传入负数)
+
(
NSString
*
)
getTimeby
:
(
NSInteger
)
day
{
NSDate
*
nowDate
=
[
NSDate
date
];
NSDate
*
theDate
;
if
(
day
!=
0
){
NSTimeInterval
oneDay
=
24
*
60
*
60
*
1
;
//1天的长度
theDate
=
[
nowDate
initWithTimeIntervalSinceNow
:
oneDay
*
day
];
}
else
{
theDate
=
nowDate
;
}
NSDateFormatter
*
date_formatter
=
[[
NSDateFormatter
alloc
]
init
];
[
date_formatter
setDateFormat
:
@"yyyy-MM-dd 00:00:00"
];
NSString
*
the_date_str
=
[
date_formatter
stringFromDate
:
theDate
];
return
the_date_str
;
}
#pragma mark -渐隐提示框
#pragma mark -渐隐提示框
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
...
...
Tools/opple_objc_json_client.h
View file @
8c2af504
This diff is collapsed.
Click to expand it.
Tools/opple_objc_json_client.m
View file @
8c2af504
...
@@ -302,6 +302,22 @@
...
@@ -302,6 +302,22 @@
}
}
@end
@implementation
PassLevelCondition
@synthesize
titleLike
;
@synthesize
beginDateFrom
;
@synthesize
endDateTo
;
@synthesize
validEquals
;
@synthesize
employeeIdEquals
;
@synthesize
page
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
PrizeCondition
@implementation
PrizeCondition
...
@@ -439,6 +455,7 @@
...
@@ -439,6 +455,7 @@
@synthesize
thumbnailUrl
;
@synthesize
thumbnailUrl
;
@synthesize
entityType
;
@synthesize
entityType
;
@synthesize
entityId
;
@synthesize
entityId
;
@synthesize
playTime
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -662,13 +679,28 @@
...
@@ -662,13 +679,28 @@
@end
@end
@implementation
TOPositionEntity
NSString
*
const
GRADEMETHOD_AUTO
=
@"auto"
;
NSString
*
const
GRADEMETHOD_MANUL
=
@"manul"
;
@implementation
TOPassLevelEntity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
code
;
@synthesize
createName
;
@synthesize
name
;
@synthesize
createBy
;
@synthesize
commission
;
@synthesize
createDate
;
@synthesize
lowestDiscount
;
@synthesize
updateName
;
@synthesize
resellerCode
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
beginDate
;
@synthesize
endDate
;
@synthesize
passGrade
;
@synthesize
title
;
@synthesize
gradeMethod
;
@synthesize
score
;
@synthesize
valid
;
@synthesize
passResult
;
@synthesize
topics
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -686,22 +718,12 @@
...
@@ -686,22 +718,12 @@
@end
@end
@implementation
TOP
rizeBill
Entity
@implementation
TOP
assLevelTopicOption
Entity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
createName
;
@synthesize
findex
;
@synthesize
createBy
;
@synthesize
value
;
@synthesize
createDate
;
@synthesize
name
;
@synthesize
updateName
;
@synthesize
topicId
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
billnumber
;
@synthesize
state
;
@synthesize
receiver
;
@synthesize
mobilephone
;
@synthesize
receiveAddress
;
@synthesize
employee
;
@synthesize
logisticsCompany
;
@synthesize
trackingNumber
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -719,17 +741,10 @@
...
@@ -719,17 +741,10 @@
@end
@end
@implementation
TOPrizeEntity
@implementation
TOPrize
BillDetails
Entity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
picture
;
@synthesize
bill
;
@synthesize
createName
;
@synthesize
prize
;
@synthesize
createBy
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
code
;
@synthesize
name
;
@synthesize
createDate
;
@synthesize
updateDate
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -747,14 +762,19 @@
...
@@ -747,14 +762,19 @@
@end
@end
@implementation
TOScoreRecordEntity
NSString
*
const
TOPRIZEBILLENTITYSTATE_REQUESTED
=
@"requested"
;
NSString
*
const
TOPRIZEBILLENTITYSTATE_SHIPPED
=
@"shipped"
;
NSString
*
const
TOPRIZEBILLENTITYSTATE_DONE
=
@"done"
;
@implementation
TOSceneEntity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
createDat
e
;
@synthesize
sceneCod
e
;
@synthesize
employeeId
;
@synthesize
name
;
@synthesize
sco
re
;
@synthesize
pricu
re
;
@synthesize
sourceId
;
@synthesize
category
;
@synthesize
s
ourceTyp
e
;
@synthesize
s
tyl
e
;
@synthesize
s
ourceReason
;
@synthesize
s
pace
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -772,20 +792,17 @@
...
@@ -772,20 +792,17 @@
@end
@end
@implementation
TOShopcartEntity
@implementation
TOShippingAddrEntity
@synthesize
goods
;
@synthesize
fid
;
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
sysOrgCode
;
@synthesize
updateBy
;
@synthesize
name
;
@synthesize
updateDate
;
@synthesize
miblephone
;
@synthesize
goodsId
;
@synthesize
province
;
@synthesize
goodsNum
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
consumerId
;
@synthesize
consumerId
;
@synthesize
resellerId
;
@synthesize
costPrice
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -803,10 +820,11 @@
...
@@ -803,10 +820,11 @@
@end
@end
@implementation
UCN
@implementation
TOStudyTypeEntity
@synthesize
uuid
;
@synthesize
fid
;
@synthesize
code
;
@synthesize
name
;
@synthesize
name
;
@synthesize
attachmentId
;
@synthesize
attachment
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -814,6 +832,14 @@
...
@@ -814,6 +832,14 @@
}
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@end
@implementation
Action
@implementation
Action
...
@@ -824,14 +850,58 @@
...
@@ -824,14 +850,58 @@
}
}
@end
@implementation
IdEntity
@synthesize
fid
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@end
NSString
*
const
SORTDIRECTION_ASC
=
@"asc"
;
NSString
*
const
SORTDIRECTION_ASC
=
@"asc"
;
NSString
*
const
SORTDIRECTION_DESC
=
@"desc"
;
NSString
*
const
SORTDIRECTION_DESC
=
@"desc"
;
@implementation
IdEntity
@implementation
UCN
@synthesize
uuid
;
@synthesize
code
;
@synthesize
name
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
TOShopcartEntity
@synthesize
goods
;
@synthesize
fid
;
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
goodsId
;
@synthesize
goodsNum
;
@synthesize
consumerId
;
@synthesize
resellerId
;
@synthesize
costPrice
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -849,11 +919,14 @@ NSString * const SORTDIRECTION_DESC = @"desc";
...
@@ -849,11 +919,14 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@end
@implementation
TOS
tudyType
Entity
@implementation
TOS
coreRecord
Entity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
name
;
@synthesize
createDate
;
@synthesize
attachmentId
;
@synthesize
employeeId
;
@synthesize
attachment
;
@synthesize
score
;
@synthesize
sourceId
;
@synthesize
sourceType
;
@synthesize
sourceReason
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -871,17 +944,17 @@ NSString * const SORTDIRECTION_DESC = @"desc";
...
@@ -871,17 +944,17 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@end
@implementation
TO
ShippingAddr
Entity
@implementation
TO
Prize
Entity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
createDate
;
@synthesize
picture
;
@synthesize
sysOrgCode
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
code
;
@synthesize
name
;
@synthesize
name
;
@synthesize
miblephone
;
@synthesize
createDate
;
@synthesize
province
;
@synthesize
updateDate
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
consumerId
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -899,14 +972,22 @@ NSString * const SORTDIRECTION_DESC = @"desc";
...
@@ -899,14 +972,22 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@end
@implementation
TO
Scene
Entity
@implementation
TO
PrizeBill
Entity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
sceneCode
;
@synthesize
createName
;
@synthesize
name
;
@synthesize
createBy
;
@synthesize
pricure
;
@synthesize
createDate
;
@synthesize
category
;
@synthesize
updateName
;
@synthesize
style
;
@synthesize
updateBy
;
@synthesize
space
;
@synthesize
updateDate
;
@synthesize
billnumber
;
@synthesize
state
;
@synthesize
receiver
;
@synthesize
mobilephone
;
@synthesize
receiveAddress
;
@synthesize
employee
;
@synthesize
logisticsCompany
;
@synthesize
trackingNumber
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -924,15 +1005,39 @@ NSString * const SORTDIRECTION_DESC = @"desc";
...
@@ -924,15 +1005,39 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@end
NSString
*
const
TOPRIZEBILLENTITYSTATE_REQUESTED
=
@"requested"
;
@implementation
TOPositionEntity
NSString
*
const
TOPRIZEBILLENTITYSTATE_SHIPPED
=
@"shipped"
;
@synthesize
fid
;
NSString
*
const
TOPRIZEBILLENTITYSTATE_DONE
=
@"done"
;
@synthesize
code
;
@synthesize
name
;
@synthesize
commission
;
@synthesize
lowestDiscount
;
@synthesize
resellerCode
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@implementation
TOPrizeBillDetailsEntity
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@implementation
TOPassLevelTopicEntity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
bill
;
@synthesize
topicType
;
@synthesize
prize
;
@synthesize
lineNo
;
@synthesize
title
;
@synthesize
answer
;
@synthesize
grade
;
@synthesize
passLevelId
;
@synthesize
options
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -950,6 +1055,13 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
...
@@ -950,6 +1055,13 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
@end
@end
NSString
*
const
PASSLEVELTOPICTYPE_SINGLE
=
@"single"
;
NSString
*
const
PASSLEVELTOPICTYPE_MULTIPLE
=
@"multiple"
;
NSString
*
const
PASSLEVELTOPICTYPE_TRUEORFALSE
=
@"trueorfalse"
;
NSString
*
const
PASSLEVELTOPICTYPE_GAPFILLING
=
@"gapFilling"
;
NSString
*
const
PASSLEVELTOPICTYPE_SHORTANSWER
=
@"shortAnswer"
;
@implementation
TOOrderPromotionEntity
@implementation
TOOrderPromotionEntity
@synthesize
fid
;
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createName
;
...
@@ -970,7 +1082,7 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
...
@@ -970,7 +1082,7 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
@synthesize
wxcardNumber
;
@synthesize
wxcardNumber
;
@synthesize
wxcardDenomation
;
@synthesize
wxcardDenomation
;
@synthesize
wxcardRealDeduction
;
@synthesize
wxcardRealDeduction
;
@synthesize
JD
EcardDenomation
;
@synthesize
jd
EcardDenomation
;
@synthesize
redPackageNumber
;
@synthesize
redPackageNumber
;
@synthesize
redPackageCount
;
@synthesize
redPackageCount
;
@synthesize
prority
;
@synthesize
prority
;
...
@@ -1649,8 +1761,8 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
...
@@ -1649,8 +1761,8 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
@end
@end
@implementation
Scene
Response
@implementation
PassLevel
Response
@synthesize
list
;
@synthesize
passLevelEntity
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -1669,6 +1781,17 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
...
@@ -1669,6 +1781,17 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
}
}
@end
@implementation
SceneResponse
@synthesize
list
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
PrizeResponse
@implementation
PrizeResponse
...
@@ -1760,6 +1883,7 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
...
@@ -1760,6 +1883,7 @@ NSString * const TOPRIZEBILLENTITYSTATE_DONE = @"done";
@synthesize
updateBy
;
@synthesize
updateBy
;
@synthesize
updateName
;
@synthesize
updateName
;
@synthesize
position
;
@synthesize
position
;
@synthesize
note
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment