Просмотр исходного кода

1.修改NPD Order Detail Section开关控制。

Pen Li 8 лет назад
Родитель
Сommit
2ba4503514

+ 2 - 2
RedAnt ERP Mobile/common/Functions/order/OrderDetailViewController.m

@@ -1558,7 +1558,7 @@
         btn.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
         [myView addSubview:btn];
         
-    } else if ([title containsString:@"Models"]) {
+    } else if ([title containsString:@"Models"] || [title containsString:@"Invoice#"]) {
         
         BOOL item_switch = [[section_item objectForKey:@"switch"] boolValue];
         NSString *normalTitle = @"Show";
@@ -1727,7 +1727,7 @@
         NSIndexSet *sectionToReload = [NSIndexSet indexSetWithIndexesInRange:range];
         [self.detailTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
         
-    } else if ([title containsString:@"Models"]) {
+    } else if ([title containsString:@"Models"] || [title containsString:@"Invoice#"]) {
         
         BOOL item_switch = [[section_item objectForKey:@"switch"] boolValue];
         if (item_switch == YES) {