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

增加Login中Wish Count at header

Pen Li 9 лет назад
Родитель
Сommit
7ec5ac66f4

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 3
RedAnt ERP Mobile/common/Functions/offline/OLDataProvider.m

@@ -2634,7 +2634,8 @@
             
             
             
-            
+            int wish_count = [iSalesDB get_recordcount:db table:@"wishlist" where:@"1=1"];
+            [header setObject:[NSString stringWithFormat:@"%d",wish_count] forKey:@"wish_count"];
             
             [ret setObject:header forKey:@"header"];
             [ret setValue:nsmode   forKey:@"mode"];
@@ -2648,8 +2649,7 @@
         sqlite3_finalize(statement);
     }
     
-    int wish_count = [iSalesDB get_recordcount:db table:@"wishlist" where:@"1=1"];
-    [ret setObject:[NSString stringWithFormat:@"%d",wish_count] forKey:@"wish_count"];
+    
     
     [iSalesDB close_db:db];