OrderDetailModelCell.m 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 =[[UIStoryboard storyboardWithName:@"ERP_Mobile_Model" bundle:nil] 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. #if defined(BUILD_HOMER) || defined(BUILD_GATIT)
  39. UIViewController* vc=[RAUtils getViewController :sender];
  40. MasterModelViewController *masterModelVC = [MasterModelViewController buildMasterModelViewController];
  41. masterModelVC.content_data = self.master_items;
  42. UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:masterModelVC];
  43. [vc presentViewController:nav animated:YES completion:nil];
  44. #endif
  45. }
  46. @end