RulesAddViewController.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 UIImageView *imgBg;
  35. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  36. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  37. @end
  38. @interface RulesAddTableViewCell : KNTableViewCell2
  39. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  40. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  41. @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
  42. @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
  43. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  44. @end
  45. @interface RulesAddTextTableViewCell : KNTableViewCell2
  46. @property (weak, nonatomic) IBOutlet UIImageView *imgTxtBg;
  47. @property (weak, nonatomic) IBOutlet CustomTextView *txtView;
  48. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  49. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  50. @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm;
  51. - (void)registTvStatusChangeBlock:(void (^)(NSInteger tag, CGFloat height)) statusChangeBlock ;
  52. @end
  53. @interface RulesAddPushTableViewCell : KNTableViewCell2
  54. @property (weak, nonatomic) IBOutlet CustomTextView *txvMessage;
  55. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  56. @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm; // 확인 버튼
  57. @end
  58. @interface RulesAddConditionHeaderTableViewCell : KNTableViewCell2
  59. @property (weak, nonatomic) IBOutlet CustomCheckBox *chkConditions;
  60. @property (weak, nonatomic) IBOutlet CustomButton *btnConditions;
  61. @end
  62. @interface RulesAddConditionTableViewCell : KNTableViewCell2
  63. @property (weak, nonatomic) IBOutlet UIView *container;
  64. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight;
  65. @end
  66. @interface RulesAddFooterTableViewCell : KNTableViewCell2
  67. @end