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
5eabfae2
Commit
5eabfae2
authored
May 14, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caoyunxiao
parent
9ff300ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
1470 additions
and
695 deletions
+1470
-695
ClientDetailsTableViewCell.h
Lighting/Class/ClientDetailsTableViewCell.h
+5
-1
ClientDetailsTableViewCell.m
Lighting/Class/ClientDetailsTableViewCell.m
+9
-0
ClientViewController.m
Lighting/Class/ClientViewController.m
+12
-2
ClientdetailsViewController.m
Lighting/Class/ClientdetailsViewController.m
+104
-1
CommodityListTableViewCell.h
Lighting/Class/CommodityListTableViewCell.h
+5
-2
CommodityListTableViewCell.m
Lighting/Class/CommodityListTableViewCell.m
+17
-0
OrderdetailsViewController.h
Lighting/Class/OrderdetailsViewController.h
+4
-1
OrderdetailsViewController.m
Lighting/Class/OrderdetailsViewController.m
+7
-0
ProductDetailsViewController.m
Lighting/Class/ProductDetailsViewController.m
+9
-0
AddressViewController.m
Lighting/Class/Shoppingcart/AddressViewController.m
+74
-4
AddressViewController.xib
Lighting/Class/Shoppingcart/AddressViewController.xib
+8
-2
GenerateOrdersTableViewCell.h
Lighting/Class/Shoppingcart/GenerateOrdersTableViewCell.h
+27
-0
GenerateOrdersTableViewCell.m
Lighting/Class/Shoppingcart/GenerateOrdersTableViewCell.m
+20
-0
GenerateOrdersViewController.h
Lighting/Class/Shoppingcart/GenerateOrdersViewController.h
+8
-0
GenerateOrdersViewController.m
Lighting/Class/Shoppingcart/GenerateOrdersViewController.m
+180
-35
ModifyShippingAddressView.h
Lighting/Class/Shoppingcart/ModifyShippingAddressView.h
+12
-0
ModifyShippingAddressView.m
Lighting/Class/Shoppingcart/ModifyShippingAddressView.m
+4
-0
ShoppingTableViewCell.h
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
+8
-1
ShoppingTableViewCell.m
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
+43
-0
ShoppingViewController.m
Lighting/Class/Shoppingcart/ShoppingViewController.m
+42
-7
Toolview.m
Lighting/Class/Tabbar/Toolview.m
+10
-4
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+28
-2
Contents.json
...g/Lighting/Images.xcassets/lineNew.imageset/Contents.json
+22
-0
lineNew.png
...ing/Lighting/Images.xcassets/lineNew.imageset/lineNew.png
+0
-0
lineNew@2x.png
.../Lighting/Images.xcassets/lineNew.imageset/lineNew@2x.png
+0
-0
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+85
-94
BaseViewController.h
Lighting/Tools/BaseViewController.h
+4
-2
BaseViewController.m
Lighting/Tools/BaseViewController.m
+15
-0
Customermanager.h
Lighting/Tools/Customermanager.h
+19
-0
NSArray+ ZXPUnicode.m
Lighting/Tools/ZXPUnicode/NSArray+ ZXPUnicode.m
+35
-0
NSArray+ZXPUnicode.h
Lighting/Tools/ZXPUnicode/NSArray+ZXPUnicode.h
+13
-0
NSDictionary+ZXPUnicode.h
Lighting/Tools/ZXPUnicode/NSDictionary+ZXPUnicode.h
+13
-0
NSDictionary+ZXPUnicode.m
Lighting/Tools/ZXPUnicode/NSDictionary+ZXPUnicode.m
+33
-0
NSObject+ZXPUnicode.h
Lighting/Tools/ZXPUnicode/NSObject+ZXPUnicode.h
+16
-0
NSObject+ZXPUnicode.m
Lighting/Tools/ZXPUnicode/NSObject+ZXPUnicode.m
+25
-0
opple_objc_json_client.h
Lighting/Tools/opple_objc_json_client.h
+414
-406
opple_objc_json_client.m
Lighting/Tools/opple_objc_json_client.m
+140
-131
No files found.
Lighting/Class/ClientDetailsTableViewCell.h
View file @
5eabfae2
...
...
@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
#import "ShopcarModel.h"
@interface
ClientDetailsTableViewCell
:
UITableViewCell
...
...
@@ -43,5 +43,9 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsPrice
;
/**
* 商品模型
*/
@property
(
nonatomic
,
strong
)
ShopcarModel
*
model
;
@end
Lighting/Class/ClientDetailsTableViewCell.m
View file @
5eabfae2
...
...
@@ -15,6 +15,15 @@
// Initialization code
}
#pragma mark -赋值
-
(
void
)
setModel
:
(
ShopcarModel
*
)
model
{
_model
=
model
;
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
...
...
Lighting/Class/ClientViewController.m
View file @
5eabfae2
...
...
@@ -188,6 +188,7 @@
#pragma mark -设置为当前客户回调
-
(
void
)
SetCustomerButtonClick
:
(
NSInteger
)
index
;
{
for
(
InformationTableViewCell
*
cell
in
self
.
informationTableview
.
visibleCells
)
{
cell
.
setCurrentCustomer
.
selected
=
NO
;
...
...
@@ -202,9 +203,13 @@
self
.
customerNameField
.
text
=
model
.
name
;
self
.
phoneNumberField
.
text
=
model
.
mobile
;
self
.
customerAddress
.
text
=
model
.
address
;
//保存客户
ID
//保存客户
信息
[
Shoppersmanager
manager
].
currentCustomer
=
YES
;
[
Customermanager
manager
].
customerID
=
model
.
fid
;
[
Customermanager
manager
].
customerName
=
model
.
name
;
[
Customermanager
manager
].
customerPhoneNumber
=
model
.
mobile
;
[
Customermanager
manager
].
companyAddress
=
model
.
address
;
[
Customermanager
manager
].
cutomerAddress
=
model
.
address
;
[
self
.
addpersonInformationButton
setTitle
:
@"退出当前客户"
forState
:
UIControlStateNormal
];
self
.
changePersonInformationButton
.
hidden
=
NO
;
}
...
...
@@ -280,8 +285,13 @@
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
//保存客户
ID
//保存客户
信息
[
Customermanager
manager
].
customerID
=
returnValue
[
@"data"
];
[
Customermanager
manager
].
customerName
=
customerEntity
.
name
;
[
Customermanager
manager
].
customerPhoneNumber
=
customerEntity
.
mobile
;
[
Customermanager
manager
].
companyAddress
=
customerEntity
.
address
;
[
Customermanager
manager
].
cutomerAddress
=
customerEntity
.
address
;
[
Shoppersmanager
manager
].
currentCustomer
=
YES
;
[
self
SuccessMBProgressView
:
returnValue
[
@"新增成功"
]];
[
self
.
addpersonInformationButton
setTitle
:
@"退出当前客户"
forState
:
UIControlStateNormal
];
...
...
Lighting/Class/ClientdetailsViewController.m
View file @
5eabfae2
...
...
@@ -10,6 +10,8 @@
#import "ClientDetailsTableViewCell.h"
#import "OrderTableViewCell.h"
#import "OrderdetailsViewController.h"
#import "ShopcarModel.h"
@interface
ClientdetailsViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
>
...
...
@@ -18,12 +20,50 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITableView
*
ClientdetailsTableview
;
/**
* 购物车数据源
*/
@property
(
nonatomic
,
strong
)
NSMutableArray
*
shopResponseArray
;
/**
* 订单记录数据
*/
@property
(
nonatomic
,
strong
)
NSMutableArray
*
orderRecordArray
;
@end
@implementation
ClientdetailsViewController
/**
* 购物袋数据源
*/
-
(
NSMutableArray
*
)
shopResponseArray
{
if
(
_shopResponseArray
==
nil
)
{
_shopResponseArray
=
[
NSMutableArray
array
];
}
return
_shopResponseArray
;
}
/**
* 订单记录数据源
*/
-
(
NSMutableArray
*
)
orderRecordArray
{
if
(
_orderRecordArray
==
nil
)
{
_orderRecordArray
=
[
NSMutableArray
array
];
}
return
_orderRecordArray
;
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
...
...
@@ -69,6 +109,7 @@
ClientDetailsTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"ClientDetails"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
model
=
[
self
.
orderRecordArray
objectAtIndex_opple
:
indexPath
.
row
];
return
cell
;
}
else
if
(
self
.
orderRecordButton
.
selected
)
...
...
@@ -80,11 +121,21 @@
return
nil
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
20
;
if
(
self
.
shoppingBagButton
.
selected
)
{
return
self
.
shopResponseArray
.
count
;
}
if
(
self
.
orderRecordButton
.
selected
)
{
return
self
.
orderRecordArray
.
count
;
}
return
0
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
if
(
self
.
shoppingBagButton
.
selected
)
{
...
...
@@ -105,7 +156,58 @@
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
OrderdetailsViewController
*
orderdetails
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
[
self
.
navigationController
pushViewController
:
orderdetails
animated
:
YES
];
}
#pragma mark -获取购物车商品
-
(
void
)
getShoppingCardata
{
ShopCartFilter
*
shopcarNumber
=
[[
ShopCartFilter
alloc
]
init
];
shopcarNumber
.
consumerId
=
[
Customermanager
manager
].
customerID
;
DataPage
*
Newpage
=
[[
DataPage
alloc
]
init
];
Newpage
.
page
=
0
;
shopcarNumber
.
dp
=
Newpage
;
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/shopcart/query"
]
WithRequestType
:
0
WithParameter
:
shopcarNumber
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
ShopCartResponse
*
shopcar
=
[[
ShopCartResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
//自定义属性
for
(
TOShopcartEntity
*
objc
in
shopcar
.
shopcart
)
{
ShopcarModel
*
model
=
[[
ShopcarModel
alloc
]
init
];
model
.
goods
=
objc
.
goods
;
model
.
fid
=
objc
.
fid
;
model
.
createName
=
objc
.
createName
;
model
.
createBy
=
objc
.
createBy
;
model
.
createDate
=
objc
.
createDate
;
model
.
updateName
=
objc
.
updateName
;
model
.
updateBy
=
objc
.
updateBy
;
model
.
updateDate
=
objc
.
updateDate
;
model
.
goodsId
=
objc
.
goodsId
;
model
.
goodsNum
=
objc
.
goodsNum
;
model
.
consumerId
=
objc
.
consumerId
;
[
self
.
shopResponseArray
addObject
:
model
];
}
[
self
.
ClientdetailsTableview
reloadData
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
}
...
...
@@ -131,6 +233,7 @@
sender
.
selected
=
YES
;
self
.
orderRecordButton
.
selected
=
NO
;
self
.
orderRecordButton
.
backgroundColor
=
kMainBlueColor
;
[
self
.
ClientdetailsTableview
reloadData
];
}
...
...
Lighting/Class/CommodityListTableViewCell.h
View file @
5eabfae2
...
...
@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
#import "ShopcarModel.h"
@interface
CommodityListTableViewCell
:
UITableViewCell
...
...
@@ -37,6 +37,9 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
totalPrice
;
/**
* 数据源model
*/
@property
(
nonatomic
,
strong
)
ShopcarModel
*
model
;
@end
Lighting/Class/CommodityListTableViewCell.m
View file @
5eabfae2
...
...
@@ -15,6 +15,23 @@
// Initialization code
}
#pragma mark 赋值
-
(
void
)
setModel
:
(
ShopcarModel
*
)
model
{
_model
=
model
;
[
self
.
goodsHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
ReplaceImage
];
self
.
goodsName
.
text
=
_model
.
goods
.
name
;
self
.
goodsNumber
.
text
=
_model
.
goods
.
number
;
self
.
clinchPrice
.
text
=
[
_model
.
goods
.
costPrice
stringValue
];
//计算总价格
NSInteger
number
=
[
_model
.
goods
.
number
integerValue
];
NSInteger
price
=
[
_model
.
goods
.
costPrice
integerValue
];
NSInteger
allPrice
=
number
*
price
;
self
.
totalPrice
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
allPrice
];
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
...
...
Lighting/Class/OrderdetailsViewController.h
View file @
5eabfae2
...
...
@@ -17,5 +17,8 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UITableView
*
orderDetailsTableview
;
/**
* 订单详情
*/
@property
(
nonatomic
,
copy
)
NSString
*
orderCode
;
@end
Lighting/Class/OrderdetailsViewController.m
View file @
5eabfae2
...
...
@@ -40,6 +40,13 @@
[
self
CreateTableviewFooterView
];
}
#pragma mark -获取订单详情
#pragma mark -TableviewHeader------根据不同的订单状态判断是否显示
-
(
void
)
CreateTableviewHeaderView
{
...
...
Lighting/Class/ProductDetailsViewController.m
View file @
5eabfae2
...
...
@@ -246,6 +246,9 @@
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
self
SuccessMBProgressView
:
@"加入购物车成功"
];
//刷新购物车
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
@"GOODSNUMBER"
object
:
returnValue
[
@"data"
]];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
...
...
@@ -271,6 +274,12 @@
-
(
void
)
dealloc
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/Shoppingcart/AddressViewController.m
View file @
5eabfae2
...
...
@@ -9,13 +9,13 @@
#import "AddressViewController.h"
#import "ModifyShippingAddressView.h"
@interface
AddressViewController
()
@interface
AddressViewController
()
<
CityselectedDelegate
>
/**
* 城市选择器
*/
@property
(
nonatomic
,
strong
)
ModifyShippingAddressView
*
citySelecteview
;
@property
(
nonatomic
,
strong
)
ModifyShippingAddressView
*
citySelecteview
;
@end
@implementation
AddressViewController
...
...
@@ -31,7 +31,7 @@
if
(
_citySelecteview
==
nil
)
{
_citySelecteview
=
[[[
NSBundle
mainBundle
]
loadNibNamed
:
@"ModifyShippingAddressView"
owner
:
self
options
:
nil
]
lastObject
];
owner
:
self
options
:
nil
]
lastObject
];
}
return
_citySelecteview
;
}
...
...
@@ -44,7 +44,6 @@
[
self
uiConfigAction
];
}
#pragma mark -布局
-
(
void
)
uiConfigAction
{
...
...
@@ -56,6 +55,7 @@
self
.
detailsAddressBackview
.
layer
.
cornerRadius
=
kCornerRadius
;
self
.
citySelected
.
layer
.
masksToBounds
=
YES
;
self
.
citySelected
.
layer
.
cornerRadius
=
kCornerRadius
;
[
self
.
citySelected
addTarget
:
self
action
:
@selector
(
SelectedCityButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
...
...
@@ -73,6 +73,7 @@
self
.
citySelecteview
.
frame
=
CGRectMake
(
0
,
self
.
view
.
frame
.
size
.
height
,
self
.
view
.
frame
.
size
.
width
,
160
);
[
self
.
view
addSubview
:
self
.
citySelecteview
];
self
.
citySelecteview
.
delegate
=
self
;
[
self
.
citySelecteview
.
selectedCityButton
addTarget
:
self
action
:
@selector
(
CompleteButton
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
{
...
...
@@ -107,6 +108,75 @@
}
#pragma mark 完成城市选择后
-
(
void
)
citySelected
:
(
NSString
*
)
cityString
{
[
self
.
citySelected
setTitle
:
cityString
forState
:
UIControlStateNormal
];
}
#pragma mark 新增按钮点击,或者修改
-
(
IBAction
)
addAddressButtonClick
:
(
UIButton
*
)
sender
{
[
self
addAddressInformationRequest
];
}
#pragma mark -新增地址信息
-
(
void
)
addAddressInformationRequest
{
TOShippingAddrEntity
*
address
=
[[
TOShippingAddrEntity
alloc
]
init
];
address
.
consumerId
=
[
Customermanager
manager
].
customerID
;
address
.
name
=
self
.
recipientPerson
.
text
;
address
.
miblephone
=
self
.
PhoneNumber
.
text
;
address
.
city
=
[
self
.
citySelected
currentTitle
];
address
.
address
=
self
.
detailsAddress
.
text
;
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/shippingAddress/save"
]
WithRequestType
:
0
WithParameter
:
address
WithReturnValueBlock
:^
(
id
returnValue
)
{
NSLog
(
@"%@"
,
returnValue
);
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
NSLog
(
@"%@"
,
error
);
}];
}
//@synthesize fid;
//@synthesize createDate;
//@synthesize sysOrgCode;
//@synthesize name;
//@synthesize miblephone;
//@synthesize province;
//@synthesize city;
//@synthesize country;
//@synthesize address;
//@synthesize state;
//@synthesize consumerId;
#pragma mark -修改收货地址
-
(
void
)
ChangeAddressRequest
{
TOShippingAddrEntity
*
change
=
[[
TOShippingAddrEntity
alloc
]
init
];
}
#pragma mark -取消新增地址,或者删除
-
(
IBAction
)
cancelButtonClick
:
(
UIButton
*
)
sender
{
}
/*
...
...
Lighting/Class/Shoppingcart/AddressViewController.xib
View file @
5eabfae2
...
...
@@ -79,14 +79,20 @@
<button
opaque=
"NO"
contentMode=
"scaleToFill"
fixedFrame=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"51b-5f-c5c"
>
<rect
key=
"frame"
x=
"19"
y=
"271"
width=
"120"
height=
"35"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.70412693910000002"
blue=
"0.69044467629999995"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"删除"
/>
<state
key=
"normal"
title=
"取消"
/>
<connections>
<action
selector=
"cancelButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"N17-5d-yqF"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
fixedFrame=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"EMy-g3-6JD"
>
<rect
key=
"frame"
x=
"176"
y=
"271"
width=
"120"
height=
"35"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"
修改
"
>
<state
key=
"normal"
title=
"
新增
"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"addAddressButtonClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"AJG-5a-ivS"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
fixedFrame=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"QSY-YC-rrl"
>
<rect
key=
"frame"
x=
"98"
y=
"162"
width=
"160"
height=
"30"
/>
...
...
Lighting/Class/Shoppingcart/GenerateOrdersTableViewCell.h
View file @
5eabfae2
...
...
@@ -10,4 +10,31 @@
@interface
GenerateOrdersTableViewCell
:
UITableViewCell
@property
(
nonatomic
,
strong
)
TOShippingAddrEntity
*
NewModel
;
/**
* 收货人姓名
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneeName
;
/**
* 收货人电话
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneemobile
;
/**
* 收货人地址
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
consigneeAddress
;
/**
* 是否选中
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
isSelectedButton
;
@end
Lighting/Class/Shoppingcart/GenerateOrdersTableViewCell.m
View file @
5eabfae2
...
...
@@ -15,6 +15,26 @@
// Initialization code
}
#pragma mark -赋值
-
(
void
)
setNewModel
:
(
TOShippingAddrEntity
*
)
NewModel
{
_NewModel
=
NewModel
;
self
.
consigneeName
.
text
=
_NewModel
.
name
;
self
.
consigneemobile
.
text
=
_NewModel
.
miblephone
;
self
.
consigneeAddress
.
text
=
_NewModel
.
address
;
}
#pragma mark -选中按钮
-
(
IBAction
)
SelectedButtonClick
:
(
UIButton
*
)
sender
{
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
...
...
Lighting/Class/Shoppingcart/GenerateOrdersViewController.h
View file @
5eabfae2
...
...
@@ -33,4 +33,12 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIView
*
BackView
;
/**
* 结算的商品数据源
*/
@property
(
nonatomic
,
strong
)
NSArray
*
settlementGoodsdatas
;
@end
Lighting/Class/Shoppingcart/GenerateOrdersViewController.m
View file @
5eabfae2
...
...
@@ -26,12 +26,42 @@
/**
* 数据源
*/
@property
(
nonatomic
,
strong
)
NSMutableArray
*
datasArray
;
@property
(
nonatomic
,
strong
)
UIView
*
Tabbarview
;
@end
@implementation
GenerateOrdersViewController
/**
* 初始化数据源
*/
-
(
NSMutableArray
*
)
datasArray
{
if
(
_datasArray
==
nil
)
{
_datasArray
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
NSMutableArray
*
arr
=
[
NSMutableArray
array
];
[
_datasArray
addObject
:
arr
];
}
//加入客户信息model
Customermanager
*
customerModel
=
[
Customermanager
manager
];
[[
_datasArray
firstObject
]
addObject
:
customerModel
];
//地址占位
[[
_datasArray
objectAtIndex_opple
:
1
]
addObject
:
@"地址占位"
];
//加入商品信息
[
_datasArray
replaceObjectAtIndex
:
2
withObject
:
_settlementGoodsdatas
];
}
return
_datasArray
;
}
...
...
@@ -39,6 +69,7 @@
[
super
viewDidLoad
];
[
self
uiConfigAction
];
[
self
getAddressDatasRequest
];
}
#pragma mark -UI
...
...
@@ -50,6 +81,39 @@
}
#pragma mark -获得地址信息
-
(
void
)
getAddressDatasRequest
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
ServerAddress
,
@"/shippingAddress/listAddress/"
,[
Customermanager
manager
].
customerID
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
NSLog
(
@"%@"
,
returnValue
);
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
RsShippingAddrEntity
*
address
=
[[
RsShippingAddrEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
for
(
NSInteger
i
=
address
.
list
.
count
-
1
;
i
>=
0
;
i
--
)
{
TOShippingAddrEntity
*
model
=
[
address
.
list
objectAtIndex_opple
:
i
];
[[
self
.
datasArray
objectAtIndex_opple
:
1
]
insertObject
:
model
atIndex
:
0
];
}
[
self
.
generateOrderTableview
reloadData
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
NSLog
(
@"%@"
,
error
);
}];
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
...
...
@@ -58,16 +122,25 @@
if
(
indexPath
.
section
==
0
&&
indexPath
.
row
==
0
)
{
PersonInformationTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"secondcell"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
return
cell
;
}
else
if
(
indexPath
.
section
==
1
)
{
if
(
indexPath
.
row
==
1
)
{
NSArray
*
Addressarr
=
[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
section
];
if
(
indexPath
.
row
==
Addressarr
.
count
-
1
)
{
GenerateOrdersModifyTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"consigneecell"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
GenerateOrdersModifyTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"Modifycell"
forIndexPath
:
indexPath
];
return
cell
;
}
GenerateOrdersTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"consigneecell"
forIndexPath
:
indexPath
];
GenerateOrdersTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"Modifycell"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
backgroundColor
=
kTCColor
(
242
,
242
,
242
);
TOShippingAddrEntity
*
model
=
[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
section
][
indexPath
.
row
];
NSLog
(
@"%@"
,
model
);
cell
.
NewModel
=
model
;
return
cell
;
}
else
if
(
indexPath
.
section
==
2
)
...
...
@@ -76,10 +149,12 @@
if
(
indexPath
.
row
==
1
)
{
AllpriceTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"sixthcell"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
return
cell
;
}
CommodityListTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"fourthcell"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
model
=
[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
section
][
indexPath
.
row
];
return
cell
;
}
return
nil
;
...
...
@@ -88,27 +163,30 @@
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
switch
(
section
)
{
case
0
:
{
return
1
;
}
break
;
case
1
:
{
return
2
;
}
break
;
case
2
:
{
return
2
;
}
break
;
default
:
break
;
}
return
0
;
// return [[self.datasArray objectAtIndex_opple:section] count];
NSArray
*
arr
=
[
self
.
datasArray
objectAtIndex_opple
:
section
];
return
arr
.
count
;
// switch (section) {
// case 0:
// {
// return 1;
// }
// break;
// case 1:
// {
// return 2;
// }
// break;
// case 2:
// {
// return 2;
// }
// break;
//
// default:
// break;
// }
// return 0;
}
...
...
@@ -117,7 +195,7 @@
switch
(
indexPath
.
section
)
{
case
0
:
{
return
1
6
0
;
return
1
4
0
;
}
break
;
case
1
:
...
...
@@ -168,16 +246,42 @@
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForHeaderInSection
:
(
NSInteger
)
section
{
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
44
)];
view
.
backgroundColor
=
[
UIColor
redColor
];
return
view
;
switch
(
section
)
{
case
1
:
{
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
10
)];
imageView
.
image
=
TCImage
(
@"lineNew"
);
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
44
)];
[
view
addSubview
:
imageView
];
return
view
;
}
break
;
case
2
:
{
UILabel
*
titleLabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
50
,
0
,
100
,
44
)];
titleLabe
.
text
=
@"购物袋清单"
;
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
44
)];
[
view
addSubview
:
titleLabe
];
//横线
UIView
*
lineView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
43
,
ScreenWidth
,
1
)];
lineView
.
backgroundColor
=
kTCColor
(
242
,
242
,
242
);
[
view
addSubview
:
lineView
];
return
view
;
}
break
;
default
:
break
;
}
return
nil
;
}
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
return
3
;
return
self
.
datasArray
.
count
;
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
...
...
@@ -205,8 +309,51 @@
#pragma mark -生成订单
-
(
IBAction
)
CreateOrderButtonClick
:
(
UIButton
*
)
sender
{
OrderdetailsViewController
*
orderDetails
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
[
self
.
navigationController
pushViewController
:
orderDetails
animated
:
YES
];
OrderBill
*
order
=
[[
OrderBill
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
TOOrderEntity
*
orderReceiver
=
[[
TOOrderEntity
alloc
]
init
];
orderReceiver
.
receiverName
=
@"caoyunxiao"
;
orderReceiver
.
receiverMobile
=
@"15121161964"
;
orderReceiver
.
receiverAddress
=
@"dasdsssssssssss"
;
TOOrderdetailEntity
*
orderGoods
=
[[
TOOrderdetailEntity
alloc
]
init
];
orderGoods
.
goodsId
=
[[[
self
.
datasArray
lastObject
]
lastObject
]
goodsId
];
order
.
datapage
=
page
;
order
.
order
=
orderReceiver
;
NSArray
*
arr
=
@[
orderGoods
];
order
.
orderdetailList
=
arr
;
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/order/save"
]
WithRequestType
:
0
WithParameter
:
order
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
OrderdetailsViewController
*
orderDetails
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
orderDetails
.
orderCode
=
returnValue
[
@"data"
];
[
self
.
navigationController
pushViewController
:
orderDetails
animated
:
YES
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
NSLog
(
@"%@"
,
error
);
[
self
RemoveMBProgressHUDLoding
];
}];
}
...
...
@@ -224,8 +371,6 @@
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/Shoppingcart/ModifyShippingAddressView.h
View file @
5eabfae2
...
...
@@ -8,6 +8,14 @@
#import <UIKit/UIKit.h>
@protocol
CityselectedDelegate
<
NSObject
>
//城市选择
-
(
void
)
citySelected
:
(
NSString
*
)
cityString
;
@end
@interface
ModifyShippingAddressView
:
UIView
<
UIPickerViewDelegate
,
UIPickerViewDataSource
>
...
...
@@ -23,6 +31,10 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIPickerView
*
cityPickerView
;
/**
* 城市选择代理
*/
@property
(
nonatomic
,
assign
)
id
<
CityselectedDelegate
>
delegate
;
...
...
Lighting/Class/Shoppingcart/ModifyShippingAddressView.m
View file @
5eabfae2
...
...
@@ -114,6 +114,10 @@
break
;
}
if
([
self
.
delegate
respondsToSelector
:
@selector
(
citySelected
:)])
{
[
self
.
delegate
citySelected
:
cityString
];
}
}
...
...
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
View file @
5eabfae2
...
...
@@ -55,9 +55,16 @@
@property
(
nonatomic
,
strong
)
ShopcarModel
*
model
;
/**
* 传入cel下标
*/
@property
(
nonatomic
,
assign
)
NSInteger
cellindex
;
/**
* 传回选中状态
*/
@property
(
nonatomic
,
copy
)
void
(
^
returnCellblock
)(
NSInteger
index
);
...
...
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
View file @
5eabfae2
...
...
@@ -20,6 +20,7 @@
-
(
void
)
setModel
:
(
ShopcarModel
*
)
model
{
_model
=
model
;
self
.
selectedButton
.
selected
=
_model
.
isSelected
;
[
self
.
goodsImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
ReplaceImage
];
self
.
goodsInformationLabe
.
text
=
_model
.
goods
.
name
;
self
.
tagsPriceLabe
.
text
=
[
_model
.
goods
.
tagPrice
stringValue
];
...
...
@@ -36,12 +37,54 @@
//sender.tag == 100 减少
//sender.tag == 101 增加
NSLog
(
@"%ld"
,
sender
.
tag
);
NSInteger
goodsNumber
=
[
self
.
goodsNumbersLabe
.
text
integerValue
];
switch
(
sender
.
tag
)
{
case
100
:
//减少
{
if
(
goodsNumber
<=
1
)
{
//不能小于1
return
;
}
goodsNumber
--
;
self
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsNumber
];
}
break
;
case
101
:
//增加
{
if
(
goodsNumber
>=
[
_model
.
goods
.
number
integerValue
])
{
//不能大于库存
return
;
}
goodsNumber
++
;
self
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsNumber
];
}
break
;
default
:
break
;
}
}
#pragma mark -商品选中
-
(
IBAction
)
selectedButtonClick
:
(
UIButton
*
)
sender
{
if
(
self
.
returnCellblock
)
{
self
.
returnCellblock
(
_cellindex
);
}
sender
.
selected
=
YES
;
}
...
...
Lighting/Class/Shoppingcart/ShoppingViewController.m
View file @
5eabfae2
...
...
@@ -32,7 +32,7 @@
/**
* 数据源
*/
-
(
NSMutableArray
*
)
datas
Array
-
(
NSMutableArray
*
)
shopResponse
Array
{
if
(
_shopResponseArray
==
nil
)
{
...
...
@@ -64,7 +64,7 @@
-
(
void
)
viewWillDisappear
:
(
BOOL
)
animated
{
[
super
viewWillDisappear
:
animated
];
[
self
getShoppingCardata
];
// 开启
if
([
self
.
navigationController
respondsToSelector
:
@selector
(
interactivePopGestureRecognizer
)])
{
self
.
navigationController
.
interactivePopGestureRecognizer
.
enabled
=
YES
;
...
...
@@ -99,9 +99,7 @@
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSLog
(
@"%@"
,
returnValue
);
ShopCartResponse
*
shopcar
=
[[
ShopCartResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
//自定义属性
for
(
TOShopcartEntity
*
objc
in
shopcar
.
shopcart
)
{
...
...
@@ -117,11 +115,10 @@
model
.
goodsId
=
objc
.
goodsId
;
model
.
goodsNum
=
objc
.
goodsNum
;
model
.
consumerId
=
objc
.
consumerId
;
model
.
sysOrgCode
=
objc
.
sysOrgCode
;
[
self
.
shopResponseArray
addObject
:
model
];
}
[
self
.
shoppingTableview
reloadData
];
}
else
{
...
...
@@ -135,7 +132,6 @@
[
self
RemoveMBProgressHUDLoding
];
}];
}
...
...
@@ -146,6 +142,13 @@
ShoppingTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"Shopping"
forIndexPath
:
indexPath
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
model
=
[
self
.
shopResponseArray
objectAtIndex_opple
:
indexPath
.
row
];
cell
.
cellindex
=
indexPath
.
row
;
//cell选中回调
[
cell
setReturnCellblock
:
^
(
NSInteger
index
)
{
[
self
setSelectedButton
:
index
];
}];
return
cell
;
}
...
...
@@ -168,10 +171,42 @@
#pragma mark -设置为当前客户回调
-
(
void
)
setSelectedButton
:
(
NSInteger
)
index
;
{
for
(
ShoppingTableViewCell
*
cell
in
self
.
shoppingTableview
.
visibleCells
)
{
cell
.
selectedButton
.
selected
=
NO
;
}
for
(
ShopcarModel
*
model
in
self
.
shopResponseArray
)
{
model
.
isSelected
=
NO
;
}
ShopcarModel
*
model
=
[
self
.
shopResponseArray
objectAtIndex_opple
:
index
];
model
.
isSelected
=
YES
;
}
#pragma mark -结算
-
(
IBAction
)
settlementButtonClick
:
(
UIButton
*
)
sender
{
NSMutableArray
*
array
=
[
NSMutableArray
array
];
for
(
ShopcarModel
*
model
in
self
.
shopResponseArray
)
{
if
(
model
.
isSelected
)
{
[
array
addObject
:
model
];
}
}
if
(
array
.
count
==
0
)
{
[
self
ErrorMBProgressView
:
@"没有选中任何商品"
];
return
;
}
GenerateOrdersViewController
*
generateOrder
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"generateorders"
];
generateOrder
.
settlementGoodsdatas
=
array
;
[
self
.
navigationController
pushViewController
:
generateOrder
animated
:
YES
];
}
...
...
Lighting/Class/Tabbar/Toolview.m
View file @
5eabfae2
...
...
@@ -94,22 +94,28 @@
[
button
setTitle
:[
titleArray
objectAtIndex_opple
:
i
-
1
]
forState
:
UIControlStateNormal
];
button
.
tag
=
100
+
i
-
1
;
[
button
addTarget
:
self
action
:
@selector
(
ButtonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
if
(
i
==
4
)
{
button
.
instructionsNumber
=
i
;
}
[
button
setImage
:
TCImage
([
imageArray
objectAtIndex_opple
:
i
-
1
])
forState
:
UIControlStateNormal
];
[
self
addSubview
:
button
];
}
// //创建下划线
// CustomButton *button = (CustomButton *)[self viewWithTag:102];
// self.underlineView = [[UIView alloc]initWithFrame:CGRectMake(button.frame.origin.x+(ButtonWIDTH-50)/2, ButtonRIGHT+9, 50, 1)];
// _underlineView.backgroundColor = [UIColor redColor];
// [self addSubview:self.underlineView];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
refreshGoodsNumber
:
)
name
:
@"GOODSNUMBER"
object
:
nil
];
}
#pragma mark -刷新购物车显示数量
-
(
void
)
refreshGoodsNumber
:
(
NSNotification
*
)
objc
{
CustomButton
*
button
=
(
CustomButton
*
)[
self
viewWithTag
:
103
];
button
.
instructionsNumber
=
[
objc
.
object
integerValue
];
}
#pragma mark -二维码扫描码
-
(
void
)
QrCodeButtonClickAction
{
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
5eabfae2
...
...
@@ -58,6 +58,9 @@
29834EC01CDF5E4E001A484F
/* ScreeningFirstCollectionViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29834EBF1CDF5E4E001A484F
/* ScreeningFirstCollectionViewCell.m */
;
};
29834EC51CDF76C1001A484F
/* UserViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29834EC31CDF76C1001A484F
/* UserViewController.m */
;
};
29834EC61CDF76C1001A484F
/* UserViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29834EC41CDF76C1001A484F
/* UserViewController.xib */
;
};
2985AEA11CE72F1500704C91
/* NSArray+ ZXPUnicode.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2985AE9B1CE72F1500704C91
/* NSArray+ ZXPUnicode.m */
;
};
2985AEA21CE72F1500704C91
/* NSDictionary+ZXPUnicode.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2985AE9E1CE72F1500704C91
/* NSDictionary+ZXPUnicode.m */
;
};
2985AEA31CE72F1500704C91
/* NSObject+ZXPUnicode.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2985AEA01CE72F1500704C91
/* NSObject+ZXPUnicode.m */
;
};
299249371CDB3C6500786B1E
/* GenerateOrdersViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
299249361CDB3C6500786B1E
/* GenerateOrdersViewController.m */
;
};
2992493A1CDB3E4500786B1E
/* GenerateOrdersTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
299249391CDB3E4500786B1E
/* GenerateOrdersTableViewCell.m */
;
};
2992493D1CDB3E8900786B1E
/* GenerateOrdersModifyTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2992493C1CDB3E8800786B1E
/* GenerateOrdersModifyTableViewCell.m */
;
};
...
...
@@ -199,6 +202,12 @@
29834EC21CDF76C1001A484F
/* UserViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
UserViewController.h
;
sourceTree
=
"<group>"
;
};
29834EC31CDF76C1001A484F
/* UserViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
UserViewController.m
;
sourceTree
=
"<group>"
;
};
29834EC41CDF76C1001A484F
/* UserViewController.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
UserViewController.xib
;
sourceTree
=
"<group>"
;
};
2985AE9B1CE72F1500704C91
/* NSArray+ ZXPUnicode.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSArray+ ZXPUnicode.m"
;
sourceTree
=
"<group>"
;
};
2985AE9C1CE72F1500704C91
/* NSArray+ZXPUnicode.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSArray+ZXPUnicode.h"
;
sourceTree
=
"<group>"
;
};
2985AE9D1CE72F1500704C91
/* NSDictionary+ZXPUnicode.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSDictionary+ZXPUnicode.h"
;
sourceTree
=
"<group>"
;
};
2985AE9E1CE72F1500704C91
/* NSDictionary+ZXPUnicode.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSDictionary+ZXPUnicode.m"
;
sourceTree
=
"<group>"
;
};
2985AE9F1CE72F1500704C91
/* NSObject+ZXPUnicode.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSObject+ZXPUnicode.h"
;
sourceTree
=
"<group>"
;
};
2985AEA01CE72F1500704C91
/* NSObject+ZXPUnicode.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSObject+ZXPUnicode.m"
;
sourceTree
=
"<group>"
;
};
299249351CDB3C6500786B1E
/* GenerateOrdersViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
GenerateOrdersViewController.h
;
sourceTree
=
"<group>"
;
};
299249361CDB3C6500786B1E
/* GenerateOrdersViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
GenerateOrdersViewController.m
;
sourceTree
=
"<group>"
;
};
299249381CDB3E4500786B1E
/* GenerateOrdersTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
GenerateOrdersTableViewCell.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -440,6 +449,7 @@
2928F7DE1CD085430036D761
/* Tools */
=
{
isa
=
PBXGroup
;
children
=
(
2985AE9A1CE72F1500704C91
/* ZXPUnicode */
,
29BFBD841CE4288A00C238FB
/* Customercenter */
,
29F725F81CE17AE40072FE0E
/* Shopperscenter */
,
29E28CE51CE0B90600812A55
/* Regularexpressions */
,
...
...
@@ -736,6 +746,19 @@
name
=
XXuserController
;
sourceTree
=
"<group>"
;
};
2985AE9A1CE72F1500704C91
/* ZXPUnicode */
=
{
isa
=
PBXGroup
;
children
=
(
2985AE9B1CE72F1500704C91
/* NSArray+ ZXPUnicode.m */
,
2985AE9C1CE72F1500704C91
/* NSArray+ZXPUnicode.h */
,
2985AE9D1CE72F1500704C91
/* NSDictionary+ZXPUnicode.h */
,
2985AE9E1CE72F1500704C91
/* NSDictionary+ZXPUnicode.m */
,
2985AE9F1CE72F1500704C91
/* NSObject+ZXPUnicode.h */
,
2985AEA01CE72F1500704C91
/* NSObject+ZXPUnicode.m */
,
);
path
=
ZXPUnicode
;
sourceTree
=
"<group>"
;
};
299249411CDB517A00786B1E
/* ModifytheShippingAddressView */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1177,6 +1200,7 @@
files
=
(
29BFBD981CE46FDA00C238FB
/* MyclientEntityModel.m in Sources */
,
29F726041CE1E96E0072FE0E
/* ScreeningSecondCollectionReusableView.m in Sources */
,
2985AEA11CE72F1500704C91
/* NSArray+ ZXPUnicode.m in Sources */
,
04A14A281CE0FC5600DAD5F3
/* RightSubView.m in Sources */
,
29EC331F1CE02AFA005F0C13
/* PopoverViewController.m in Sources */
,
29BFBD871CE428B200C238FB
/* Customermanager.m in Sources */
,
...
...
@@ -1186,6 +1210,7 @@
0470D6111CE2936000647F0F
/* SeceneLibraryView.m in Sources */
,
2998763F1CD9985B00C90D0A
/* AttachmentInformationTableViewCell.m in Sources */
,
293393551CD3379E000D997B
/* ShoppingTableViewCell.m in Sources */
,
2985AEA31CE72F1500704C91
/* NSObject+ZXPUnicode.m in Sources */
,
29EAAE951CDC414C00C4DBA2
/* SeceneLibraryCollectionViewCell.m in Sources */
,
060D397C1CE45CFE0082AECD
/* ImageCropperView.m in Sources */
,
2949BAC21CD3055A0049385A
/* MMExampleDrawerVisualStateManager.m in Sources */
,
...
...
@@ -1210,6 +1235,7 @@
29BB27771CD9DFBA009A0813
/* ProductLibraryViewController.m in Sources */
,
29EAAEAA1CDC7FE800C4DBA2
/* AllCutomerTableViewCell.m in Sources */
,
29360C2F1CDDC47E002A5D89
/* ScreeningView.m in Sources */
,
2985AEA21CE72F1500704C91
/* NSDictionary+ZXPUnicode.m in Sources */
,
29EAAE9C1CDC74CA00C4DBA2
/* AllCustomerViewController.m in Sources */
,
04A14A2B1CE0FC7F00DAD5F3
/* FootSubView.m in Sources */
,
2933934F1CD3158B000D997B
/* instructionsLabe.m in Sources */
,
...
...
@@ -1389,7 +1415,6 @@
"-l\"MMDrawerController\""
,
"-l\"Masonry\""
,
"-l\"SDWebImage\""
,
"-l\"SVProgressHUD\""
,
"-framework"
,
"\"CoreGraphics\""
,
"-framework"
,
...
...
@@ -1406,6 +1431,7 @@
"\"SystemConfiguration\""
,
"-framework"
,
"\"UIKit\""
,
"$(inherited)"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
...
...
@@ -1441,7 +1467,6 @@
"-l\"MMDrawerController\""
,
"-l\"Masonry\""
,
"-l\"SDWebImage\""
,
"-l\"SVProgressHUD\""
,
"-framework"
,
"\"CoreGraphics\""
,
"-framework"
,
...
...
@@ -1458,6 +1483,7 @@
"\"SystemConfiguration\""
,
"-framework"
,
"\"UIKit\""
,
"$(inherited)"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.opple
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
...
...
Lighting/Lighting/Images.xcassets/lineNew.imageset/Contents.json
0 → 100644
View file @
5eabfae2
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"lineNew.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"lineNew@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Lighting/Lighting/Images.xcassets/lineNew.imageset/lineNew.png
0 → 100644
View file @
5eabfae2
3.15 KB
Lighting/Lighting/Images.xcassets/lineNew.imageset/lineNew@2x.png
0 → 100644
View file @
5eabfae2
6.38 KB
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
5eabfae2
This diff is collapsed.
Click to expand it.
Lighting/Tools/BaseViewController.h
View file @
5eabfae2
...
...
@@ -58,8 +58,10 @@
-
(
void
)
ErrorMBProgressView
:(
NSString
*
)
errorString
;
/**
* 纯文本提示框
*/
-
(
void
)
SHOWPrompttext
:(
NSString
*
)
Text
;
...
...
Lighting/Tools/BaseViewController.m
View file @
5eabfae2
...
...
@@ -113,6 +113,21 @@
}
#pragma mark -渐隐提示框
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
self
.
view
animated
:
YES
];
hud
.
labelText
=
Text
;
hud
.
margin
=
10
.
f
;
hud
.
animationType
=
MBProgressHUDAnimationZoom
;
hud
.
mode
=
MBProgressHUDModeText
;
hud
.
removeFromSuperViewOnHide
=
YES
;
[
hud
hide
:
YES
afterDelay
:
1
.
0
f
];
}
#pragma mark -结束MJRfresh刷新
-
(
void
)
endRefreshingForTableView
:
(
UIScrollView
*
)
TableView
{
...
...
Lighting/Tools/Customermanager.h
View file @
5eabfae2
...
...
@@ -24,6 +24,25 @@
*/
@property
(
nonatomic
,
copy
)
NSString
*
customerID
;
/**
* 客户姓名
*/
@property
(
nonatomic
,
copy
)
NSString
*
customerName
;
/**
* 客户手机号码
*/
@property
(
nonatomic
,
copy
)
NSString
*
customerPhoneNumber
;
/**
* 客户公司地址
*/
@property
(
nonatomic
,
copy
)
NSString
*
companyAddress
;
/**
* 客户地址
*/
@property
(
nonatomic
,
copy
)
NSString
*
cutomerAddress
;
@end
Lighting/Tools/ZXPUnicode/NSArray+ ZXPUnicode.m
0 → 100755
View file @
5eabfae2
//
// NSArray+ZXPUnicode.m
// House
//
// Created by coffee on 15/9/28.
// Copyright © 2015年 cylkj. All rights reserved.
//
#import "NSArray+ZXPUnicode.h"
#import "NSObject+ZXPUnicode.h"
#import <objc/runtime.h>
@implementation
NSArray
(
ZXPUnicode
)
+
(
void
)
load
{
method_exchangeImplementations
(
class_getInstanceMethod
([
self
class
],
@selector
(
description
)),
class_getInstanceMethod
([
self
class
],
@selector
(
replaceDescription
)));
method_exchangeImplementations
(
class_getInstanceMethod
([
self
class
],
@selector
(
descriptionWithLocale
:
)),
class_getInstanceMethod
([
self
class
],
@selector
(
replaceDescriptionWithLocale
:
)));
method_exchangeImplementations
(
class_getInstanceMethod
([
self
class
],
@selector
(
descriptionWithLocale
:
indent
:
)),
class_getInstanceMethod
([
self
class
],
@selector
(
replaceDescriptionWithLocale
:
indent
:
)));
}
-
(
NSString
*
)
replaceDescription
{
return
[
NSObject
stringByReplaceUnicode
:[
self
replaceDescription
]];
}
-
(
NSString
*
)
replaceDescriptionWithLocale
:
(
nullable
id
)
locale
{
return
[
NSObject
stringByReplaceUnicode
:[
self
replaceDescriptionWithLocale
:
locale
]];
}
-
(
NSString
*
)
replaceDescriptionWithLocale
:
(
nullable
id
)
locale
indent
:
(
NSUInteger
)
level
{
return
[
NSObject
stringByReplaceUnicode
:[
self
replaceDescriptionWithLocale
:
locale
indent
:
level
]];
}
@end
Lighting/Tools/ZXPUnicode/NSArray+ZXPUnicode.h
0 → 100755
View file @
5eabfae2
//
// NSArray+ZXPUnicode.h
// House
//
// Created by coffee on 15/9/28.
// Copyright © 2015年 cylkj. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
NSArray
(
ZXPUnicode
)
@end
Lighting/Tools/ZXPUnicode/NSDictionary+ZXPUnicode.h
0 → 100755
View file @
5eabfae2
//
// NSDictionary+ZXPUnicode.h
// House
//
// Created by coffee on 15/9/14.
// Copyright (c) 2015年 cylkj. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
NSDictionary
(
ZXPUnicode
)
@end
Lighting/Tools/ZXPUnicode/NSDictionary+ZXPUnicode.m
0 → 100755
View file @
5eabfae2
//
// NSDictionary+ZXPUnicode.m
// House
//
// Created by coffee on 15/9/14.
// Copyright (c) 2015年 cylkj. All rights reserved.
//
#import "NSDictionary+ZXPUnicode.h"
#import "NSObject+ZXPUnicode.h"
#import <objc/runtime.h>
@implementation
NSDictionary
(
ZXPUnicode
)
+
(
void
)
load
{
method_exchangeImplementations
(
class_getInstanceMethod
([
self
class
],
@selector
(
description
)),
class_getInstanceMethod
([
self
class
],
@selector
(
replaceDescription
)));
method_exchangeImplementations
(
class_getInstanceMethod
([
self
class
],
@selector
(
descriptionWithLocale
:
)),
class_getInstanceMethod
([
self
class
],
@selector
(
replaceDescriptionWithLocale
:
)));
method_exchangeImplementations
(
class_getInstanceMethod
([
self
class
],
@selector
(
descriptionWithLocale
:
indent
:
)),
class_getInstanceMethod
([
self
class
],
@selector
(
replaceDescriptionWithLocale
:
indent
:
)));
}
-
(
NSString
*
)
replaceDescription
{
return
[
NSObject
stringByReplaceUnicode
:[
self
replaceDescription
]];
}
-
(
NSString
*
)
replaceDescriptionWithLocale
:
(
nullable
id
)
locale
{
return
[
NSObject
stringByReplaceUnicode
:[
self
replaceDescriptionWithLocale
:
locale
]];
}
-
(
NSString
*
)
replaceDescriptionWithLocale
:
(
nullable
id
)
locale
indent
:
(
NSUInteger
)
level
{
return
[
NSObject
stringByReplaceUnicode
:[
self
replaceDescriptionWithLocale
:
locale
indent
:
level
]];
}
@end
Lighting/Tools/ZXPUnicode/NSObject+ZXPUnicode.h
0 → 100755
View file @
5eabfae2
//
// NSObject+ZXPUnicode.h
// House
// blog : http://blog.csdn.net/biggercoffee
// github : https://github.com/biggercoffee/ZXPUnicode
// Created by coffee on 15/9/28.
// Copyright © 2015年 cylkj. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
NSObject
(
ZXPUnicode
)
+
(
NSString
*
)
stringByReplaceUnicode
:(
NSString
*
)
string
;
@end
Lighting/Tools/ZXPUnicode/NSObject+ZXPUnicode.m
0 → 100755
View file @
5eabfae2
//
// NSObject+ZXPUnicode.m
// House
//
// blog : http://blog.csdn.net/biggercoffee
// github : https://github.com/biggercoffee/ZXPUnicode
// Created by coffee on 15/9/28.
// Copyright © 2015年 cylkj. All rights reserved.
//
#import "NSObject+ZXPUnicode.h"
@implementation
NSObject
(
ZXPUnicode
)
+
(
NSString
*
)
stringByReplaceUnicode
:(
NSString
*
)
string
{
NSMutableString
*
convertedString
=
[
string
mutableCopy
];
[
convertedString
replaceOccurrencesOfString
:
@"
\\
U"
withString
:
@"
\\
u"
options
:
0
range
:
NSMakeRange
(
0
,
convertedString
.
length
)];
CFStringRef
transform
=
CFSTR
(
"Any-Hex/Java"
);
CFStringTransform
((
__bridge
CFMutableStringRef
)
convertedString
,
NULL
,
transform
,
YES
);
return
convertedString
;
}
@end
Lighting/Tools/opple_objc_json_client.h
View file @
5eabfae2
This diff is collapsed.
Click to expand it.
Lighting/Tools/opple_objc_json_client.m
View file @
5eabfae2
...
...
@@ -73,7 +73,6 @@
@end
@implementation
GoodsCondition
@synthesize
reseller_id
;
@synthesize
nameLike
;
@synthesize
categoryEquals
;
@synthesize
styleEquals
;
...
...
@@ -146,10 +145,8 @@
@end
@implementation
SaveShoppingCartRequest
@synthesize
consumerId
;
@synthesize
goodsId
;
@synthesize
count
;
@implementation
DeleteCartRequest
@synthesize
cartIds
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -171,41 +168,20 @@
@end
@implementation
TO
Goods
Entity
@implementation
TO
Consumer
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
onlineTime
;
@synthesize
company
;
@synthesize
code
;
@synthesize
sysOrgCode
;
@synthesize
name
;
@synthesize
number
;
@synthesize
categoryId
;
@synthesize
brandId
;
@synthesize
keyword
;
@synthesize
guidePrice
;
@synthesize
tagPrice
;
@synthesize
costPrice
;
@synthesize
state
;
@synthesize
inv
;
@synthesize
detailedIntro
;
@synthesize
weight
;
@synthesize
unit
;
@synthesize
productProfile
;
@synthesize
power
;
@synthesize
colorTemperature
;
@synthesize
spec
;
@synthesize
function
;
@synthesize
material
;
@synthesize
lightSource
;
@synthesize
goodsStyle
;
@synthesize
series
;
@synthesize
area
;
@synthesize
size
;
@synthesize
space
;
@synthesize
installMethod
;
@synthesize
lightNumber
;
@synthesize
pictures
;
@synthesize
barcode
;
@synthesize
mobile
;
@synthesize
province
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
picture
;
@synthesize
lastVisitedTime
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -223,12 +199,18 @@
@end
@implementation
TOGoods
Category
Entity
@implementation
TOGoods
Brand
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
code
;
@synthesize
name
;
@synthesize
upperId
;
@synthesize
level
;
@synthesize
state
;
@synthesize
logo
;
@synthesize
fdescription
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -239,6 +221,7 @@
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"description"
:
@"fdescription"
,
@"id"
:
@"fid"
,
}];
}
...
...
@@ -246,12 +229,12 @@
@end
@implementation
TOGoodsLabel
Category
Entity
@implementation
TOGoodsLabelEntity
@synthesize
fid
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
code
;
@synthesize
name
;
@synthesize
categoryId
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -269,29 +252,9 @@
@end
@implementation
TO
Order
Entity
@implementation
TO
Hottag
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
orderNumber
;
@synthesize
orderTime
;
@synthesize
guideId
;
@synthesize
orderState
;
@synthesize
consumerId
;
@synthesize
goodsNum
;
@synthesize
orderPrice
;
@synthesize
receiverName
;
@synthesize
receiverMobile
;
@synthesize
receiverAddress
;
@synthesize
isBill
;
@synthesize
billType
;
@synthesize
billTitle
;
@synthesize
payType
;
@synthesize
name
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -309,12 +272,19 @@
@end
@implementation
TO
Position
Entity
@implementation
TO
Orderdetail
Entity
@synthesize
fid
;
@synthesize
code
;
@synthesize
name
;
@synthesize
commission
;
@synthesize
resellerCode
;
@synthesize
goodsId
;
@synthesize
goodsCode
;
@synthesize
goodsName
;
@synthesize
goodsCover
;
@synthesize
goodsSpec
;
@synthesize
goodsBrand
;
@synthesize
goodsNum
;
@synthesize
goodsPrice
;
@synthesize
goodsTotalPrice
;
@synthesize
orderId
;
@synthesize
remark
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -332,18 +302,14 @@
@end
@implementation
TOS
hippingAddr
Entity
@implementation
TOS
cene
Entity
@synthesize
fid
;
@synthesize
createDate
;
@synthesize
sysOrgCode
;
@synthesize
sceneCode
;
@synthesize
name
;
@synthesize
miblephone
;
@synthesize
province
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
state
;
@synthesize
consumerId
;
@synthesize
pricure
;
@synthesize
category
;
@synthesize
style
;
@synthesize
space
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -373,7 +339,7 @@
@synthesize
goodsId
;
@synthesize
goodsNum
;
@synthesize
consumerId
;
@synthesize
sysOrgCode
;
@synthesize
resellerId
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -391,12 +357,6 @@
@end
#ifndef DEF_SortDirection_M
#define DEF_SortDirection_M
NSString
*
const
SORTDIRECTION_ASC
=
@"asc"
;
NSString
*
const
SORTDIRECTION_DESC
=
@"desc"
;
#endif
/* DEF_SortDirection_M */
@implementation
IdEntity
@synthesize
fid
;
...
...
@@ -416,14 +376,23 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TOSceneEntity
#ifndef DEF_SortDirection_M
#define DEF_SortDirection_M
NSString
*
const
SORTDIRECTION_ASC
=
@"asc"
;
NSString
*
const
SORTDIRECTION_DESC
=
@"desc"
;
#endif
/* DEF_SortDirection_M */
@implementation
TOShippingAddrEntity
@synthesize
fid
;
@synthesize
sceneCode
;
@synthesize
createDate
;
@synthesize
sysOrgCode
;
@synthesize
name
;
@synthesize
pricure
;
@synthesize
category
;
@synthesize
style
;
@synthesize
space
;
@synthesize
miblephone
;
@synthesize
province
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
consumerId
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -441,19 +410,12 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TO
Orderdetail
Entity
@implementation
TO
Position
Entity
@synthesize
fid
;
@synthesize
goodsId
;
@synthesize
goodsCode
;
@synthesize
goodsName
;
@synthesize
goodsCover
;
@synthesize
goodsSpec
;
@synthesize
goodsBrand
;
@synthesize
goodsNum
;
@synthesize
goodsPrice
;
@synthesize
goodsTotalPrice
;
@synthesize
orderId
;
@synthesize
remark
;
@synthesize
code
;
@synthesize
name
;
@synthesize
commission
;
@synthesize
resellerCode
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -471,9 +433,29 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TO
Hottag
Entity
@implementation
TO
Order
Entity
@synthesize
fid
;
@synthesize
name
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
orderNumber
;
@synthesize
orderTime
;
@synthesize
guideId
;
@synthesize
orderState
;
@synthesize
consumerId
;
@synthesize
goodsNum
;
@synthesize
orderPrice
;
@synthesize
receiverName
;
@synthesize
receiverMobile
;
@synthesize
receiverAddress
;
@synthesize
isBill
;
@synthesize
billType
;
@synthesize
billTitle
;
@synthesize
payType
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -491,12 +473,12 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TOGoodsLabelEntity
@implementation
TOGoodsLabel
Category
Entity
@synthesize
fid
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
code
;
@synthesize
name
;
@synthesize
categoryId
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -514,18 +496,12 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TOGoods
Brand
Entity
@implementation
TOGoods
Category
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
code
;
@synthesize
name
;
@synthesize
state
;
@synthesize
logo
;
@synthesize
fdescription
;
@synthesize
upperId
;
@synthesize
level
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -536,7 +512,6 @@ NSString * const SORTDIRECTION_DESC = @"desc";
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"description"
:
@"fdescription"
,
@"id"
:
@"fid"
,
}];
}
...
...
@@ -544,20 +519,41 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TO
Consumer
Entity
@implementation
TO
Goods
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
sysOrgCode
;
@synthesize
onlineTime
;
@synthesize
company
;
@synthesize
code
;
@synthesize
name
;
@synthesize
mobile
;
@synthesize
province
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
picture
;
@synthesize
lastVisitedTime
;
@synthesize
number
;
@synthesize
categoryId
;
@synthesize
brandId
;
@synthesize
keyword
;
@synthesize
guidePrice
;
@synthesize
tagPrice
;
@synthesize
costPrice
;
@synthesize
state
;
@synthesize
inv
;
@synthesize
detailedIntro
;
@synthesize
weight
;
@synthesize
unit
;
@synthesize
productProfile
;
@synthesize
power
;
@synthesize
colorTemperature
;
@synthesize
spec
;
@synthesize
function
;
@synthesize
material
;
@synthesize
lightSource
;
@synthesize
goodsStyle
;
@synthesize
series
;
@synthesize
area
;
@synthesize
size
;
@synthesize
space
;
@synthesize
installMethod
;
@synthesize
lightNumber
;
@synthesize
pictures
;
@synthesize
barcode
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -575,8 +571,21 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
DeleteCartRequest
@synthesize
cartIds
;
@implementation
SaveShoppingCartRequest
@synthesize
consumerId
;
@synthesize
goodsId
;
@synthesize
count
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
RsShippingAddrEntity
@synthesize
list
;
+
(
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