|
|
@@ -316,46 +316,46 @@
|
|
|
|
|
|
- (IBAction)SearchBtnOnClick:(UIButton *)sender {
|
|
|
|
|
|
-// GridResultViewController *resultViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"ResultViewController"];
|
|
|
-// resultViewController.function_name = self.function_name;
|
|
|
-//// if([self.function_name isEqualToString:@"Document Download"])
|
|
|
-//// resultViewController.fullrow_select =false;
|
|
|
-//// else
|
|
|
-//// resultViewController.fullrow_select=true;
|
|
|
-// NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
|
|
|
-//
|
|
|
-// for(int i=0;i<[_adapter get_itemcount];i++)
|
|
|
-// {
|
|
|
-// NSMutableDictionary * field =[_adapter get_item:i];
|
|
|
-// if([[field valueForKey:@"type"] isEqualToString:@"time"])
|
|
|
-// {
|
|
|
-// NSString* str_from= [field valueForKey:@"from"];
|
|
|
-// NSString* str_to= [field valueForKey:@"to"];
|
|
|
-//
|
|
|
-// if(str_from.length>0)
|
|
|
-// [params setValue:str_from forKey:[NSString stringWithFormat:@"%@_from",[field valueForKey:@"name"]]];
|
|
|
-// if(str_to.length>0)
|
|
|
-// [params setValue:str_to forKey:[NSString stringWithFormat:@"%@_to",[field valueForKey:@"name"]]];
|
|
|
-// }
|
|
|
-// else
|
|
|
-// {
|
|
|
-// NSString* value =[field valueForKey:@"value"];
|
|
|
-// if(value.length>0)
|
|
|
-// {
|
|
|
-// [params setValue:[field valueForKey:@"value"] forKey:[field valueForKey:@"name"]];
|
|
|
-// if([[field valueForKey:@"type"] isEqualToString:@"string"] )
|
|
|
-// {
|
|
|
-// [ApexMobileDB savehistory:[field valueForKey:@"name"] value:[field valueForKey:@"value"]];
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// [params setValue:self.function_name forKey:@"module_name"];
|
|
|
-// resultViewController.params =params;
|
|
|
-// [self.navigationController pushViewController:resultViewController animated:YES];
|
|
|
+ GridResultViewController *resultViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"ResultViewController"];
|
|
|
+ resultViewController.function_name = self.function_name;
|
|
|
+// if([self.function_name isEqualToString:@"Document Download"])
|
|
|
+// resultViewController.fullrow_select =false;
|
|
|
+// else
|
|
|
+// resultViewController.fullrow_select=true;
|
|
|
+ NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
|
|
|
+
|
|
|
+ for(int i=0;i<[_adapter get_itemcount];i++)
|
|
|
+ {
|
|
|
+ NSMutableDictionary * field =[_adapter get_item:i];
|
|
|
+ if([[field valueForKey:@"type"] isEqualToString:@"time"])
|
|
|
+ {
|
|
|
+ NSString* str_from= [field valueForKey:@"from"];
|
|
|
+ NSString* str_to= [field valueForKey:@"to"];
|
|
|
+
|
|
|
+ if(str_from.length>0)
|
|
|
+ [params setValue:str_from forKey:[NSString stringWithFormat:@"%@_from",[field valueForKey:@"name"]]];
|
|
|
+ if(str_to.length>0)
|
|
|
+ [params setValue:str_to forKey:[NSString stringWithFormat:@"%@_to",[field valueForKey:@"name"]]];
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ NSString* value =[field valueForKey:@"value"];
|
|
|
+ if(value.length>0)
|
|
|
+ {
|
|
|
+ [params setValue:[field valueForKey:@"value"] forKey:[field valueForKey:@"name"]];
|
|
|
+ if([[field valueForKey:@"type"] isEqualToString:@"string"] )
|
|
|
+ {
|
|
|
+ [ApexMobileDB savehistory:[field valueForKey:@"name"] value:[field valueForKey:@"value"]];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ [params setValue:self.function_name forKey:@"module_name"];
|
|
|
+ resultViewController.params =params;
|
|
|
+ [self.navigationController pushViewController:resultViewController animated:YES];
|
|
|
|
|
|
- AMResultViewController *resultVC = [[AMResultViewController alloc] initWithNibName:@"Result" bundle:nil];
|
|
|
- [self.navigationController pushViewController:resultVC animated:YES];
|
|
|
+// AMResultViewController *resultVC = [[AMResultViewController alloc] initWithNibName:@"Result" bundle:nil];
|
|
|
+// [self.navigationController pushViewController:resultVC animated:YES];
|
|
|
}
|
|
|
|
|
|
|