RulesAddViewController.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 CustomLabel *lblTitle;
  20. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  21. #pragma mark - Instance Methods
  22. - (IBAction)btnConfirmTouched:(id)sender;
  23. - (IBAction)btnCancelTouched:(id)sender;
  24. + (BOOL)hasDeleteNode:(ItemModel *)deviceItem;
  25. + (void)modifyAction:(ItemSubModel *)subItem refDevices:(NSMutableArray<ItemModel> *)refDevices tableView:(CustomTableView *)tableView;
  26. @end
  27. @interface RulesAddTitleTableViewCell : KNTableViewCell2
  28. @property (weak, nonatomic) IBOutlet CustomTextField *txtRuleTitle;
  29. @end
  30. @interface RulesAddHeaderTableViewCell : KNTableViewCell2
  31. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  32. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  33. @end
  34. @interface RulesAddTableViewCell : KNTableViewCell2
  35. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  36. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  37. @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
  38. @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
  39. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  40. @property (weak, nonatomic) IBOutlet UIView *bottomLine;
  41. @end
  42. @interface RulesAddPushTableViewCell : KNTableViewCell2
  43. @property (weak, nonatomic) IBOutlet CustomTextView *txvMessage;
  44. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  45. @end
  46. @interface RulesAddConditionHeaderTableViewCell : KNTableViewCell2
  47. @property (weak, nonatomic) IBOutlet CustomCheckBox *chkConditions;
  48. @end
  49. @interface RulesAddConditionTableViewCell : KNTableViewCell2
  50. @property (weak, nonatomic) IBOutlet UIView *container;
  51. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight;
  52. @end
  53. @interface RulesAddFooterTableViewCell : KNTableViewCell2
  54. @end