//
//  CartViewController.h
//  RedAnt ERP Mobile
//
//  Created by Ray on 14-6-6.
//  Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "CommonGridViewController.h"
#import "ModelItemCell.h"
#import "CommonEditorViewController.h"
#import "ActiveViewController.h"
@interface CartViewController : ActiveViewController <UITableViewDataSource,UITableViewDelegate,CommonEditorViewControllerDelegate/*,CommonGridViewControllerDelegate,ModelItemCellDelegate*/,UIAlertViewDelegate>
@property (strong, nonatomic) IBOutlet UITableView *itemListTable;
@property (strong, nonatomic) IBOutlet UIView *cartItemView;
//@property (strong, nonatomic) IBOutlet UIView *orderCreateView;
//@property (strong,nonatomic) NSMutableDictionary* content_data;
@property (strong,nonatomic) NSMutableArray* content_arr;
@property (strong,nonatomic) NSDictionary* freejson;

@property (strong,nonatomic) NSString* orderid;
@property (strong, nonatomic) IBOutlet UIButton *btnselect;
@property (strong, nonatomic) IBOutlet UIButton *btndelete;
@property (strong, nonatomic)  NSIndexPath *indexPath;
@property double total;
@property double total_cuft;
@property double total_weight;
@property int total_carton;
@property int total_item;
@property int total_QTY;

@property (strong,nonatomic) NSString* notes;

@property (strong, nonatomic) IBOutlet UILabel *labelTotal;

@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;
-(void)placeOrder;

@property (nonatomic , copy) void (^onFinishLoad)();
//@property (strong, nonatomic) IBOutlet UITableView *orderInfoTableView;
//@property (strong, nonatomic) IBOutlet UITextField *editCount;
//@property (strong, nonatomic) IBOutlet UITextField *editOrderID;
//@property (strong, nonatomic) IBOutlet UIButton *btnAddToOrder;
@property (strong, nonatomic) IBOutlet UIView *toolpanel;
@property (strong, nonatomic) IBOutlet UIToolbar *toolbar;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *btn_addwish;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *btn_delete;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *btn_edit_select;

@property (strong, nonatomic) IBOutlet UILabel *label_net_err;

@property (strong, nonatomic) NSMutableArray *edit_select_arr;
@property (strong, nonatomic) NSString *scanner_code;

@property (strong, nonatomic) IBOutlet UILabel *label_cuft;
@property (strong, nonatomic) IBOutlet UILabel *label_weight;
@property (strong, nonatomic) IBOutlet UILabel *label_carton;
@property (strong, nonatomic) IBOutlet UILabel *label_qty;
@property (strong, nonatomic) IBOutlet UILabel *label_items;
@property (strong, nonatomic) IBOutlet UILabel *label_notes;


@end
