|
|
@@ -9,6 +9,8 @@
|
|
|
#import "HomeViewController.h"
|
|
|
#import "ShipingStatusCell.h"
|
|
|
#import "ShipSearchController.h"
|
|
|
+#import "ApexMobileDB.h"
|
|
|
+#import "DetailTabBarController.h"
|
|
|
|
|
|
#define SHIP_CELL_IDENTIFIER @"ShippingStatusCell"
|
|
|
|
|
|
@@ -175,6 +177,35 @@
|
|
|
return 110;
|
|
|
}
|
|
|
|
|
|
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
+NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
|
|
|
+
|
|
|
+[params setObject:@"dumb" forKey:@"id"];
|
|
|
+NSString* h_field;
|
|
|
+//if(self.radioContainer.selected==true)
|
|
|
+//{
|
|
|
+// [params setObject:@"1" forKey:@"criterion_type"];
|
|
|
+// h_field = @"ctnr";
|
|
|
+//}
|
|
|
+//else
|
|
|
+{
|
|
|
+ [params setObject:@"0" forKey:@"criterion_type"];
|
|
|
+ h_field = @"h_bol";
|
|
|
+}
|
|
|
+
|
|
|
+ NSDictionary *item = [self.shipArray objectAtIndex:indexPath.section];
|
|
|
+NSString * cargo_criterion = item[@"hbol"];
|
|
|
+if(cargo_criterion==nil)
|
|
|
+cargo_criterion=@"";
|
|
|
+[params setObject:cargo_criterion forKey:@"cargo_criterion"];
|
|
|
+
|
|
|
+
|
|
|
+[ApexMobileDB savehistory:h_field value:cargo_criterion];
|
|
|
+
|
|
|
+DetailTabBarController *detailViewController=[[DetailTabBarController alloc] init:@"Cargo Tracking" actions:[NSArray arrayWithObjects:@"Tracking",nil] params:params];
|
|
|
+[self.navigationController pushViewController:detailViewController animated:YES];
|
|
|
+
|
|
|
+}
|
|
|
//#pragma mark - SearchBar Delegate
|
|
|
//
|
|
|
//- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar {
|