// // ExpenseDetailViewController.m // IBOSS // // Created by apple on 2017/5/15. // Copyright © 2017年 沈阳东科云信软件有限公司. All rights reserved. // // 功能描述:费用明细表详细控制器 // #import "ExpenseDetailViewController.h" @interface ExpenseDetailViewController () @end @implementation ExpenseDetailViewController #pragma mark - 公共函数 /** viewDidLoad函数 */ - (void)viewDidLoad { [super viewDidLoad]; [self showTitle:@"费用明细表详细"]; [self initUI]; } /** 安全区视图发生变化 */ -(void)viewSafeAreaInsetsDidChange{ _scroll.frame=self.view.safeAreaLayoutGuide.layoutFrame; [super viewSafeAreaInsetsDidChange]; } /** didReceiveMemoryWarning函数 */ - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } #pragma mark - 委托回调函数 #pragma mark - 私有函数 /** 初始化ui */ - (void)initUI { self.view.backgroundColor = LineBackgroundColor; CGFloat heightRow = 30; CGFloat lblx = 10; CGFloat lbly = 3; CGFloat lblwidth = 70; CGFloat lblheight = 25; CGFloat valuex = 80; CGFloat valuey = 3; CGFloat valueheight = 25; _scroll = [UIScrollView new]; _scroll.frame=self.view.bounds; [self.view addSubview:_scroll]; UIView *vTitle = [UIView new]; [_scroll addSubview:vTitle]; vTitle.backgroundColor = [UIColor whiteColor]; // ————————— UIView *vObjectTypeName = [UIView new]; vObjectTypeName.frame=CGRectMake(0, CGRectGetMaxY(vTitle.frame), Screen_Width, heightRow); [vTitle addSubview:vObjectTypeName]; UILabel *lblObjectTypeName = [UILabel new]; lblObjectTypeName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblObjectTypeName.text = @"对象类型:"; lblObjectTypeName.textColor = [UIColor blackColor]; lblObjectTypeName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vObjectTypeName addSubview:lblObjectTypeName]; UILabel *lblObjectTypeNameValue = [UILabel new]; lblObjectTypeNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblObjectTypeNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblObjectTypeNameValue.text = self.objectTypeName; [vObjectTypeName addSubview:lblObjectTypeNameValue]; // ————————— UIView *vfeeNo = [UIView new]; vfeeNo.frame=CGRectMake(0, CGRectGetMaxY(vObjectTypeName.frame), Screen_Width, heightRow); [vTitle addSubview:vfeeNo]; UILabel *lblfeeNo = [UILabel new]; lblfeeNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblfeeNo.text = @"费用单号:"; lblfeeNo.textColor = [UIColor blackColor]; lblfeeNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vfeeNo addSubview:lblfeeNo]; UILabel *lblfeeNoValue = [UILabel new]; lblfeeNoValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblfeeNoValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblfeeNoValue.text = self.feeNo; [vfeeNo addSubview:lblfeeNoValue]; // ————————— UIView *vobjectName = [UIView new]; vobjectName.frame=CGRectMake(0, CGRectGetMaxY(vfeeNo.frame), Screen_Width, heightRow); [vTitle addSubview:vobjectName]; UILabel *lblobjectName = [UILabel new]; lblobjectName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblobjectName.text = @"账务对象:"; lblobjectName.textColor = [UIColor blackColor]; lblobjectName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vobjectName addSubview:lblobjectName]; UILabel *lblobjectNameValue = [UILabel new]; lblobjectNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblobjectNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblobjectNameValue.text = self.objectName; [vobjectName addSubview:lblobjectNameValue]; // ————————— UIView *vaccountOrganizationName = [UIView new]; vaccountOrganizationName.frame=CGRectMake(0, CGRectGetMaxY(vobjectName.frame), Screen_Width, heightRow); [vTitle addSubview:vaccountOrganizationName]; UILabel *lblvaccountOrganizationName = [UILabel new]; lblvaccountOrganizationName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblvaccountOrganizationName.text = @"结算机构:"; lblvaccountOrganizationName.textColor = [UIColor blackColor]; lblvaccountOrganizationName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vaccountOrganizationName addSubview:lblvaccountOrganizationName]; UILabel *lblvaccountOrganizationNameValue = [UILabel new]; lblvaccountOrganizationNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblvaccountOrganizationNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblvaccountOrganizationNameValue.text = self.accountOrganizationName; [vaccountOrganizationName addSubview:lblvaccountOrganizationNameValue]; // ————————— UIView *vfeeDirectionName = [UIView new]; vfeeDirectionName.frame=CGRectMake(0, CGRectGetMaxY(vaccountOrganizationName.frame), Screen_Width, heightRow); [vTitle addSubview:vfeeDirectionName]; UILabel *lblfeeDirectionName = [UILabel new]; lblfeeDirectionName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblfeeDirectionName.text = @"费用方向:"; lblfeeDirectionName.textColor = [UIColor blackColor]; lblfeeDirectionName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vfeeDirectionName addSubview:lblfeeDirectionName]; UILabel *lblfeeDirectionNameValue = [UILabel new]; lblfeeDirectionNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblfeeDirectionNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblfeeDirectionNameValue.text = self.feeDirectionName; [vfeeDirectionName addSubview:lblfeeDirectionNameValue]; // ————————— UIView *vfeeItemName = [UIView new]; vfeeItemName.frame=CGRectMake(0, CGRectGetMaxY(vfeeDirectionName.frame), Screen_Width, heightRow); [vTitle addSubview:vfeeItemName]; UILabel *lblfeeItemName = [UILabel new]; lblfeeItemName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblfeeItemName.text = @"费用项目:"; lblfeeItemName.textColor = [UIColor blackColor]; lblfeeItemName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vfeeItemName addSubview:lblfeeItemName]; UILabel *lblfeeItemNameValue = [UILabel new]; lblfeeItemNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblfeeItemNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblfeeItemNameValue.text = self.feeItemName; [vfeeItemName addSubview:lblfeeItemNameValue]; // ————————— UIView *vstatusName = [UIView new]; vstatusName.frame=CGRectMake(0, CGRectGetMaxY(vfeeItemName.frame), Screen_Width, heightRow); [vTitle addSubview:vstatusName]; UILabel *lblstatusName = [UILabel new]; lblstatusName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblstatusName.text = @"单据状态:"; lblstatusName.textColor = [UIColor blackColor]; lblstatusName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vstatusName addSubview:lblstatusName]; UILabel *lblstatusNameValue = [UILabel new]; lblstatusNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblstatusNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblstatusNameValue.text = self.statusName; [vstatusName addSubview:lblstatusNameValue]; // ————————— UIView *vorganizationName = [UIView new]; vorganizationName.frame=CGRectMake(0, CGRectGetMaxY(vstatusName.frame), Screen_Width, heightRow); [vTitle addSubview:vorganizationName]; UILabel *lblorganizationName = [UILabel new]; lblorganizationName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblorganizationName.text = @"部门名称:"; lblorganizationName.textColor = [UIColor blackColor]; lblorganizationName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vorganizationName addSubview:lblorganizationName]; UILabel *lblorganizationNameValue = [UILabel new]; lblorganizationNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblorganizationNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblorganizationNameValue.text = self.organizationName; [vorganizationName addSubview:lblorganizationNameValue]; // ————————— UIView *vwstaffName = [UIView new]; vwstaffName.frame=CGRectMake(0, CGRectGetMaxY(vorganizationName.frame), Screen_Width, heightRow); [vTitle addSubview:vwstaffName]; UILabel *lblstaffName = [UILabel new]; lblstaffName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblstaffName.text = @"业 务 员:"; lblstaffName.textColor = [UIColor blackColor]; lblstaffName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vwstaffName addSubview:lblstaffName]; UILabel *staffName = [UILabel new]; staffName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); staffName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; staffName.text = self.staffName; [vwstaffName addSubview:staffName]; // ————————— UIView *vbrandName = [UIView new]; vbrandName.frame=CGRectMake(0, CGRectGetMaxY(vwstaffName.frame), Screen_Width, heightRow); [vTitle addSubview:vbrandName]; UILabel *lblbrandName = [UILabel new]; lblbrandName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblbrandName.text = @"商品品牌:"; lblbrandName.textColor = [UIColor blackColor]; lblbrandName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vbrandName addSubview:lblbrandName]; UILabel *lblbrandNameValue = [UILabel new]; lblbrandNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblbrandNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblbrandNameValue.text = self.brandName; [vbrandName addSubview:lblbrandNameValue]; // ————————— UIView *vkindName = [UIView new]; vkindName.frame=CGRectMake(0, CGRectGetMaxY(vbrandName.frame), Screen_Width, heightRow); [vTitle addSubview:vkindName]; UILabel *lblkindName = [UILabel new]; lblkindName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblkindName.text = @"商品种类:"; lblkindName.textColor = [UIColor blackColor]; lblkindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vkindName addSubview:lblkindName]; UILabel *lblkindNameValue = [UILabel new]; lblkindNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblkindNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblkindNameValue.text = self.kindName; [vkindName addSubview:lblkindNameValue]; // ————————— UIView *vseriesName = [UIView new]; vseriesName.frame=CGRectMake(0, CGRectGetMaxY(vkindName.frame), Screen_Width, heightRow); [vTitle addSubview:vseriesName]; UILabel *lblvseriesName = [UILabel new]; lblvseriesName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblvseriesName.text = @"商品系列:"; lblvseriesName.textColor = [UIColor blackColor]; lblvseriesName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vseriesName addSubview:lblvseriesName]; UILabel *lblseriesNameValue = [UILabel new]; lblseriesNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblseriesNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblseriesNameValue.text = self.seriesName; [vseriesName addSubview:lblseriesNameValue]; // ————————— UIView *vreversedFeeNo = [UIView new]; vreversedFeeNo.frame=CGRectMake(0, CGRectGetMaxY(vseriesName.frame), Screen_Width, heightRow); [vTitle addSubview:vreversedFeeNo]; UILabel *lblreversedFeeNo = [UILabel new]; lblreversedFeeNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblreversedFeeNo.text = @"冲正单号:"; lblreversedFeeNo.textColor = [UIColor blackColor]; lblreversedFeeNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vreversedFeeNo addSubview:lblreversedFeeNo]; UILabel *lblreversedFeeNoValue = [UILabel new]; lblreversedFeeNoValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblreversedFeeNoValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblreversedFeeNoValue.text = self.reversedFeeNo; [vreversedFeeNo addSubview:lblreversedFeeNoValue]; // ————————— UIView *vfeeSum = [UIView new]; vfeeSum.frame=CGRectMake(0, CGRectGetMaxY(vreversedFeeNo.frame), Screen_Width, heightRow); [vTitle addSubview:vfeeSum]; UILabel *lblincomeAmount = [UILabel new]; lblincomeAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblincomeAmount.text = @"费用金额:"; lblincomeAmount.textColor = [UIColor blackColor]; lblincomeAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vfeeSum addSubview:lblincomeAmount]; UILabel *incomeAmount = [UILabel new]; incomeAmount.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); incomeAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; incomeAmount.text = self.feeSum; [vfeeSum addSubview:incomeAmount]; // ————————— UIView *vconfirmFeeSum = [UIView new]; vconfirmFeeSum.frame=CGRectMake(0, CGRectGetMaxY(vfeeSum.frame), Screen_Width, heightRow); [vTitle addSubview:vconfirmFeeSum]; UILabel *lblconfirmFeeSum = [UILabel new]; lblconfirmFeeSum.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblconfirmFeeSum.text = @"确认金额:"; lblconfirmFeeSum.textColor = [UIColor blackColor]; lblconfirmFeeSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vconfirmFeeSum addSubview:lblconfirmFeeSum]; UILabel *lblconfirmFeeSumValue = [UILabel new]; lblconfirmFeeSumValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblconfirmFeeSumValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblconfirmFeeSumValue.text = self.confirmFeeSum; [vconfirmFeeSum addSubview:lblconfirmFeeSumValue]; UIView *vbusinessFunctionName = [UIView new]; vbusinessFunctionName.frame=CGRectMake(0, CGRectGetMaxY(vconfirmFeeSum.frame), Screen_Width, heightRow); [vTitle addSubview:vbusinessFunctionName]; UILabel *lblbusinessFunctionName = [UILabel new]; lblbusinessFunctionName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblbusinessFunctionName.text = @"业务类型:"; lblbusinessFunctionName.textColor = [UIColor blackColor]; lblbusinessFunctionName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vbusinessFunctionName addSubview:lblbusinessFunctionName]; UILabel *lblbusinessFunctionNameValue = [UILabel new]; lblbusinessFunctionNameValue.frame = CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblbusinessFunctionNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblbusinessFunctionNameValue.text = self.businessFunctionName; [vbusinessFunctionName addSubview:lblbusinessFunctionNameValue]; UIView *vinvoiceNo = [UIView new]; vinvoiceNo.frame=CGRectMake(0, CGRectGetMaxY(vbusinessFunctionName.frame), Screen_Width, heightRow); [vTitle addSubview:vinvoiceNo]; UILabel *lblinvoiceNo = [UILabel new]; lblinvoiceNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblinvoiceNo.text = @"来源单号:"; lblinvoiceNo.textColor = [UIColor blackColor]; lblinvoiceNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vinvoiceNo addSubview:lblinvoiceNo]; UILabel *lblinvoiceNoValue = [UILabel new]; lblinvoiceNoValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblinvoiceNoValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblinvoiceNoValue.text = self.invoiceNo; [vinvoiceNo addSubview:lblinvoiceNoValue]; UIView *vcustomerCode = [UIView new]; vcustomerCode.frame=CGRectMake(0, CGRectGetMaxY(vinvoiceNo.frame), Screen_Width, heightRow); [vTitle addSubview:vcustomerCode]; UILabel *lblcustomerCode = [UILabel new]; lblcustomerCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblcustomerCode.text = @"客户编码:"; lblcustomerCode.textColor = [UIColor blackColor]; lblcustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vcustomerCode addSubview:lblcustomerCode]; UILabel *lblcustomerCodeValue = [UILabel new]; lblcustomerCodeValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblcustomerCodeValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblcustomerCodeValue.text = self.customerCode; [vcustomerCode addSubview:lblcustomerCodeValue]; UIView *vcustomerName = [UIView new]; vcustomerName.frame=CGRectMake(0, CGRectGetMaxY(vcustomerCode.frame), Screen_Width, heightRow); [vTitle addSubview:vcustomerName]; UILabel *lblcustomerName = [UILabel new]; lblcustomerName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblcustomerName.text = @"客户名称:"; lblcustomerName.textColor = [UIColor blackColor]; lblcustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vcustomerName addSubview:lblcustomerName]; UILabel *lblcustomerNameValue = [UILabel new]; lblcustomerNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblcustomerNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblcustomerNameValue.text = self.customerName; [vcustomerName addSubview:lblcustomerNameValue]; UIView *vfeePayName = [UIView new]; vfeePayName.frame=CGRectMake(0, CGRectGetMaxY(vcustomerName.frame), Screen_Width, heightRow); [vTitle addSubview:vfeePayName]; UILabel *lblfeePayName = [UILabel new]; lblfeePayName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblfeePayName.text = @"支付标识:"; lblfeePayName.textColor = [UIColor blackColor]; lblfeePayName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vfeePayName addSubview:lblfeePayName]; UILabel *lblfeePayNameValue = [UILabel new]; lblfeePayNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblfeePayNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblfeePayNameValue.text = self.feePayName; [vfeePayName addSubview:lblfeePayNameValue]; UIView *vpaySum = [UIView new]; vpaySum.frame=CGRectMake(0, CGRectGetMaxY(vfeePayName.frame), Screen_Width, heightRow); [vTitle addSubview:vpaySum]; UILabel *lblpaySum = [UILabel new]; lblpaySum.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblpaySum.text = @"支付金额:"; lblpaySum.textColor = [UIColor blackColor]; lblpaySum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vpaySum addSubview:lblpaySum]; UILabel *lblpaySumValue = [UILabel new]; lblpaySumValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblpaySumValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblpaySumValue.text = self.paySum; [vpaySum addSubview:lblpaySumValue]; UIView *vcheckUserName = [UIView new]; vcheckUserName.frame=CGRectMake(0, CGRectGetMaxY(vpaySum.frame), Screen_Width, heightRow); [vTitle addSubview:vcheckUserName]; UILabel *lblcheckUserName = [UILabel new]; lblcheckUserName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblcheckUserName.text = @"审 核 人:"; lblcheckUserName.textColor = [UIColor blackColor]; lblcheckUserName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vcheckUserName addSubview:lblcheckUserName]; UILabel *lblcheckUserNameValue = [UILabel new]; lblcheckUserNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblcheckUserNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblcheckUserNameValue.text = self.checkUserName; [vcheckUserName addSubview:lblcheckUserNameValue]; UIView *vcheckTime = [UIView new]; vcheckTime.frame=CGRectMake(0, CGRectGetMaxY(vcheckUserName.frame), Screen_Width, heightRow); [vTitle addSubview:vcheckTime]; UILabel *lblcheckTime = [UILabel new]; lblcheckTime.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblcheckTime.text = @"审核时间:"; lblcheckTime.textColor = [UIColor blackColor]; lblcheckTime.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vcheckTime addSubview:lblcheckTime]; UILabel *lblcheckTimeValue = [UILabel new]; lblcheckTimeValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblcheckTimeValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblcheckTimeValue.text = self.checkTime; [vcheckTime addSubview:lblcheckTimeValue]; UIView *vsuggestion = [UIView new]; vsuggestion.frame=CGRectMake(0, CGRectGetMaxY(vcheckTime.frame), Screen_Width, heightRow); [vTitle addSubview:vsuggestion]; UILabel *lblsuggestion = [UILabel new]; lblsuggestion.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblsuggestion.text = @"审核意见:"; lblsuggestion.textColor = [UIColor blackColor]; lblsuggestion.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vsuggestion addSubview:lblsuggestion]; UILabel *lblsuggestionValue = [UILabel new]; lblsuggestionValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); lblsuggestionValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; lblsuggestionValue.text = self.suggestion; [vsuggestion addSubview:lblsuggestionValue]; UIView *vremarks = [UIView new]; vremarks.frame=CGRectMake(0, CGRectGetMaxY(vsuggestion.frame), Screen_Width, heightRow); [vTitle addSubview:vremarks]; UILabel *lblremarks = [UILabel new]; lblremarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight); lblremarks.text = @"备 注:"; lblremarks.textColor = [UIColor blackColor]; lblremarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; [vremarks addSubview:lblremarks]; UILabel *remarks = [UILabel new]; remarks.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight); remarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize]; remarks.text = self.remarks; [vremarks addSubview:remarks]; vTitle.frame=CGRectMake(10, 10, Screen_Width-20, CGRectGetMaxY(vremarks.frame) ); vTitle.layer.cornerRadius = CornerRadius; _scroll.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vTitle.frame)+rectStatusHeight+rectNavHeight); } @end