RulesDetailViewController.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //
  2. // RulesDetailViewController.h
  3. // kneet2
  4. //
  5. // Created by Jason Lee on 11/30/15.
  6. // Copyright © 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class RuleModel;
  10. @class CustomLabel;
  11. @class CustomImageView;
  12. @class CustomButton;
  13. @interface RulesDetailViewController : JDViewController
  14. #pragma mark - Properties
  15. @property (strong, nonatomic) RuleModel *refRule;
  16. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  17. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  18. #pragma mark - Instance Methods
  19. - (void)requestRuleDetail;
  20. - (IBAction)btnOptionTouched:(id)sender;
  21. - (IBAction)btnCloseTouched:(id)sender;
  22. @end
  23. @interface RulesDetailTitleTableViewCell : KNTableViewCell2
  24. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleTitle;
  25. @end
  26. @interface RulesDetailHeaderTableViewCell : KNTableViewCell2
  27. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  28. @end
  29. @interface RulesDetailTableViewCell : KNTableViewCell2
  30. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  31. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  32. @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
  33. @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
  34. @property (weak, nonatomic) IBOutlet UIView *bottomLine;
  35. @end
  36. @interface RulesDetailPushTableViewCell : KNTableViewCell2
  37. @property (weak, nonatomic) IBOutlet CustomImageView *imgvPush;
  38. @property (weak, nonatomic) IBOutlet CustomLabel *lblMessage;
  39. @end
  40. @interface RulesDetailConditionHeaderTableViewCell : KNTableViewCell2
  41. @end
  42. @interface RulesDetailConditionTableViewCell : KNTableViewCell2
  43. @property (weak, nonatomic) IBOutlet UIView *container;
  44. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight;
  45. @end
  46. @interface RulesDetailFooterTableViewCell : KNTableViewCell2
  47. @property (weak, nonatomic) IBOutlet UIView *topLine;
  48. @end
  49. @interface RulesDetailExecutionTableViewCell : KNTableViewCell2
  50. @property (weak, nonatomic) IBOutlet CustomButton *btnUseRule;
  51. @property (weak, nonatomic) IBOutlet CustomLabel *lblExecutionDate;
  52. @property (weak, nonatomic) IBOutlet KNView *statusView;
  53. @property (weak, nonatomic) IBOutlet UISwitch *switchUseRule;
  54. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintStatusViewHeight;
  55. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintStatusViewBottom;
  56. @end