//
// HHOrederView.h
// redmany_oa
//
// Created by cwz on 15-11-16.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "OrderManagement.h"
@interface HHOrederView : UIView
@property (retain, nonatomic) IBOutlet UILabel *orderNO;
@property (retain, nonatomic) IBOutlet UILabel *orderState;
@property (retain, nonatomic) IBOutlet UILabel *orderName;
@property (retain, nonatomic) IBOutlet UILabel *unitPrice;
@property (retain, nonatomic) IBOutlet UILabel *quantity;
@property (retain, nonatomic) IBOutlet UILabel *totalAmount;
@property (retain, nonatomic) IBOutlet UIImageView *orderImage;
//@property (retain, nonatomic)FriendsViewController *friendsVC;
@property (retain, nonatomic)OrderManagement *delegate;
@end
//
// HHOrederView.m
// redmany_oa
//
// Created by cwz on 15-11-16.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import "HHOrederView.h"
#import "OrderManagement.h"
#import "ReceiptOrder.h"
@class orderData;
@interface HHOrederView()
- (void)pushReceipt;
@end
@implementation HHOrederView
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
- (IBAction)receiptOrder:(id)sender {
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"HH" bundle:nil];
OrderManagement *p = [storyBoard instantiateViewControllerWithIdentifier:@"OrderMge"];
self.delegate = p;
[self pushReceipt];
}
- (void)pushReceipt {
[_delegate pushReceiptOrder];
}
@end
-----------------------------------------------------------------------------------------------------------------------
//
// OrderManagement.h
// redmany_oa
//
// Created by cwz on 15-11-18.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OrderManagement : UIViewController
@property (retain, nonatomic) IBOutlet UITextField *orderIDtext;
- (void)pushReceiptOrder;
@end
//
// OrderManagement.m
// redmany_oa
//
// Created by cwz on 15-11-18.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import "OrderManagement.h"
#import "HHOrederView.h"
#import "SqliteOperator.h"
#import "HHOrderStatus.h"
#import "HHOrderCell.h"
#import "MJRefresh.h"
#import "ParentForm.h"
#import "MBProgressHUD.h"
#import "WJUserInfo.h"
#import "ReceiptOrder.h"
#define scrollX 0
#define scrollY 137
//#define scrollHigh 431
#define orderHigh 128
@interface OrderManagement ()<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,DeleteMicroCommandFinishDelegate>
@property(nonatomic,strong)NSMutableArray *datas;
@property(nonatomic,weak)UITableView *orderTableView;
@property(nonatomic,copy)NSString*state1;
@property(nonatomic,copy)NSString*state2;
@property(nonatomic,copy)NSString*orderID;
@property (retain, nonatomic) IBOutlet UIButton *sureBnt;
@property (retain, nonatomic) IBOutlet UIButton *payBtn;
@property (retain, nonatomic) IBOutlet UIButton *unFinishBtn;
@property (retain, nonatomic) IBOutlet UIButton *finishBtn;
@end
@implementation OrderManagement
- (void)pushReceiptOrder {
NSLog(@"---------");
UIStoryboard *storyBoart = [UIStoryboard storyboardWithName:@"HH" bundle:nil];
ReceiptOrder *receipt = [storyBoart instantiateViewControllerWithIdentifier:@"Receipt"];
[self.navigationController pushViewController:receipt animated:YES]; // 麻烦帮忙看看为什么不能跳转到ReceiptOrder 这个控制器的界面中
}
// HHOrederView.h
// redmany_oa
//
// Created by cwz on 15-11-16.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "OrderManagement.h"
@interface HHOrederView : UIView
@property (retain, nonatomic) IBOutlet UILabel *orderNO;
@property (retain, nonatomic) IBOutlet UILabel *orderState;
@property (retain, nonatomic) IBOutlet UILabel *orderName;
@property (retain, nonatomic) IBOutlet UILabel *unitPrice;
@property (retain, nonatomic) IBOutlet UILabel *quantity;
@property (retain, nonatomic) IBOutlet UILabel *totalAmount;
@property (retain, nonatomic) IBOutlet UIImageView *orderImage;
//@property (retain, nonatomic)FriendsViewController *friendsVC;
@property (retain, nonatomic)OrderManagement *delegate;
@end
//
// HHOrederView.m
// redmany_oa
//
// Created by cwz on 15-11-16.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import "HHOrederView.h"
#import "OrderManagement.h"
#import "ReceiptOrder.h"
@class orderData;
@interface HHOrederView()
- (void)pushReceipt;
@end
@implementation HHOrederView
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
- (IBAction)receiptOrder:(id)sender {
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"HH" bundle:nil];
OrderManagement *p = [storyBoard instantiateViewControllerWithIdentifier:@"OrderMge"];
self.delegate = p;
[self pushReceipt];
}
- (void)pushReceipt {
[_delegate pushReceiptOrder];
}
@end
-----------------------------------------------------------------------------------------------------------------------
//
// OrderManagement.h
// redmany_oa
//
// Created by cwz on 15-11-18.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OrderManagement : UIViewController
@property (retain, nonatomic) IBOutlet UITextField *orderIDtext;
- (void)pushReceiptOrder;
@end
//
// OrderManagement.m
// redmany_oa
//
// Created by cwz on 15-11-18.
// Copyright (c) 2015年 qq. All rights reserved.
//
#import "OrderManagement.h"
#import "HHOrederView.h"
#import "SqliteOperator.h"
#import "HHOrderStatus.h"
#import "HHOrderCell.h"
#import "MJRefresh.h"
#import "ParentForm.h"
#import "MBProgressHUD.h"
#import "WJUserInfo.h"
#import "ReceiptOrder.h"
#define scrollX 0
#define scrollY 137
//#define scrollHigh 431
#define orderHigh 128
@interface OrderManagement ()<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,DeleteMicroCommandFinishDelegate>
@property(nonatomic,strong)NSMutableArray *datas;
@property(nonatomic,weak)UITableView *orderTableView;
@property(nonatomic,copy)NSString*state1;
@property(nonatomic,copy)NSString*state2;
@property(nonatomic,copy)NSString*orderID;
@property (retain, nonatomic) IBOutlet UIButton *sureBnt;
@property (retain, nonatomic) IBOutlet UIButton *payBtn;
@property (retain, nonatomic) IBOutlet UIButton *unFinishBtn;
@property (retain, nonatomic) IBOutlet UIButton *finishBtn;
@end
@implementation OrderManagement
- (void)pushReceiptOrder {
NSLog(@"---------");
UIStoryboard *storyBoart = [UIStoryboard storyboardWithName:@"HH" bundle:nil];
ReceiptOrder *receipt = [storyBoart instantiateViewControllerWithIdentifier:@"Receipt"];
[self.navigationController pushViewController:receipt animated:YES]; // 麻烦帮忙看看为什么不能跳转到ReceiptOrder 这个控制器的界面中
}