//
//  DeviceNodePopupView.h
//  kneet2
//
//  Created by Jason Lee on 11/5/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

@import UIKit;
#import "CustomAlertView.h"
#import "JDViewController.h"

@class CustomImageView;
@class CustomCheckBox;
@class CustomRadioButton;
@class ItemModel;

@interface DeviceNodePopupView : CustomAlertView

@property (weak, nonatomic) ItemModel *refDevice;
@property (weak, nonatomic, readonly) ItemSubModel *selectedNode;

@property (strong, nonatomic) NSString *typeCode;
@property (assign, nonatomic) BOOL isModifyMode;
@property (assign, nonatomic) BOOL passAlreadyAdded;

@property (weak, nonatomic) IBOutlet CustomTableView *tableView;
@property (weak, nonatomic) IBOutlet CustomImageView *imgvDevice;

- (id)initFromNib;

@end


@interface DeviceNodePopupTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet CustomLabel *lblNodeName;

@property (weak, nonatomic) IBOutlet UIView *controlContainer;
@property (weak, nonatomic) IBOutlet CustomCheckBox *chkSelect;
@property (weak, nonatomic) IBOutlet CustomRadioButton *rdoSelect;
@property (weak, nonatomic) IBOutlet CustomImageView *imgvDevice;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerWidth;
@end
