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
7a5beac0
Commit
7a5beac0
authored
Mar 03, 2016
by
管鹏飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2bf26c46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
543 additions
and
24 deletions
+543
-24
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+6
-0
MarketSurveyViewController.h
...uit/ViewControllers/FeedBack/MarketSurveyViewController.h
+13
-0
MarketSurveyViewController.m
...uit/ViewControllers/FeedBack/MarketSurveyViewController.m
+486
-0
WriteFeedbackViewController.h
...it/ViewControllers/FeedBack/WriteFeedbackViewController.h
+1
-0
WriteFeedbackViewController.m
...it/ViewControllers/FeedBack/WriteFeedbackViewController.m
+29
-19
ICRHomeViewController.m
.../ViewControllers/Home/Controllers/ICRHomeViewController.m
+8
-5
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
7a5beac0
...
@@ -212,6 +212,7 @@
...
@@ -212,6 +212,7 @@
72F9D48B1BA8582100795A00
/* NoticeBoltView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72F9D48A1BA8582100795A00
/* NoticeBoltView.m */
;
};
72F9D48B1BA8582100795A00
/* NoticeBoltView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72F9D48A1BA8582100795A00
/* NoticeBoltView.m */
;
};
871F9F047CDDAC523E4358DC
/* libPods.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
86D33EC280C440156ED1B976
/* libPods.a */
;
};
871F9F047CDDAC523E4358DC
/* libPods.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
86D33EC280C440156ED1B976
/* libPods.a */
;
};
ABFA26061C87D38800274481
/* JavenImages.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
ABFA26051C87D38800274481
/* JavenImages.m */
;
};
ABFA26061C87D38800274481
/* JavenImages.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
ABFA26051C87D38800274481
/* JavenImages.m */
;
};
ABFA260C1C8832DF00274481
/* MarketSurveyViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
ABFA260B1C8832DF00274481
/* MarketSurveyViewController.m */
;
};
C10214CD1AD8FE200024637E
/* ICRStoreDetailViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
;
};
C10214CD1AD8FE200024637E
/* ICRStoreDetailViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
;
};
C10214CE1AD8FE200024637E
/* ICRStoreDetailViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
;
};
C10214CE1AD8FE200024637E
/* ICRStoreDetailViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
;
};
C10214D21AD904F30024637E
/* ICRPatrolPlanViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214D11AD904F30024637E
/* ICRPatrolPlanViewController.m */
;
};
C10214D21AD904F30024637E
/* ICRPatrolPlanViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C10214D11AD904F30024637E
/* ICRPatrolPlanViewController.m */
;
};
...
@@ -874,6 +875,8 @@
...
@@ -874,6 +875,8 @@
86D33EC280C440156ED1B976
/* libPods.a */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
archive.ar
;
includeInIndex
=
0
;
path
=
libPods.a
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
86D33EC280C440156ED1B976
/* libPods.a */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
archive.ar
;
includeInIndex
=
0
;
path
=
libPods.a
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
ABFA26041C87D38800274481
/* JavenImages.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
JavenImages.h
;
sourceTree
=
"<group>"
;
};
ABFA26041C87D38800274481
/* JavenImages.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
JavenImages.h
;
sourceTree
=
"<group>"
;
};
ABFA26051C87D38800274481
/* JavenImages.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
JavenImages.m
;
sourceTree
=
"<group>"
;
};
ABFA26051C87D38800274481
/* JavenImages.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
JavenImages.m
;
sourceTree
=
"<group>"
;
};
ABFA260A1C8832DF00274481
/* MarketSurveyViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
MarketSurveyViewController.h
;
sourceTree
=
"<group>"
;
};
ABFA260B1C8832DF00274481
/* MarketSurveyViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
MarketSurveyViewController.m
;
sourceTree
=
"<group>"
;
};
C10214CB1AD8FE200024637E
/* ICRStoreDetailViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ICRStoreDetailViewController.h
;
sourceTree
=
"<group>"
;
};
C10214CB1AD8FE200024637E
/* ICRStoreDetailViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ICRStoreDetailViewController.h
;
sourceTree
=
"<group>"
;
};
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ICRStoreDetailViewController.m
;
sourceTree
=
"<group>"
;
};
C10214CC1AD8FE200024637E
/* ICRStoreDetailViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ICRStoreDetailViewController.m
;
sourceTree
=
"<group>"
;
};
C10214D01AD904F30024637E
/* ICRPatrolPlanViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ICRPatrolPlanViewController.h
;
sourceTree
=
"<group>"
;
};
C10214D01AD904F30024637E
/* ICRPatrolPlanViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ICRPatrolPlanViewController.h
;
sourceTree
=
"<group>"
;
};
...
@@ -1442,6 +1445,8 @@
...
@@ -1442,6 +1445,8 @@
359788641C868EB8009205AA
/* XFPhoto.m */
,
359788641C868EB8009205AA
/* XFPhoto.m */
,
ABFA26041C87D38800274481
/* JavenImages.h */
,
ABFA26041C87D38800274481
/* JavenImages.h */
,
ABFA26051C87D38800274481
/* JavenImages.m */
,
ABFA26051C87D38800274481
/* JavenImages.m */
,
ABFA260A1C8832DF00274481
/* MarketSurveyViewController.h */
,
ABFA260B1C8832DF00274481
/* MarketSurveyViewController.m */
,
);
);
path
=
FeedBack
;
path
=
FeedBack
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -3072,6 +3077,7 @@
...
@@ -3072,6 +3077,7 @@
C15918491AC062460013B391
/* IBTObject.m in Sources */
,
C15918491AC062460013B391
/* IBTObject.m in Sources */
,
35CF339B1B96E41F001211EF
/* GXFVendorViewController.m in Sources */
,
35CF339B1B96E41F001211EF
/* GXFVendorViewController.m in Sources */
,
72B3C0CA1B9D3C7300025D81
/* TransportPurductCell.m in Sources */
,
72B3C0CA1B9D3C7300025D81
/* TransportPurductCell.m in Sources */
,
ABFA260C1C8832DF00274481
/* MarketSurveyViewController.m in Sources */
,
C142D2B01AC3A155000109A7
/* UIColor+Helper.m in Sources */
,
C142D2B01AC3A155000109A7
/* UIColor+Helper.m in Sources */
,
72A813FA1BCD3205003631F3
/* ReceiveViewController.m in Sources */
,
72A813FA1BCD3205003631F3
/* ReceiveViewController.m in Sources */
,
C142D2AC1AC3A155000109A7
/* NSNull+OVNatural.m in Sources */
,
C142D2AC1AC3A155000109A7
/* NSNull+OVNatural.m in Sources */
,
...
...
XFFruit/ViewControllers/FeedBack/MarketSurveyViewController.h
0 → 100644
View file @
7a5beac0
//
// MarketSurveyViewController.h
// XFFruit
//
// Created by Jonathan on 16/3/3.
// Copyright © 2016年 Xummer. All rights reserved.
//
#import "ICRBaseViewController.h"
@interface
MarketSurveyViewController
:
ICRBaseViewController
@end
XFFruit/ViewControllers/FeedBack/MarketSurveyViewController.m
0 → 100644
View file @
7a5beac0
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/FeedBack/WriteFeedbackViewController.h
View file @
7a5beac0
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
@property
(
nonatomic
,
strong
)
Survey
*
survey
;
@property
(
nonatomic
,
strong
)
Survey
*
survey
;
@property
(
nonatomic
,
strong
)
NSString
*
surveyUuid
;
@property
(
nonatomic
,
strong
)
NSString
*
surveyUuid
;
@property
(
nonatomic
,
strong
)
NSArray
*
imgsFile
;
@property
(
nonatomic
,
strong
)
NSArray
*
imgsFile
;
@property
(
nonatomic
,
strong
)
Survey
*
aSurvey
;
-
(
instancetype
)
initWithImgName
:(
NSString
*
)
imgName
;
-
(
instancetype
)
initWithImgName
:(
NSString
*
)
imgName
;
@end
@end
XFFruit/ViewControllers/FeedBack/WriteFeedbackViewController.m
View file @
7a5beac0
...
@@ -352,11 +352,15 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
...
@@ -352,11 +352,15 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
}
}
}
}
#pragma mark btn action
#pragma mark btn action
-
(
void
)
photosDisplay
{
-
(
void
)
photosDisplay
{
HGPhWViewController
*
ghphVC
=
[[
HGPhWViewController
alloc
]
init
];
HGPhWViewController
*
ghphVC
=
[[
HGPhWViewController
alloc
]
init
];
[
self
PushViewController
:
ghphVC
animated
:
YES
];
[
self
PushViewController
:
ghphVC
animated
:
YES
];
}
}
#pragma mark - ZYQAssetPickerController Delegate
#pragma mark - ZYQAssetPickerController Delegate
-
(
void
)
assetPickerController
:
(
ZYQAssetPickerController
*
)
picker
didFinishPickingAssets
:
(
NSArray
*
)
assets
{
-
(
void
)
assetPickerController
:
(
ZYQAssetPickerController
*
)
picker
didFinishPickingAssets
:
(
NSArray
*
)
assets
{
...
@@ -374,8 +378,6 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
...
@@ -374,8 +378,6 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
[[
JavenImages
shareInstance
]
insertImages
:
self
.
imgesMuArr
];
[[
JavenImages
shareInstance
]
insertImages
:
self
.
imgesMuArr
];
// [[HGPhWViewController shareInstance] addPhotosWithArrayImgs:_imgesMuArr];
[
self
pushToHGphVC
];
[
self
pushToHGphVC
];
...
@@ -392,6 +394,7 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
...
@@ -392,6 +394,7 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
.
size
.
width
=
BOTTOM_BTN_WIDTH
,
.
size
.
width
=
BOTTOM_BTN_WIDTH
,
.
size
.
height
=
BTN_HEIGHT
.
size
.
height
=
BTN_HEIGHT
};
};
[
btnBack
addTarget
:
self
[
btnBack
addTarget
:
self
action
:
@selector
(
commitFeedback
)
action
:
@selector
(
commitFeedback
)
forControlEvents
:
UIControlEventTouchUpInside
];
forControlEvents
:
UIControlEventTouchUpInside
];
...
@@ -412,39 +415,46 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
...
@@ -412,39 +415,46 @@ typedef NS_ENUM(NSUInteger, feedbackCellInfo){
#pragma mark - 接口调用:3.1 新增行情反馈
#pragma mark - 接口调用:3.1 新增行情反馈
-
(
void
)
saveSurveyResult
{
-
(
void
)
saveSurveyResult
{
void
(
^
succ
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
showProgressLabel
:
@"正在加载..."
];
NSDictionary
*
paramDict
=
@{
@"result"
:
[
self
getSurveyResult
],
@"attachments"
:
[
self
getAttachmentArray
]};
[[
ICRHTTPController
sharedController
]
surveySaveResultWithDict
:
paramDict
surveyUuid
:
_surveyUuid
success
:^
(
id
succ
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
[
IBTLoadingView
hideHUDWithText
:
nil
];
if
(
data
)
{
NSInteger
success
=
[
data
[
@"success"
]
integerValue
];
if
(
succ
)
{
NSString
*
message
=
data
[
@"message"
]
;
NSInteger
success
=
[
succ
[
@"success"
]
integerValue
];
NSString
*
message
=
succ
[
@"message"
]
;
if
(
success
==
1
)
{
if
(
success
==
1
)
{
// [self backSurvey];
// [self backSurvey];
}
else
{
}
else
{
[
IBTLoadingView
showTips
:
message
];
[
IBTLoadingView
showTips
:
message
];
}
}
}
else
{
}
else
{
[
IBTLoadingView
showTips
:
@"返回异常"
];
[
IBTLoadingView
showTips
:
@"返回异常"
];
}
}
};
void
(
^
fail
)(
id
)
=
^
(
id
data
)
{
}
failure
:^
(
id
fail
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
[
IBTLoadingView
hideHUDWithText
:
nil
];
[
IBTLoadingView
showTips
:
data
];
[
IBTLoadingView
showTips
:
fail
];
};
[
IBTLoadingView
showProgressLabel
:
@"正在加载..."
];
}];
NSDictionary
*
paramDict
=
@{
@"result"
:
[
self
getSurveyResult
],
@"attachments"
:
[
self
getAttachmentArray
]};
[[
ICRHTTPController
sharedController
]
surveySaveResultWithDict
:
paramDict
surveyUuid
:
_surveyUuid
success
:
succ
failure
:
fail
];
}
}
-
(
NSArray
*
)
getAttachmentArray
{
-
(
NSArray
*
)
getAttachmentArray
{
NSMutableArray
*
attachArr
=
[
NSMutableArray
array
];
NSMutableArray
*
attachArr
=
[
NSMutableArray
array
];
NSMutableArray
*
resultMuArr
=
[
NSMutableArray
array
];
NSMutableArray
*
resultMuArr
=
[
NSMutableArray
array
];
NSMutableArray
*
arrImgsData
=
[[
XFDB
sharedInstance
]
fetchAllPhotosDataFromLocal
];
//
NSMutableArray *arrImgsData = [[XFDB sharedInstance]fetchAllPhotosDataFromLocal];
if
(
arrImgsData
.
count
==
0
)
{
if
(
[
JavenImages
shareInstance
].
imageArr
.
count
==
0
)
{
// return attachArr;
// return attachArr;
}
else
{
}
else
{
for
(
int
count
=
0
;
count
<
arrImgsData
.
count
;
count
++
)
{
for
(
int
count
=
0
;
count
<
[
JavenImages
shareInstance
].
imageArr
.
count
;
count
++
)
{
NSData
*
data
=
arrImgsData
[
count
];
UIImage
*
image
=
[
JavenImages
shareInstance
].
imageArr
[
count
];
NSData
*
data
=
UIImageJPEGRepresentation
(
image
,
1
);
NSString
*
fileName
=
[[
NSString
alloc
]
initWithData
:
data
encoding
:
NSUTF8StringEncoding
];
NSString
*
fileName
=
[[
NSString
alloc
]
initWithData
:
data
encoding
:
NSUTF8StringEncoding
];
NSMutableDictionary
*
phontoMuDict
=
[
NSMutableDictionary
dictionaryWithObjects
:@[
@""
,
data
]
forKeys
:@[
@"fileName"
,
@"content"
]];
NSMutableDictionary
*
phontoMuDict
=
[
NSMutableDictionary
dictionaryWithObjects
:@[
@""
,
data
]
forKeys
:@[
@"fileName"
,
@"content"
]];
[
attachArr
addObject
:
phontoMuDict
];
[
attachArr
addObject
:
phontoMuDict
];
...
...
XFFruit/ViewControllers/Home/Controllers/ICRHomeViewController.m
View file @
7a5beac0
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#import "GXFListProcessViewController.h"
#import "GXFListProcessViewController.h"
#import "GXFFunctionDB.h"
#import "GXFFunctionDB.h"
#import "WriteFeedbackViewController.h"
#import "WriteFeedbackViewController.h"
#import "MarketSurveyViewController.h"
#define ICRFUNCTION_IMG_TOP_PADDING (25)
#define ICRFUNCTION_IMG_TOP_PADDING (25)
#define ICRFUNCTION_IMG_WIDTH (65)
#define ICRFUNCTION_IMG_WIDTH (65)
#define ICRFUNCTION_LABEL_HEIGHT (15)
#define ICRFUNCTION_LABEL_HEIGHT (15)
...
@@ -233,7 +234,7 @@ static NSString *collectionCellID = @"collectionCell";
...
@@ -233,7 +234,7 @@ static NSString *collectionCellID = @"collectionCell";
[
self
PushViewController
:
svc
animated
:
YES
];
[
self
PushViewController
:
svc
animated
:
YES
];
}
}
break
;
break
;
case
kFunctionSeeSurvey
:
//查看行情
case
kFunctionSeeSurvey
:
//查看行情
调研
{
{
SurveyViewController
*
svc
=
[[
SurveyViewController
alloc
]
init
];
SurveyViewController
*
svc
=
[[
SurveyViewController
alloc
]
init
];
svc
.
title
=
[
IBTCommon
localizableString
:
@"Survey"
];
svc
.
title
=
[
IBTCommon
localizableString
:
@"Survey"
];
...
@@ -244,10 +245,12 @@ static NSString *collectionCellID = @"collectionCell";
...
@@ -244,10 +245,12 @@ static NSString *collectionCellID = @"collectionCell";
case
kFunctionFeedBackSurvey
:
//填写行情反馈3
case
kFunctionFeedBackSurvey
:
//填写行情反馈3
{
{
WriteFeedbackViewController
*
svc
=
[[
WriteFeedbackViewController
alloc
]
init
];
MarketSurveyViewController
*
marketSurveyVC
=
[[
MarketSurveyViewController
alloc
]
init
];
// svc.title = [IBTCommon localizableString:@"Survey"];
marketSurveyVC
.
title
=
@"调研中"
;
// svc.navigationItem.hidesBackButton = YES;
[
self
PushViewController
:
svc
animated
:
YES
];
//WriteFeedbackViewController *svc = [[WriteFeedbackViewController alloc] init];
[
self
PushViewController
:
marketSurveyVC
animated
:
YES
];
}
}
break
;
break
;
case
kFunctionNewPurchaseNotice
:
//新建采购通知单
case
kFunctionNewPurchaseNotice
:
//新建采购通知单
...
...
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