| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- //
- // OrderFeesDetailListCell.m
- // IBOSS
- //
- // Created by 关宏厚 on 2018/11/19.
- // Copyright © 2018 elongtian. All rights reserved.
- //
- #import "OrderFeesDetailListCell.h"
- @implementation OrderFeesDetailListCell
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
-
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
- self.layer.cornerRadius=CornerRadius;
- self.layer.backgroundColor = [UIColor clearColor].CGColor;
- self.layer.masksToBounds=YES;
- }
- return self;
- }
- - (void)setOrderFeesDetailCell:(OrderFeesDetailModel *)feesDetailModel
- {
- CGFloat heightRow = 31;
- CGFloat lblx = 10;
- CGFloat lbly = 0;
- CGFloat lblheight = 31;
- CGFloat valuey = 0;
- CGFloat valueheight = 31;
-
- UIView *vFeeNo = [UIView new];
- vFeeNo.frame=CGRectMake(0,0, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFeeNo];
-
- UILabel *lblTitleFeeNo = [UILabel new];
- lblTitleFeeNo.frame=CGRectMake(lblx, lbly, 80, lblheight);
- lblTitleFeeNo.text = @"费用单号:";
- lblTitleFeeNo.textColor = [UIColor blackColor];
- lblTitleFeeNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeNo addSubview:lblTitleFeeNo];
-
- UILabel *lblFeeNo = [UILabel new];
- lblFeeNo.frame=CGRectMake(CGRectGetMaxX(lblTitleFeeNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFeeNo.frame), valueheight);
- lblFeeNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeNo addSubview:lblFeeNo];
- lblFeeNo.text = feesDetailModel.feeNo;
-
-
- UIView *vObjectType = [UIView new];
- vObjectType.frame=CGRectMake(0,CGRectGetMaxY(vFeeNo.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vObjectType];
- UILabel *lblTitleObjectType = [UILabel new];
- lblTitleObjectType.frame=CGRectMake(lblx, lbly,80, lblheight);
- lblTitleObjectType.text = @"对象类型:";
- lblTitleObjectType.textColor = [UIColor blackColor];
- lblTitleObjectType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vObjectType addSubview:lblTitleObjectType];
-
- UILabel *lblObjectType = [UILabel new];
- lblObjectType.frame=CGRectMake(CGRectGetMaxX(lblTitleObjectType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleObjectType.frame), valueheight);
- lblObjectType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vObjectType addSubview:lblObjectType];
- lblObjectType.text = feesDetailModel.objectTypeName;
-
- UIView *vObjectName = [UIView new];
- vObjectName.frame=CGRectMake(0,CGRectGetMaxY(vObjectType.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vObjectName];
- UILabel *lblTitleObjectName = [UILabel new];
- lblTitleObjectName.frame=CGRectMake(lblx, lbly, 80, lblheight);
- lblTitleObjectName.text = @"对象名称:";
- lblTitleObjectName.textColor = [UIColor blackColor];
- lblTitleObjectName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vObjectName addSubview:lblTitleObjectName];
-
- UILabel *lblObjectName = [UILabel new];
- lblObjectName.frame=CGRectMake(CGRectGetMaxX(lblTitleObjectName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleObjectName.frame), valueheight);
- lblObjectName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vObjectName addSubview:lblObjectName];
- lblObjectName.text = feesDetailModel.objectName;
-
- UIView *vFeeItemName = [UIView new];
- vFeeItemName.frame=CGRectMake(0,CGRectGetMaxY(vObjectName.frame)+8, Screen_Width, heightRow);
-
- [ self.contentView addSubview:vFeeItemName];
- UILabel *lblTitleFeeItem = [UILabel new];
- lblTitleFeeItem.frame=CGRectMake(lblx, lbly,80, lblheight);
- lblTitleFeeItem.text = @"费用项目:";
- lblTitleFeeItem.textColor = [UIColor blackColor];
- lblTitleFeeItem.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeItemName addSubview:lblTitleFeeItem];
-
- UILabel *lblFeeItem = [UILabel new];
- lblFeeItem.frame=CGRectMake(CGRectGetMaxX(lblTitleFeeItem.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFeeItem.frame), valueheight);
- lblFeeItem.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeItemName addSubview:lblFeeItem];
- lblFeeItem.text = feesDetailModel.feeItemName;
-
- UIView *vFeeSum = [UIView new];
- vFeeSum.frame=CGRectMake(0,CGRectGetMaxY(vFeeItemName.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFeeSum];
- UILabel *lblTitleFeeSum = [UILabel new];
- lblTitleFeeSum.frame=CGRectMake(lblx, lbly, 80, lblheight);
- lblTitleFeeSum.text = @"费用金额:";
- lblTitleFeeSum.textColor = [UIColor blackColor];
- lblTitleFeeSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeSum addSubview:lblTitleFeeSum];
-
- UILabel *lblFeeSum = [UILabel new];
- lblFeeSum.frame=CGRectMake(CGRectGetMaxX(lblTitleFeeSum.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFeeSum.frame), valueheight);
- lblFeeSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeSum addSubview:lblFeeSum];
- lblFeeSum.text = feesDetailModel.feeSum;
-
- UIView *vConfirmFeeSum = [UIView new];
- vConfirmFeeSum.frame=CGRectMake(0,CGRectGetMaxY(vFeeSum.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vConfirmFeeSum];
- UILabel *lblTitleConfirmFeeSum = [UILabel new];
- lblTitleConfirmFeeSum.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleConfirmFeeSum.text = @"确认费用金额:";
- lblTitleConfirmFeeSum.textColor = [UIColor blackColor];
- lblTitleConfirmFeeSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vConfirmFeeSum addSubview:lblTitleConfirmFeeSum];
-
- UILabel *lblConfirmFeeSum = [UILabel new];
- lblConfirmFeeSum.frame=CGRectMake(CGRectGetMaxX(lblTitleConfirmFeeSum.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleConfirmFeeSum.frame), valueheight);
- lblConfirmFeeSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vConfirmFeeSum addSubview:lblConfirmFeeSum];
- lblConfirmFeeSum.text = feesDetailModel.confirmFeeSum;
-
- UIView *vFactManufactureSum = [UIView new];
- vFactManufactureSum.frame=CGRectMake(0,CGRectGetMaxY(vConfirmFeeSum.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFactManufactureSum];
- UILabel *lblTitleFactManufactureSum = [UILabel new];
- lblTitleFactManufactureSum.frame=CGRectMake(lblx, lbly, 120, lblheight);
- lblTitleFactManufactureSum.text = @"对外加工费用金额:";
- lblTitleFactManufactureSum.textColor = [UIColor blackColor];
- lblTitleFactManufactureSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactManufactureSum addSubview:lblTitleFactManufactureSum];
-
- UILabel *lblFactManufactureSum = [UILabel new];
- lblFactManufactureSum.frame=CGRectMake(CGRectGetMaxX(lblTitleFactManufactureSum.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactManufactureSum.frame), valueheight);
- lblFactManufactureSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactManufactureSum addSubview:lblFactManufactureSum];
- lblFactManufactureSum.text = feesDetailModel.factManufactureSum;
-
- UIView *vFeeAuditFlag = [UIView new];
- vFeeAuditFlag.frame=CGRectMake(0,CGRectGetMaxY(vFactManufactureSum.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFeeAuditFlag];
-
- UILabel *lblTitleFeeAuditFlag = [UILabel new];
- lblTitleFeeAuditFlag.frame=CGRectMake(lblx, lbly, 120, lblheight);
- lblTitleFeeAuditFlag.text = @"费用审核标识:";
- lblTitleFeeAuditFlag.textColor = [UIColor blackColor];
- lblTitleFeeAuditFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeAuditFlag addSubview:lblTitleFeeAuditFlag];
-
- UILabel *lblFeeAuditFlag = [UILabel new];
- lblFeeAuditFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleFeeAuditFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFeeAuditFlag.frame), valueheight);
- lblFeeAuditFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFeeAuditFlag addSubview:lblFeeAuditFlag];
-
- int feeAuditFlag= feesDetailModel.feeAuditFlag;
- NSString *feeAuditFlagStr;
- if(feeAuditFlag==0){
- feeAuditFlagStr=@"否";
- }
- else
- {
- feeAuditFlagStr=@"是";
- }
- lblFeeAuditFlag.text =feeAuditFlagStr;
-
- UIView *vCheckUser= [UIView new];
- vCheckUser.frame=CGRectMake(0,CGRectGetMaxY(vFeeAuditFlag.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vCheckUser];
-
- UILabel *lblTitleCheckUser = [UILabel new];
- lblTitleCheckUser.frame=CGRectMake(lblx, lbly, 80, lblheight);
- lblTitleCheckUser.text = @"审核人:";
- lblTitleCheckUser.textColor = [UIColor blackColor];
- lblTitleCheckUser.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCheckUser addSubview:lblTitleCheckUser];
-
- UILabel *lblCheckUser = [UILabel new];
- lblCheckUser.frame=CGRectMake(CGRectGetMaxX(lblTitleCheckUser.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCheckUser.frame), valueheight);
- lblCheckUser.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCheckUser addSubview:lblCheckUser];
- lblCheckUser.text = feesDetailModel.checkUserName;
-
- UIView *vInvoiceStatus= [UIView new];
- vInvoiceStatus.frame=CGRectMake(0,CGRectGetMaxY(vCheckUser.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vInvoiceStatus];
-
- UILabel *lblTitleInvoiceStatus = [UILabel new];
- lblTitleInvoiceStatus.frame=CGRectMake(lblx, lbly, 70, lblheight);
- lblTitleInvoiceStatus.text = @"状态:";
- lblTitleInvoiceStatus.textColor = [UIColor blackColor];
- lblTitleInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInvoiceStatus addSubview:lblTitleInvoiceStatus];
-
- UILabel *lblInvoiceStatus = [UILabel new];
- lblInvoiceStatus.frame=CGRectMake(CGRectGetMaxX(lblTitleInvoiceStatus.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInvoiceStatus.frame), valueheight);
- lblInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInvoiceStatus addSubview:lblInvoiceStatus];
- lblInvoiceStatus.text = feesDetailModel.invoiceStatusName;
-
- UIView *vRemarks= [UIView new];
- vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vInvoiceStatus.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vRemarks];
-
- UILabel *lblTitleRemarks = [UILabel new];
- lblTitleRemarks.frame=CGRectMake(lblx, lbly, 70, lblheight);
- lblTitleRemarks.text = @"备注:";
- lblTitleRemarks.textColor = [UIColor blackColor];
- lblTitleRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemarks addSubview:lblTitleRemarks];
-
- UILabel *lblRemarks = [UILabel new];
- lblRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemarks.frame), valueheight);
- lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemarks addSubview:lblRemarks];
- lblRemarks.text = feesDetailModel.remarks;
-
-
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
-
- }
- @end
|