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
Aug 28, 2015
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[] = {
...
@@ -137,7 +137,7 @@ static NSString * const ICRHTTPInterface[] = {
[
XFFHttp_ResultChart
]
=
@"survey/resultchart"
,
[
XFFHttp_ResultChart
]
=
@"survey/resultchart"
,
[
XFFHttp_GetResults
]
=
@"survey/get_results"
,
[
XFFHttp_GetResults
]
=
@"survey/get_results"
,
//供应商
//供应商
[
XFFHttp_GetVendor
]
=
@"
m
data/vendor/download"
,
[
XFFHttp_GetVendor
]
=
@"data/vendor/download"
,
//仓库
//仓库
[
XFFHttp_GetWarehouse
]
=
@"data/warehouse/download"
,
[
XFFHttp_GetWarehouse
]
=
@"data/warehouse/download"
,
...
@@ -1648,10 +1648,10 @@ acceptTypeJson:YES
...
@@ -1648,10 +1648,10 @@ acceptTypeJson:YES
fail
(
error
);
fail
(
error
);
}
}
};
};
NSString
*
dateStr
=
@"2015-05-04"
;
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_GetVendor
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
[[
NSDate
date
]
httpParameterString
]
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_GetVendor
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
dateStr
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POS
T
:
encodeUrlStr
[
self
GE
T
:
encodeUrlStr
parameters
:
NULL
parameters
:
NULL
needToken
:
NO
needToken
:
NO
acceptTypeJson
:
YES
acceptTypeJson
:
YES
...
@@ -1694,10 +1694,10 @@ acceptTypeJson:YES
...
@@ -1694,10 +1694,10 @@ acceptTypeJson:YES
fail
(
error
);
fail
(
error
);
}
}
};
};
NSString
*
dateStr
=
@"2015-05-04"
;
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_Get
Vendor
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
[[
NSDate
date
]
httpParameterString
]
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
urlStr
=
[[[
self
class
]
UrlForPluginHTTPAction
:
XFFHttp_Get
Warehouse
]
stringByAppendingFormat
:
@"?startDate=%@&pageNumber=%@&pageSize=%@"
,
dateStr
,
@
(
page_number
),
@
(
page_size
)];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSString
*
encodeUrlStr
=
[
urlStr
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
[
self
POS
T
:
encodeUrlStr
[
self
GE
T
:
encodeUrlStr
parameters
:
NULL
parameters
:
NULL
needToken
:
NO
needToken
:
NO
acceptTypeJson
:
YES
acceptTypeJson
:
YES
...
...
XFFruit/ViewControllers/Purchase/Controllers/ChooseVendorViewController.m
View file @
88bd5236
...
@@ -32,10 +32,6 @@
...
@@ -32,10 +32,6 @@
-
(
void
)
initData
{
-
(
void
)
initData
{
self
.
dataArr
=
[
NSMutableArray
array
];
self
.
dataArr
=
[
NSMutableArray
array
];
self
.
indexArr
=
[
NSMutableArray
array
];
self
.
indexArr
=
[
NSMutableArray
array
];
Vendor
*
v
=
[[
Vendor
alloc
]
init
];
v
.
name
=
@"dddd"
;
v
.
code
=
@"1111"
;
[
self
.
dataArr
addObject
:
v
];
[
self
fetchVendorList
];
[
self
fetchVendorList
];
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
XFFruit/ViewControllers/Purchase/Models/Warehouse.m
View file @
88bd5236
...
@@ -9,5 +9,11 @@
...
@@ -9,5 +9,11 @@
#import "Warehouse.h"
#import "Warehouse.h"
@implementation
Warehouse
@implementation
Warehouse
+
(
NSDictionary
*
)
specialKeysAndReplaceKeys
{
return
@{
@"wID"
:
[[
self
class
]
PrimaryKey
],
};
}
+
(
NSString
*
)
PrimaryKey
{
return
@"uuid"
;
}
@end
@end
XFFruit/ViewControllers/Survey/controllers/NewSurveyViewController.m
View file @
88bd5236
...
@@ -69,6 +69,7 @@ typedef enum : NSUInteger {
...
@@ -69,6 +69,7 @@ typedef enum : NSUInteger {
[
self
createTableView
];
[
self
createTableView
];
}
}
-
(
void
)
initData
{
-
(
void
)
initData
{
_dataArr
=
[
NSMutableArray
array
];
_dataArr
=
[
NSMutableArray
array
];
self
.
users
=
[
NSMutableArray
array
];
self
.
users
=
[
NSMutableArray
array
];
[
_dataArr
addObject
:
@"标题"
];
[
_dataArr
addObject
:
@"标题"
];
...
...
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