| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860 |
- //
- // OrderAuditDetailListCell.m
- // IBOSS
- //
- // Created by 关宏厚 on 2018/11/19.
- // Copyright © 2018 elongtian. All rights reserved.
- //
- #import "OrderAuditDetailListCell.h"
- @implementation OrderAuditDetailListCell
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
-
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- self.layer.cornerRadius = CornerRadius;
- self.backgroundColor = [UIColor whiteColor];
- return self;
- }
- - (void)setOrderAuditDetailCell:(OrderDetailModel *)auditDetailModel{
-
- CGFloat heightRow = 31;
- CGFloat lblx = 10;
- CGFloat lbly = 0;
- CGFloat lblwidth = 70;
- CGFloat lblheight = 31;
- CGFloat valuey = 0;
- CGFloat valueheight = 31;
-
- UIView *vSalesDetailType = [UIView new];
- vSalesDetailType.frame=CGRectMake(0,0, Screen_Width, heightRow);
-
- [self.contentView addSubview:vSalesDetailType];
-
- UILabel *lblTitleSalesDetailType = [UILabel new];
- lblTitleSalesDetailType.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleSalesDetailType.text = @"销售明细类型:";
- lblTitleSalesDetailType.textColor = [UIColor blackColor];
- lblTitleSalesDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSalesDetailType addSubview:lblTitleSalesDetailType];
-
- UILabel *lblSalesDetailType = [UILabel new];
- lblSalesDetailType.frame=CGRectMake(CGRectGetMaxX(lblTitleSalesDetailType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSalesDetailType.frame), valueheight);
- lblSalesDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSalesDetailType addSubview:lblSalesDetailType];
- lblSalesDetailType.text = auditDetailModel.salesDetailTypeName;
-
- UIView *vOnlyCode = [UIView new];
- vOnlyCode.frame=CGRectMake(0, CGRectGetMaxY(vSalesDetailType.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vOnlyCode];
-
- UILabel *lblTitleOnlyCode = [UILabel new];
- lblTitleOnlyCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOnlyCode.text = @"唯一编码:";
- lblTitleOnlyCode.textColor = [UIColor blackColor];
- lblTitleOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOnlyCode addSubview:lblTitleOnlyCode];
-
- UILabel *lblOnlyCode = [UILabel new];
- lblOnlyCode.frame=CGRectMake(CGRectGetMaxX(lblTitleOnlyCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOnlyCode.frame), valueheight);
- lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOnlyCode addSubview:lblOnlyCode];
- lblOnlyCode.text = auditDetailModel.onlyCode;
-
- UIView *vCode = [UIView new];
- vCode.frame=CGRectMake(0, CGRectGetMaxY(vOnlyCode.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vCode];
-
- UILabel *lblTitleCode = [UILabel new];
- lblTitleCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCode.text = @"商品编码:";
- lblTitleCode.textColor = [UIColor blackColor];
- lblTitleCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCode addSubview:lblTitleCode];
-
- UILabel *lblCode = [UILabel new];
- lblCode.frame=CGRectMake(CGRectGetMaxX(lblTitleCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCode.frame), valueheight);
- lblCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCode addSubview:lblCode];
- lblCode.text = auditDetailModel.code;
-
- UIView *vCeaseFlag = [UIView new];
- vCeaseFlag.frame=CGRectMake(0, CGRectGetMaxY(vCode.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vCeaseFlag];
-
- UILabel *lblTitleCeaseFlag = [UILabel new];
- lblTitleCeaseFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCeaseFlag.text = @"停产标识:";
- lblTitleCeaseFlag.textColor = [UIColor blackColor];
- lblTitleCeaseFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCeaseFlag addSubview:lblTitleCeaseFlag];
-
- UILabel *lblCeaseFlag = [UILabel new];
- lblCeaseFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleCeaseFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCeaseFlag.frame), valueheight);
- lblCeaseFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCeaseFlag addSubview:lblCeaseFlag];
- int ceaseFlag= auditDetailModel.ceaseFlag;
- NSString *ceaseFlagStr;
- if(ceaseFlag==0){
- ceaseFlagStr=@"否";
- }
- else
- {
- ceaseFlagStr=@"是";
- }
- lblCeaseFlag.text =ceaseFlagStr ;
-
- UIView *vBrand = [UIView new];
- vBrand.frame=CGRectMake(0, CGRectGetMaxY(vCeaseFlag.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vBrand];
-
- UILabel *lblTitleBrand = [UILabel new];
- lblTitleBrand.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleBrand.text = @"商品品牌:";
- lblTitleBrand.textColor = [UIColor blackColor];
- lblTitleBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBrand addSubview:lblTitleBrand];
-
- UILabel *lblBrand = [UILabel new];
- lblBrand.frame=CGRectMake(CGRectGetMaxX(lblTitleBrand.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBrand.frame), valueheight);
- lblBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBrand addSubview:lblBrand];
- lblBrand.text = auditDetailModel.brandName;
-
- UIView *vKind= [UIView new];
- vKind.frame=CGRectMake(0, CGRectGetMaxY(vBrand.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vKind];
-
- UILabel *lblTitleKind = [UILabel new];
- lblTitleKind.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleKind.text = @"商品种类:";
- lblTitleKind.textColor = [UIColor blackColor];
- lblTitleKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vKind addSubview:lblTitleKind];
-
- UILabel *lblKind = [UILabel new];
- lblKind.frame=CGRectMake(CGRectGetMaxX(lblTitleKind.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleKind.frame), valueheight);
- lblKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vKind addSubview:lblKind];
- lblKind.text = auditDetailModel.kindName;
-
- UIView *vVariety= [UIView new];
- vVariety.frame=CGRectMake(0, CGRectGetMaxY(vKind.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vVariety];
-
- UILabel *lblTitleVariety = [UILabel new];
- lblTitleVariety.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleVariety.text = @"商品品种:";
- lblTitleVariety.textColor = [UIColor blackColor];
- lblTitleVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVariety addSubview:lblTitleVariety];
-
- UILabel *lblVariety = [UILabel new];
- lblVariety.frame=CGRectMake(CGRectGetMaxX(lblTitleVariety.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleVariety.frame), valueheight);
- lblVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVariety addSubview:lblVariety];
- lblVariety.text = auditDetailModel.varietyName;
-
-
- UIView *vSeries= [UIView new];
- vSeries.frame=CGRectMake(0, CGRectGetMaxY(vVariety.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vSeries];
-
- UILabel *lblTitleSeries = [UILabel new];
- lblTitleSeries.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleSeries.text = @"商品系列:";
- lblTitleSeries.textColor = [UIColor blackColor];
- lblTitleSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSeries addSubview:lblTitleSeries];
-
- UILabel *lblSeries = [UILabel new];
- lblSeries.frame=CGRectMake(CGRectGetMaxX(lblTitleSeries.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSeries.frame), valueheight);
- lblSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSeries addSubview:lblSeries];
- lblSeries.text = auditDetailModel.seriesName;
-
- UIView *vUnit= [UIView new];
- vUnit.frame=CGRectMake(0, CGRectGetMaxY(vSeries.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vUnit];
-
- UILabel *lblTitleUnit = [UILabel new];
- lblTitleUnit.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleUnit.text = @"计量单位:";
- lblTitleUnit.textColor = [UIColor blackColor];
- lblTitleUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnit addSubview:lblTitleUnit];
-
- UILabel *lblUnit = [UILabel new];
- lblUnit.frame=CGRectMake(CGRectGetMaxX(lblTitleUnit.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUnit.frame), valueheight);
- lblUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnit addSubview:lblUnit];
- lblUnit.text = auditDetailModel.unitName;
-
- UIView *vCirculateType= [UIView new];
- vCirculateType.frame=CGRectMake(0, CGRectGetMaxY(vUnit.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vCirculateType];
-
- UILabel *lblTitleCirculateType = [UILabel new];
- lblTitleCirculateType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCirculateType.text = @"流通方式:";
- lblTitleCirculateType.textColor = [UIColor blackColor];
- lblTitleCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCirculateType addSubview:lblTitleCirculateType];
-
- UILabel *lblCirculateType = [UILabel new];
- lblCirculateType.frame=CGRectMake(CGRectGetMaxX(lblTitleCirculateType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCirculateType.frame), valueheight);
- lblCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCirculateType addSubview:lblCirculateType];
- lblCirculateType.text = auditDetailModel.goodsCirculateTypeName;
- UIView *vSpecification= [UIView new];
- vSpecification.frame=CGRectMake(0, CGRectGetMaxY(vCirculateType.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vSpecification];
-
- UILabel *lblTitleSpecification = [UILabel new];
- lblTitleSpecification.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleSpecification.text = @"商品规格:";
- lblTitleSpecification.textColor = [UIColor blackColor];
- lblTitleSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSpecification addSubview:lblTitleSpecification];
-
- UILabel *lblSpecification = [UILabel new];
- lblSpecification.frame=CGRectMake(CGRectGetMaxX(lblTitleSpecification.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSpecification.frame), valueheight);
- lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSpecification addSubview:lblSpecification];
- lblSpecification.text = auditDetailModel.specification;
-
- UIView *vGrade= [UIView new];
- vGrade.frame=CGRectMake(0, CGRectGetMaxY(vSpecification.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vGrade];
-
- UILabel *lblTitleGrade = [UILabel new];
- lblTitleGrade.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleGrade.text = @"商品等级:";
- lblTitleGrade.textColor = [UIColor blackColor];
- lblTitleGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGrade addSubview:lblTitleGrade];
-
- UILabel *lblGrade = [UILabel new];
- lblGrade.frame=CGRectMake(CGRectGetMaxX(lblTitleGrade.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGrade.frame), valueheight);
- lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGrade addSubview:lblGrade];
- lblGrade.text = auditDetailModel.gradeName;
-
- UIView *vGoodsName= [UIView new];
- vGoodsName.frame=CGRectMake(0, CGRectGetMaxY(vGrade.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vGoodsName];
-
- UILabel *lblTitleGoodsName = [UILabel new];
- lblTitleGoodsName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleGoodsName.text = @"商品名称:";
- lblTitleGoodsName.textColor = [UIColor blackColor];
- lblTitleGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsName addSubview:lblTitleGoodsName];
-
- UILabel *lblGoodsName = [UILabel new];
- lblGoodsName.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsName.frame), valueheight);
- lblGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsName addSubview:lblGoodsName];
- lblGoodsName.text = auditDetailModel.goodsName;
-
- UIView *vColorNumber= [UIView new];
- vColorNumber.frame=CGRectMake(0, CGRectGetMaxY(vGoodsName.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vColorNumber];
-
- UILabel *lblTitleColorNumber = [UILabel new];
- lblTitleColorNumber.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleColorNumber.text = @"色号:";
- lblTitleColorNumber.textColor = [UIColor blackColor];
- lblTitleColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vColorNumber addSubview:lblTitleColorNumber];
-
- UILabel *lblColorNumber = [UILabel new];
- lblColorNumber.frame=CGRectMake(CGRectGetMaxX(lblTitleColorNumber.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleColorNumber.frame), valueheight);
- lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vColorNumber addSubview:lblColorNumber];
- lblColorNumber.text = auditDetailModel.colorNumber;
-
- UIView *vOrderQuantity= [UIView new];
- vOrderQuantity.frame=CGRectMake(0, CGRectGetMaxY(vColorNumber.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vOrderQuantity];
-
- UILabel *lblTitleOrderQuantity = [UILabel new];
- lblTitleOrderQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOrderQuantity.text = @"订单数量:";
- lblTitleOrderQuantity.textColor = [UIColor blackColor];
- lblTitleOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderQuantity addSubview:lblTitleOrderQuantity];
-
- UILabel *lblOrderQuantity = [UILabel new];
- lblOrderQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderQuantity.frame), valueheight);
- lblOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderQuantity addSubview:lblOrderQuantity];
- lblOrderQuantity.text = auditDetailModel.orderQuantity;
-
- UIView *vM3= [UIView new];
- vM3.frame=CGRectMake(0, CGRectGetMaxY(vOrderQuantity.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vM3];
-
- UILabel *lblTitleM3 = [UILabel new];
- lblTitleM3.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleM3.text = @"体积数:";
- lblTitleM3.textColor = [UIColor blackColor];
- lblTitleM3.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vM3 addSubview:lblTitleM3];
-
- UILabel *lblM3 = [UILabel new];
- lblM3.frame=CGRectMake(CGRectGetMaxX(lblTitleM3.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleM3.frame), valueheight);
- lblM3.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vM3 addSubview:lblM3];
- lblM3.text = auditDetailModel.M3;
-
- UIView *vFactOrderQuantiy= [UIView new];
- vFactOrderQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vM3.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFactOrderQuantiy];
-
- UILabel *lblTitleFactOrderQuantiy = [UILabel new];
- lblTitleFactOrderQuantiy.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleFactOrderQuantiy.text = @"实际订单数量:";
- lblTitleFactOrderQuantiy.textColor = [UIColor blackColor];
- lblTitleFactOrderQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactOrderQuantiy addSubview:lblTitleFactOrderQuantiy];
-
- UILabel *lblFactOrderQuantiy = [UILabel new];
- lblFactOrderQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleFactOrderQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactOrderQuantiy.frame), valueheight);
- lblFactOrderQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactOrderQuantiy addSubview:lblFactOrderQuantiy];
- lblFactOrderQuantiy.text = auditDetailModel.factOrderQuantiy;
-
- UIView *vToSalesQuantiy= [UIView new];
- vToSalesQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vFactOrderQuantiy.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vToSalesQuantiy];
-
- UILabel *lblTitleToSalesQuantiy = [UILabel new];
- lblTitleToSalesQuantiy.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleToSalesQuantiy.text = @"转销售数量:";
- lblTitleToSalesQuantiy.textColor = [UIColor blackColor];
- lblTitleToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vToSalesQuantiy addSubview:lblTitleToSalesQuantiy];
-
- UILabel *lblToSalesQuantiy = [UILabel new];
- lblToSalesQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleToSalesQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleToSalesQuantiy.frame), valueheight);
- lblToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vToSalesQuantiy addSubview:lblToSalesQuantiy];
- lblToSalesQuantiy.text = auditDetailModel.toSalesQuantity;
-
- UIView *vFactOccupyQuantiy= [UIView new];
- vFactOccupyQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vToSalesQuantiy.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFactOccupyQuantiy];
-
- UILabel *lblTitleFactOccupyQuantiy = [UILabel new];
- lblTitleFactOccupyQuantiy.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleFactOccupyQuantiy.text = @"实际占库量:";
- lblTitleFactOccupyQuantiy.textColor = [UIColor blackColor];
- lblTitleFactOccupyQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactOccupyQuantiy addSubview:lblTitleFactOccupyQuantiy];
-
- UILabel *lblFactOccupyQuantiy = [UILabel new];
- lblFactOccupyQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleFactOccupyQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactOccupyQuantiy.frame), valueheight);
- lblFactOccupyQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactOccupyQuantiy addSubview:lblFactOccupyQuantiy];
- lblFactOccupyQuantiy.text = auditDetailModel.factOccupyQuantity;
-
-
- UIView *vFactToSalesQuantiy= [UIView new];
- vFactToSalesQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vFactOccupyQuantiy.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFactToSalesQuantiy];
-
- UILabel *lblTitleFactToSalesQuantiy = [UILabel new];
- lblTitleFactToSalesQuantiy.frame=CGRectMake(lblx, lbly, 110, lblheight);
- lblTitleFactToSalesQuantiy.text = @"实际转销售数量:";
- lblTitleFactToSalesQuantiy.textColor = [UIColor blackColor];
- lblTitleFactToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactToSalesQuantiy addSubview:lblTitleFactToSalesQuantiy];
-
- UILabel *lblFactToSalesQuantiy = [UILabel new];
- lblFactToSalesQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleFactToSalesQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactToSalesQuantiy.frame), valueheight);
- lblFactToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactToSalesQuantiy addSubview:lblFactToSalesQuantiy];
- lblFactToSalesQuantiy.text = auditDetailModel.factToSalesQuantity;
-
- UIView *vGoodsAmount= [UIView new];
- vGoodsAmount.frame=CGRectMake(0, CGRectGetMaxY(vFactToSalesQuantiy.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vGoodsAmount];
-
- UILabel *lblTitleGoodsAmount = [UILabel new];
- lblTitleGoodsAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleGoodsAmount.text = @"整单金额:";
- lblTitleGoodsAmount.textColor = [UIColor blackColor];
- lblTitleGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsAmount addSubview:lblTitleGoodsAmount];
-
- UILabel *lblGoodsAmount= [UILabel new];
- lblGoodsAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsAmount.frame), valueheight);
- lblGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsAmount addSubview:lblGoodsAmount];
- lblGoodsAmount.text = auditDetailModel.goodsAmount;
-
- UIView *vFactGoodsAmount= [UIView new];
- vFactGoodsAmount.frame=CGRectMake(0, CGRectGetMaxY(vGoodsAmount.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vFactGoodsAmount];
-
- UILabel *lblTitleFactGoodsAmount = [UILabel new];
- lblTitleFactGoodsAmount.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleFactGoodsAmount.text = @"实际整单金额:";
- lblTitleFactGoodsAmount.textColor = [UIColor blackColor];
- lblTitleFactGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactGoodsAmount addSubview:lblTitleFactGoodsAmount];
-
- UILabel *lblFactGoodsAmount= [UILabel new];
- lblFactGoodsAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleFactGoodsAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactGoodsAmount.frame), valueheight);
- lblFactGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFactGoodsAmount addSubview:lblFactGoodsAmount];
- lblFactGoodsAmount.text = auditDetailModel.factGoodsAmount;
-
- UIView *vWarehouseCode= [UIView new];
- vWarehouseCode.frame=CGRectMake(0, CGRectGetMaxY(vFactGoodsAmount.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vWarehouseCode];
-
- UILabel *lblTitleWarehouseCode = [UILabel new];
- lblTitleWarehouseCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleWarehouseCode.text = @"库区编码:";
- lblTitleWarehouseCode.textColor = [UIColor blackColor];
- lblTitleWarehouseCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseCode addSubview:lblTitleWarehouseCode];
-
- UILabel *lblWarehouseCode= [UILabel new];
- lblWarehouseCode.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseCode.frame), valueheight);
- lblWarehouseCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseCode addSubview:lblWarehouseCode];
- lblWarehouseCode.text = auditDetailModel.warehouseCode;
-
- UIView *vWarehouseName= [UIView new];
- vWarehouseName.frame=CGRectMake(0, CGRectGetMaxY(vWarehouseCode.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vWarehouseName];
-
- UILabel *lblTitleWarehouseName = [UILabel new];
- lblTitleWarehouseName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleWarehouseName.text = @"库区名称:";
- lblTitleWarehouseName.textColor = [UIColor blackColor];
- lblTitleWarehouseName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseName addSubview:lblTitleWarehouseName];
-
- UILabel *lblWarehouseName= [UILabel new];
- lblWarehouseName.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseName.frame), valueheight);
- lblWarehouseName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseName addSubview:lblWarehouseName];
- lblWarehouseName.text = auditDetailModel.warehouseName;
-
- UIView *vPositionNumber= [UIView new];
- vPositionNumber.frame=CGRectMake(0, CGRectGetMaxY(vWarehouseName.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vPositionNumber];
-
- UILabel *lblTitlePositionNumber = [UILabel new];
- lblTitlePositionNumber.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitlePositionNumber.text = @"仓位号:";
- lblTitlePositionNumber.textColor = [UIColor blackColor];
- lblTitlePositionNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPositionNumber addSubview:lblTitlePositionNumber];
-
- UILabel *lblPositionNumber= [UILabel new];
- lblPositionNumber.frame=CGRectMake(CGRectGetMaxX(lblTitlePositionNumber.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePositionNumber.frame), valueheight);
- lblPositionNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPositionNumber addSubview:lblPositionNumber];
- lblPositionNumber.text = auditDetailModel.positionNumber;
-
- UIView *vWeight= [UIView new];
- vWeight.frame=CGRectMake(0, CGRectGetMaxY(vPositionNumber.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vWeight];
-
- UILabel *lblTitleWeight = [UILabel new];
- lblTitleWeight.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleWeight.text = @"重量:";
- lblTitleWeight.textColor = [UIColor blackColor];
- lblTitleWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWeight addSubview:lblTitleWeight];
-
- UILabel *lblWeight= [UILabel new];
- lblWeight.frame=CGRectMake(CGRectGetMaxX(lblTitleWeight.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWeight.frame), valueheight);
- lblWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWeight addSubview:lblWeight];
- lblWeight.text = auditDetailModel.weight;
-
- UIView *vVolume= [UIView new];
- vVolume.frame=CGRectMake(0, CGRectGetMaxY(vWeight.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vVolume];
-
- UILabel *lblTitleVolume = [UILabel new];
- lblTitleVolume.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleVolume.text = @"体积:";
- lblTitleVolume.textColor = [UIColor blackColor];
- lblTitleVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVolume addSubview:lblTitleVolume];
-
- UILabel *lblVolume= [UILabel new];
- lblVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleVolume.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleVolume.frame), valueheight);
- lblVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVolume addSubview:lblVolume];
- lblVolume.text = auditDetailModel.volume;
-
- UIView *vSupplier= [UIView new];
- vSupplier.frame=CGRectMake(0, CGRectGetMaxY(vVolume.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vSupplier];
-
- UILabel *lblTitleSupplier = [UILabel new];
- lblTitleSupplier.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleSupplier.text = @"供应商:";
- lblTitleSupplier.textColor = [UIColor blackColor];
- lblTitleSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSupplier addSubview:lblTitleSupplier];
-
- UILabel *lblSupplier= [UILabel new];
- lblSupplier.frame=CGRectMake(CGRectGetMaxX(lblTitleSupplier.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSupplier.frame), valueheight);
- lblSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSupplier addSubview:lblSupplier];
- lblSupplier.text = auditDetailModel.supplierName;
-
-
- UIView *vOrderPrice= [UIView new];
- vOrderPrice.frame=CGRectMake(0, CGRectGetMaxY(vSupplier.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vOrderPrice];
-
- UILabel *lblTitleOrderPrice = [UILabel new];
- lblTitleOrderPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOrderPrice.text = @"订单价格:";
- lblTitleOrderPrice.textColor = [UIColor blackColor];
- lblTitleOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderPrice addSubview:lblTitleOrderPrice];
-
- UILabel *lblOrderPrice= [UILabel new];
- lblOrderPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderPrice.frame), valueheight);
- lblOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderPrice addSubview:lblOrderPrice];
- lblOrderPrice.text = auditDetailModel.orderPrice;
-
- UIView *vMarkedPrice= [UIView new];
- vMarkedPrice.frame=CGRectMake(0, CGRectGetMaxY(vOrderPrice.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vMarkedPrice];
-
- UILabel *lblTitleMarkedPrice = [UILabel new];
- lblTitleMarkedPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleMarkedPrice.text = @"标价:";
- lblTitleMarkedPrice.textColor = [UIColor blackColor];
- lblTitleMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vMarkedPrice addSubview:lblTitleMarkedPrice];
-
- UILabel *lblMarkedPrice= [UILabel new];
- lblMarkedPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleMarkedPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleMarkedPrice.frame), valueheight);
- lblMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vMarkedPrice addSubview:lblMarkedPrice];
- lblMarkedPrice.text = auditDetailModel.markedPrice;
-
- UIView *vDiscount= [UIView new];
- vDiscount.frame=CGRectMake(0, CGRectGetMaxY(vMarkedPrice.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vDiscount];
-
- UILabel *lblTitleDiscount = [UILabel new];
- lblTitleDiscount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleDiscount.text = @"折扣:";
- lblTitleDiscount.textColor = [UIColor blackColor];
- lblTitleDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDiscount addSubview:lblTitleDiscount];
-
- UILabel *lblDiscount= [UILabel new];
- lblDiscount.frame=CGRectMake(CGRectGetMaxX(lblTitleDiscount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDiscount.frame), valueheight);
- lblDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDiscount addSubview:lblDiscount];
- lblDiscount.text = auditDetailModel.discount;
-
- // UIView *vCostPrice= [UIView new];
- // vCostPrice.frame=CGRectMake(0, CGRectGetMaxY(vDiscount.frame)+8, Screen_Width, heightRow);
- //
- // [self.contentView addSubview:vCostPrice];
- //
- // UILabel *lblTitleCostPrice = [UILabel new];
- // lblTitleCostPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- // lblTitleCostPrice.text = @"成本价:";
- // lblTitleCostPrice.textColor = [UIColor blackColor];
- // lblTitleCostPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- // [vCostPrice addSubview:lblTitleCostPrice];
- //
- // UILabel *lblCostPrice= [UILabel new];
- // lblCostPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleCostPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCostPrice.frame), valueheight);
- // lblCostPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- // [vCostPrice addSubview:lblCostPrice];
- // lblCostPrice.text = auditDetailModel.costPrice;
-
- UIView *vUsePosition= [UIView new];
- vUsePosition.frame=CGRectMake(0, CGRectGetMaxY(vDiscount.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vUsePosition];
-
- UILabel *lblTitleUsePosition = [UILabel new];
- lblTitleUsePosition.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleUsePosition.text = @"使用位置:";
- lblTitleUsePosition.textColor = [UIColor blackColor];
- lblTitleUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUsePosition addSubview:lblTitleUsePosition];
-
- UILabel *lblUsePosition= [UILabel new];
- lblUsePosition.frame=CGRectMake(CGRectGetMaxX(lblTitleUsePosition.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUsePosition.frame), valueheight);
- lblUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUsePosition addSubview:lblUsePosition];
- lblUsePosition.text = auditDetailModel.usePositionName;
-
-
- UIView *vExistsPromotionFlag= [UIView new];
- vExistsPromotionFlag.frame=CGRectMake(0, CGRectGetMaxY(vUsePosition.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vExistsPromotionFlag];
-
- UILabel *lblTitleExistsPromotionFlag = [UILabel new];
- lblTitleExistsPromotionFlag.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleExistsPromotionFlag.text = @"促销存在标识:";
- lblTitleExistsPromotionFlag.textColor = [UIColor blackColor];
- lblTitleExistsPromotionFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExistsPromotionFlag addSubview:lblTitleExistsPromotionFlag];
-
- UILabel *lblExistsPromotionFlag= [UILabel new];
- lblExistsPromotionFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleExistsPromotionFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExistsPromotionFlag.frame), valueheight);
- lblExistsPromotionFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExistsPromotionFlag addSubview:lblExistsPromotionFlag];
- int existsPromotionFlag= auditDetailModel.existPromotionFlagDetail;
- NSString *existsPromotionFlagStr;
- if(existsPromotionFlag==0){
- existsPromotionFlagStr=@"否";
- }
- else{
- existsPromotionFlagStr=@"是";
- }
- lblExistsPromotionFlag.text=existsPromotionFlagStr;
-
- UIView *vManuFlag= [UIView new];
- vManuFlag.frame=CGRectMake(0, CGRectGetMaxY(vExistsPromotionFlag.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vManuFlag];
-
- UILabel *lblTitleManuFlag = [UILabel new];
- lblTitleManuFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleManuFlag.text = @"加工标识:";
- lblTitleManuFlag.textColor = [UIColor blackColor];
- lblTitleManuFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vManuFlag addSubview:lblTitleManuFlag];
-
- UILabel *lblManuFlag= [UILabel new];
- lblManuFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleManuFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleManuFlag.frame), valueheight);
- lblManuFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vManuFlag addSubview:lblManuFlag];
- int manuFlag=auditDetailModel.manuFlag;
- NSString *manuFlagStr;
- if(manuFlag==0){
- manuFlagStr=@"否";
- }
- else
- {
- manuFlagStr=@"是";
- }
-
- lblManuFlag.text=manuFlagStr;
-
- UIView *vManufactureStatus= [UIView new];
- vManufactureStatus.frame=CGRectMake(0, CGRectGetMaxY(vManuFlag.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vManufactureStatus];
-
- UILabel *lblTitleManufactureStatus = [UILabel new];
- lblTitleManufactureStatus.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleManufactureStatus.text = @"加工状态:";
- lblTitleManufactureStatus.textColor = [UIColor blackColor];
- lblTitleManufactureStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vManufactureStatus addSubview:lblTitleManufactureStatus];
-
- UILabel *lblManufactureStatus = [UILabel new];
- lblManufactureStatus.frame=CGRectMake(CGRectGetMaxX(lblTitleManufactureStatus.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleManufactureStatus.frame), valueheight);
- lblManufactureStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vManufactureStatus addSubview:lblManufactureStatus];
- Boolean manufactureStatus= auditDetailModel.manufactureStatus;
- NSString *manufactureStatusStr;
- if(manufactureStatus){
- manufactureStatusStr=@"是";
- }
- else{
- manufactureStatusStr=@"否";
- }
- lblManufactureStatus.text=manufactureStatusStr;
-
-
- UIView *vDeliveryFlag= [UIView new];
- vDeliveryFlag.frame=CGRectMake(0, CGRectGetMaxY(vManufactureStatus.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vDeliveryFlag];
-
- UILabel *lblTitleDeliveryFlag = [UILabel new];
- lblTitleDeliveryFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleDeliveryFlag.text = @"送货标识:";
- lblTitleDeliveryFlag.textColor = [UIColor blackColor];
- lblTitleDeliveryFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDeliveryFlag addSubview:lblTitleDeliveryFlag];
-
- UILabel *lblDeliveryFlag= [UILabel new];
- lblDeliveryFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDeliveryFlag.frame), valueheight);
- lblDeliveryFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDeliveryFlag addSubview:lblDeliveryFlag];
- int deliveryFlag=auditDetailModel.deliveryFlag;
- NSString *deliveryFlagStr;
- if(deliveryFlag==0){
- deliveryFlagStr=@"否";
- }
- else
- {
- deliveryFlagStr=@"是";
- }
-
- lblDeliveryFlag.text=deliveryFlagStr;
-
- UIView *vInstallFlag= [UIView new];
- vInstallFlag.frame=CGRectMake(0, CGRectGetMaxY(vDeliveryFlag.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vInstallFlag];
-
- UILabel *lblTitleInstallFlag = [UILabel new];
- lblTitleInstallFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleInstallFlag.text = @"安装标识:";
- lblTitleInstallFlag.textColor = [UIColor blackColor];
- lblTitleInstallFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInstallFlag addSubview:lblTitleInstallFlag];
-
- UILabel *lblInstallFlag= [UILabel new];
- lblInstallFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleInstallFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInstallFlag.frame), valueheight);
- lblInstallFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInstallFlag addSubview:lblInstallFlag];
- int installFlag=auditDetailModel.installationFlag;
- NSString *installFlagStr;
- if(installFlag==0){
- installFlagStr=@"否";
- }
- else
- {
- installFlagStr=@"是";
- }
-
- lblInstallFlag.text=installFlagStr;
-
- UIView *vExpandAttribute= [UIView new];
- vExpandAttribute.frame=CGRectMake(0, CGRectGetMaxY(vInstallFlag.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vExpandAttribute];
-
- UILabel *lblTitleExpandAttribute = [UILabel new];
- lblTitleExpandAttribute.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleExpandAttribute.text = @"扩展属性:";
- lblTitleExpandAttribute.textColor = [UIColor blackColor];
- lblTitleExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute addSubview:lblTitleExpandAttribute];
-
- UILabel *lblExpandAttribute = [UILabel new];
- lblExpandAttribute.frame=CGRectMake(CGRectGetMaxX(lblTitleExpandAttribute.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExpandAttribute.frame), valueheight);
- lblExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute addSubview:lblExpandAttribute];
-
- lblExpandAttribute.text=auditDetailModel.expandAttribute;
-
-
- UIView *vExpandAttribute2= [UIView new];
- vExpandAttribute2.frame=CGRectMake(0, CGRectGetMaxY(vExpandAttribute.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vExpandAttribute2];
-
- UILabel *lblTitleExpandAttribute2 = [UILabel new];
- lblTitleExpandAttribute2.frame=CGRectMake(lblx, lbly, 100, lblheight);
- lblTitleExpandAttribute2.text = @"扩展属性二:";
- lblTitleExpandAttribute2.textColor = [UIColor blackColor];
- lblTitleExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute2 addSubview:lblTitleExpandAttribute2];
-
- UILabel *lblExpandAttribute2 = [UILabel new];
- lblExpandAttribute2.frame=CGRectMake(CGRectGetMaxX(lblTitleExpandAttribute2.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExpandAttribute2.frame), valueheight);
- lblExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute2 addSubview:lblExpandAttribute2];
-
- lblExpandAttribute2.text=auditDetailModel.expandAttribute2;
-
- UIView *vCodeRemarks= [UIView new];
- vCodeRemarks.frame=CGRectMake(0, CGRectGetMaxY(vExpandAttribute2.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vCodeRemarks];
-
- UILabel *lblTitleCodeRemarks = [UILabel new];
- lblTitleCodeRemarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCodeRemarks.text = @"商品备注:";
- lblTitleCodeRemarks.textColor = [UIColor blackColor];
- lblTitleCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCodeRemarks addSubview:lblTitleCodeRemarks];
-
- UILabel *lblCodeRemarks = [UILabel new];
- lblCodeRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleCodeRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCodeRemarks.frame), valueheight);
- lblCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCodeRemarks addSubview:lblCodeRemarks];
-
- lblCodeRemarks.text=auditDetailModel.codeRemarks;
-
- UIView *vRemarks= [UIView new];
- vRemarks.frame=CGRectMake(0, CGRectGetMaxY(vCodeRemarks.frame)+8, Screen_Width, heightRow);
-
- [self.contentView addSubview:vRemarks];
-
- UILabel *lblTitleRemarks = [UILabel new];
- lblTitleRemarks.frame=CGRectMake(lblx, lbly, lblwidth, 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=auditDetailModel.remarks;
-
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- }
- @end
|