OrderDetailModelCell.m 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // OrderDetailModelCell.m
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 8/28/15.
  6. // Copyright (c) 2015 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "OrderDetailModelCell.h"
  9. #import "RAUtils.h"
  10. #import "BundleModelViewController.h"
  11. #import "const.h"
  12. #import "config.h"
  13. #if defined(BUILD_HOMER) || defined(BUILD_GATIT)
  14. #import "MasterModelViewController.h"
  15. #endif
  16. @implementation OrderDetailModelCell
  17. - (void)awakeFromNib {
  18. // Initialization code
  19. }
  20. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  21. [super setSelected:selected animated:animated];
  22. // Configure the view for the selected state
  23. }
  24. - (IBAction)onBundleClick:(UIButton *)sender {
  25. UIViewController* vc=[RAUtils getViewController :sender];
  26. BundleModelViewController * bundleVC =[ vc.storyboard instantiateViewControllerWithIdentifier:@"BundleModelViewController"];
  27. bundleVC.content_data = self.bundle_item;
  28. UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:bundleVC] ;
  29. navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
  30. [vc presentViewController:navi animated:YES completion:^{
  31. // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
  32. DebugLog(@"bundle present.........");
  33. // self.btop = false;
  34. // <#code#>
  35. }];
  36. }
  37. - (IBAction)masterBtnClick:(UIButton *)sender {
  38. UIViewController* vc=[RAUtils getViewController :sender];
  39. // BundleModelViewController * bundleVC =[ vc.storyboard instantiateViewControllerWithIdentifier:@"BundleModelViewController"];
  40. //
  41. // bundleVC.content_data = self.master_items;
  42. //
  43. // UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:bundleVC] ;
  44. //
  45. //
  46. //
  47. //
  48. //
  49. //
  50. // navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
  51. // [vc presentViewController:navi animated:YES completion:^{
  52. //
  53. // }];
  54. #if defined(BUILD_HOMER) || defined(BUILD_GATIT)
  55. MasterModelViewController *masterModelVC = [MasterModelViewController buildMasterModelViewController];
  56. masterModelVC.content_data = self.master_items;
  57. UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:masterModelVC];
  58. [vc presentViewController:nav animated:YES completion:nil];
  59. #endif
  60. }
  61. @end