//
//  GS1DataBar.h
//  22222222222222
//
//  Created by liangchenying on 12-4-9.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "POSSDK.h"
#define ButtonEnableAndAlpha(button, i, j)	[button setEnabled:i];[button setAlpha:j];

@interface GS1DataBar : UIViewController<UITextFieldDelegate>
 
@property (nonatomic, retain) NSMutableArray *array_BarcodeType;
@property (nonatomic, retain) NSMutableArray *array_BasicElementWidth;
@property (nonatomic, retain) NSMutableArray *array_BasicElementHeight;
@property (nonatomic, retain) NSMutableArray *array_SeparatorHeight;
@property (nonatomic, retain) NSMutableArray *array_SegmentNumber;
@property (nonatomic, retain) NSMutableArray *array_HRI;
@property (nonatomic, retain) NSMutableArray *array_AI;

@property (nonatomic, assign) NSInteger selectedBarcodeType;
@property (nonatomic, assign) NSInteger selectedBasicElementWidth;
@property (nonatomic, assign) NSInteger selectedBasicElementHeight;
@property (nonatomic, assign) NSInteger selectedSeparatorHeight;
@property (nonatomic, assign) NSInteger selectedSegmentNumber;
@property (nonatomic, assign) NSInteger selectedHRI;
@property (nonatomic, assign) NSInteger selectedAI;

@property (retain, nonatomic) IBOutlet UIButton *Back;
@property (retain, nonatomic) IBOutlet UITextField *GS1DataBarData;
@property (retain, nonatomic) IBOutlet UILabel *DataLabel;

@property (retain, nonatomic) IBOutlet UITextField *GS1DataBarBarcodeHeight;
@property (retain, nonatomic) IBOutlet UILabel *BarcodeheightLabel;

@property (retain, nonatomic) IBOutlet UIButton *BarcodeTypeButton;
@property (retain, nonatomic) IBOutlet UILabel *BarcodeType;

@property (retain, nonatomic) IBOutlet UIButton *BasicElementWidthButton;
@property (retain, nonatomic) IBOutlet UILabel *ElementWidth;

@property (retain, nonatomic) IBOutlet UIButton *BasicElementHeightButton;
@property (retain, nonatomic) IBOutlet UILabel *ElementHeight;

@property (retain, nonatomic) IBOutlet UIButton *SeparatorHeightButton;
@property (retain, nonatomic) IBOutlet UILabel *SeparatorHeight;

@property (retain, nonatomic) IBOutlet UIButton *HRIButton;
@property (retain, nonatomic) IBOutlet UILabel *HRI;

@property (retain, nonatomic) IBOutlet UIButton *AIButton;
@property (retain, nonatomic) IBOutlet UILabel *AI;

@property (retain, nonatomic) IBOutlet UIButton *Cut;
@property (retain, nonatomic) IBOutlet UIButton *GS1DataBarPrint;
@property (retain, nonatomic) IBOutlet UILabel *SegmentNumber;

@property (retain, nonatomic) IBOutlet UIButton *SegmentNumberButton;

- (id)initWithNibNamePOSSDK:(NSString *)nibNameOrNil pos_sdk:(POSSDK*)pos_sdk bundle:(NSBundle *)nibBundleOrNil;

@end


