|
|
@@ -1590,8 +1590,17 @@
|
|
|
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
|
|
{
|
|
|
if (self.back_order_flag) {
|
|
|
- UIView *header = [tableView dequeueReusableCellWithIdentifier:@"section_header_cell"];
|
|
|
- UILabel *title_lb = [header viewWithTag:8520];
|
|
|
+// UIView *header = [tableView dequeueReusableCellWithIdentifier:@"section_header_cell"];
|
|
|
+// UILabel *title_lb = [header viewWithTag:8520];
|
|
|
+ UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(tableView.bounds), 50.0f)];
|
|
|
+ header.backgroundColor = [UIColor colorWithRed:128 / 255.0 green:95 / 255.0 blue:54 / 255.0 alpha:1];
|
|
|
+ header.autoresizingMask = UIViewAutoresizingFlexibleWidth;
|
|
|
+
|
|
|
+ UILabel *title_lb = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, CGRectGetWidth(header.bounds) - 10, 50.0f)];
|
|
|
+ title_lb.autoresizingMask = UIViewAutoresizingFlexibleWidth;
|
|
|
+ title_lb.font = [UIFont systemFontOfSize:25.0f];
|
|
|
+ [header addSubview:title_lb];
|
|
|
+
|
|
|
title_lb.text = [self titleForSection:section];
|
|
|
return header;
|
|
|
} else {
|
|
|
@@ -1920,7 +1929,15 @@
|
|
|
if(!self.itemListTable.editing)
|
|
|
return;
|
|
|
|
|
|
- NSMutableDictionary * item_json = [self.content_arr[indexPath.row] mutableCopy];//[[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]] mutableCopy];
|
|
|
+// NSMutableDictionary * item_json = [self.content_arr[indexPath.row] mutableCopy];//[[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]] mutableCopy];
|
|
|
+
|
|
|
+ NSMutableDictionary * item_json = nil;
|
|
|
+ if (self.back_order_flag) {
|
|
|
+ item_json = [[self itemJsonAtIndexPath:indexPath] mutableCopy];
|
|
|
+ } else {
|
|
|
+ item_json = [self.content_arr[indexPath.row] mutableCopy];//[[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]] mutableCopy];
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
NSString *cart_item_id=[NSString stringWithFormat:@"%d",[[item_json valueForKey:@"cart_item_id"] intValue]];
|
|
|
if ([self.edit_select_arr containsObject:cart_item_id])
|
|
|
@@ -1930,8 +1947,15 @@
|
|
|
}
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
{
|
|
|
+ NSMutableDictionary * item_json = nil;
|
|
|
+ if (self.back_order_flag) {
|
|
|
+ item_json = [[self itemJsonAtIndexPath:indexPath] mutableCopy];
|
|
|
+ } else {
|
|
|
+ item_json = [self.content_arr[indexPath.row] mutableCopy];//[[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]] mutableCopy];
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
- NSMutableDictionary * item_json =[self.content_arr[indexPath.row] mutableCopy];// [[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]] mutableCopy];
|
|
|
+// NSMutableDictionary * item_json =[self.content_arr[indexPath.row] mutableCopy];// [[self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]] mutableCopy];
|
|
|
if(self.itemListTable.editing)
|
|
|
{
|
|
|
|