Bläddra i källkod

1.修改iOS Apex Mobile Result。

Pen Li 7 år sedan
förälder
incheckning
c0e66e3ce3

+ 1 - 1
Apex Mobile/Apex Mobile/RANetwork.h

@@ -46,6 +46,6 @@
 
 + (NSDictionary *)uploadUserSql:(NSString *)sql;
 + (NSDictionary *)fetchResultParameters:(NSMutableDictionary *)params;
-+ (NSDictionary *)saveSearchParameters:(NSString *)paramStr forModule:(NSString *)module;
++ (NSDictionary *)saveSearchParameters:(NSString *)paramStr forModule:(NSString *)module withName:(NSString *)name;
 
 @end

+ 2 - 1
Apex Mobile/Apex Mobile/RANetwork.m

@@ -1563,7 +1563,7 @@
     
 }
 
-+ (NSDictionary *)saveSearchParameters:(NSString *)paramStr forModule:(NSString *)module {
++ (NSDictionary *)saveSearchParameters:(NSString *)paramStr forModule:(NSString *)module withName:(NSString *)name {
     if (!paramStr || !module) {
         return @{
                  @"result" : @RESULT_FALSE,
@@ -1573,6 +1573,7 @@
     NSMutableDictionary *params = [NSMutableDictionary dictionary];
     [params setValue:paramStr forKey:@"params"];
     [params setValue:module forKey:@"module_name"];
+    [params setValue:name forKey:@"name"];
     
     NSData *json=[self get_json:URL_SAVE_RESULT parameters:params  file:nil];
     

+ 1 - 1
Apex Mobile/Apex Mobile/Result/ApexResultViewController.m

@@ -226,7 +226,7 @@
             return;
         }
         
-        [weakSelf.presenter saveSearchParameters];
+        [weakSelf.presenter saveSearchParameters:name];
         
     }];
     

+ 1 - 1
Apex Mobile/Apex Mobile/Result/Presenter/ApexResultPresenter.h

@@ -31,7 +31,7 @@
 - (void)refreshData;
 - (void)loadMoreData;
 
-- (void)saveSearchParameters;
+- (void)saveSearchParameters:(NSString *)name;
 
 - (void)modifyParameters:(NSDictionary *)params;
 

+ 2 - 2
Apex Mobile/Apex Mobile/Result/Presenter/ApexResultPresenter.m

@@ -150,7 +150,7 @@ static const NSInteger detal = 20;
 
 #pragma mark - Save Search
 
-- (void)saveSearchParameters {
+- (void)saveSearchParameters:(NSString *)name {
     
     NSString *module_name = [self.params objectForKey:@"module_name"];
     NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self.params options:NSJSONWritingPrettyPrinted error:nil];
@@ -161,7 +161,7 @@ static const NSInteger detal = 20;
     }
     dispatch_async(dispatch_get_global_queue(0, 0), ^{
        
-        NSDictionary *json = [RANetwork saveSearchParameters:paramStr forModule:module_name];
+        NSDictionary *json = [RANetwork saveSearchParameters:paramStr forModule:module_name withName:name];
         int result = [[json objectForKey:@"result"] intValue];
         if (result == RESULT_TRUE) {
             

+ 1 - 1
Apex Mobile/Apex Mobile/Result/TableDelegate/ApexResultViewController+TableDelegate.m

@@ -62,7 +62,7 @@
         else
         {
             
-            UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:@"" message:nil preferredStyle:UIAlertControllerStyleAlert];
+            UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:@"" message:nil preferredStyle:UIAlertControllerStyleActionSheet];
             
             __weak typeof(self) weakSelf = self;
             for(int i=0;i< rowActions.count;i++)