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
d5a96360
Commit
d5a96360
authored
Sep 06, 2015
by
zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e91feef6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
136 additions
and
8 deletions
+136
-8
ICRHTTPController.h
XFFruit/Controllers/HTTPController/ICRHTTPController.h
+34
-0
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+94
-2
PurchaseNoticeViewController.m
...PurchaseNotice/Controllers/PurchaseNoticeViewController.m
+8
-6
No files found.
XFFruit/Controllers/HTTPController/ICRHTTPController.h
View file @
d5a96360
...
...
@@ -253,6 +253,40 @@ typedef NS_ENUM(NSUInteger, ICRAttachmentType) {
failure
:(
void
(
^
)(
id
))
fail
;
//1·保存采购通知单
-
(
void
)
savePurchaseNoticeWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//2·获取采购通知单列表
-
(
void
)
getPurchaseNoticeListWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//3·采购通知单明细(读)
-
(
void
)
getPurchaseNoticeDetailedWithPurchaseUuid
:(
NSString
*
)
purchaseUuid
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//4·保存并提交采购通知单
-
(
void
)
saveAndSubmitPurchaseNoticeWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//5·提交采购通知单
-
(
void
)
ComitPurchaseNoticeWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//6·接受采购通知单
-
(
void
)
acceptPurchaseNoticeWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//7·结束采购通知单
-
(
void
)
finishPurchaseNoticeWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//8·获取采购通知单跟进记录
-
(
void
)
getPurchaseNoticeRecodWithData
:(
id
)
data
success
:(
void
(
^
)(
id
))
succ
failure
:(
void
(
^
)(
id
))
fail
;
//添加采购单
-
(
void
)
savePurchaseWithData
:(
id
)
data
...
...
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
d5a96360
...
...
@@ -87,7 +87,14 @@ typedef NS_ENUM(NSUInteger, ICRHTTPAction) {
XFFHttp_QueryProcess
,
XFFHttp_GetProcess
,
//采购通知单
XFFHttp_PurchaseNoticeSave
,
// 保存采购通知单(写)
XFFHttp_savePurchaseNotice
,
XFFHttp_getPurchaseNoticeList
,
XFFHttp_getPurchaseNoticeDetailed
,
XFFHttp_saveAndSubmitPurchaseNotice
,
XFFHttp_ComitPurchaseNotice
,
XFFHttp_acceptPurchaseNotice
,
XFFHttp_finishPurchaseNotice
,
XFFHttp_getPurchaseNoticeRecod
,
//采购单
...
...
@@ -162,6 +169,16 @@ static NSString * const ICRHTTPInterface[] = {
//加工单
[
XFFHttp_QueryProcess
]
=
@"process/query"
,
[
XFFHttp_GetProcess
]
=
@"process/get"
,
//采购通知单
[
XFFHttp_savePurchaseNotice
]
=
@"purchase/notice/save"
,
[
XFFHttp_getPurchaseNoticeList
]
=
@"purchase/notice/query"
,
[
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_getPurchaseNoticeRecod
]
=
@"purchase/trace/get/"
,
//采购单
...
...
@@ -1981,5 +1998,80 @@ acceptTypeJson:YES
success
:
success
failure
:
failure
];
}
//1·保存采购通知单
-
(
void
)
savePurchaseNoticeWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
//2·获取采购通知单列表
-
(
void
)
getPurchaseNoticeListWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
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
);
}
};
NSDictionary
*
dict
=
data
;
NSString
*
urlStr
=
[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_getPurchaseNoticeList
];
[
self
POST
:
urlStr
parameters
:
dict
needToken
:
NO
acceptTypeJson
:
YES
success
:
success
failure
:
failure
];
}
//3·采购通知单明细(读)
-
(
void
)
getPurchaseNoticeDetailedWithPurchaseUuid
:
(
NSString
*
)
purchaseUuid
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
//4·保存并提交采购通知单
-
(
void
)
saveAndSubmitPurchaseNoticeWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
//5·提交采购通知单
-
(
void
)
ComitPurchaseNoticeWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
//6·接受采购通知单
-
(
void
)
acceptPurchaseNoticeWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
//7·结束采购通知单
-
(
void
)
finishPurchaseNoticeWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
//8·获取采购通知单跟进记录
-
(
void
)
getPurchaseNoticeRecodWithData
:
(
id
)
data
success
:
(
void
(
^
)(
id
))
succ
failure
:
(
void
(
^
)(
id
))
fail
{
}
@end
XFFruit/ViewControllers/PurchaseNotice/Controllers/PurchaseNoticeViewController.m
View file @
d5a96360
...
...
@@ -52,7 +52,7 @@ typedef enum : NSUInteger {
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
initData
];
//
[self initData];
[
self
createTableView
];
[
self
createRefresh
];
[
self
getData
];
...
...
@@ -153,11 +153,13 @@ typedef enum : NSUInteger {
NSDictionary
*
dict
=
@{
@"billNumberLike"
:
billObject
,
@"state"
:
stateObject
,
@"noticeNumberLike"
:
noticeObject
,
@"titleLike"
:
[
NSNull
null
],
@"vendorUuid"
:
[
NSNull
null
],
@"queryOrders"
:
orderArr
,
@"userUuid"
:
userUtil
.
userId
,
// @"noticeNumberLike":noticeObject,
@"title"
:
[
NSNull
null
],
@"orderField"
:
@"created"
,
@"orderDirection"
:
@"desc"
,
// @"vendorUuid":[NSNull null],
// @"queryOrders":orderArr,
// @"userUuid":userUtil.userId,
@"pageNumber"
:
@
(
_currentPage
),
@"pageSize"
:
@
(
20
)};
[[
ICRHTTPController
sharedController
]
queryPurchaseWithData
:
dict
success
:
succ
failure
:
fail
];
...
...
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