RulesAddViewController.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm; // 확인 버튼
  30. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  31. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  32. @end
  33. @interface RulesAddHeaderTableViewCell : KNTableViewCell2
  34. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  35. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  36. @end
  37. @interface RulesAddTableViewCell : KNTableViewCell2
  38. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  39. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  40. @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
  41. @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
  42. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  43. @end
  44. @interface RulesAddPushTableViewCell : KNTableViewCell2
  45. @property (weak, nonatomic) IBOutlet CustomTextView *txvMessage;
  46. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  47. @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm; // 확인 버튼
  48. @end
  49. @interface RulesAddConditionHeaderTableViewCell : KNTableViewCell2
  50. @property (weak, nonatomic) IBOutlet CustomCheckBox *chkConditions;
  51. @property (weak, nonatomic) IBOutlet CustomButton *btnConditions;
  52. @end
  53. @interface RulesAddConditionTableViewCell : KNTableViewCell2
  54. @property (weak, nonatomic) IBOutlet UIView *container;
  55. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight;
  56. @end
  57. @interface RulesAddFooterTableViewCell : KNTableViewCell2
  58. @end