| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- //
- // DailyReconciliationCell.m
- // IBOSSmini
- //
- // Created by apple on 2017/5/16.
- // Copyright © 2017年 elongtian. All rights reserved.
- //
- #import "DailyReconciliationCell.h"
- #import "UIColor+hexColor.h"
- @implementation DailyReconciliationCell
- /**
- 高度
- @return <#return value description#>
- */
- - (int)height{
- return 40;
- }
- /**
- 后台代码创建单元cell
-
- @param style <#style description#>
- @param reuseIdentifier <#reuseIdentifier description#>
- @return <#return value description#>
- */
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- [self initUI];
- return self;
- }
- /**
- ui
- */
- - (void)initUI{
- UIView *viewCell = [UIView new];
- viewCell.frame = CGRectMake(0, 0, Screen_Width, self.height);
- viewCell.backgroundColor = [UIColor whiteColor];
- [self.contentView addSubview:viewCell];
-
- CGFloat backY = 8;
- CGFloat lblx = 20;
- CGFloat lblwidth = 130;
- CGFloat fontsize = 13;
- CGFloat valueheight = 25;
-
- _lblTotalReceiptView = [UILabel new];
- _lblTotalReceiptView.frame=CGRectMake(Screen_Width - 2*lblwidth - 10 - 2, backY, lblwidth, valueheight);
- _lblTotalReceiptView.font = [UIFont systemFontOfSize:fontsize];
- //_totalReceiptView=@"收款总额";
- _lblTotalReceiptView.textAlignment = NSTextAlignmentRight;
- [viewCell addSubview:_lblTotalReceiptView];
-
- _lblTotalReceivableView = [UILabel new];
- _lblTotalReceivableView.frame=CGRectMake(Screen_Width - lblwidth - 10, backY, lblwidth, valueheight);
- _lblTotalReceivableView.font = [UIFont systemFontOfSize:fontsize];
- //_totalReceivableView.text=@"货款总额";
- _lblTotalReceivableView.textAlignment = NSTextAlignmentRight;
- [viewCell addSubview:_lblTotalReceivableView];
-
- _lblOrgNameView = [UILabel new];
- _lblOrgNameView.frame=CGRectMake(lblx, backY, Screen_Width - CGRectGetMinX(_lblTotalReceiptView.frame) - lblx, valueheight);
- _lblOrgNameView.font = [UIFont systemFontOfSize:fontsize];
- //_orgNameView.text=@"部门";
- [viewCell addSubview:_lblOrgNameView];
-
- UIView *viewBackgroud = [UIView new];
- viewBackgroud.frame = CGRectMake(0, CGRectGetMaxY(viewCell.frame)-1, Screen_Width, 1);
- viewBackgroud.backgroundColor = LineBackgroundColor;
- [viewCell addSubview:viewBackgroud];
- }
- @end
|