Przeglądaj źródła

增加item search、category、search将item加入到portfolio中提示离线模式不支持

Pen Li 9 lat temu
rodzic
commit
c9ba9dc8de

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


+ 1 - 1
RedAnt ERP Mobile/common/CommonEditor/CommonEditorViewController.m

@@ -48,7 +48,7 @@
 
 @property (nonatomic,copy) NSString *urgency_timer_name;
 
-@property (nonatomic,assign) int level;
+@property (nonatomic,assign) int level;///<CommonEditor窗口层级
 
 @end
 

+ 7 - 0
RedAnt ERP Mobile/common/Functions/category/CategoryViewController.m

@@ -713,6 +713,13 @@
 -(void) addtoportfolio
 {
     
+    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
+    if (appDelegate.offline_mode) {
+        
+        [RAUtils message_alert:@"offline mode does not support this function." title:@"Add to Portfolio" controller:self] ;
+        return;
+    }
+    
     NSMutableDictionary* items =[[self.category_data objectForKey:@"items"] mutableCopy];
     
     int count = [[items valueForKey:@"count"] intValue];

+ 9 - 0
RedAnt ERP Mobile/common/Functions/search+itemsearch/ItemSearchViewController.m

@@ -1118,6 +1118,14 @@
 -(void) addtoportfolio
 {
     
+    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
+    if (appDelegate.offline_mode) {
+        
+        [RAUtils message_alert:@"offline mode does not support this function." title:@"Add to Portfolio" controller:self] ;
+        return;
+    }
+    
+    
     NSMutableDictionary* items =[[self.category_data objectForKey:@"items"] mutableCopy];
     
     int count = [[items valueForKey:@"count"] intValue];
@@ -1133,6 +1141,7 @@
         }
     }
     
+    
     if (!count) {
         [RAUtils message_alert:@"There is no model." title:@"Cannot Add to portfolio." controller:self] ;
         return;

+ 7 - 0
RedAnt ERP Mobile/common/Functions/search+itemsearch/SearchViewController.m

@@ -934,6 +934,13 @@
 -(void) addtoportfolio
 {
     
+    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
+    if (appDelegate.offline_mode) {
+        
+        [RAUtils message_alert:@"offline mode does not support this function." title:@"Add to Portfolio" controller:self] ;
+        return;
+    }
+    
     NSMutableDictionary* items =[[self.category_data objectForKey:@"items"] mutableCopy];
     
     int count = [[items valueForKey:@"count"] intValue];