// // OrderDetailHeadViewController.m // IBOSS // // Created by 关宏厚 on 2018/11/16. // Copyright © 2018 elongtian. All rights reserved. // #import "OrderDetailHeadViewController.h" @interface OrderDetailHeadViewController () @end @implementation OrderDetailHeadViewController #pragma mark - 公共函数 - (void)viewDidLoad { [super viewDidLoad]; [self initUI]; } #pragma mark - 私有函数 -(void)initUI { self.view.backgroundColor = LineBackgroundColor; _scroll = [UIScrollView new]; _scroll.frame = CGRectMake(0, 0, Screen_Width, Screen_Height - rectNavHeight - rectStatusHeight); [self.view addSubview:_scroll]; _contentView = [[UIView alloc]init]; [_contentView setBackgroundColor:[UIColor whiteColor]]; CGFloat xpadding = 10; CGFloat ypadding = 10; _contentView.frame = CGRectZero; [_scroll addSubview:_contentView]; UILabel *lblTitleAuditFlag = [[UILabel alloc]init]; lblTitleAuditFlag.frame = CGRectMake(xpadding,ypadding,80,25); lblTitleAuditFlag.text = @"审核标识:"; lblTitleAuditFlag.font=orderTextFont; [_contentView addSubview:lblTitleAuditFlag]; UILabel *lblAuditFlag = [[UILabel alloc]init]; lblAuditFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleAuditFlag.frame),ypadding,250, 25); Boolean checkFlag= _auditListModel.checkFlag; NSString *checkFlagStr; if(!checkFlag){ checkFlagStr=@"未审核"; } else { checkFlagStr=@"审核"; } lblAuditFlag.text=checkFlagStr; lblAuditFlag.font=orderTextFont; [_contentView addSubview:lblAuditFlag]; UILabel *lblTitleOrderNo = [[UILabel alloc]init]; lblTitleOrderNo.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleAuditFlag.frame)+ypadding,80,25); lblTitleOrderNo.text = @"订单单号:"; lblTitleOrderNo.font=orderTextFont; [_contentView addSubview:lblTitleOrderNo]; UILabel *lblOrderNo = [[UILabel alloc]init]; lblOrderNo.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderNo.frame),CGRectGetMaxY(lblTitleAuditFlag.frame)+ypadding,250, 25); lblOrderNo.font=orderTextFont; lblOrderNo.text=_auditListModel.orderNo; [_contentView addSubview:lblOrderNo]; UILabel *lblTitleOrderType = [[UILabel alloc]init]; lblTitleOrderType.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleOrderNo.frame)+ypadding,100,25); lblTitleOrderType.text = @"订单业务类型:"; lblTitleOrderType.font=orderTextFont; [_contentView addSubview:lblTitleOrderType]; UILabel *lblOrderType = [[UILabel alloc]init]; lblOrderType.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderType.frame),CGRectGetMaxY(lblTitleOrderNo.frame)+ypadding,250, 25); lblOrderType.font=orderTextFont; lblOrderType.text=_auditListModel.orderType; [_contentView addSubview:lblOrderType]; UILabel *lblTitleCustomerName = [[UILabel alloc]init]; lblTitleCustomerName.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleOrderType.frame)+ypadding,80,25); lblTitleCustomerName.text = @"客户名称:"; lblTitleCustomerName.font=orderTextFont; [_contentView addSubview:lblTitleCustomerName]; UILabel *lblCustomerName = [[UILabel alloc]init]; lblCustomerName.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerName.frame),CGRectGetMaxY(lblTitleOrderType.frame)+ypadding,250, 25); lblCustomerName.font=orderTextFont; lblCustomerName.text=_auditListModel.customerName; [_contentView addSubview:lblCustomerName]; UILabel *lblTitleCustomerCode = [[UILabel alloc]init]; lblTitleCustomerCode.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleCustomerName.frame)+ypadding,80,25); lblTitleCustomerCode.text = @"客户编码:"; lblTitleCustomerCode.font=orderTextFont; [_contentView addSubview:lblTitleCustomerCode]; UILabel *lblCustomerCode = [[UILabel alloc]init]; lblCustomerCode.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerCode.frame),CGRectGetMaxY(lblTitleCustomerName.frame)+ypadding,250, 25); lblCustomerCode.font=orderTextFont; lblCustomerCode.text=_auditListModel.customerCode; [_contentView addSubview:lblCustomerCode]; UILabel *lblTitleOrderStatus = [[UILabel alloc]init]; lblTitleOrderStatus.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleCustomerCode.frame)+ypadding,80,25); lblTitleOrderStatus.text = @"订单状态:"; lblTitleOrderStatus.font=orderTextFont; [_contentView addSubview:lblTitleOrderStatus]; UILabel *lblOrderStatus = [[UILabel alloc]init]; lblOrderStatus.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderStatus.frame),CGRectGetMaxY(lblTitleCustomerCode.frame)+ypadding,250, 25); lblOrderStatus.font=orderTextFont; lblOrderStatus.text=_auditListModel.orderStatus; [_contentView addSubview:lblOrderStatus]; UILabel *lblTitleContacts = [[UILabel alloc]init]; lblTitleContacts.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleOrderStatus.frame)+ypadding,80,25); lblTitleContacts.text = @"联系人:"; lblTitleContacts.font=orderTextFont; [_contentView addSubview:lblTitleContacts]; UILabel *lblContacts = [[UILabel alloc]init]; lblContacts.frame=CGRectMake(CGRectGetMaxX(lblTitleContacts.frame),CGRectGetMaxY(lblTitleOrderStatus.frame)+ypadding,250, 25); lblContacts.font=orderTextFont; lblContacts.text=_auditListModel.contacts; [_contentView addSubview:lblContacts]; UILabel *lblTitleTelephone = [[UILabel alloc]init]; lblTitleTelephone.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleContacts.frame)+ypadding,80,25); lblTitleTelephone.text = @"联系电话:"; lblTitleTelephone.font=orderTextFont; [_contentView addSubview:lblTitleTelephone]; UILabel *lblTelephone = [[UILabel alloc]init]; lblTelephone.frame=CGRectMake(CGRectGetMaxX(lblTitleTelephone.frame),CGRectGetMaxY(lblTitleContacts.frame)+ypadding,250, 25); lblTelephone.font=orderTextFont; lblTelephone.text=_auditListModel.telephone; [_contentView addSubview:lblTelephone]; UILabel *lblTitleOtherContact = [[UILabel alloc]init]; lblTitleOtherContact.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleTelephone.frame)+ypadding,100,25); lblTitleOtherContact.text = @"其它联系方式:"; lblTitleOtherContact.font=orderTextFont; [_contentView addSubview:lblTitleOtherContact]; UILabel *lblOtherContact = [[UILabel alloc]init]; lblOtherContact.frame=CGRectMake(CGRectGetMaxX(lblTitleOtherContact.frame),CGRectGetMaxY(lblTitleTelephone.frame)+ypadding,250, 25); lblOtherContact.font=orderTextFont; lblOtherContact.text=_auditListModel.otherContact; [_contentView addSubview:lblOtherContact]; UILabel *lblTitleCustomerType = [[UILabel alloc]init]; lblTitleCustomerType.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleOtherContact.frame)+ypadding,80,25); lblTitleCustomerType.text = @"客户性质:"; lblTitleCustomerType.font=orderTextFont; [_contentView addSubview:lblTitleCustomerType]; UILabel *lblCustomerType = [[UILabel alloc]init]; lblCustomerType.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerType.frame),CGRectGetMaxY(lblTitleOtherContact.frame)+ypadding,250, 25); lblCustomerType.font=orderTextFont; lblCustomerType.text=_auditListModel.customerTypeName; [_contentView addSubview:lblCustomerType]; UILabel *lblTitleCustomerAddress = [[UILabel alloc]init]; lblTitleCustomerAddress.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleCustomerType.frame)+ypadding,80,25); lblTitleCustomerAddress.text = @"客户地址:"; lblTitleCustomerAddress.font=orderTextFont; [_contentView addSubview:lblTitleCustomerAddress]; UILabel *lblCustomerAddress = [[UILabel alloc]init]; lblCustomerAddress.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerAddress.frame),CGRectGetMaxY(lblTitleCustomerType.frame)+ypadding,250, 25); lblCustomerAddress.font=orderTextFont; lblCustomerAddress.text=_auditListModel.customerAddress; [_contentView addSubview:lblCustomerAddress]; UILabel *lblTitleDepartment = [[UILabel alloc]init]; lblTitleDepartment.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleCustomerAddress.frame)+ypadding,80,25); lblTitleDepartment.text = @"业务部门:"; lblTitleDepartment.font=orderTextFont; [_contentView addSubview:lblTitleDepartment]; UILabel *lblDepartment = [[UILabel alloc]init]; lblDepartment.frame=CGRectMake(CGRectGetMaxX(lblTitleDepartment.frame),CGRectGetMaxY(lblTitleCustomerAddress.frame)+ypadding,250, 25); lblDepartment.font=orderTextFont; lblDepartment.text=_auditListModel.organizationName; [_contentView addSubview:lblDepartment]; UILabel *lblTitleStaff = [[UILabel alloc]init]; lblTitleStaff.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDepartment.frame)+ypadding,80,25); lblTitleStaff.text = @"业务员:"; lblTitleStaff.font=orderTextFont; [_contentView addSubview:lblTitleStaff]; UILabel *lblStaff = [[UILabel alloc]init]; lblStaff.frame=CGRectMake(CGRectGetMaxX(lblTitleStaff.frame),CGRectGetMaxY(lblTitleDepartment.frame)+ypadding,250, 25); lblStaff.font=orderTextFont; lblStaff.text=_auditListModel.staffName; [_contentView addSubview:lblStaff]; UILabel *lblTitleAccountCategory = [[UILabel alloc]init]; lblTitleAccountCategory.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleStaff.frame)+ypadding,100,25); lblTitleAccountCategory.text = @"业绩核算类别:"; lblTitleAccountCategory.font=orderTextFont; [_contentView addSubview:lblTitleAccountCategory]; UILabel *lblAccountCategory = [[UILabel alloc]init]; lblAccountCategory.frame=CGRectMake(CGRectGetMaxX(lblTitleAccountCategory.frame),CGRectGetMaxY(lblTitleStaff.frame)+ypadding,250, 25); lblAccountCategory.font=orderTextFont; lblAccountCategory.text=_auditListModel.accountCategoryName; [_contentView addSubview:lblAccountCategory]; UILabel *lblTitleChannel = [[UILabel alloc]init]; lblTitleChannel.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleAccountCategory.frame)+ypadding,80,25); lblTitleChannel.text = @"渠道:"; lblTitleChannel.font=orderTextFont; [_contentView addSubview:lblTitleChannel]; UILabel *lblChannel = [[UILabel alloc]init]; lblChannel.frame=CGRectMake(CGRectGetMaxX(lblTitleChannel.frame),CGRectGetMaxY(lblTitleAccountCategory.frame)+ypadding,250, 25); lblChannel.font=orderTextFont; lblChannel.text=_auditListModel.channelName; [_contentView addSubview:lblChannel]; UILabel *lblTitleContractNumber = [[UILabel alloc]init]; lblTitleContractNumber.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleChannel.frame)+ypadding,80,25); lblTitleContractNumber.text = @"合同号:"; lblTitleContractNumber.font=orderTextFont; [_contentView addSubview:lblTitleContractNumber]; UILabel *lblContractNumber= [[UILabel alloc]init]; lblContractNumber.frame=CGRectMake(CGRectGetMaxX(lblTitleContractNumber.frame),CGRectGetMaxY(lblTitleChannel.frame)+ypadding,250, 25); lblContractNumber.font=orderTextFont; lblContractNumber.text=_auditListModel.contractNumber; [_contentView addSubview:lblContractNumber]; UILabel *lblTitleOtherInvoiceNo = [[UILabel alloc]init]; lblTitleOtherInvoiceNo.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleContractNumber.frame)+ypadding,80,25); lblTitleOtherInvoiceNo.text = @"其他单号:"; lblTitleOtherInvoiceNo.font=orderTextFont; [_contentView addSubview:lblTitleOtherInvoiceNo]; UILabel *lblOtherInvoiceNo= [[UILabel alloc]init]; lblOtherInvoiceNo.frame=CGRectMake(CGRectGetMaxX(lblTitleOtherInvoiceNo.frame),CGRectGetMaxY(lblTitleContractNumber.frame)+ypadding,250, 25); lblOtherInvoiceNo.font=orderTextFont; lblOtherInvoiceNo.text=_auditListModel.otherInvoiceNo; [_contentView addSubview:lblOtherInvoiceNo]; UILabel *lblTitleGoodsAmount = [[UILabel alloc]init]; lblTitleGoodsAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleOtherInvoiceNo.frame)+ypadding,80,25); lblTitleGoodsAmount.text = @"货物总额:"; lblTitleGoodsAmount.font=orderTextFont; [_contentView addSubview:lblTitleGoodsAmount]; UILabel *lblGoodsAmount= [[UILabel alloc]init]; lblGoodsAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsAmount.frame),CGRectGetMaxY(lblTitleOtherInvoiceNo.frame)+ypadding,250, 25); lblGoodsAmount.font=orderTextFont; lblGoodsAmount.text=_auditListModel.goodsAmount; [_contentView addSubview:lblGoodsAmount]; UILabel *lblTitleDiscountAmount = [[UILabel alloc]init]; lblTitleDiscountAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleGoodsAmount.frame)+ypadding,80,25); lblTitleDiscountAmount.text = @"舍零金额:"; lblTitleDiscountAmount.font=orderTextFont; [_contentView addSubview:lblTitleDiscountAmount]; UILabel *lblDiscountAmount= [[UILabel alloc]init]; lblDiscountAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleDiscountAmount.frame),CGRectGetMaxY(lblTitleGoodsAmount.frame)+ypadding,250, 25); lblDiscountAmount.font=orderTextFont; lblDiscountAmount.text=_auditListModel.discountAmount; [_contentView addSubview:lblDiscountAmount]; UILabel *lblTitleMarkedPriceAmount = [[UILabel alloc]init]; lblTitleMarkedPriceAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDiscountAmount.frame)+ypadding,80,25); lblTitleMarkedPriceAmount.text = @"标价总额:"; lblTitleMarkedPriceAmount.font=orderTextFont; [_contentView addSubview:lblTitleMarkedPriceAmount]; UILabel *lblMarkedPriceAmount= [[UILabel alloc]init]; lblMarkedPriceAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleMarkedPriceAmount.frame),CGRectGetMaxY(lblTitleDiscountAmount.frame)+ypadding,250, 25); lblMarkedPriceAmount.font=orderTextFont; lblMarkedPriceAmount.text=_auditListModel.markedPriceAmount; [_contentView addSubview:lblMarkedPriceAmount]; UILabel *lblTitleGiveMarkedPriceAmount = [[UILabel alloc]init]; lblTitleGiveMarkedPriceAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleMarkedPriceAmount.frame)+ypadding,100,25); lblTitleGiveMarkedPriceAmount.text = @"赠品标价总额:"; lblTitleGiveMarkedPriceAmount.font=orderTextFont; [_contentView addSubview:lblTitleGiveMarkedPriceAmount]; UILabel *lblGiveMarkedPriceAmount= [[UILabel alloc]init]; lblGiveMarkedPriceAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleGiveMarkedPriceAmount.frame),CGRectGetMaxY(lblTitleMarkedPriceAmount.frame)+ypadding,250, 25); lblGiveMarkedPriceAmount.font=orderTextFont; lblGiveMarkedPriceAmount.text=_auditListModel.giveMarkedPriceAmount; [_contentView addSubview:lblGiveMarkedPriceAmount]; UILabel *lblTitleDiscount = [[UILabel alloc]init]; lblTitleDiscount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleGiveMarkedPriceAmount.frame)+ypadding,80,25); lblTitleDiscount.text = @"整单折扣:"; lblTitleDiscount.font=orderTextFont; [_contentView addSubview:lblTitleDiscount]; UILabel *lblDiscount= [[UILabel alloc]init]; lblDiscount.frame=CGRectMake(CGRectGetMaxX(lblTitleDiscount.frame),CGRectGetMaxY(lblTitleGiveMarkedPriceAmount.frame)+ypadding,250, 25); lblDiscount.font=orderTextFont; lblDiscount.text=_auditListModel.discount; [_contentView addSubview:lblDiscount]; UILabel *lblTitleFeesAmount = [[UILabel alloc]init]; lblTitleFeesAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDiscount.frame)+ypadding,80,25); lblTitleFeesAmount.text = @"费用金额:"; lblTitleFeesAmount.font=orderTextFont; [_contentView addSubview:lblTitleFeesAmount]; UILabel *lblFeesAmount= [[UILabel alloc]init]; lblFeesAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleFeesAmount.frame),CGRectGetMaxY(lblTitleDiscount.frame)+ypadding,250, 25); lblFeesAmount.font=orderTextFont; lblFeesAmount.text=_auditListModel.feesAmount; [_contentView addSubview:lblFeesAmount]; UILabel *lblTitleEarnestAmount = [[UILabel alloc]init]; lblTitleEarnestAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleFeesAmount.frame)+ypadding,80,25); lblTitleEarnestAmount.text = @"剩余定金:"; lblTitleEarnestAmount.font=orderTextFont; [_contentView addSubview:lblTitleEarnestAmount]; UILabel *lblEarnestAmount= [[UILabel alloc]init]; lblEarnestAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleEarnestAmount.frame),CGRectGetMaxY(lblTitleFeesAmount.frame)+ypadding,250, 25); lblEarnestAmount.font=orderTextFont; lblEarnestAmount.text=_auditListModel.earnestAmount; [_contentView addSubview:lblEarnestAmount]; UILabel *lblTitleEarnestRate = [[UILabel alloc]init]; lblTitleEarnestRate.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleEarnestAmount.frame)+ypadding,100,25); lblTitleEarnestRate.text = @"剩余定金比率:"; lblTitleEarnestRate.font=orderTextFont; [_contentView addSubview:lblTitleEarnestRate]; UILabel *lblEarnestRate= [[UILabel alloc]init]; lblEarnestRate.frame=CGRectMake(CGRectGetMaxX(lblTitleEarnestRate.frame),CGRectGetMaxY(lblTitleEarnestAmount.frame)+ypadding,250, 25); lblEarnestRate.font=orderTextFont; lblEarnestRate.text=_auditListModel.earnestRate; [_contentView addSubview:lblEarnestRate]; UILabel *lblTitleTotalEarnestAmount = [[UILabel alloc]init]; lblTitleTotalEarnestAmount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleEarnestRate.frame)+ypadding,80,25); lblTitleTotalEarnestAmount.text = @"总定金:"; lblTitleTotalEarnestAmount.font=orderTextFont; [_contentView addSubview:lblTitleTotalEarnestAmount]; UILabel *lblTotalEarnestAmount= [[UILabel alloc]init]; lblTotalEarnestAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalEarnestAmount.frame),CGRectGetMaxY(lblTitleEarnestRate.frame)+ypadding,250, 25); lblTotalEarnestAmount.font=orderTextFont; lblTotalEarnestAmount.text=_auditListModel.totalEarnestAmount; [_contentView addSubview:lblTotalEarnestAmount]; UILabel *lblTitleTotalEarnestRate = [[UILabel alloc]init]; lblTitleTotalEarnestRate.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleTotalEarnestAmount.frame)+ypadding,100,25); lblTitleTotalEarnestRate.text = @"总定金比率:"; lblTitleTotalEarnestRate.font=orderTextFont; [_contentView addSubview:lblTitleTotalEarnestRate]; UILabel *lblTotalEarnestRate= [[UILabel alloc]init]; lblTotalEarnestRate.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalEarnestRate.frame),CGRectGetMaxY(lblTitleTotalEarnestAmount.frame)+ypadding,250, 25); lblTotalEarnestRate.font=orderTextFont; lblTotalEarnestRate.text=_auditListModel.totalEarnestRate; [_contentView addSubview:lblTotalEarnestRate]; UILabel *lblTitleOrderEarnestSum = [[UILabel alloc]init]; lblTitleOrderEarnestSum.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleTotalEarnestRate.frame)+ypadding,80,25); lblTitleOrderEarnestSum.text = @"使用定金:"; lblTitleOrderEarnestSum.font=orderTextFont; [_contentView addSubview:lblTitleOrderEarnestSum]; UILabel *lblOrderEarnestSum= [[UILabel alloc]init]; lblOrderEarnestSum.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderEarnestSum.frame),CGRectGetMaxY(lblTitleTotalEarnestRate.frame)+ypadding,250, 25); lblOrderEarnestSum.font=orderTextFont; lblOrderEarnestSum.text=_auditListModel.orderEarnestSum; [_contentView addSubview:lblOrderEarnestSum]; UILabel *lblTitleTotalSum = [[UILabel alloc]init]; lblTitleTotalSum.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleOrderEarnestSum.frame)+ypadding,80,25); lblTitleTotalSum.text = @"合计金额:"; lblTitleTotalSum.font=orderTextFont; [_contentView addSubview:lblTitleTotalSum]; UILabel *lblTotalSum= [[UILabel alloc]init]; lblTotalSum.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalSum.frame),CGRectGetMaxY(lblTitleOrderEarnestSum.frame)+ypadding,250, 25); lblTotalSum.font=orderTextFont; lblTotalSum.text=_auditListModel.totalAmount; [_contentView addSubview:lblTotalSum]; UILabel *lblTitleTotalVolume = [[UILabel alloc]init]; lblTitleTotalVolume.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleTotalSum.frame)+ypadding,80,25); lblTitleTotalVolume.text = @"合计体积:"; lblTitleTotalVolume.font=orderTextFont; [_contentView addSubview:lblTitleTotalVolume]; UILabel *lblTotalVolume= [[UILabel alloc]init]; lblTotalVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalVolume.frame),CGRectGetMaxY(lblTitleTotalSum.frame)+ypadding,250, 25); lblTotalVolume.font=orderTextFont; lblTotalVolume.text=_auditListModel.totalVolume; [_contentView addSubview:lblTotalVolume]; UILabel *lblTitleDeliveryFlag = [[UILabel alloc]init]; lblTitleDeliveryFlag.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleTotalVolume.frame)+ypadding,80,25); lblTitleDeliveryFlag.text = @"送货标识:"; lblTitleDeliveryFlag.font=orderTextFont; [_contentView addSubview:lblTitleDeliveryFlag]; UILabel *lblDeliveryFlag= [[UILabel alloc]init]; lblDeliveryFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryFlag.frame),CGRectGetMaxY(lblTitleTotalVolume.frame)+ypadding,250, 25); lblDeliveryFlag.font=orderTextFont; Boolean deliveryFlag= _auditListModel.deliveryFlag; NSString *deliveryFlagStr; if(deliveryFlag){ deliveryFlagStr=@"是"; } else{ deliveryFlagStr=@"=否"; } lblDeliveryFlag.text=deliveryFlagStr; [_contentView addSubview:lblDeliveryFlag]; UILabel *lblTitleInstallationFlag = [[UILabel alloc]init]; lblTitleInstallationFlag.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDeliveryFlag.frame)+ypadding,80,25); lblTitleInstallationFlag.text = @"安装标识:"; lblTitleInstallationFlag.font=orderTextFont; [_contentView addSubview:lblTitleInstallationFlag]; UILabel *lblInstallationFlag= [[UILabel alloc]init]; lblInstallationFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleInstallationFlag.frame),CGRectGetMaxY(lblTitleDeliveryFlag.frame)+ypadding,250, 25); lblInstallationFlag.font=orderTextFont; Boolean installationFlag= _auditListModel.installationFlag; NSString *installationFlagStr; if(installationFlag){ installationFlagStr=@"是"; } else{ installationFlagStr=@"否"; } lblInstallationFlag.text=installationFlagStr; [_contentView addSubview:lblInstallationFlag]; UILabel *lblTitleExistPromotionFlag = [[UILabel alloc]init]; lblTitleExistPromotionFlag.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleInstallationFlag.frame)+ypadding,100,25); lblTitleExistPromotionFlag.text = @"促销存在标识:"; lblTitleExistPromotionFlag.font=orderTextFont; [_contentView addSubview:lblTitleExistPromotionFlag]; UILabel *lblExistPromotionFlag= [[UILabel alloc]init]; lblExistPromotionFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleExistPromotionFlag.frame),CGRectGetMaxY(lblTitleInstallationFlag.frame)+ypadding,250, 25); lblExistPromotionFlag.font=orderTextFont; Boolean existsPromotionFlag=_auditListModel.existPromotionFlag; NSString *existsPromotionFlagStr; if(existsPromotionFlag){ existsPromotionFlagStr=@"是"; } else { existsPromotionFlagStr=@"否"; } lblExistPromotionFlag.text=existsPromotionFlagStr; [_contentView addSubview:lblExistPromotionFlag]; UILabel *lblTitleEstimateDeliveryDate = [[UILabel alloc]init]; lblTitleEstimateDeliveryDate.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleExistPromotionFlag.frame)+ypadding,100,25); lblTitleEstimateDeliveryDate.text = @"预计送货日期:"; lblTitleEstimateDeliveryDate.font=orderTextFont; [_contentView addSubview:lblTitleEstimateDeliveryDate]; UILabel *lblEstimateDeliveryDate =[[UILabel alloc]init]; lblEstimateDeliveryDate.frame=CGRectMake(CGRectGetMaxX(lblTitleEstimateDeliveryDate.frame),CGRectGetMaxY(lblTitleExistPromotionFlag.frame)+ypadding,250, 25); lblEstimateDeliveryDate.font=orderTextFont; lblEstimateDeliveryDate.text=_auditListModel.estimateDeliveryDate; [_contentView addSubview:lblEstimateDeliveryDate]; UILabel *lblTitleDecorationProcessName = [[UILabel alloc]init]; lblTitleDecorationProcessName.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleEstimateDeliveryDate.frame)+ypadding,80,25); lblTitleDecorationProcessName.text = @"装修进度:"; lblTitleDecorationProcessName.font=orderTextFont; [_contentView addSubview:lblTitleDecorationProcessName]; UILabel *lblDecorationProcessName =[[UILabel alloc]init]; lblDecorationProcessName.frame=CGRectMake(CGRectGetMaxX(lblTitleDecorationProcessName.frame),CGRectGetMaxY(lblTitleEstimateDeliveryDate.frame)+ypadding,250, 25); lblDecorationProcessName.font=orderTextFont; lblDecorationProcessName.text=_auditListModel.decorationProcessName; [_contentView addSubview:lblDecorationProcessName]; UILabel *lblTitleWeight = [[UILabel alloc]init]; lblTitleWeight.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDecorationProcessName.frame)+ypadding,80,25); lblTitleWeight.text = @"重量:"; lblTitleWeight.font=orderTextFont; [_contentView addSubview:lblTitleWeight]; UILabel *lblWeight =[[UILabel alloc]init]; lblWeight.frame=CGRectMake(CGRectGetMaxX(lblTitleWeight.frame),CGRectGetMaxY(lblTitleDecorationProcessName.frame)+ypadding,250, 25); lblWeight.font=orderTextFont; lblWeight.text=_auditListModel.weight; [_contentView addSubview:lblWeight]; UILabel *lblTitleEstimateInstallationDate = [[UILabel alloc]init]; lblTitleEstimateInstallationDate.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleWeight.frame)+ypadding,100,25); lblTitleEstimateInstallationDate.text = @"预计安装日期:"; lblTitleEstimateInstallationDate.font=orderTextFont; [_contentView addSubview:lblTitleEstimateInstallationDate]; UILabel *lblEstimateInstallationDate =[[UILabel alloc]init]; lblEstimateInstallationDate.frame=CGRectMake(CGRectGetMaxX(lblTitleEstimateInstallationDate.frame),CGRectGetMaxY(lblTitleWeight.frame)+ypadding,250, 25); lblEstimateInstallationDate.font=orderTextFont; lblEstimateInstallationDate.text=_auditListModel.estimateInstallationDate; [_contentView addSubview:lblEstimateInstallationDate]; UILabel *lblTitleDeliveryArea = [[UILabel alloc]init]; lblTitleDeliveryArea.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleEstimateInstallationDate.frame)+ypadding,80,25); lblTitleDeliveryArea.text = @"送货区域:"; lblTitleDeliveryArea.font=orderTextFont; [_contentView addSubview:lblTitleDeliveryArea]; UILabel *lblDeliveryArea =[[UILabel alloc]init]; lblDeliveryArea.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryArea.frame),CGRectGetMaxY(lblTitleEstimateInstallationDate.frame)+ypadding,250, 25); lblDeliveryArea.font=orderTextFont; lblDeliveryArea.text=_auditListModel.deliveryAreaName; [_contentView addSubview:lblDeliveryArea]; UILabel *lblTitleFloorsName = [[UILabel alloc]init]; lblTitleFloorsName.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDeliveryArea.frame)+ypadding,80,25); lblTitleFloorsName.text = @"楼层:"; lblTitleFloorsName.font=orderTextFont; [_contentView addSubview:lblTitleFloorsName]; UILabel *lblFloorsName =[[UILabel alloc]init]; lblFloorsName.frame=CGRectMake(CGRectGetMaxX(lblTitleFloorsName.frame),CGRectGetMaxY(lblTitleDeliveryArea.frame)+ypadding,250, 25); lblFloorsName.font=orderTextFont; lblFloorsName.text=_auditListModel.floorsName; [_contentView addSubview:lblFloorsName]; UILabel *lblTitleStepNo = [[UILabel alloc]init]; lblTitleStepNo.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleFloorsName.frame)+ypadding,80,25); lblTitleStepNo.text = @"审批步骤:"; lblTitleStepNo.font=orderTextFont; [_contentView addSubview:lblTitleStepNo]; UILabel *lblStepNo =[[UILabel alloc]init]; lblStepNo.frame=CGRectMake(CGRectGetMaxX(lblTitleStepNo.frame),CGRectGetMaxY(lblTitleFloorsName.frame)+ypadding,250, 25); lblStepNo.font=orderTextFont; lblStepNo.text=_auditListModel.stepNo; [_contentView addSubview:lblStepNo]; UILabel *lblTitleReviewerName = [[UILabel alloc]init]; lblTitleReviewerName.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleStepNo.frame)+ypadding,80,25); lblTitleReviewerName.text = @"审批人:"; lblTitleReviewerName.font=orderTextFont; [_contentView addSubview:lblTitleReviewerName]; UILabel *lblReviewerName =[[UILabel alloc]init]; lblReviewerName.frame=CGRectMake(CGRectGetMaxX(lblTitleReviewerName.frame),CGRectGetMaxY(lblTitleStepNo.frame)+ypadding,250, 25); lblReviewerName.font=orderTextFont; lblReviewerName.text=_auditListModel.reviewerName; [_contentView addSubview:lblReviewerName]; UILabel *lblTitleAuditReason=[[UILabel alloc]init]; lblTitleAuditReason.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleReviewerName.frame)+ypadding,80,25); lblTitleAuditReason.text = @"审批原因:"; lblTitleAuditReason.font=orderTextFont; [_contentView addSubview:lblTitleAuditReason]; UILabel *lblAuditReason=[[UILabel alloc]init]; lblAuditReason.frame=CGRectMake(CGRectGetMaxX(lblTitleAuditReason.frame),CGRectGetMaxY(lblTitleReviewerName.frame)+ypadding,250, 25); lblAuditReason.font=orderTextFont; lblAuditReason.text=_auditListModel.auditReason; [_contentView addSubview:lblAuditReason]; UILabel *lblTitleDocumentaryOrderNo=[[UILabel alloc]init]; lblTitleDocumentaryOrderNo.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleAuditReason.frame)+ypadding,100,25); lblTitleDocumentaryOrderNo.text = @"跟单原单号:"; lblTitleDocumentaryOrderNo.font=orderTextFont; [_contentView addSubview:lblTitleDocumentaryOrderNo]; UILabel *lblDocumentaryOrderNo=[[UILabel alloc]init]; lblDocumentaryOrderNo.frame=CGRectMake(CGRectGetMaxX(lblTitleDocumentaryOrderNo.frame),CGRectGetMaxY(lblTitleAuditReason.frame)+ypadding,250, 25); lblDocumentaryOrderNo.font=orderTextFont; lblDocumentaryOrderNo.text=_auditListModel.documentaryOrderNo; [_contentView addSubview:lblDocumentaryOrderNo]; UILabel *lblTitleReversedOrderNo=[[UILabel alloc]init]; lblTitleReversedOrderNo.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDocumentaryOrderNo.frame)+ypadding,80,25); lblTitleReversedOrderNo.text = @"冲正订单:"; lblTitleReversedOrderNo.font=orderTextFont; [_contentView addSubview:lblTitleReversedOrderNo]; UILabel *lblReversedOrderNo=[[UILabel alloc]init]; lblReversedOrderNo.frame=CGRectMake(CGRectGetMaxX(lblTitleReversedOrderNo.frame),CGRectGetMaxY(lblTitleDocumentaryOrderNo.frame)+ypadding,250, 25); lblReversedOrderNo.font=orderTextFont; lblReversedOrderNo.text=_auditListModel.reversedOrderNo; [_contentView addSubview:lblReversedOrderNo]; UILabel *lblTitleAccountDate=[[UILabel alloc]init]; lblTitleAccountDate.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleReversedOrderNo.frame)+ypadding,80,25); lblTitleAccountDate.text = @"账务日期:"; lblTitleAccountDate.font=orderTextFont; [_contentView addSubview:lblTitleAccountDate]; UILabel *lblAccountDate=[[UILabel alloc]init]; lblAccountDate.frame=CGRectMake(CGRectGetMaxX(lblTitleAccountDate.frame),CGRectGetMaxY(lblTitleReversedOrderNo.frame)+ypadding,250, 25); lblAccountDate.font=orderTextFont; lblAccountDate.text=_auditListModel.accountDate; [_contentView addSubview:lblAccountDate]; UILabel *lblTitleDocumentationClerk=[[UILabel alloc]init]; lblTitleDocumentationClerk.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleAccountDate.frame)+ypadding,80,25); lblTitleDocumentationClerk.text = @"制单员:"; lblTitleDocumentationClerk.font=orderTextFont; [_contentView addSubview:lblTitleDocumentationClerk]; UILabel *lblDocumentationClerk=[[UILabel alloc]init]; lblDocumentationClerk.frame=CGRectMake(CGRectGetMaxX(lblTitleDocumentationClerk.frame),CGRectGetMaxY(lblTitleAccountDate.frame)+ypadding,250, 25); lblDocumentationClerk.font=orderTextFont; lblDocumentationClerk.text=_auditListModel.documentationClerk; [_contentView addSubview:lblDocumentationClerk]; UILabel *lblTitleAttachmentCount=[[UILabel alloc]init]; lblTitleAttachmentCount.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleDocumentationClerk.frame)+ypadding,80,25); lblTitleAttachmentCount.text = @"附件数量:"; lblTitleAttachmentCount.font=orderTextFont; [_contentView addSubview:lblTitleAttachmentCount]; UILabel *lblAttachmentCount=[[UILabel alloc]init]; lblAttachmentCount.frame=CGRectMake(CGRectGetMaxX(lblTitleAttachmentCount.frame),CGRectGetMaxY(lblTitleDocumentationClerk.frame)+ypadding,250, 25); lblAttachmentCount.font=orderTextFont; lblAttachmentCount.text=_auditListModel.attachmentCount; [_contentView addSubview:lblAttachmentCount]; UILabel *lblTitleCreateUser=[[UILabel alloc]init]; lblTitleCreateUser.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleAttachmentCount.frame)+ypadding,80,25); lblTitleCreateUser.text = @"创建者:"; lblTitleCreateUser.font=orderTextFont; [_contentView addSubview:lblTitleCreateUser]; UILabel *lblCreateUser=[[UILabel alloc]init]; lblCreateUser.frame=CGRectMake(CGRectGetMaxX(lblTitleCreateUser.frame),CGRectGetMaxY(lblTitleAttachmentCount.frame)+ypadding,250, 25); lblCreateUser.font=orderTextFont; lblCreateUser.text=_auditListModel.createUser; [_contentView addSubview:lblCreateUser]; UILabel *lblTitleCreateTime=[[UILabel alloc]init]; lblTitleCreateTime.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleCreateUser.frame)+ypadding,80,25); lblTitleCreateTime.text = @"创建时间:"; lblTitleCreateTime.font=orderTextFont; [_contentView addSubview:lblTitleCreateTime]; UILabel *lblCreateTime=[[UILabel alloc]init]; lblCreateTime.frame=CGRectMake(CGRectGetMaxX(lblTitleCreateTime.frame),CGRectGetMaxY(lblTitleCreateUser.frame)+ypadding,250, 25); lblCreateTime.font=orderTextFont; lblCreateTime.text=_auditListModel.createTime; [_contentView addSubview:lblCreateTime]; UILabel *lblTitleUpdateUser=[[UILabel alloc]init]; lblTitleUpdateUser.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleCreateTime.frame)+ypadding,100,25); lblTitleUpdateUser.text = @"最近更新者:"; lblTitleUpdateUser.font=orderTextFont; [_contentView addSubview:lblTitleUpdateUser]; UILabel *lblUpdateUser=[[UILabel alloc]init]; lblUpdateUser.frame=CGRectMake(CGRectGetMaxX(lblTitleUpdateUser.frame),CGRectGetMaxY(lblTitleCreateTime.frame)+ypadding,250, 25); lblUpdateUser.font=orderTextFont; lblUpdateUser.text=_auditListModel.updateUser; [_contentView addSubview:lblUpdateUser]; UILabel *lblTitleUpdateTime=[[UILabel alloc]init]; lblTitleUpdateTime.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleUpdateUser.frame)+ypadding,100,25); lblTitleUpdateTime.text = @"最近更新时间:"; lblTitleUpdateTime.font=orderTextFont; [_contentView addSubview:lblTitleUpdateTime]; UILabel *lblUpdateTime=[[UILabel alloc]init]; lblUpdateTime.frame=CGRectMake(CGRectGetMaxX(lblTitleUpdateTime.frame),CGRectGetMaxY(lblTitleUpdateUser.frame)+ypadding,250, 25); lblUpdateTime.font=orderTextFont; lblUpdateTime.text=_auditListModel.updateTime; [_contentView addSubview:lblUpdateTime]; UILabel *lblTitleRemarks=[[UILabel alloc]init]; lblTitleRemarks.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleUpdateTime.frame)+ypadding,80,25); lblTitleRemarks.text = @"备注:"; lblTitleRemarks.font=orderTextFont; [_contentView addSubview:lblTitleRemarks]; UILabel *lblRemarks=[[UILabel alloc]init]; lblRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleRemarks.frame),CGRectGetMaxY(lblTitleUpdateTime.frame)+ypadding,250, 25); lblRemarks.font=orderTextFont; lblRemarks.text=_auditListModel.remarks; [_contentView addSubview:lblRemarks]; UILabel *lblTitleSubStaff=[[UILabel alloc]init]; lblTitleSubStaff.frame=CGRectMake(xpadding,CGRectGetMaxY(lblTitleRemarks.frame)+ypadding,80,25); lblTitleSubStaff.text = @"从业务员:"; lblTitleSubStaff.font=orderTextFont; [_contentView addSubview:lblTitleSubStaff]; UILabel *lblSubStaff=[[UILabel alloc]init]; lblSubStaff.frame=CGRectMake(CGRectGetMaxX(lblTitleSubStaff.frame),CGRectGetMaxY(lblTitleRemarks.frame)+ypadding,250, 25); lblSubStaff.font=orderTextFont; lblSubStaff.text=_auditListModel.subSalesMan; [_contentView addSubview:lblSubStaff]; _contentView.frame=CGRectMake(10,10, Screen_Width-20, CGRectGetMaxY( lblTitleSubStaff.frame)); _contentView.layer.cornerRadius = CornerRadius; _scroll.contentSize=CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(lblTitleSubStaff.frame)+rectStatusHeight+rectNavHeight+100); } @end