//
//  OrderListViewController.h
//  RedAnt ERP Mobile
//
//  Created by Ray on 8/18/15.
//  Copyright (c) 2015 United Software Applications, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LoginViewController.h"
#import "ActiveViewController.h"
#import "EnumSelectViewController.h"

#define OL_DEFAULT 0
#define OL_OPEN 1
@interface OrderListViewController : ActiveViewController <UIAlertViewDelegate,EnumSelectViewControllerDelegate>
//@property (strong, nonatomic) NSMutableDictionary* content_data;
//@property (strong,nonatomic) UIButton* btnrefresh;
@property (strong, nonatomic) IBOutlet UITableView *table_order;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;
@property (strong,nonatomic) NSMutableArray * content_data;
@property dispatch_queue_t  loading_queue;
@property int offset;
@property int limit;
@property bool showNavibar;
@property bool reset_result;
//@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong,nonatomic) NSString* load_more_hint;
@property (strong,nonatomic) NSString* time_zone;
@property (strong, nonatomic) IBOutlet UIToolbar *toolbarView;

@property (strong, nonatomic) IBOutlet UISearchBar *searchbar;
@property (strong,nonatomic) NSString* keywords;
@property bool reset;
@property bool norefresh;
@property (nonatomic , copy) void (^selectOrder)(NSMutableDictionary * order_detail);
@property (strong, nonatomic) IBOutlet UIBarButtonItem *btnStatusFilter;
@property (strong, nonatomic) NSString* statusFilter;
@property (nonatomic , copy) void (^onCancel)();
@property (strong, nonatomic) IBOutlet UIBarButtonItem *btn_newOrder;

@property (strong,nonatomic) NSMutableDictionary * status_cadedate;
//@property (strong, nonatomic) IBOutlet UIView *toolbarView;
@property (strong, nonatomic) IBOutlet UILabel *label_filter;

@property (strong, nonatomic) IBOutlet UILabel *label_net_err;
@property int init_style;
@property (strong,nonatomic) NSString* customer_id;
@end
