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

160802 optimised cart --> set model count

Ray Zhang 9 лет назад
Родитель
Сommit
44621d4637

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


+ 14 - 0
RedAnt ERP Mobile/common/data_provider/iSalesDB.m

@@ -622,6 +622,15 @@ void decryptfield (sqlite3_context *context, int argc, sqlite3_value **argv) {
         
         
         NSString* create_login_info=@"CREATE TABLE IF NOT EXISTS login_info ( _id INTEGER PRIMARY KEY, name VARCHAR(256), pwd VARCHAR(256), lastlogin timestamp );";
+    
+        NSString* create_offline_country=@"CREATE TABLE IF NOT EXISTS offline_country ( _id INTEGER PRIMARY KEY, name text,code VARCHAR(16));";
+    
+        NSString* create_offline_state=@"CREATE TABLE IF NOT EXISTS offline_state ( _id INTEGER PRIMARY KEY, name text,code VARCHAR(16), country_code VARCHAR(16));";
+    
+        NSString* create_offline_zipcode=@"CREATE TABLE IF NOT EXISTS offline_zipcode ( _id INTEGER PRIMARY KEY, country text, state text, city text,state_code VARCHAR(16), country_code VARCHAR(16), zipcode VARCHAR(16));";
+    
+        NSString* create_offline_salesrep=@"CREATE TABLE IF NOT EXISTS offline_salesrep ( _id INTEGER PRIMARY KEY, name text, code text);";
+    
         //
         
         AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
@@ -649,6 +658,11 @@ void decryptfield (sqlite3_context *context, int argc, sqlite3_value **argv) {
             
             [self execSql:create_offline_order db:db];
             
+            [self execSql:create_offline_country db:db];
+            [self execSql:create_offline_state db:db];
+            [self execSql:create_offline_zipcode db:db];
+            [self execSql:create_offline_salesrep db:db];
+            
             
         }