Przeglądaj źródła

1.修改USAI,屏蔽Offline、Blog以及Policy。

Pen Li 8 lat temu
rodzic
commit
9fd48bd81d

+ 9 - 7
RedAnt ERP Mobile/common/Functions/MainViewController.m

@@ -1724,7 +1724,7 @@
     [map setValue:@"rect_change_password" forKey:@"img"];
     [map setValue:@"rect_change_password" forKey:@"img"];
     [self.sideMenuItems addObject:map.copy];
     [self.sideMenuItems addObject:map.copy];
 
 
-
+#ifdef BUILD_NPD
     if(appDelegate.user_type==USER_ROLE_EMPLOYEE)
     if(appDelegate.user_type==USER_ROLE_EMPLOYEE)
     {
     {
         [map setValue:@"Offline Setting" forKey:@"title"];
         [map setValue:@"Offline Setting" forKey:@"title"];
@@ -1732,6 +1732,8 @@
         [self.sideMenuItems addObject:map.copy];
         [self.sideMenuItems addObject:map.copy];
         
         
     }
     }
+#endif
+    
     if (appDelegate.user && appDelegate.user_type == USER_ROLE_CUSTOMER) {
     if (appDelegate.user && appDelegate.user_type == USER_ROLE_CUSTOMER) {
         [map setValue:@"Price Setting" forKey:@"title"];
         [map setValue:@"Price Setting" forKey:@"title"];
         //        [map setValue:@"rect_market_news" forKey:@"img"];
         //        [map setValue:@"rect_market_news" forKey:@"img"];
@@ -1821,17 +1823,17 @@
 #endif
 #endif
     
     
 #ifdef BUILD_USAI
 #ifdef BUILD_USAI
-    [map setValue:@"BLOG" forKey:@"title"];
-    [map setValue:@"rect_change_password" forKey:@"img"];
-    [self.sideMenuItems addObject:map.copy];
+//    [map setValue:@"BLOG" forKey:@"title"];
+//    [map setValue:@"rect_change_password" forKey:@"img"];
+//    [self.sideMenuItems addObject:map.copy];
     
     
     [map setValue:@"USAI Website" forKey:@"title"];
     [map setValue:@"USAI Website" forKey:@"title"];
     [map setValue:@"rect_change_password" forKey:@"img"];
     [map setValue:@"rect_change_password" forKey:@"img"];
     [self.sideMenuItems addObject:map.copy];
     [self.sideMenuItems addObject:map.copy];
     
     
-    [map setValue:@"USAI Policy" forKey:@"title"];
-    [map setValue:@"rect_change_password" forKey:@"img"];
-    [self.sideMenuItems addObject:map.copy];
+//    [map setValue:@"USAI Policy" forKey:@"title"];
+//    [map setValue:@"rect_change_password" forKey:@"img"];
+//    [self.sideMenuItems addObject:map.copy];
     
     
 //    [map setValue:@"Simplified Buying Program" forKey:@"title"];
 //    [map setValue:@"Simplified Buying Program" forKey:@"title"];
 //    [map setValue:@"rect_change_password" forKey:@"img"];
 //    [map setValue:@"rect_change_password" forKey:@"img"];