فهرست منبع

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

Pen Li 8 سال پیش
والد
کامیت
4087e8187b
1فایلهای تغییر یافته به همراه28 افزوده شده و 14 حذف شده
  1. 28 14
      RedAnt ERP Mobile/common/Functions/order/OrderDetailModelCell.m

+ 28 - 14
RedAnt ERP Mobile/common/Functions/order/OrderDetailModelCell.m

@@ -11,6 +11,13 @@
 #import "BundleModelViewController.h"
 #import "const.h"
 
+#import "config.h"
+#if defined(BUILD_HOMER) || defined(BUILD_GATIT)
+
+#import "MasterModelViewController.h"
+
+#endif
+
 @implementation OrderDetailModelCell
 
 - (void)awakeFromNib {
@@ -56,22 +63,29 @@
     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];
     
-    navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
-    [vc presentViewController:navi animated:YES completion:^{
-
-    }];
-
+#endif
     
 }