|
|
@@ -17,6 +17,11 @@
|
|
|
@property (nonatomic, strong) HJLabelContentView *workNumberView;
|
|
|
@property (nonatomic, strong) HJLabelContentView *nameView;
|
|
|
|
|
|
+@property (nonatomic, strong) HJLabelContentView *grossPaymentView;//应发合计
|
|
|
+@property (nonatomic, strong) HJLabelContentView *totalChargebackView;//扣款合计
|
|
|
+@property (nonatomic, strong) HJLabelContentView *netPaymentView;//实发工资
|
|
|
+
|
|
|
+
|
|
|
@property (nonatomic, strong) HJLabelContentView *lastListView;
|
|
|
|
|
|
@end
|
|
|
@@ -40,6 +45,11 @@
|
|
|
[self addSubview:self.companyView];
|
|
|
[self addSubview:self.nameView];
|
|
|
[self addSubview:self.workNumberView];
|
|
|
+
|
|
|
+ [self addSubview:self.grossPaymentView];
|
|
|
+ [self addSubview:self.totalChargebackView];
|
|
|
+ [self addSubview:self.netPaymentView];
|
|
|
+
|
|
|
|
|
|
[self.monthView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.top.equalTo(self.mas_top).offset(0);
|
|
|
@@ -70,6 +80,11 @@
|
|
|
self.nameView.contentLabel.text = data[kHJSalaryKeyEmployeeName][kHJSalaryKeyInnerValue];
|
|
|
self.workNumberView.contentLabel.text = data[kHJSalaryKeyEmployeeNumber][kHJSalaryKeyInnerValue];
|
|
|
|
|
|
+ self.grossPaymentView.contentLabel.text = data[kHJSalaryKeyGrossPayment][kHJSalaryKeyInnerValue];
|
|
|
+ self.totalChargebackView.contentLabel.text = data[kHJSalaryKeyCutPayment][kHJSalaryKeyInnerValue];
|
|
|
+ self.netPaymentView.contentLabel.text = data[kHJSalaryKeyNetPayment][kHJSalaryKeyInnerValue];
|
|
|
+
|
|
|
+
|
|
|
self.lastListView = self.workNumberView;
|
|
|
NSArray *listArray = data[kHJSalaryKeyPayrollDetail];
|
|
|
|
|
|
@@ -86,13 +101,35 @@
|
|
|
make.left.right.equalTo(self).offset(0);
|
|
|
make.top.equalTo(self.lastListView.mas_bottom).offset(0);
|
|
|
make.height.mas_equalTo(58);
|
|
|
- if (i == listArray.count - 1)
|
|
|
- {
|
|
|
- make.bottom.equalTo(self.mas_bottom).offset(0);
|
|
|
- }
|
|
|
+// if (i == listArray.count - 1)
|
|
|
+// {
|
|
|
+// make.bottom.equalTo(self.mas_bottom).offset(0);
|
|
|
+// }
|
|
|
}];
|
|
|
self.lastListView = listView;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ [self.grossPaymentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+
|
|
|
+ make.top.equalTo(self.lastListView.mas_bottom).offset(0);
|
|
|
+ make.left.right.equalTo(self).offset(0);
|
|
|
+ make.height.mas_equalTo(58);
|
|
|
+ }];
|
|
|
+ [self.totalChargebackView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+
|
|
|
+ make.top.equalTo(self.grossPaymentView.mas_bottom).offset(0);
|
|
|
+ make.left.right.equalTo(self).offset(0);
|
|
|
+ make.height.mas_equalTo(58);
|
|
|
+ }];
|
|
|
+ [self.netPaymentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+
|
|
|
+ make.top.equalTo(self.totalChargebackView.mas_bottom).offset(0);
|
|
|
+ make.left.right.equalTo(self).offset(0);
|
|
|
+ make.height.mas_equalTo(58);
|
|
|
+ make.bottom.equalTo(self.mas_bottom).offset(0);
|
|
|
+ }];
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -134,4 +171,33 @@
|
|
|
}
|
|
|
return _nameView;
|
|
|
}
|
|
|
+- (HJLabelContentView *)grossPaymentView {
|
|
|
+
|
|
|
+ if (_grossPaymentView == nil)
|
|
|
+ {
|
|
|
+ _grossPaymentView = [[HJLabelContentView alloc]init];
|
|
|
+ _grossPaymentView.titleLabel.text = @"应发合计:";
|
|
|
+ }
|
|
|
+ return _grossPaymentView;
|
|
|
+}
|
|
|
+- (HJLabelContentView *)totalChargebackView {
|
|
|
+
|
|
|
+ if (_totalChargebackView == nil)
|
|
|
+ {
|
|
|
+ _totalChargebackView = [[HJLabelContentView alloc]init];
|
|
|
+ _totalChargebackView.titleLabel.text = @"扣款合计:";
|
|
|
+ }
|
|
|
+ return _totalChargebackView;
|
|
|
+}
|
|
|
+- (HJLabelContentView *)netPaymentView {
|
|
|
+
|
|
|
+ if (_netPaymentView == nil)
|
|
|
+ {
|
|
|
+ _netPaymentView = [[HJLabelContentView alloc]init];
|
|
|
+ _netPaymentView.titleLabel.text = @"实发工资:";
|
|
|
+ }
|
|
|
+ return _netPaymentView;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
@end
|