Commit a38b0bed authored by 陈俊俊's avatar 陈俊俊

结束

parent c637f307
...@@ -1559,7 +1559,7 @@ acceptTypeJson:YES ...@@ -1559,7 +1559,7 @@ acceptTypeJson:YES
}; };
NSString *currentTime = [[NSDate date] httpParameterString]; NSString *currentTime = [[NSDate date] httpParameterString];
ICRUserUtil *userUtil = [ICRUserUtil sharedInstance]; ICRUserUtil *userUtil = [ICRUserUtil sharedInstance];
NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_SurveyFinish] stringByAppendingFormat:@"/%@?version=%@time=%@&operId=%@&operName=%@",uuid,version,currentTime,userUtil.userCode,userUtil.displayName]; NSString *urlStr = [[[self class] UrlForPluginHTTPAction:XFFHttp_SurveyFinish] stringByAppendingFormat:@"/%@?version=%@&time=%@&operId=%@&operName=%@",uuid,version,currentTime,userUtil.userCode,userUtil.displayName];
NSString *encodeUrlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *encodeUrlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[self POST:encodeUrlStr [self POST:encodeUrlStr
parameters:nil parameters:nil
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
} }
- (void)setSurveyResult:(SurveyResult *)surveyResult{ - (void)setSurveyResult:(SurveyResult *)surveyResult{
//
[self.imageBtn setBackgroundImage:[UIImage imageNamed:@"no_image_default"] forState:UIControlStateNormal]; [self.imageBtn setBackgroundImage:[UIImage imageNamed:@"no_image_default"] forState:UIControlStateNormal];
self.userNameLabel.text = [NSString stringWithFormat:@"反馈人:%@[%@]",surveyResult.userName,surveyResult.feedbackTime]; self.userNameLabel.text = [NSString stringWithFormat:@"反馈人:%@[%@]",surveyResult.userName,surveyResult.feedbackTime];
self.placeLabel.text = [NSString stringWithFormat:@"产地:%@",surveyResult.place]; self.placeLabel.text = [NSString stringWithFormat:@"产地:%@",surveyResult.place];
......
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
@interface NewSurveyViewController : ICRBaseViewController @interface NewSurveyViewController : ICRBaseViewController
@property (nonatomic,strong)Survey *survey; @property (nonatomic,strong)Survey *survey;
@property (nonatomic,strong)NSString *navTitle;
@end @end
...@@ -60,7 +60,7 @@ typedef enum : NSUInteger { ...@@ -60,7 +60,7 @@ typedef enum : NSUInteger {
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
self.title = @"新建行情调研"; self.title = self.navTitle;
[self initData]; [self initData];
[self createTableView]; [self createTableView];
} }
...@@ -144,7 +144,10 @@ typedef enum : NSUInteger { ...@@ -144,7 +144,10 @@ typedef enum : NSUInteger {
//成功 //成功
[IBTLoadingView showTips:@"操作成功"]; [IBTLoadingView showTips:@"操作成功"];
[self clearAllInformation]; [self clearAllInformation];
if (self.survey) {
[ICRUserUtil sharedInstance].needFresh = YES;
[self.navigationController popViewControllerAnimated:YES];
}
}else{ }else{
[IBTLoadingView showTips:message]; [IBTLoadingView showTips:message];
} }
...@@ -459,9 +462,7 @@ typedef enum : NSUInteger { ...@@ -459,9 +462,7 @@ typedef enum : NSUInteger {
- (void)viewWillDisappear:(BOOL)animated{ - (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
if (self.survey) {
[ICRUserUtil sharedInstance].needFresh = YES;
}
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
......
...@@ -336,6 +336,7 @@ typedef enum : NSUInteger { ...@@ -336,6 +336,7 @@ typedef enum : NSUInteger {
if ([survey.state isEqualToString:@"initial"]) { if ([survey.state isEqualToString:@"initial"]) {
NewSurveyViewController *nvc = [[NewSurveyViewController alloc]init]; NewSurveyViewController *nvc = [[NewSurveyViewController alloc]init];
nvc.survey = survey; nvc.survey = survey;
nvc.navTitle = @"修改行情调研单";
[self PushViewController:nvc animated:YES]; [self PushViewController:nvc animated:YES];
}else if([survey.state isEqualToString:@"submitted"] || [survey.state isEqualToString:@"insurvey"]|| [survey.state isEqualToString:@"finished"]){ }else if([survey.state isEqualToString:@"submitted"] || [survey.state isEqualToString:@"insurvey"]|| [survey.state isEqualToString:@"finished"]){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment