| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- //
- // InventoryCostDetailVC.m
- // IBOSS
- //
- // Created by 关宏厚 on 2020/11/17.
- // Copyright © 2020 elongtian. All rights reserved.
- //aa
- #import "InventoryCostDetailVC.h"
- @interface InventoryCostDetailVC ()
- @end
- @implementation InventoryCostDetailVC
-
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self loadNavStyle];
- [self initUI];
- }
- /**
- 导航按钮样式
- */
- - (void)loadNavStyle
- {
-
- //返回
- UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
- [button setImage:[UIImage imageNamed:@"icon_back"] forState:UIControlStateNormal];
- [button addTarget:self action:@selector(goBack)
- forControlEvents:UIControlEventTouchUpInside];
- button.frame = CGRectMake(0, 0, 15, 18);
-
- UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:button];
- self.navigationItem.leftBarButtonItem = menuButton;
- }
- /**
- 安全区视图发生变化
- */
- -(void)viewSafeAreaInsetsDidChange{
- _scroll.frame = self.view.safeAreaLayoutGuide.layoutFrame;
- [super viewSafeAreaInsetsDidChange];
- }
- -(void)goBack
- {
- [self.navigationController popViewControllerAnimated:YES];
- }
- -(void)initUI
- {
- self.navigationItem.title = @"库存成本详细";
- self.view.backgroundColor = LineBackgroundColor;
-
- CGFloat heightRow = 30;
- CGFloat lblx = 10;
- CGFloat lbly = 3;
- CGFloat lblwidth = 70;
- CGFloat lblheight = 25;
-
- CGFloat valuex = 80;
- CGFloat valuey = 3;
- CGFloat valueheight = 25;
-
- _scroll = [UIScrollView new];
- _scroll.frame=self.view.bounds;
-
- [self.view addSubview:_scroll];
-
- UIView *vTitle = [UIView new];
- [_scroll addSubview:vTitle];
- vTitle.backgroundColor = [UIColor whiteColor];
-
- //商品编码 —————————
- UIView *vcode = [UIView new];
- vcode.frame=CGRectMake(0, CGRectGetMaxY(vTitle.frame), Screen_Width, heightRow);
- [vTitle 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];
- _lblCode = [UILabel new];
- _lblCode.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblCode.text=_costModel.code;
- _lblCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vcode addSubview:_lblCode];
-
- //唯一编码 —————————
- UIView *vonlyCode = [UIView new];
- vonlyCode.frame=CGRectMake(0, CGRectGetMaxY(vcode.frame), Screen_Width, heightRow);
- [vTitle 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];
- _lblOnlyCode = [UILabel new];
- _lblOnlyCode.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblOnlyCode.text=_costModel.onlyCode;
- _lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vonlyCode addSubview:_lblOnlyCode];
-
- UIView *vgoodName = [UIView new];
- vgoodName.frame=CGRectMake(0, CGRectGetMaxY(vonlyCode.frame), Screen_Width, heightRow);
- [vTitle addSubview:vgoodName];
- UILabel *lblTitleGoodsName = [UILabel new];
- lblTitleGoodsName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleGoodsName.text = @"商品名称:";
- lblTitleGoodsName.textColor = [UIColor blackColor];
- lblTitleGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vgoodName addSubview:lblTitleGoodsName];
- _lblGoodsName= [UILabel new];
- _lblGoodsName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblGoodsName.text = _costModel.goodName;
- [vgoodName addSubview:_lblGoodsName];
-
- // 品牌 —————————
- UIView *vbrandName = [UIView new];
- vbrandName.frame=CGRectMake(0, CGRectGetMaxY(vgoodName.frame), Screen_Width, heightRow);
- [vTitle addSubview:vbrandName];
- UILabel *lblTitleBrandName = [UILabel new];
- lblTitleBrandName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleBrandName.text = @"品 牌:";
- lblTitleBrandName.textColor = [UIColor blackColor];
- lblTitleBrandName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vbrandName addSubview:lblTitleBrandName];
- _lblBrandName= [UILabel new];
- _lblBrandName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblBrandName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblBrandName.text = _costModel.brandName;
- [vbrandName addSubview:_lblBrandName];
-
-
- //色号 —————————
- UIView *vcolorNumber = [UIView new];
- vcolorNumber.frame=CGRectMake(0, CGRectGetMaxY(vbrandName.frame), Screen_Width, heightRow);
- [vTitle 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];
-
- _lblColorNumber = [UILabel new];
- _lblColorNumber.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblColorNumber.text = _costModel.colorNumber;
- [vcolorNumber addSubview:_lblColorNumber];
-
- //规格 —————————
- UIView *vspecification = [UIView new];
- vspecification.frame=CGRectMake(0, CGRectGetMaxY(vcolorNumber.frame), Screen_Width, heightRow);
- [vTitle 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];
-
- _lblSpecification = [UILabel new];
- _lblSpecification.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblSpecification.text = _costModel.specification;
- [vspecification addSubview:_lblSpecification];
-
- // —————————
- UIView *vgradeName = [UIView new];
- vgradeName.frame=CGRectMake(0, CGRectGetMaxY(vspecification.frame), Screen_Width, heightRow);
- [vTitle addSubview:vgradeName];
- UILabel *lblTitleGradeName = [UILabel new];
- lblTitleGradeName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleGradeName.text = @"等 级:";
- lblTitleGradeName.textColor = [UIColor blackColor];
- lblTitleGradeName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vgradeName addSubview:lblTitleGradeName];
-
- _lblGrade = [UILabel new];
- _lblGrade.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblGrade.text = _costModel.gradeName;
- [vgradeName addSubview:_lblGrade];
-
-
-
- UIView *vKindName = [UIView new];
- vKindName.frame=CGRectMake(0,CGRectGetMaxY(vgradeName.frame), Screen_Width, heightRow);
- [vTitle addSubview:vKindName];
-
- UILabel *lblTitleKindName = [UILabel new];
- lblTitleKindName.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleKindName.text = @"种 类:";
- lblTitleKindName.textColor = [UIColor blackColor];
- lblTitleKindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vKindName addSubview:lblTitleKindName];
- _lblKindName = [UILabel new];
- _lblKindName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblKindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblKindName.text =_costModel.kindName;
-
- [vKindName addSubview:_lblKindName];
-
- UIView *vVarietyName = [UIView new];
- vVarietyName.frame=CGRectMake(0,CGRectGetMaxY(vKindName.frame), Screen_Width, heightRow);
- [vTitle addSubview:vVarietyName];
-
- UILabel *lblTitleVarietyName = [UILabel new];
- lblTitleVarietyName.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleVarietyName.text = @"品 种:";
- lblTitleVarietyName.textColor = [UIColor blackColor];
- lblTitleVarietyName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVarietyName addSubview:lblTitleVarietyName];
- _lblVarietyName = [UILabel new];
- _lblVarietyName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblVarietyName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblVarietyName.text =_costModel.varietyName;
- [vVarietyName addSubview:_lblVarietyName];
-
- UIView *vSeriesName = [UIView new];
- vSeriesName.frame=CGRectMake(0,CGRectGetMaxY(vVarietyName.frame), Screen_Width, heightRow);
- [vTitle addSubview:vSeriesName];
-
- UILabel *lblTitleSeriesName = [UILabel new];
- lblTitleSeriesName.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleSeriesName.text = @"系 列:";
- lblTitleSeriesName.textColor = [UIColor blackColor];
- lblTitleSeriesName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSeriesName addSubview:lblTitleSeriesName];
- _lblSeriesName = [UILabel new];
- _lblSeriesName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblSeriesName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblSeriesName.text =_costModel.seriesName;
-
- [vSeriesName addSubview:_lblSeriesName];
-
- UIView *vwareHouseName = [UIView new];
- vwareHouseName.frame=CGRectMake(0, CGRectGetMaxY(vSeriesName.frame), Screen_Width, heightRow);
- [vTitle 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];
-
- _lblWarehouseName = [UILabel new];
- _lblWarehouseName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblWarehouseName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblWarehouseName.text = _costModel.wareHouseName;
- [vwareHouseName addSubview:_lblWarehouseName];
-
- UIView *vpositionNumber = [UIView new];
- vpositionNumber.frame=CGRectMake(0, CGRectGetMaxY(vwareHouseName.frame), Screen_Width, heightRow);
- [vTitle 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];
-
- _lblPositionNumber= [UILabel new];
- _lblPositionNumber.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblPositionNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblPositionNumber.text = _costModel.positionNumber;
- [vpositionNumber addSubview:_lblPositionNumber];
-
- UIView *vLastInventoryQuantity = [UIView new];
- vLastInventoryQuantity.frame=CGRectMake(0,CGRectGetMaxY(vpositionNumber.frame), Screen_Width, heightRow);
- [vTitle addSubview:vLastInventoryQuantity];
-
- UILabel *lblTitleLastInventoryQuantity = [UILabel new];
- lblTitleLastInventoryQuantity.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleLastInventoryQuantity.text = @"上期结转数量:";
- lblTitleLastInventoryQuantity.textColor = [UIColor blackColor];
- lblTitleLastInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vLastInventoryQuantity addSubview:lblTitleLastInventoryQuantity];
-
- _lblLastInventoryQuantity = [UILabel new];
- _lblLastInventoryQuantity.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblLastInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblLastInventoryQuantity.text =_costModel.lastInventoryQuantity;
- [vLastInventoryQuantity addSubview:_lblLastInventoryQuantity];
-
-
-
- UIView *vLastInventoryAmount = [UIView new];
- vLastInventoryAmount.frame=CGRectMake(0,CGRectGetMaxY(vLastInventoryQuantity.frame), Screen_Width, heightRow);
- [vTitle addSubview:vLastInventoryAmount];
-
- UILabel *lblTitleLastInventoryAmount = [UILabel new];
- lblTitleLastInventoryAmount.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleLastInventoryAmount.text = @"上期结转金额:";
- lblTitleLastInventoryAmount.textColor = [UIColor blackColor];
- lblTitleLastInventoryAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vLastInventoryAmount addSubview:lblTitleLastInventoryAmount];
-
- _lblLastInventoryAmount = [UILabel new];
- _lblLastInventoryAmount.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblLastInventoryAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblLastInventoryAmount.text =_costModel.lastInventoryAmount;
- [vLastInventoryAmount addSubview:_lblLastInventoryAmount];
-
-
- UIView *vThisInventoryQuantity = [UIView new];
- vThisInventoryQuantity.frame=CGRectMake(0,CGRectGetMaxY(vLastInventoryAmount.frame), Screen_Width, heightRow);
- [vTitle addSubview:vThisInventoryQuantity];
-
- UILabel *lblTitleThisInventoryQuantity = [UILabel new];
- lblTitleThisInventoryQuantity.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleThisInventoryQuantity.text = @"本期入库数量:";
- lblTitleThisInventoryQuantity.textColor = [UIColor blackColor];
- lblTitleThisInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vThisInventoryQuantity addSubview:lblTitleThisInventoryQuantity];
-
- _lblThisInventoryQuantity = [UILabel new];
- _lblThisInventoryQuantity.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblThisInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblThisInventoryQuantity.text =_costModel.thisInventoryQuantity;
- [vThisInventoryQuantity addSubview:_lblThisInventoryQuantity];
-
- UIView *vThisInventoryAmount = [UIView new];
- vThisInventoryAmount.frame=CGRectMake(0,CGRectGetMaxY(vThisInventoryQuantity.frame), Screen_Width, heightRow);
- [vTitle addSubview:vThisInventoryAmount];
-
- UILabel *lblTitleThisInventoryAmount = [UILabel new];
- lblTitleThisInventoryAmount.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleThisInventoryAmount.text = @"本期入库金额:";
- lblTitleThisInventoryAmount.textColor = [UIColor blackColor];
- lblTitleThisInventoryAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vThisInventoryAmount addSubview:lblTitleThisInventoryAmount];
-
- _lblThisInventoryAmount = [UILabel new];
- _lblThisInventoryAmount.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblThisInventoryAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblThisInventoryAmount.text =_costModel.thisInventoryAmount;
- [vThisInventoryAmount addSubview:_lblThisInventoryAmount];
-
- UIView *vcanSaleQuantity = [UIView new];
- vcanSaleQuantity.frame=CGRectMake(0,CGRectGetMaxY(vThisInventoryAmount.frame), Screen_Width, heightRow);
- [vTitle addSubview:vcanSaleQuantity];
- UILabel *lblTitleCanSaleQuantity = [UILabel new];
- lblTitleCanSaleQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCanSaleQuantity.text = @"可 售 量:";
- lblTitleCanSaleQuantity.textColor = [UIColor blackColor];
- lblTitleCanSaleQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vcanSaleQuantity addSubview:lblTitleCanSaleQuantity];
-
- _lblCanSaleQuantity = [UILabel new];
- _lblCanSaleQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblCanSaleQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblCanSaleQuantity.text =_costModel.balanceQuantity;
- [vcanSaleQuantity addSubview:_lblCanSaleQuantity];
-
- UIView *vStockQuantity = [UIView new];
- vStockQuantity.frame=CGRectMake(0,CGRectGetMaxY(vcanSaleQuantity.frame), Screen_Width, heightRow);
- [vTitle addSubview:vStockQuantity];
- UILabel *lblTitleStockQuantity = [UILabel new];
- lblTitleStockQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleStockQuantity.text = @"库 存 量:";
- lblTitleStockQuantity.textColor = [UIColor blackColor];
- lblTitleStockQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vStockQuantity addSubview:lblTitleStockQuantity];
-
- _lblStockQuantity = [UILabel new];
- _lblStockQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblStockQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblStockQuantity.text = _costModel.inventoryQuantity;
- [vStockQuantity addSubview:_lblStockQuantity];
-
- UIView *vTimelyCost = [UIView new];
- vTimelyCost.frame=CGRectMake(0,CGRectGetMaxY(vStockQuantity.frame), Screen_Width, heightRow);
- [vTitle addSubview:vTimelyCost];
- UILabel *lblTitleTimelyCost = [UILabel new];
- lblTitleTimelyCost.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleTimelyCost.text = @"库存即时成本:";
- lblTitleTimelyCost.textColor = [UIColor blackColor];
- lblTitleTimelyCost.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vTimelyCost addSubview:lblTitleTimelyCost];
-
- _lblTimelyCost = [UILabel new];
- _lblTimelyCost.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblTimelyCost.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblTimelyCost.text = _costModel.timelyCost;
- [vTimelyCost addSubview:_lblTimelyCost];
-
- UIView *vInventoryTimelyAmount = [UIView new];
- vInventoryTimelyAmount.frame=CGRectMake(0,CGRectGetMaxY(vTimelyCost.frame), Screen_Width, heightRow);
- [vTitle addSubview:vInventoryTimelyAmount];
-
- UILabel *lblTitleInventoryTimelyAmount = [UILabel new];
- lblTitleInventoryTimelyAmount.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleInventoryTimelyAmount.text = @"库存即时金额:";
- lblTitleInventoryTimelyAmount.textColor = [UIColor blackColor];
- lblTitleInventoryTimelyAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInventoryTimelyAmount addSubview:lblTitleInventoryTimelyAmount];
-
- _lblInventoryTimelyAmount = [UILabel new];
- _lblInventoryTimelyAmount.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblInventoryTimelyAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblInventoryTimelyAmount.text = _costModel.inventoryTimelyAmount;
- [vInventoryTimelyAmount addSubview:_lblInventoryTimelyAmount];
-
- UIView *vCanSalesAmount = [UIView new];
- vCanSalesAmount.frame=CGRectMake(0,CGRectGetMaxY(vInventoryTimelyAmount.frame), Screen_Width, heightRow);
- [vTitle addSubview:vCanSalesAmount];
-
- UILabel *lblTitleCanSalesAmount = [UILabel new];
- lblTitleCanSalesAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCanSalesAmount.text = @"可售金额:";
- lblTitleCanSalesAmount.textColor = [UIColor blackColor];
- lblTitleCanSalesAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCanSalesAmount addSubview:lblTitleCanSalesAmount];
-
- _lblCanSalesAmount = [UILabel new];
- _lblCanSalesAmount.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblCanSalesAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblCanSalesAmount.text = _costModel.balanceAmount;
- [vCanSalesAmount addSubview:_lblCanSalesAmount];
-
- UIView *vStandardPrice = [UIView new];
- vStandardPrice.frame=CGRectMake(0,CGRectGetMaxY(vCanSalesAmount.frame), Screen_Width, heightRow);
- [vTitle addSubview:vStandardPrice];
- UILabel *lblTitleStandardPrice = [UILabel new];
- lblTitleStandardPrice.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleStandardPrice.text = @"采购基准价:";
- lblTitleStandardPrice.textColor = [UIColor blackColor];
- lblTitleStandardPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vStandardPrice addSubview:lblTitleStandardPrice];
- _lblStandardPrice = [UILabel new];
- _lblStandardPrice.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblStandardPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblStandardPrice.text = _costModel.standardProcurementPrice;
- [vStandardPrice addSubview:_lblStandardPrice];
-
- UIView *vExpandAttribute = [UIView new];
- vExpandAttribute.frame=CGRectMake(0,CGRectGetMaxY(vStandardPrice.frame), Screen_Width, heightRow);
- [vTitle 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];
- _lblExpandAttribute = [UILabel new];
- _lblExpandAttribute.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblExpandAttribute.text = _costModel.expandAttribute;
- [vExpandAttribute addSubview:_lblExpandAttribute];
-
-
- UIView *vExpandAttribute2 = [UIView new];
- vExpandAttribute2.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute.frame), Screen_Width, heightRow);
- [vTitle addSubview:vExpandAttribute2];
- UILabel *lblTitleExpandAttribute2 = [UILabel new];
- lblTitleExpandAttribute2.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblTitleExpandAttribute2.text = @"扩展属性二:";
- lblTitleExpandAttribute2.textColor = [UIColor blackColor];
- lblTitleExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute2 addSubview:lblTitleExpandAttribute2];
- _lblExpandAttribute2 = [UILabel new];
- _lblExpandAttribute2.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx-30, valueheight);
- _lblExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblExpandAttribute2.text = _costModel.expandAttribute2;
- [vExpandAttribute2 addSubview:_lblExpandAttribute2];
-
- UIView *vRemarks = [UIView new];
- vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute2.frame), Screen_Width, heightRow);
- [vTitle 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];
- _lblRemarks = [UILabel new];
- _lblRemarks.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblRemarks.text = _costModel.goodsRemarks;
- [vRemarks addSubview:_lblRemarks];
-
-
- vTitle.frame=CGRectMake(10, 10, Screen_Width-20, CGRectGetMaxY(vRemarks.frame));
- vTitle.layer.cornerRadius = CornerRadius;
- _scroll.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vTitle.frame)+rectStatusHeight+rectNavHeight);
- }
- @end
|