| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- //
- // SalesInStorageListDetailCell.m
- // IBOSSmini
- //
- // Created by guan hong hou on 2018/4/23.
- // Copyright © 2018年 elongtian. All rights reserved.
- //
- #import "SalesInStorageListDetailCell.h"
- @implementation SalesInStorageListDetailCell
- #pragma mark 公共函数
- /**
- 加载tableview cell
- @param style <#style description#>
- @param reuseIdentifier <#reuseIdentifier description#>
- @return <#return value description#>
- */
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
-
- return self;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- }
- #pragma mark 私有函数
- /**
- 设置入库列表明细cell的UI和数据
- @param inStorageDetailModel <#inStorageDetailModel description#>
- */
- -(void)setSalesInStorageListDetailModel:(OtherInStorageGoodsListDetailModel*)inStorageDetailModel{
- _inStorageDetailListModel=inStorageDetailModel;
- if(_inStorageDetailListModel==nil){
- return;
- }
- CGFloat heightLine = 1;
- CGFloat heightRow = 40;
- CGFloat lblx = 20;
- CGFloat lbly = 8;
- CGFloat lblwidth = 70;
- CGFloat lblheight = 25;
- CGFloat valuey = 8;
- CGFloat valueheight = 25;
-
- UIView *vInStorageNo = [UIView new];
- vInStorageNo.frame=CGRectMake(0, valuey, Screen_Width, heightRow);
- [self.contentView addSubview:vInStorageNo];
- UILabel *inStorageNoTitleLbl=[UILabel new];
- inStorageNoTitleLbl.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- inStorageNoTitleLbl.text=@"入库单号:";
- inStorageNoTitleLbl.textColor = [UIColor blackColor];
- inStorageNoTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInStorageNo addSubview:inStorageNoTitleLbl];
- _lblInStorageNo = [UILabel new];
- _lblInStorageNo.frame=CGRectMake(CGRectGetMaxX(inStorageNoTitleLbl.frame), valuey, Screen_Width -CGRectGetMaxX(inStorageNoTitleLbl.frame)-10, valueheight);
- _lblInStorageNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInStorageNo addSubview:_lblInStorageNo];
- _lblInStorageNo.text = _inStorageDetailListModel.enterNo;
- _topSeparator=[UIView new];
- _topSeparator.frame = CGRectMake(0, CGRectGetMaxY(vInStorageNo.frame), Screen_Width, heightLine);
-
- [self.contentView addSubview:_topSeparator];
- UIButton *btnLine = [UIButton buttonWithType:UIButtonTypeCustom];
- [btnLine setBackgroundImage:[UIImage imageNamed:@"dash"] forState:UIControlStateNormal];
- btnLine.frame = CGRectMake(0 ,0 , Screen_Width, heightLine);
- [_topSeparator addSubview:btnLine];
-
- UIView *vOnlyCode = [UIView new];
- vOnlyCode.frame=CGRectMake(0,CGRectGetMaxY(_topSeparator.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vOnlyCode];
-
- UILabel *onlyCodeTitleLbl= [UILabel new];
- onlyCodeTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- onlyCodeTitleLbl.textColor = [UIColor blackColor];
- onlyCodeTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- onlyCodeTitleLbl.text=@"唯一编码:";
- [vOnlyCode addSubview:onlyCodeTitleLbl];
-
- _lblOnlyCode=[UILabel new];
- _lblOnlyCode.frame=CGRectMake(CGRectGetMaxX(onlyCodeTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(onlyCodeTitleLbl.frame)-10, valueheight);
- _lblOnlyCode.textColor = [UIColor blackColor];
- _lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOnlyCode addSubview:_lblOnlyCode];
- _lblOnlyCode.text=_inStorageDetailListModel.onlyCode;
-
- UIView *vGoodsCode = [UIView new];
- vGoodsCode.frame=CGRectMake(0,CGRectGetMaxY(vOnlyCode.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vGoodsCode];
-
- UILabel *goodsCodeTitleLbl= [UILabel new];
- goodsCodeTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- goodsCodeTitleLbl.textColor = [UIColor blackColor];
- goodsCodeTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- goodsCodeTitleLbl.text=@"产品编码:";
- [vGoodsCode addSubview:goodsCodeTitleLbl];
-
- _lblGoodsCode=[UILabel new];
- _lblGoodsCode.frame=CGRectMake(CGRectGetMaxX(goodsCodeTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(goodsCodeTitleLbl.frame)-10, valueheight);
- _lblGoodsCode.textColor = [UIColor blackColor];
- _lblGoodsCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsCode addSubview:_lblGoodsCode];
- _lblGoodsCode.text=_inStorageDetailListModel.goodsCode;
-
- UIView *vBrand = [UIView new];
- vBrand.frame=CGRectMake(0,CGRectGetMaxY(vGoodsCode.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vBrand];
-
- UILabel *brandTitleLbl= [UILabel new];
- brandTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- brandTitleLbl.textColor = [UIColor blackColor];
- brandTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- brandTitleLbl.text=@"商品品牌:";
- [vBrand addSubview:brandTitleLbl];
-
- _lblBrand=[UILabel new];
- _lblBrand.frame=CGRectMake(CGRectGetMaxX(brandTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(brandTitleLbl.frame)-10, valueheight);
- _lblBrand.textColor = [UIColor blackColor];
- _lblBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBrand addSubview:_lblBrand];
- _lblBrand.text=_inStorageDetailListModel.brandName;
-
- UIView *vKind = [UIView new];
- vKind.frame=CGRectMake(0,CGRectGetMaxY(vBrand.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vKind];
-
- UILabel *kindTitleLbl= [UILabel new];
- kindTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- kindTitleLbl.textColor = [UIColor blackColor];
- kindTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- kindTitleLbl.text=@"商品种类:";
- [vKind addSubview:kindTitleLbl];
-
- _lblKind=[UILabel new];
- _lblKind.frame=CGRectMake(CGRectGetMaxX(kindTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(kindTitleLbl.frame)-10, valueheight);
- _lblKind.textColor = [UIColor blackColor];
- _lblKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vKind addSubview:_lblKind];
- _lblKind.text=_inStorageDetailListModel.kindName;
-
-
- UIView *vVariety = [UIView new];
- vVariety.frame=CGRectMake(0,CGRectGetMaxY(vKind.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vVariety];
-
- UILabel *varietyTitleLbl= [UILabel new];
- varietyTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- varietyTitleLbl.textColor = [UIColor blackColor];
- varietyTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- varietyTitleLbl.text=@"商品品种:";
- [vVariety addSubview:varietyTitleLbl];
-
- _lblVariety=[UILabel new];
- _lblVariety.frame=CGRectMake(CGRectGetMaxX(varietyTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(varietyTitleLbl.frame)-10, valueheight);
- _lblVariety.textColor = [UIColor blackColor];
- _lblVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVariety addSubview:_lblVariety];
- _lblVariety.text=_inStorageDetailListModel.varietyName;
-
- UIView *vSeries = [UIView new];
- vSeries.frame=CGRectMake(0,CGRectGetMaxY(vVariety.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vSeries];
-
- UILabel *seriesTitleLbl= [UILabel new];
- seriesTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- seriesTitleLbl.textColor = [UIColor blackColor];
- seriesTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- seriesTitleLbl.text=@"商品系列:";
- [vSeries addSubview:seriesTitleLbl];
-
- _lblSeries=[UILabel new];
- _lblSeries.frame=CGRectMake(CGRectGetMaxX(seriesTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(seriesTitleLbl.frame)-10, valueheight);
- _lblSeries.textColor = [UIColor blackColor];
- _lblSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSeries addSubview:_lblSeries];
- _lblSeries.text=_inStorageDetailListModel.seriesName;
-
- UIView *vSpecification = [UIView new];
- vSpecification.frame=CGRectMake(0,CGRectGetMaxY(vSeries.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vSpecification];
-
- UILabel *specificationTitleLbl= [UILabel new];
- specificationTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- specificationTitleLbl.textColor = [UIColor blackColor];
- specificationTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- specificationTitleLbl.text=@"商品规格:";
- [vSpecification addSubview:specificationTitleLbl];
-
- _lblSpecification=[UILabel new];
- _lblSpecification.frame=CGRectMake(CGRectGetMaxX(specificationTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(specificationTitleLbl.frame)-10, valueheight);
- _lblSpecification.textColor = [UIColor blackColor];
- _lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSpecification addSubview:_lblSpecification];
- _lblSpecification.text=_inStorageDetailListModel.specification;
-
- UIView *vGoodsLevel = [UIView new];
- vGoodsLevel.frame=CGRectMake(0,CGRectGetMaxY(vSpecification.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vGoodsLevel];
-
- UILabel *goodsLevelTitleLbl= [UILabel new];
- goodsLevelTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- goodsLevelTitleLbl.textColor = [UIColor blackColor];
- goodsLevelTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- goodsLevelTitleLbl.text=@"商品等级:";
- [vGoodsLevel addSubview:goodsLevelTitleLbl];
-
- _lblGrade=[UILabel new];
- _lblGrade.frame=CGRectMake(CGRectGetMaxX(goodsLevelTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(goodsLevelTitleLbl.frame)-10, valueheight);
- _lblGrade.textColor = [UIColor blackColor];
- _lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsLevel addSubview:_lblGrade];
- _lblGrade.text=_inStorageDetailListModel.gradeName;
-
- UIView *vColorNumber = [UIView new];
- vColorNumber.frame=CGRectMake(0,CGRectGetMaxY(vGoodsLevel.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vColorNumber];
-
- UILabel *colorNumberTitleLbl= [UILabel new];
- colorNumberTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- colorNumberTitleLbl.textColor = [UIColor blackColor];
- colorNumberTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- colorNumberTitleLbl.text=@"色 号:";
- [vColorNumber addSubview:colorNumberTitleLbl];
-
- _lblColorNumber=[UILabel new];
- _lblColorNumber.frame=CGRectMake(CGRectGetMaxX(colorNumberTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(colorNumberTitleLbl.frame)-10, valueheight);
- _lblColorNumber.textColor = [UIColor blackColor];
- _lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vColorNumber addSubview:_lblColorNumber];
- _lblColorNumber.text=_inStorageDetailListModel.colorNumber;
-
- UIView *vWarehouseArea = [UIView new];
- vWarehouseArea.frame=CGRectMake(0,CGRectGetMaxY(vColorNumber.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vWarehouseArea];
-
- UILabel *warehouseAreaTitleLbl= [UILabel new];
- warehouseAreaTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- warehouseAreaTitleLbl.textColor = [UIColor blackColor];
- warehouseAreaTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- warehouseAreaTitleLbl.text=@"库区名称:";
- [vWarehouseArea addSubview:warehouseAreaTitleLbl];
-
- _lblWarehouseName=[UILabel new];
- _lblWarehouseName.frame=CGRectMake(CGRectGetMaxX(warehouseAreaTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(warehouseAreaTitleLbl.frame)-10, valueheight);
- _lblWarehouseName.textColor = [UIColor blackColor];
- _lblWarehouseName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseArea addSubview:_lblWarehouseName];
- _lblWarehouseName.text=_inStorageDetailListModel.warehouseName;
-
- UIView *vPositionNumber = [UIView new];
- vPositionNumber.frame=CGRectMake(0,CGRectGetMaxY(vWarehouseArea.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vPositionNumber];
-
- UILabel *positionNumberTitleLbl= [UILabel new];
- positionNumberTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- positionNumberTitleLbl.textColor = [UIColor blackColor];
- positionNumberTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- positionNumberTitleLbl.text=@"仓 位 号:";
- [vPositionNumber addSubview:positionNumberTitleLbl];
-
- _lblPositionNumber=[UILabel new];
- _lblPositionNumber.frame=CGRectMake(CGRectGetMaxX(positionNumberTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(positionNumberTitleLbl.frame)-10, valueheight);
- _lblPositionNumber.textColor = [UIColor blackColor];
- _lblPositionNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPositionNumber addSubview:_lblPositionNumber];
- _lblPositionNumber.text=_inStorageDetailListModel.positionNumber;
-
- //入库数量
- UIView *vInStorageQuantity = [UIView new];
- vInStorageQuantity.frame=CGRectMake(0,CGRectGetMaxY(vPositionNumber.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vInStorageQuantity];
-
- UILabel *inStorageQuantityTitleLbl= [UILabel new];
- inStorageQuantityTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- inStorageQuantityTitleLbl.textColor = [UIColor blackColor];
- inStorageQuantityTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- inStorageQuantityTitleLbl.text=@"入库数量:";
- [vInStorageQuantity addSubview:inStorageQuantityTitleLbl];
-
- _lblInStorageQuantity=[UILabel new];
- _lblInStorageQuantity.frame=CGRectMake(CGRectGetMaxX(inStorageQuantityTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(inStorageQuantityTitleLbl.frame)-10, valueheight);
- _lblInStorageQuantity.textColor = [UIColor blackColor];
- _lblInStorageQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInStorageQuantity addSubview:_lblInStorageQuantity];
- _lblInStorageQuantity.text=_inStorageDetailListModel.inStorageQuantity;
-
- //箱
- UIView *vBox = [UIView new];
- vBox.frame=CGRectMake(0,CGRectGetMaxY(vInStorageQuantity.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vBox];
- UILabel *boxTitleLbl= [UILabel new];
- boxTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- boxTitleLbl.textColor = [UIColor blackColor];
- boxTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- boxTitleLbl.text=@"箱:";
- [vBox addSubview:boxTitleLbl];
- _lblBox=[UILabel new];
- _lblBox.frame=CGRectMake(CGRectGetMaxX(boxTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(boxTitleLbl.frame)-10, valueheight);
- _lblBox.textColor = [UIColor blackColor];
- _lblBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBox addSubview:_lblBox];
- _lblBox.text=_inStorageDetailListModel.box;
-
- //片
- UIView *vPiece = [UIView new];
- vPiece.frame=CGRectMake(0,CGRectGetMaxY(vBox.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vPiece];
-
- UILabel *pieceTitleLbl= [UILabel new];
- pieceTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- pieceTitleLbl.textColor = [UIColor blackColor];
- pieceTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- pieceTitleLbl.text=@"片/个:";
- [vPiece addSubview:pieceTitleLbl];
- _lblPiece=[UILabel new];
- _lblPiece.frame=CGRectMake(CGRectGetMaxX(pieceTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(pieceTitleLbl.frame)-10, valueheight);
- _lblPiece.textColor = [UIColor blackColor];
- _lblPiece.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPiece addSubview:_lblPiece];
- _lblPiece.text=_inStorageDetailListModel.piece;
-
- UIView *vInStorageAcreage = [UIView new];
- vInStorageAcreage.frame=CGRectMake(0,CGRectGetMaxY(vPiece.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vInStorageAcreage];
-
- UILabel *inStorageAcreageTitleLbl= [UILabel new];
- inStorageAcreageTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- inStorageAcreageTitleLbl.textColor = [UIColor blackColor];
- inStorageAcreageTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- inStorageAcreageTitleLbl.text=@"入库面积:";
- [vInStorageAcreage addSubview:inStorageAcreageTitleLbl];
-
- _lblInStorageAcreage=[UILabel new];
- _lblInStorageAcreage.frame=CGRectMake(CGRectGetMaxX(inStorageAcreageTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(inStorageAcreageTitleLbl.frame)-10, valueheight);
- _lblInStorageAcreage.textColor = [UIColor blackColor];
- _lblInStorageAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInStorageAcreage addSubview:_lblInStorageAcreage];
- _lblInStorageAcreage.text=_inStorageDetailListModel.inStorageAcreage;
-
- //入库单价
- UIView *vInStoragePrice = [UIView new];
- vInStoragePrice.frame=CGRectMake(0,CGRectGetMaxY(vInStorageAcreage.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vInStoragePrice];
-
- UILabel *inStoragePriceTitleLbl= [UILabel new];
- inStoragePriceTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- inStoragePriceTitleLbl.textColor = [UIColor blackColor];
- inStoragePriceTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- inStoragePriceTitleLbl.text=@"入库单价:";
- [vInStoragePrice addSubview:inStoragePriceTitleLbl];
-
- _lblInStoragePrice=[UILabel new];
- _lblInStoragePrice.frame=CGRectMake(CGRectGetMaxX(inStoragePriceTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(inStoragePriceTitleLbl.frame)-10, valueheight);
- _lblInStoragePrice.textColor = [UIColor blackColor];
- _lblInStoragePrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInStoragePrice addSubview:_lblInStoragePrice];
- _lblInStoragePrice.text=_inStorageDetailListModel.inStoragePrice;
-
- //账务日期
- UIView *vAccountDate = [UIView new];
- vAccountDate.frame=CGRectMake(0,CGRectGetMaxY(vInStoragePrice.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vAccountDate];
-
- UILabel *accountDateTitleLbl= [UILabel new];
- accountDateTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- accountDateTitleLbl.textColor = [UIColor blackColor];
- accountDateTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- accountDateTitleLbl.text=@"账务日期:";
- [vAccountDate addSubview:accountDateTitleLbl];
-
- _lblAcountDate=[UILabel new];
- _lblAcountDate.frame=CGRectMake(CGRectGetMaxX(accountDateTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(accountDateTitleLbl.frame)-10, valueheight);
- _lblAcountDate.textColor = [UIColor blackColor];
- _lblAcountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vAccountDate addSubview:_lblAcountDate];
- _lblAcountDate.text=_inStorageDetailListModel.accountDate;
-
- //包装
- UIView *vPackage = [UIView new];
- vPackage.frame=CGRectMake(0,CGRectGetMaxY(vAccountDate.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vPackage];
-
- UILabel *packageTitleLbl= [UILabel new];
- packageTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- packageTitleLbl.textColor = [UIColor blackColor];
- packageTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- packageTitleLbl.text=@"包 装:";
- [vPackage addSubview:packageTitleLbl];
-
- _lblPackage=[UILabel new];
- _lblPackage.frame=CGRectMake(CGRectGetMaxX(packageTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(packageTitleLbl.frame)-10, valueheight);
- _lblPackage.textColor = [UIColor blackColor];
- _lblPackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPackage addSubview:_lblPackage];
- _lblPackage.text=_inStorageDetailListModel.package;
-
- //计量单位
- UIView *vUnit = [UIView new];
- vUnit.frame=CGRectMake(0,CGRectGetMaxY(vPackage.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vUnit];
-
- UILabel *unitTitleLbl= [UILabel new];
- unitTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- unitTitleLbl.textColor = [UIColor blackColor];
- unitTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- unitTitleLbl.text=@"计量单位:";
- [vUnit addSubview:unitTitleLbl];
-
- _lblUnit=[UILabel new];
- _lblUnit.frame=CGRectMake(CGRectGetMaxX(unitTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(unitTitleLbl.frame)-10, valueheight);
- _lblUnit.textColor = [UIColor blackColor];
- _lblUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnit addSubview:_lblUnit];
- _lblUnit.text=_inStorageDetailListModel.unitName;
-
- //流通方式
- UIView *vCirculateType = [UIView new];
- vCirculateType.frame=CGRectMake(0,CGRectGetMaxY(vUnit.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vCirculateType];
-
- UILabel *circulateTypeTitleLbl= [UILabel new];
- circulateTypeTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- circulateTypeTitleLbl.textColor = [UIColor blackColor];
- circulateTypeTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- circulateTypeTitleLbl.text=@"流通方式:";
- [vCirculateType addSubview:circulateTypeTitleLbl];
-
- _lblCirculateType=[UILabel new];
- _lblCirculateType.frame=CGRectMake(CGRectGetMaxX(circulateTypeTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(circulateTypeTitleLbl.frame)-10, valueheight);
- _lblCirculateType.textColor = [UIColor blackColor];
- _lblCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCirculateType addSubview:_lblCirculateType];
- _lblCirculateType.text=_inStorageDetailListModel.circulateTypeName;
-
- //单位重量
- UIView *vWeight = [UIView new];
- vWeight.frame=CGRectMake(0,CGRectGetMaxY(vCirculateType.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vWeight];
-
- UILabel *weightTitleLbl= [UILabel new];
- weightTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- weightTitleLbl.textColor = [UIColor blackColor];
- weightTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- weightTitleLbl.text=@"单位重量:";
- [vWeight addSubview:weightTitleLbl];
-
- _lblWeight=[UILabel new];
- _lblWeight.frame=CGRectMake(CGRectGetMaxX(weightTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(circulateTypeTitleLbl.frame)-10, valueheight);
- _lblWeight.textColor = [UIColor blackColor];
- _lblWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWeight addSubview:_lblWeight];
- _lblWeight.text=_inStorageDetailListModel.weight;
-
- //单位面积
- UIView *vUnitAcreage = [UIView new];
- vUnitAcreage.frame=CGRectMake(0,CGRectGetMaxY(vWeight.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vUnitAcreage];
-
- UILabel *acreageTitleLbl= [UILabel new];
- acreageTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- acreageTitleLbl.textColor = [UIColor blackColor];
- acreageTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- acreageTitleLbl.text=@"单位面积:";
- [vUnitAcreage addSubview:acreageTitleLbl];
-
- _lblAcreage=[UILabel new];
- _lblAcreage.frame=CGRectMake(CGRectGetMaxX(acreageTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(acreageTitleLbl.frame)-10, valueheight);
- _lblAcreage.textColor = [UIColor blackColor];
- _lblAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnitAcreage addSubview:_lblAcreage];
- _lblAcreage.text=_inStorageDetailListModel.acreage;
-
- //单位体积
- UIView *vUnitVolume = [UIView new];
- vUnitVolume.frame=CGRectMake(0,CGRectGetMaxY(vUnitAcreage.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vUnitVolume];
-
- UILabel *volumeTitleLbl= [UILabel new];
- volumeTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- volumeTitleLbl.textColor = [UIColor blackColor];
- volumeTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- volumeTitleLbl.text=@"单位体积:";
- [vUnitVolume addSubview:volumeTitleLbl];
-
- _lblVolume=[UILabel new];
- _lblVolume.frame=CGRectMake(CGRectGetMaxX(volumeTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(volumeTitleLbl.frame)-10, valueheight);
- _lblVolume.textColor = [UIColor blackColor];
- _lblVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnitVolume addSubview:_lblVolume];
- _lblVolume.text=_inStorageDetailListModel.volume;
-
- //商品名称
- UIView *vGoodsName = [UIView new];
- vGoodsName.frame=CGRectMake(0,CGRectGetMaxY(vUnitVolume.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vGoodsName];
-
- UILabel *goodsNameTitleLbl= [UILabel new];
- goodsNameTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- goodsNameTitleLbl.textColor = [UIColor blackColor];
- goodsNameTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- goodsNameTitleLbl.text=@"商品名称:";
- [vGoodsName addSubview:goodsNameTitleLbl];
-
- _lblGoodsName=[UILabel new];
- _lblGoodsName.frame=CGRectMake(CGRectGetMaxX(goodsNameTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(goodsNameTitleLbl.frame)-10, valueheight);
- _lblGoodsName.textColor = [UIColor blackColor];
- _lblGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsName addSubview:_lblGoodsName];
- _lblGoodsName.text=_inStorageDetailListModel.goodsName;
-
- //扩展属性
- UIView *vExpandAttribute = [UIView new];
- vExpandAttribute.frame=CGRectMake(0,CGRectGetMaxY(vGoodsName.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vExpandAttribute];
-
- UILabel *expandAttributeTitleLbl= [UILabel new];
- expandAttributeTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- expandAttributeTitleLbl.textColor = [UIColor blackColor];
- expandAttributeTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- expandAttributeTitleLbl.text=@"扩展属性:";
- [vExpandAttribute addSubview:expandAttributeTitleLbl];
-
- _lblExpandAtrribute=[UILabel new];
- _lblExpandAtrribute.frame=CGRectMake(CGRectGetMaxX(expandAttributeTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(expandAttributeTitleLbl.frame)-10, valueheight);
- _lblExpandAtrribute.textColor = [UIColor blackColor];
- _lblExpandAtrribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute addSubview:_lblExpandAtrribute];
- _lblExpandAtrribute.text=_inStorageDetailListModel.expandAtrribute;
-
- //扩展属性2
- UIView *vExpandAttribute2 = [UIView new];
- vExpandAttribute2.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vExpandAttribute2];
-
- UILabel *expandAttribute2TitleLbl= [UILabel new];
- expandAttribute2TitleLbl.frame=CGRectMake(lblx, valuey,lblwidth+10, lblheight);
- expandAttribute2TitleLbl.textColor = [UIColor blackColor];
- expandAttribute2TitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- expandAttribute2TitleLbl.text=@"扩展属性二:";
- [vExpandAttribute2 addSubview:expandAttribute2TitleLbl];
-
- _lblExpandAtrribute2=[UILabel new];
- _lblExpandAtrribute2.frame=CGRectMake(CGRectGetMaxX(expandAttribute2TitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(expandAttribute2TitleLbl.frame)-10, valueheight);
- _lblExpandAtrribute2.textColor = [UIColor blackColor];
- _lblExpandAtrribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute2 addSubview:_lblExpandAtrribute2];
- _lblExpandAtrribute2.text=_inStorageDetailListModel.expandAtrribute2;
-
- UIView *vGoodsRemarks = [UIView new];
- vGoodsRemarks.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute2.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vGoodsRemarks];
-
- UILabel *goodsRemarksTitleLbl= [UILabel new];
- goodsRemarksTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- goodsRemarksTitleLbl.textColor = [UIColor blackColor];
- goodsRemarksTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- goodsRemarksTitleLbl.text=@"商品备注:";
- [vGoodsRemarks addSubview:goodsRemarksTitleLbl];
-
- _lblGoodsRemarks=[UILabel new];
- _lblGoodsRemarks.frame=CGRectMake(CGRectGetMaxX(goodsRemarksTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(goodsRemarksTitleLbl.frame)-10, valueheight);
- _lblGoodsRemarks.textColor = [UIColor blackColor];
- _lblGoodsRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsRemarks addSubview:_lblGoodsRemarks];
- _lblGoodsRemarks.text=_inStorageDetailListModel.goodsRemarks;
-
- UIView *vRemarks = [UIView new];
- vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vGoodsRemarks.frame), Screen_Width, heightRow);
- [self.contentView addSubview:vRemarks];
-
- UILabel *remarksTitleLbl= [UILabel new];
- remarksTitleLbl.frame=CGRectMake(lblx, valuey,lblwidth, lblheight);
- remarksTitleLbl.textColor = [UIColor blackColor];
- remarksTitleLbl.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- remarksTitleLbl.text=@"备 注:";
- [vRemarks addSubview:remarksTitleLbl];
-
- _lblRemarks=[UILabel new];
- _lblRemarks.frame=CGRectMake(CGRectGetMaxX(remarksTitleLbl.frame), valuey,Screen_Width-CGRectGetMaxX(remarksTitleLbl.frame)-10, valueheight);
- _lblRemarks.textColor = [UIColor blackColor];
- _lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemarks addSubview:_lblRemarks];
- _lblRemarks.text=_inStorageDetailListModel.remarks;
-
- _bottomSeparator= [UIView new];
- _bottomSeparator.frame=CGRectMake(0, CGRectGetMaxY(vRemarks.frame)+5, Screen_Width, 10);
- _bottomSeparator.backgroundColor = LineBackgroundColor;
- [self.contentView addSubview:_bottomSeparator];
-
- }
- @end
|