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
88bd5236
Commit
88bd5236
authored
9 years ago
by
n22
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仓库接口
parent
a44683ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+7
-7
ChooseVendorViewController.m
...rollers/Purchase/Controllers/ChooseVendorViewController.m
+0
-4
Warehouse.m
XFFruit/ViewControllers/Purchase/Models/Warehouse.m
+6
-0
NewSurveyViewController.m
...wControllers/Survey/controllers/NewSurveyViewController.m
+1
-0
No files found.
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
88bd5236
...
...
@@ -137,7 +137,7 @@ static NSString * const ICRHTTPInterface[] = {
[
XFFHttp_ResultChart
]
=
@"survey/resultchart"
,
[
XFFHttp_GetResults
]
=
@"survey/get_results"
,
//供应商
[
XFFHttp_GetVendor
]
=
@"
m
data/vendor/download"
,
[
XFFHttp_GetVendor
]
=
@"data/vendor/download"
,
//仓库
[
XFFHttp_GetWarehouse
]
=
@"data/warehouse/download"
,
...
...
@@ -1648,10 +1648,10 @@ acceptTypeJson:YES
fail
(
error
);
}
};
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_GetVendor
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
[[
NSDate
date
]
httpParameterString
]
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
dateStr
=
@"2015-05-04"
;
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_GetVendor
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
dateStr
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POS
T
:
encodeUrlStr
[
self
GE
T
:
encodeUrlStr
parameters
:
NULL
needToken
:
NO
acceptTypeJson
:
YES
...
...
@@ -1694,10 +1694,10 @@ acceptTypeJson:YES
fail
(
error
);
}
};
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_Get
Vendor
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
[[
NSDate
date
]
httpParameterString
]
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
dateStr
=
@"2015-05-04"
;
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_Get
Warehouse
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
dateStr
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POS
T
:
encodeUrlStr
[
self
GE
T
:
encodeUrlStr
parameters
:
NULL
needToken
:
NO
acceptTypeJson
:
YES
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/ChooseVendorViewController.m
View file @
88bd5236
...
...
@@ -32,10 +32,6 @@
-
(
void
)
initData
{
self
.
dataArr
=
[
NSMutableArray
array
];
self
.
indexArr
=
[
NSMutableArray
array
];
Vendor
*
v
=
[[
Vendor
alloc
]
init
];
v
.
name
=
@"dddd"
;
v
.
code
=
@"1111"
;
[
self
.
dataArr
addObject
:
v
];
[
self
fetchVendorList
];
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Models/Warehouse.m
View file @
88bd5236
...
...
@@ -9,5 +9,11 @@
#import "Warehouse.h"
@implementation
Warehouse
+
(
NSDictionary
*
)
specialKeysAndReplaceKeys
{
return
@{
@"wID"
:
[[
self
class
]
PrimaryKey
],
};
}
+
(
NSString
*
)
PrimaryKey
{
return
@"uuid"
;
}
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Survey/controllers/NewSurveyViewController.m
View file @
88bd5236
...
...
@@ -69,6 +69,7 @@ typedef enum : NSUInteger {
[
self
createTableView
];
}
-
(
void
)
initData
{
_dataArr
=
[
NSMutableArray
array
];
self
.
users
=
[
NSMutableArray
array
];
[
_dataArr
addObject
:
@"标题"
];
...
...
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