Parcourir la source

1.修改Homer Place Order Master Model显示。

Pen Li il y a 8 ans
Parent
commit
3d9f5003c2
1 fichiers modifiés avec 29 ajouts et 11 suppressions
  1. 29 11
      RedAnt ERP Mobile/common/CommonEditor/CommonEditorCellModel.m

+ 29 - 11
RedAnt ERP Mobile/common/CommonEditor/CommonEditorCellModel.m

@@ -10,6 +10,13 @@
 #import "RAUtils.h"
 #import "BundleModelViewController.h"
 #import "const.h"
+#import "config.h"
+
+#if defined(BUILD_HOMER) || defined(BUILD_GATIT)
+
+#import "MasterModelViewController.h"
+
+#endif
 
 @implementation CommonEditorCellModel
 
@@ -63,21 +70,32 @@
     UIViewController* vc=[RAUtils getViewController :sender];
     
     
-    BundleModelViewController * bundleVC =[ vc.storyboard instantiateViewControllerWithIdentifier:@"BundleModelViewController"];
-    
-    bundleVC.content_data = self.master_items;
-    
-    UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:bundleVC] ;
-    
-    
+//    BundleModelViewController * bundleVC =[ vc.storyboard instantiateViewControllerWithIdentifier:@"BundleModelViewController"];
+//
+//    bundleVC.content_data = self.master_items;
+//
+//    UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:bundleVC] ;
+//
+//
+//
+//
+//
+//
+//    navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
+//    [vc presentViewController:navi animated:YES completion:^{
+//
+//    }];
+//
     
+#if defined(BUILD_HOMER) || defined(BUILD_GATIT)
     
+    MasterModelViewController *masterModelVC = [MasterModelViewController buildMasterModelViewController];
+    masterModelVC.content_data = self.master_items;
+    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:masterModelVC];
+    [vc presentViewController:nav animated:YES completion:nil];
     
+#endif
     
-    navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
-    [vc presentViewController:navi animated:YES completion:^{
-
-    }];
     
 }