Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
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
张杰
xffruit
Commits
97704d9f
Commit
97704d9f
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购通知筛选
parent
21e2a3fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
531 additions
and
106 deletions
+531
-106
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+6
-0
ICRHTTPController.h
XFFruit/Controllers/HTTPController/ICRHTTPController.h
+7
-5
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+63
-4
NewPurchaseViewController.h
...trollers/Purchase/Controllers/NewPurchaseViewController.h
+2
-0
NewPurchaseViewController.m
...trollers/Purchase/Controllers/NewPurchaseViewController.m
+29
-1
TopPurchaseView.m
XFFruit/ViewControllers/Purchase/Views/TopPurchaseView.m
+4
-1
PurchaseNoticeViewController.m
...PurchaseNotice/Controllers/PurchaseNoticeViewController.m
+37
-38
SeePurchaseNoticeViewController.m
...chaseNotice/Controllers/SeePurchaseNoticeViewController.m
+76
-57
NoticeBoltView.h
...uit/ViewControllers/PurchaseNotice/Views/NoticeBoltView.h
+27
-0
NoticeBoltView.m
...uit/ViewControllers/PurchaseNotice/Views/NoticeBoltView.m
+280
-0
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
97704d9f
...
...
@@ -149,6 +149,7 @@
72F9D4821BA7EC9600795A00
/* NoticeProductViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72F9D4811BA7EC9600795A00
/* NoticeProductViewController.m */
;
};
72F9D4851BA7FFC400795A00
/* PurchaseNotice.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72F9D4841BA7FFC400795A00
/* PurchaseNotice.m */
;
};
72F9D4881BA8065500795A00
/* PurchaseNoticeListCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72F9D4871BA8065500795A00
/* PurchaseNoticeListCell.m */
;
};
72F9D48B1BA8582100795A00
/* NoticeBoltView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72F9D48A1BA8582100795A00
/* NoticeBoltView.m */
;
};
871F9F047CDDAC523E4358DC
/* libPods.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
86D33EC280C440156ED1B976
/* libPods.a */
;
};
C10214CD1AD8FE200024637E
/* ICRStoreDetailViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
;
};
C10214CE1AD8FE200024637E
/* ICRStoreDetailViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
;
};
...
...
@@ -697,6 +698,8 @@
72F9D4841BA7FFC400795A00
/* PurchaseNotice.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PurchaseNotice.m
;
sourceTree
=
"<group>"
;
};
72F9D4861BA8065500795A00
/* PurchaseNoticeListCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PurchaseNoticeListCell.h
;
sourceTree
=
"<group>"
;
};
72F9D4871BA8065500795A00
/* PurchaseNoticeListCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PurchaseNoticeListCell.m
;
sourceTree
=
"<group>"
;
};
72F9D4891BA8582100795A00
/* NoticeBoltView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
NoticeBoltView.h
;
sourceTree
=
"<group>"
;
};
72F9D48A1BA8582100795A00
/* NoticeBoltView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
NoticeBoltView.m
;
sourceTree
=
"<group>"
;
};
7DDFB1D460448C3B45118195
/* Pods.release.xcconfig */
=
{
isa
=
PBXFileReference
;
includeInIndex
=
1
;
lastKnownFileType
=
text.xcconfig
;
name
=
Pods.release.xcconfig
;
path
=
"Pods/Target Support Files/Pods/Pods.release.xcconfig"
;
sourceTree
=
"<group>"
;
};
86D33EC280C440156ED1B976
/* libPods.a */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
archive.ar
;
includeInIndex
=
0
;
path
=
libPods.a
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
C10214CB1AD8FE200024637E
/* ICRStoreDetailViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ICRStoreDetailViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1097,6 +1100,8 @@
72F9D4811BA7EC9600795A00
/* NoticeProductViewController.m */
,
72F9D4861BA8065500795A00
/* PurchaseNoticeListCell.h */
,
72F9D4871BA8065500795A00
/* PurchaseNoticeListCell.m */
,
72F9D4891BA8582100795A00
/* NoticeBoltView.h */
,
72F9D48A1BA8582100795A00
/* NoticeBoltView.m */
,
);
path
=
Views
;
sourceTree
=
"<group>"
;
...
...
@@ -2632,6 +2637,7 @@
C1374F581B33C40D00594D19
/* IBTWebViewController.m in Sources */
,
C159186B1AC1A03B0013B391
/* ICRSyncViewController.m in Sources */
,
C1C564431AD66C6E006A1050
/* ICRTaskEditViewController.m in Sources */
,
72F9D48B1BA8582100795A00
/* NoticeBoltView.m in Sources */
,
C142D2AA1AC3A155000109A7
/* NSDate+FormatterAdditions.m in Sources */
,
C1B307A31ADD199600657F11
/* ICRTaskResultContentView.m in Sources */
,
72873CEB1BA27BA6007B3387
/* GXFPopView.m in Sources */
,
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Controllers/HTTPController/ICRHTTPController.h
View file @
97704d9f
...
...
@@ -276,8 +276,9 @@ typedef NS_ENUM(NSUInteger, ICRAttachmentType) {
failure
:(
void
(
^
)(
id
))
fail
;
//3·采购通知单明细(读)
-
(
void
)
getPurchaseNoticeDetailedWithPurchaseUuid
:(
NSString
*
)
purchaseUuid
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
-
(
void
)
getPurchaseNoticeDetailedWithPurchaseUuid
:(
NSString
*
)
purchaseUuid
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//4·保存并提交采购通知单
-
(
void
)
saveAndSubmitPurchaseNoticeWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
...
...
@@ -288,12 +289,13 @@ typedef NS_ENUM(NSUInteger, ICRAttachmentType) {
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//6·接受采购通知单
-
(
void
)
acceptPurchaseNoticeWithData
:(
id
)
data
-
(
void
)
acceptPurchaseNoticeWithUuid
:(
NSString
*
)
purchaseNoticeuuid
version
:(
NSNumber
*
)
version
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//7·结束采购通知单
-
(
void
)
finishPurchaseNoticeWith
Data
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
-
(
void
)
finishPurchaseNoticeWith
Uuid
:(
NSString
*
)
purchaseNoticeuuid
version
:(
NSNumber
*
)
version
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//8·获取采购通知单跟进记录
-
(
void
)
getPurchaseNoticeRecodWithData
:(
id
)
data
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
97704d9f
...
...
@@ -187,8 +187,8 @@ static NSString * const ICRHTTPInterface[] = {
[
XFFHttp_getPurchaseNoticeDetailed
]
=
@"purchase/notice/get"
,
[
XFFHttp_saveAndSubmitPurchaseNotice
]
=
@"purchase/notice/saveandsubmit"
,
[
XFFHttp_ComitPurchaseNotice
]
=
@"purchase/notice/submit/"
,
[
XFFHttp_acceptPurchaseNotice
]
=
@"purchase/notice/accept
/
"
,
[
XFFHttp_finishPurchaseNotice
]
=
@"purchase/notice/finish
/
"
,
[
XFFHttp_acceptPurchaseNotice
]
=
@"purchase/notice/accept"
,
[
XFFHttp_finishPurchaseNotice
]
=
@"purchase/notice/finish"
,
[
XFFHttp_getPurchaseNoticeRecod
]
=
@"purchase/trace/get/"
,
...
...
@@ -2392,18 +2392,77 @@ acceptTypeJson:YES
}
//6·接受采购通知单
-
(
void
)
acceptPurchaseNoticeWithData
:
(
id
)
data
-
(
void
)
acceptPurchaseNoticeWithUuid
:
(
NSString
*
)
purchaseNoticeuuid
version
:
(
NSNumber
*
)
version
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
if
(
!
purchaseNoticeuuid
)
{
if
(
fail
)
{
fail
(
[[
self
class
]
ErrorWithMsg
:
ERROR_PARAMETER
code
:
0
]
);
}
return
;
}
void
(
^
success
)(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
=
^
(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
{
CLog
(
@"%@"
,
responseObject
);
if
(
succ
)
{
succ
(
responseObject
);
}
};
void
(
^
failure
)(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
=
^
(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
{
CLog
(
@"%@"
,
error
);
if
(
fail
)
{
fail
(
error
);
}
};
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_acceptPurchaseNotice
]
stringByAppendingFormat
:
@"/%@?version=%@&time=%@&operId=%@&operName=%@"
,
purchaseNoticeuuid
,
version
,[[
NSDate
date
]
httpParameterString
],
userUtil
.
userCode
,
userUtil
.
displayName
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POST
:
encodeUrlStr
parameters
:
nil
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
}
//7·结束采购通知单
-
(
void
)
finishPurchaseNoticeWithData
:
(
id
)
data
-
(
void
)
finishPurchaseNoticeWithUuid
:
(
NSString
*
)
purchaseNoticeuuid
version
:
(
NSNumber
*
)
version
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
if
(
!
purchaseNoticeuuid
)
{
if
(
fail
)
{
fail
(
[[
self
class
]
ErrorWithMsg
:
ERROR_PARAMETER
code
:
0
]
);
}
return
;
}
void
(
^
success
)(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
=
^
(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
{
CLog
(
@"%@"
,
responseObject
);
if
(
succ
)
{
succ
(
responseObject
);
}
};
void
(
^
failure
)(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
=
^
(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
{
CLog
(
@"%@"
,
error
);
if
(
fail
)
{
fail
(
error
);
}
};
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_finishPurchaseNotice
]
stringByAppendingFormat
:
@"/%@?version=%@&time=%@&operId=%@&operName=%@"
,
purchaseNoticeuuid
,
version
,[[
NSDate
date
]
httpParameterString
],
userUtil
.
userCode
,
userUtil
.
displayName
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POST
:
encodeUrlStr
parameters
:
nil
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
}
//8·获取采购通知单跟进记录
-
(
void
)
getPurchaseNoticeRecodWithData
:
(
id
)
data
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/NewPurchaseViewController.h
View file @
97704d9f
...
...
@@ -8,6 +8,8 @@
#import "ICRBaseViewController.h"
#import "PurchaseBill.h"
#import "PurchaseNotice.h"
@interface
NewPurchaseViewController
:
ICRBaseViewController
@property
(
nonatomic
,
strong
)
PurchaseBill
*
purchaseBill
;
@property
(
nonatomic
,
strong
)
PurchaseNotice
*
purchaseNotice
;
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/NewPurchaseViewController.m
View file @
97704d9f
...
...
@@ -14,6 +14,7 @@
#import "ShopDetaileViewController.h"
#import "PurchaseBillProduct.h"
#import "GXFPopView.h"
#import "NoticeProduct.h"
#define TopHeight 328
#define BottomHeight 300
#define SpaceHeight 20
...
...
@@ -61,6 +62,13 @@ typedef enum : NSUInteger {
if
(
self
.
purchaseBill
)
{
[
self
getDataFromServer
];
}
if
(
self
.
purchaseNotice
)
{
_purchaseView
.
noticeUuid
=
self
.
purchaseNotice
.
uuid
;
_purchaseView
.
noticeNumber
=
self
.
purchaseNotice
.
billnumber
;
//转换
NSMutableArray
*
arr
=
[
self
coverPurchaseBillProduct
:
self
.
purchaseNotice
.
products
];
_pvc
.
productArr
=
arr
;
}
}
-
(
void
)
getDataFromServer
{
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
@@ -344,7 +352,27 @@ typedef enum : NSUInteger {
return
shopDetail
;
}
-
(
NSMutableArray
*
)
coverPurchaseBillProduct
:
(
NSArray
*
)
arr
{
NSMutableArray
*
billArr
=
[
NSMutableArray
array
];
for
(
NoticeProduct
*
product
in
arr
)
{
PurchaseBillProduct
*
billProduct
=
[
PurchaseBillProduct
new
];
billProduct
.
uuid
=
product
.
uuid
;
billProduct
.
product_name
=
product
.
productName
;
billProduct
.
product_uuid
=
product
.
productUuid
;
billProduct
.
product_code
=
product
.
productCode
;
billProduct
.
qpc
=
product
.
qpc
;
billProduct
.
unit
=
product
.
packUnit
;
billProduct
.
qty
=
[
NSNumber
numberWithFloat
:
0
];
billProduct
.
price
=
[
NSNumber
numberWithFloat
:
0
];
billProduct
.
baseQty
=
[
NSNumber
numberWithFloat
:
0
];
billProduct
.
basePrice
=
[
NSNumber
numberWithFloat
:
0
];
billProduct
.
total
=
[
NSNumber
numberWithFloat
:
0
];
billProduct
.
remark
=
product
.
remark
;
billProduct
.
qpcStr
=
@""
;
[
billArr
addObject
:
billProduct
];
}
return
billArr
;
}
#pragma mark - 协议方法
-
(
void
)
hiddenKeyBoard
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Views/TopPurchaseView.m
View file @
97704d9f
...
...
@@ -183,11 +183,14 @@
}
}
}
#warning 有点问题
-
(
void
)
prepareDataInCell
{
if
(
self
.
total
)
{
self
.
purchasePriceLabel
.
text
=
[
self
.
total
stringValue
];
}
if
(
self
.
noticeNumber
.
length
>
0
)
{
self
.
purchaseNoticeLabel
.
text
=
self
.
noticeNumber
;
self
.
purchaseNoticeLabel
.
textColor
=
GXF_CONTENT_COLOR
;
}
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
if
(
indexPath
.
row
==
2
){
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Controllers/PurchaseNoticeViewController.m
View file @
97704d9f
...
...
@@ -11,7 +11,7 @@
#import "NewPurchaseNoticeViewController.h"
#import "QueryOrder.h"
#import "SortMaskView.h"
#import "
Purchas
eBoltView.h"
#import "
Notic
eBoltView.h"
#import "MJRefresh.h"
#import "PurchaseNoticeListCell.h"
#import "PurchaseNotice.h"
...
...
@@ -27,12 +27,12 @@ typedef enum : NSUInteger {
BoltTag
}
BtnTag
;
@interface
PurchaseNoticeViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
Purchase
ViewDelegate
,
SortMaskViewDelegate
>
@interface
PurchaseNoticeViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
BoltMask
ViewDelegate
,
SortMaskViewDelegate
>
{
UIView
*
_maskView
;
UIButton
*
currentBtn
;
SortMaskView
*
_sortView
;
Purchas
eBoltView
*
_boltView
;
Notic
eBoltView
*
_boltView
;
UIBarButtonItem
*
_sureBtn
;
UIButton
*
_sortBtn
;
UIButton
*
_boltBtn
;
...
...
@@ -42,7 +42,7 @@ typedef enum : NSUInteger {
}
@property
(
nonatomic
,
strong
)
NSMutableArray
*
dataArr
;
@property
(
nonatomic
,
strong
)
UITableView
*
tableView
;
@property
(
nonatomic
,
strong
)
NSString
*
notic
eLike
;
@property
(
nonatomic
,
strong
)
NSString
*
titl
eLike
;
@property
(
nonatomic
,
strong
)
NSString
*
state
;
@property
(
nonatomic
,
strong
)
NSString
*
billLike
;
@property
(
nonatomic
,
strong
)
NSString
*
orderDirection
;
//asc(升序),desc(降序)
...
...
@@ -76,7 +76,7 @@ typedef enum : NSUInteger {
[
IBTLoadingView
showTips
:
data
];
};
[
IBTLoadingView
showProgressLabel
:
@"正在加载..."
];
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
//
ICRUserUtil *userUtil = [ICRUserUtil sharedInstance];
NSMutableArray
*
orderArr
=
[
NSMutableArray
array
];
if
(
self
.
orderDirection
.
length
>
0
&&
!
[
self
.
orderDirection
isEqualToString
:
@"none"
])
{
...
...
@@ -106,11 +106,11 @@ typedef enum : NSUInteger {
}
}
id
noticeObject
=
[
NSNull
null
];
if
(
self
.
notic
eLike
.
length
>
0
)
{
noticeObject
=
self
.
notic
eLike
;
if
(
self
.
titl
eLike
.
length
>
0
)
{
noticeObject
=
self
.
titl
eLike
;
if
(
self
.
orderDirection
.
length
>
0
&&
!
[
self
.
orderDirection
isEqualToString
:
@"none"
])
{
QueryOrder
*
order
=
[
QueryOrder
new
];
order
.
field
=
@"
noticeNumber
"
;
order
.
field
=
@"
titleLike
"
;
order
.
direction
=
self
.
orderDirection
;
[
orderArr
addObject
:[
order
dictForCommit
]];
}
...
...
@@ -260,13 +260,10 @@ typedef enum : NSUInteger {
}
else
{
[
btn
setImage
:[
UIImage
imageNamed
:
@"selected-filter_with_text"
]
forState
:
UIControlStateNormal
];
if
(
_boltView
==
nil
)
{
_boltView
=
[[
PurchaseBoltView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
-
105
,
ScreenSize
.
width
,
274
)
state
:
self
.
state
billNumber
:
self
.
billLike
titleStr
:
@"采购通知"
vendorNumber
:
self
.
noticeLike
];
// _boltView = [[PurchaseBoltView alloc]initWithFrame:CGRectMake(0, -105, ScreenSize.width, 274) state:self.state billNumber:self.billLike noticeNumber:self.noticeLike];
_boltView
=
[[
NoticeBoltView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
-
105
,
ScreenSize
.
width
,
274
)
state
:
self
.
state
title
:
self
.
titleLike
bill
:
self
.
billLike
];
_boltView
.
backgroundColor
=
XXFBgColor
;
_boltView
.
delegate
=
self
;
//initial(未提交)submitted(已提交)rejected(已拒绝)approved(已审批)shipping(发运中)finished(已完成)
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"未提交"
,
@"已提交"
,
@"已拒绝"
,
@"已审批"
,
@"发运中"
,
@"已完成"
,
nil
];
_boltView
.
dataArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@"不限"
,
@"未提交"
,
@"未接受"
,
@"发运中"
,
@"已完成"
,
nil
];
[
_maskView
addSubview
:
_boltView
];
[
UIView
animateWithDuration
:
0
.
25
animations
:
^
{
CGRect
sortFrame
=
_boltView
.
frame
;
...
...
@@ -328,7 +325,7 @@ typedef enum : NSUInteger {
}
}
-
(
void
)
checkBoltBtnColor
{
if
(
self
.
state
.
length
>
0
||
self
.
notic
eLike
.
length
>
0
||
self
.
billLike
.
length
>
0
)
{
if
(
self
.
state
.
length
>
0
||
self
.
titl
eLike
.
length
>
0
||
self
.
billLike
.
length
>
0
)
{
[
_boltBtn
setImage
:[
UIImage
imageNamed
:
@"selected-filter_with_text"
]
forState
:
UIControlStateNormal
];
}
else
{
[
_boltBtn
setImage
:[
UIImage
imageNamed
:
@"black_filter_with_text"
]
forState
:
UIControlStateNormal
];
...
...
@@ -338,23 +335,19 @@ typedef enum : NSUInteger {
#pragma mark - 确定
-
(
void
)
sureClick
{
if
(
self
.
state
.
length
>
0
||
self
.
billLike
.
length
>
0
||
self
.
noticeLike
.
length
>
0
||
self
.
orderDirection
.
length
>
0
)
{
[
_boltView
.
titleFiled
resignFirstResponder
];
[
_boltView
.
vendorFiled
resignFirstResponder
];
[
_boltView
.
billFiled
resignFirstResponder
];
_currentPage
=
0
;
//请求
[
self
getData
];
//还原数据
if
(
_sortView
)
{
[
self
hiddenSortMaskView
:
YES
];
}
if
(
_boltView
)
{
[
self
hiddenBoltMaskView
:
YES
];
}
}
[
_boltView
.
titleFiled
resignFirstResponder
];
[
_boltView
.
billFiled
resignFirstResponder
];
_currentPage
=
0
;
//请求
[
self
getData
];
//还原数据
if
(
_sortView
)
{
[
self
hiddenSortMaskView
:
YES
];
}
if
(
_boltView
)
{
[
self
hiddenBoltMaskView
:
YES
];
}
}
#pragma mark - sortDelegate
...
...
@@ -369,21 +362,21 @@ typedef enum : NSUInteger {
self
.
state
=
state
;
CLog
(
@"%@"
,
state
);
}
-
(
void
)
get
billLike
:
(
NSString
*
)
billLike
{
self
.
billLike
=
bill
Like
;
CLog
(
@"%@"
,
bill
Like
);
-
(
void
)
get
BillNumber
:
(
NSString
*
)
billNumber
{
self
.
billLike
=
bill
Number
;
CLog
(
@"%@"
,
bill
Number
);
}
-
(
void
)
get
noticeLike
:
(
NSString
*
)
notic
eLike
{
self
.
noticeLike
=
notic
eLike
;
CLog
(
@"%@"
,
notic
eLike
);
-
(
void
)
get
TitleLike
:
(
NSString
*
)
titl
eLike
{
self
.
titleLike
=
titl
eLike
;
CLog
(
@"%@"
,
titl
eLike
);
}
-
(
void
)
clearBoltInformation
{
//清空所有条件
if
(
self
.
billLike
.
length
>
0
)
{
self
.
billLike
=
@""
;
}
if
(
self
.
notic
eLike
.
length
>
0
)
{
self
.
notic
eLike
=
@""
;
if
(
self
.
titl
eLike
.
length
>
0
)
{
self
.
titl
eLike
=
@""
;
}
if
(
self
.
state
.
length
>
0
)
{
self
.
state
=
@""
;
...
...
@@ -432,6 +425,12 @@ typedef enum : NSUInteger {
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
TableHeight
;
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
if
([
ICRUserUtil
sharedInstance
].
needFresh
&&
self
.
tableView
!=
nil
)
{
[
self
.
tableView
.
header
beginRefreshing
];
}
}
-
(
void
)
createBackBtn
{
UIButton
*
btn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Controllers/SeePurchaseNoticeViewController.m
View file @
97704d9f
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/NoticeBoltView.h
0 → 100644
View file @
97704d9f
//
// NoticeBoltView.h
// XFFruit
//
// Created by 陈俊俊 on 15/9/15.
// Copyright (c) 2015年 Xummer. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol
BoltMaskViewDelegate
<
NSObject
>
-
(
void
)
getBoltValueSelectRow
:
(
NSString
*
)
state
;
-
(
void
)
getTitleLike
:(
NSString
*
)
titleLike
;
-
(
void
)
getBillNumber
:(
NSString
*
)
billNumber
;
-
(
void
)
clearBoltInformation
;
@end
@interface
NoticeBoltView
:
UIView
<
UITableViewDataSource
,
UITableViewDelegate
>
@property
(
nonatomic
,
strong
)
UITableView
*
tableView
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
dataArr
;
@property
(
nonatomic
,
weak
)
id
<
BoltMaskViewDelegate
>
delegate
;
@property
(
nonatomic
,
strong
)
UITextField
*
titleFiled
;
@property
(
nonatomic
,
strong
)
UITextField
*
billFiled
;
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
state
:(
NSString
*
)
state
title
:(
NSString
*
)
title
bill
:(
NSString
*
)
bill
;
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/NoticeBoltView.m
0 → 100644
View file @
97704d9f
This diff is collapsed.
Click to expand it.
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