RulesAddViewController.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //
  2. // RulesAddViewController.h
  3. // kneet2
  4. //
  5. // Created by Jason Lee on 11/20/15.
  6. // Copyright © 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class CustomCheckBox;
  10. @class CustomLabel;
  11. @class CustomImageView;
  12. @class CustomButton;
  13. @class CustomTextView;
  14. @class CustomTextField;
  15. @class RuleDetailModel;
  16. @interface RulesAddViewController : JDViewController
  17. #pragma mark - Properties
  18. @property (strong, nonatomic) RuleDetailModel *refRuleDetail;
  19. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  20. #pragma mark - Instance Methods
  21. - (IBAction)btnConfirmTouched:(id)sender;
  22. - (IBAction)btnCancelTouched:(id)sender;
  23. + (BOOL)hasDeleteNode:(ItemModel *)deviceItem;
  24. + (void)modifyAction:(ItemSubModel *)subItem refDevices:(NSMutableArray<ItemModel> *)refDevices tableView:(CustomTableView *)tableView;
  25. @end
  26. @interface RulesAddTitleTableViewCell : KNTableViewCell
  27. @property (weak, nonatomic) IBOutlet CustomTextField *txtRuleTitle;
  28. @end
  29. @interface RulesAddHeaderTableViewCell : KNTableViewCell
  30. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  31. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  32. @end
  33. @interface RulesAddTableViewCell : KNTableViewCell
  34. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  35. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  36. @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
  37. @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
  38. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  39. @property (weak, nonatomic) IBOutlet UIView *bottomLine;
  40. @end
  41. @interface RulesAddPushTableViewCell : KNTableViewCell
  42. @property (weak, nonatomic) IBOutlet CustomTextView *txvMessage;
  43. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  44. @end
  45. @interface RulesAddConditionHeaderTableViewCell : KNTableViewCell
  46. @property (weak, nonatomic) IBOutlet CustomCheckBox *chkConditions;
  47. @end
  48. @interface RulesAddConditionTableViewCell : KNTableViewCell
  49. @property (weak, nonatomic) IBOutlet UIView *container;
  50. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight;
  51. @end
  52. @interface RulesAddFooterTableViewCell : KNTableViewCell
  53. @end