MyApprovalDetailCell.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //
  2. // MyApprovalDetailCell.h
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/11/4.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "TDTableViewCell.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^MyApprovalDetailCellBlock)(UIButton *addbuton);
  11. @class MyApprovalDetailModel;
  12. @class FormFieldsModel;
  13. @interface MyApprovalDetailCell : TDTableViewCell
  14. #pragma mark - block
  15. @property (nonatomic, copy) MyApprovalDetailCellBlock touchBlockA1;
  16. @property (nonatomic, copy) MyApprovalDetailCellBlock touchBlockA2;
  17. @property (nonatomic, copy) MyApprovalDetailCellBlock touchBlockB1;
  18. @property (nonatomic, copy) MyApprovalDetailCellBlock touchBlockB2;
  19. #pragma mark - 1
  20. ///审批头像 背景
  21. @property (weak, nonatomic) IBOutlet UIView *iconBackView;
  22. /// 审批头像
  23. @property (weak, nonatomic) IBOutlet UIImageView *iconImage;
  24. /// 审批人名称
  25. @property (weak, nonatomic) IBOutlet UILabel *namelab;
  26. /// 审批名称
  27. @property (weak, nonatomic) IBOutlet UILabel *nameValueLab;
  28. /// 审批状态图标
  29. @property (weak, nonatomic) IBOutlet UIImageView *approvalImagview;
  30. /// 审批编号 名称
  31. @property (weak, nonatomic) IBOutlet UILabel *departNumberLab;
  32. /// 审批编号 值
  33. @property (weak, nonatomic) IBOutlet UILabel *departNumberValueLab;
  34. /// 审批部门 名称
  35. @property (weak, nonatomic) IBOutlet UILabel *departNameLab;
  36. /// 审批部门 值
  37. @property (weak, nonatomic) IBOutlet UILabel *departNameValueLab;
  38. /// 提交时间 名称
  39. @property (weak, nonatomic) IBOutlet UILabel *departTimeLab;
  40. /// 提交时间 值
  41. @property (weak, nonatomic) IBOutlet UILabel *departTimeValueLab;
  42. #pragma mark - 2
  43. @property (weak, nonatomic) IBOutlet UILabel *approDerailText;
  44. @property (weak, nonatomic) IBOutlet UILabel *approDerailTextValue;
  45. @property (weak, nonatomic) IBOutlet UILabel *addfileTextlab;
  46. @property (weak, nonatomic) IBOutlet TDButton *fileButton;
  47. @property (weak, nonatomic) IBOutlet UIImageView *imgeView1;
  48. @property (weak, nonatomic) IBOutlet UILabel *firstNameLab;
  49. @property (weak, nonatomic) IBOutlet UILabel *firstHanderText;
  50. @property (weak, nonatomic) IBOutlet UILabel *firstTime;
  51. #pragma mark - 3
  52. @property (weak, nonatomic) IBOutlet UIImageView *imgeView2;
  53. @property (weak, nonatomic) IBOutlet UILabel *secondNameLab;
  54. @property (weak, nonatomic) IBOutlet UILabel *secondHanderText;
  55. @property (weak, nonatomic) IBOutlet UILabel *secondTime;
  56. @property (weak, nonatomic) IBOutlet UIImageView *imgeView3;
  57. @property (weak, nonatomic) IBOutlet UILabel *thirdNameLab;
  58. @property (weak, nonatomic) IBOutlet UILabel *thirdHanderText;
  59. @property (weak, nonatomic) IBOutlet UILabel *thirdTime;
  60. /// 抄送人lab
  61. @property (weak, nonatomic) IBOutlet UILabel *chaosongrenlab;
  62. @property (weak, nonatomic) IBOutlet UIButton *addPeopleButton4;
  63. #pragma mark - 4
  64. @property (weak, nonatomic) IBOutlet UIButton *addFilebutton5;
  65. #pragma mark - 5
  66. @property (weak, nonatomic) IBOutlet UILabel *name5Label;
  67. #pragma mark - 6
  68. @property (weak, nonatomic) IBOutlet UILabel *keyLabel6;
  69. @property (weak, nonatomic) IBOutlet UILabel *valueLabel6;
  70. #pragma mark - 7 审批人
  71. @property (weak, nonatomic) IBOutlet UIImageView *imagView7;
  72. @property (weak, nonatomic) IBOutlet UILabel *nameLable7;
  73. @property (weak, nonatomic) IBOutlet UILabel *handerLabel7;
  74. @property (weak, nonatomic) IBOutlet UILabel *handerLabel27;
  75. @property (weak, nonatomic) IBOutlet UILabel *handerLabel37;
  76. @property (weak, nonatomic) IBOutlet UILabel *timeLabel7;
  77. @property (weak, nonatomic) IBOutlet UIView *bottomLineView;
  78. @property (weak, nonatomic) IBOutlet UIView *topLineView;
  79. #pragma mark - 8 审批流程
  80. @property (weak, nonatomic) IBOutlet UILabel *nameLabel8;
  81. #pragma mark - 9 多汗文本
  82. @property (weak, nonatomic) IBOutlet UILabel *nameLabel9;
  83. @property (weak, nonatomic) IBOutlet UILabel *valueLabel9;
  84. + (instancetype)cellWithTableView:(UITableView *)tableView AndIndex:(NSInteger)index;
  85. - (void)loadDetailData:(MyApprovalDetailModel *)model;
  86. - (void)loadDetailDataFormFieldsModel:(FormFieldsModel *)model;
  87. // 单行文本
  88. - (void)loadTextCellKey:(NSString *)key withValue:(NSString *)valueString;
  89. // 多行文本
  90. - (void)loadMutbleTextCellKey:(NSString *)key withValue:(NSString *)valueString;
  91. - (void)loadApprovalData:(NodesModel*)node;
  92. @end
  93. NS_ASSUME_NONNULL_END