| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751 |
- //
- // OrderGoodsDetailVC.m
- // IBOSSmini
- //
- // Created by guan hong hou on 2018/1/23.
- // Copyright © 2018年 elongtian. All rights reserved.
- //
- #import "SalesOrderGoodsDetailVC.h"
- @interface SalesOrderGoodsDetailVC (){
- UIScrollView *_scrollView;
-
- }
- @end
- @implementation SalesOrderGoodsDetailVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self loadNavStyle];
- [self initUI];
-
- }
- /**
- 导航按钮样式
- */
- -(void)loadNavStyle
- {
- self.navigationItem.title=@"订单商品明细信息";
-
- //返回
- UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
- [button setBackgroundImage:[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{
- _scrollView.frame = self.view.safeAreaLayoutGuide.layoutFrame;
- [super viewSafeAreaInsetsDidChange];
- }
- -(void)initUI{
- [self.view setBackgroundColor:[UIColor whiteColor]];
- CGFloat heightRow = 40;
- CGFloat lblx = 10;
- CGFloat lbly = 8;
- CGFloat lblwidth = 80;
- CGFloat lblheight = 25;
- CGFloat heightLine = 1;
- CGFloat valuey = 8;
- CGFloat valueheight = 25;
-
- _scrollView=[UIScrollView new];
- _scrollView.frame=self.view.bounds;
- [self.view addSubview:_scrollView];
- UIView *vBody = [UIView new];
- [_scrollView addSubview:vBody];
-
- UIView *vOrderNo = [UIView new];
- vOrderNo.frame=CGRectMake(0,0, Screen_Width, heightRow);
- [vBody addSubview:vOrderNo];
- UILabel *lblTitleOrderNo=[UILabel new];
- lblTitleOrderNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOrderNo.text=@"订单编号:";
- lblTitleOrderNo.textColor = [UIColor blackColor];
- lblTitleOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderNo addSubview:lblTitleOrderNo];
-
- UILabel *lblOrderNo = [UILabel new];
- lblOrderNo.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderNo.frame)-10, valueheight);
- lblOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrderNo.text = _goodsListModel.orderNo;
- [vOrderNo addSubview:lblOrderNo];
- UIView *topSeparatorView= [UIView new];
- topSeparatorView.frame = CGRectMake(0, CGRectGetMaxY(vOrderNo.frame), Screen_Width, heightLine);
-
- [vBody addSubview:topSeparatorView];
- UIButton *btnLine = [UIButton buttonWithType:UIButtonTypeCustom];
- [btnLine setBackgroundImage:[UIImage imageNamed:@"dash"] forState:UIControlStateNormal];
- btnLine.frame = CGRectMake(0 ,0 , Screen_Width, heightLine);
- [topSeparatorView addSubview:btnLine];
- //唯一编码
- UIView *vOnlyCode = [UIView new];
- vOnlyCode.frame=CGRectMake(0,CGRectGetMaxY(topSeparatorView.frame), Screen_Width, heightRow);
- [vBody 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)-10-120, valueheight);
- lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOnlyCode.text = _goodsListModel.onlyCode;
- [vOnlyCode addSubview:lblOnlyCode];
- UILabel *lblStatus=[UILabel new];
- lblStatus.frame=CGRectMake(Screen_Width-120, valuey, 110, valueheight);
- lblStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblStatus.textAlignment=NSTextAlignmentRight;
- [vOnlyCode addSubview:lblStatus];
-
-
- if(_status!=10){
- if(_goodsListModel.factToSalesQuantity>0&&_goodsListModel.factOrderQuantity<=_goodsListModel.factToSalesQuantity){
- lblStatus.text=@"完全转销售";
- lblStatus.textColor=[UIColor hexColor:@"#234B0B" ];
- }
- else if(_goodsListModel.factToSalesQuantity>0&&_goodsListModel.factOrderQuantity>_goodsListModel.factToSalesQuantity){
- lblStatus.text=@"部分转销售单";
- lblStatus.textColor=[UIColor hexColor:@"#3B587A"];
- }
- else if(_goodsListModel.factOrderQuantity<=_goodsListModel.factOccupyQuantity){
- lblStatus.text=@"完全占库";
- lblStatus.textColor=[UIColor hexColor:@"#3423C7"];
- }
- else if(_goodsListModel.factOccupyQuantity>0&&(_goodsListModel.factOrderQuantity>_goodsListModel.factOccupyQuantity)){
- lblStatus.text=@"未完全占库";
- lblStatus.textColor=[UIColor hexColor:@"#EC8628"];
- }
- else if(_goodsListModel.applyQuantity>0){
- lblStatus.text=@"已请购";
- lblStatus.textColor=[UIColor hexColor:@"#525151"];
- }
- else if(_goodsListModel.factOccupyQuantity<=0){
- lblStatus.text=@"未占库";
- lblStatus.textColor=[UIColor hexColor:@"#000000"];
- }
-
- }
- else{
- lblStatus.text=@"未占库";
- lblStatus.textColor=[UIColor hexColor:@"#000000"];
- }
-
-
-
- UIView *middleSeparator= [UIView new];
- middleSeparator.frame=CGRectMake(0, CGRectGetMaxY(vOnlyCode.frame), Screen_Width, 1);
- middleSeparator.backgroundColor = LineBackgroundColor;
- [vBody addSubview:middleSeparator];
-
- UIView *vDetailType = [UIView new];
- vDetailType.frame=CGRectMake(0,CGRectGetMaxY(middleSeparator.frame), Screen_Width, heightRow);
- [vBody addSubview:vDetailType];
-
- UILabel *lblTitleDetailType=[UILabel new];
- lblTitleDetailType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleDetailType.text=@"明细类型:";
- lblTitleDetailType.textColor = [UIColor blackColor];
- lblTitleDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDetailType addSubview:lblTitleDetailType];
-
- UILabel *lblDetailType = [UILabel new];
- lblDetailType.frame=CGRectMake(CGRectGetMaxX(lblTitleDetailType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDetailType.frame)-10, valueheight);
- lblDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblDetailType.text = _goodsListModel.salesDetailTypeName;
- [vDetailType addSubview:lblDetailType];
-
- UIView *vCode = [UIView new];
- vCode.frame=CGRectMake(0,CGRectGetMaxY(vDetailType.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCode.text = _goodsListModel.code;
- [vCode addSubview:lblCode];
-
- UIView *vBrand = [UIView new];
- vBrand.frame=CGRectMake(0,CGRectGetMaxY(vCode.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblBrand.text = _goodsListModel.brandName;
- [vBrand addSubview:lblBrand];
-
-
- UIView *vKindName = [UIView new];
- vKindName.frame=CGRectMake(0,CGRectGetMaxY(vBrand.frame), Screen_Width, heightRow);
- [vBody addSubview:vKindName];
- UILabel *lblTitleKindName=[UILabel new];
- lblTitleKindName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleKindName.text=@"商品种类:";
- lblTitleKindName.textColor = [UIColor blackColor];
- lblTitleKindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vKindName addSubview:lblTitleKindName];
-
- UILabel *lblKindName =[UILabel new];
- lblKindName.frame=CGRectMake(CGRectGetMaxX(lblTitleKindName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleKindName.frame)-10, valueheight);
- lblKindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblKindName.text = _goodsListModel.kindName;
- [vKindName addSubview:lblKindName];
-
- UIView *vOrderPrice = [UIView new];
- vOrderPrice.frame=CGRectMake(0,CGRectGetMaxY(vKindName.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrderPrice.text = _goodsListModel.orderPrice;
- [vOrderPrice addSubview:lblOrderPrice];
-
- UIView *vOrderQuantity = [UIView new];
- vOrderQuantity.frame=CGRectMake(0,CGRectGetMaxY(vOrderPrice.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- double orderQuantityValue= _goodsListModel.factOrderQuantity;
- lblOrderQuantity.text =[NSString stringWithFormat:@"%lf",orderQuantityValue];
- [vOrderQuantity addSubview:lblOrderQuantity];
-
- UIView *vBox = [UIView new];
- vBox.frame=CGRectMake(0,CGRectGetMaxY(vOrderQuantity.frame), Screen_Width, heightRow);
- [vBody addSubview:vBox];
- UILabel *lblTitleBox=[UILabel new];
- lblTitleBox.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleBox.text=@"箱:";
- lblTitleBox.textColor = [UIColor blackColor];
- lblTitleBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBox addSubview:lblTitleBox];
-
- UILabel *lblBox =[UILabel new];
- lblBox.frame=CGRectMake(CGRectGetMaxX(lblTitleBox.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBox.frame)-10, valueheight);
- lblBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblBox.text =_goodsListModel.box;
- [vBox addSubview:lblBox];
-
- UIView *vPiece = [UIView new];
- vPiece.frame=CGRectMake(0,CGRectGetMaxY(vBox.frame), Screen_Width, heightRow);
- [vBody addSubview:vPiece];
- UILabel *lblTitlePiece=[UILabel new];
- lblTitlePiece.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitlePiece.text=@"片/个:";
- lblTitlePiece.textColor = [UIColor blackColor];
- lblTitlePiece.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPiece addSubview:lblTitlePiece];
-
- UILabel *lblPiece =[UILabel new];
- lblPiece.frame=CGRectMake(CGRectGetMaxX(lblTitlePiece.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePiece.frame)-10, valueheight);
- lblPiece.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblPiece.text =_goodsListModel.piece;
- [vPiece addSubview:lblPiece];
-
- UIView *vUnit = [UIView new];
- vUnit.frame=CGRectMake(0,CGRectGetMaxY(vPiece.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUnit.text =_goodsListModel.unitName;
- [vUnit addSubview:lblUnit];
-
- UIView *vSpecification = [UIView new];
- vSpecification.frame=CGRectMake(0,CGRectGetMaxY(vUnit.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblSpecification.text =_goodsListModel.specification;
- [vSpecification addSubview:lblSpecification];
-
- UIView *vWarehouseAreaCode = [UIView new];
- vWarehouseAreaCode.frame=CGRectMake(0,CGRectGetMaxY(vSpecification.frame), Screen_Width, heightRow);
- [vBody addSubview:vWarehouseAreaCode];
- UILabel *lblTitleWarehouseAreaCode=[UILabel new];
- lblTitleWarehouseAreaCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleWarehouseAreaCode.text=@"库区编码:";
- lblTitleWarehouseAreaCode.textColor = [UIColor blackColor];
- lblTitleWarehouseAreaCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseAreaCode addSubview:lblTitleWarehouseAreaCode];
-
- UILabel *lblWarehouseAreaCode =[UILabel new];
- lblWarehouseAreaCode.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseAreaCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseAreaCode.frame)-10, valueheight);
- lblWarehouseAreaCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblWarehouseAreaCode.text =_goodsListModel.warehouseCode;
- [vWarehouseAreaCode addSubview:lblWarehouseAreaCode];
-
- UIView *vWarehouseAreaName = [UIView new];
- vWarehouseAreaName.frame=CGRectMake(0,CGRectGetMaxY(vWarehouseAreaCode.frame), Screen_Width, heightRow);
- [vBody addSubview:vWarehouseAreaName];
- UILabel *lblTitleWarehouseAreaName=[UILabel new];
- lblTitleWarehouseAreaName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleWarehouseAreaName.text=@"库区名称:";
- lblTitleWarehouseAreaName.textColor = [UIColor blackColor];
- lblTitleWarehouseAreaName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWarehouseAreaName addSubview:lblTitleWarehouseAreaName];
-
- UILabel *lblWarehouseAreaName =[UILabel new];
- lblWarehouseAreaName.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseAreaName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseAreaName.frame)-10, valueheight);
- lblWarehouseAreaName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblWarehouseAreaName.text =_goodsListModel.warehouseName;
- [vWarehouseAreaName addSubview:lblWarehouseAreaName];
-
- UIView *vPositionNo = [UIView new];
- vPositionNo.frame=CGRectMake(0,CGRectGetMaxY(vWarehouseAreaName.frame), Screen_Width, heightRow);
- [vBody addSubview:vPositionNo];
- UILabel *lblTitlePositionNo=[UILabel new];
- lblTitlePositionNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitlePositionNo.text=@"仓 位 号:";
- lblTitlePositionNo.textColor = [UIColor blackColor];
- lblTitlePositionNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPositionNo addSubview:lblTitlePositionNo];
-
- UILabel *lblPositionNo =[UILabel new];
- lblPositionNo.frame=CGRectMake(CGRectGetMaxX(lblTitlePositionNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePositionNo.frame)-10, valueheight);
- lblPositionNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblPositionNo.text =_goodsListModel.positionNumber;
- [vPositionNo addSubview:lblPositionNo];
-
- UIView *vGrade = [UIView new];
- vGrade.frame=CGRectMake(0,CGRectGetMaxY(vPositionNo.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblGrade.text =_goodsListModel.gradeName;
- [vGrade addSubview:lblGrade];
-
- UIView *vColorNumber = [UIView new];
- vColorNumber.frame=CGRectMake(0,CGRectGetMaxY(vGrade.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblColorNumber.text =_goodsListModel.colorNumber;
- [vColorNumber addSubview:lblColorNumber];
-
- UIView *vToSalesQuantity = [UIView new];
- vToSalesQuantity.frame=CGRectMake(0,CGRectGetMaxY(vColorNumber.frame), Screen_Width, heightRow);
- [vBody addSubview:vToSalesQuantity];
- UILabel *lblTitleToSalesQuantity=[UILabel new];
- lblTitleToSalesQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleToSalesQuantity.text=@"转销售数量:";
- lblTitleToSalesQuantity.textColor = [UIColor blackColor];
- lblTitleToSalesQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vToSalesQuantity addSubview:lblTitleToSalesQuantity];
-
- UILabel *lblToSalesQuantity =[UILabel new];
- lblToSalesQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleToSalesQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleToSalesQuantity.frame)-10, valueheight);
- lblToSalesQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- double toSalesQuantityValue= _goodsListModel.factToSalesQuantity;
- lblToSalesQuantity.text =[NSString stringWithFormat:@"%lf",toSalesQuantityValue];
- [vToSalesQuantity addSubview:lblToSalesQuantity];
-
-
- UIView *vApplyQuantity = [UIView new];
- vApplyQuantity.frame=CGRectMake(0,CGRectGetMaxY(vToSalesQuantity.frame), Screen_Width, heightRow);
- [vBody addSubview:vApplyQuantity];
- UILabel *lblTitleApplyQuantity=[UILabel new];
- lblTitleApplyQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleApplyQuantity.text=@"采购请够量:";
- lblTitleApplyQuantity.textColor = [UIColor blackColor];
- lblTitleApplyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vApplyQuantity addSubview:lblTitleApplyQuantity];
-
- UILabel *lblApplyQuantity =[UILabel new];
- lblApplyQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleApplyQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleApplyQuantity.frame)-10, valueheight);
- lblApplyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- double applyQuantityValue= _goodsListModel.applyQuantity;
- lblApplyQuantity.text =[NSString stringWithFormat:@"%lf",applyQuantityValue];
- [vApplyQuantity addSubview:lblApplyQuantity];
-
-
- UIView *vOccupyQuantity = [UIView new];
- vOccupyQuantity.frame=CGRectMake(0,CGRectGetMaxY(vApplyQuantity.frame), Screen_Width, heightRow);
- [vBody addSubview:vOccupyQuantity];
- UILabel *lblTitleOccupyQuantity=[UILabel new];
- lblTitleOccupyQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOccupyQuantity.text=@"占库数量:";
- lblTitleOccupyQuantity.textColor = [UIColor blackColor];
- lblTitleOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOccupyQuantity addSubview:lblTitleOccupyQuantity];
-
- UILabel *lblOccupyQuantity =[UILabel new];
- lblOccupyQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleOccupyQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOccupyQuantity.frame)-10, valueheight);
- lblOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- double occupyQuantityValue= _goodsListModel.factOccupyQuantity;
- lblOccupyQuantity.text =[NSString stringWithFormat:@"%lf",occupyQuantityValue];
- [vOccupyQuantity addSubview:lblOccupyQuantity];
-
- UIView *vCirculateType = [UIView new];
- vCirculateType.frame=CGRectMake(0,CGRectGetMaxY(vOccupyQuantity.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCirculateType.text =_goodsListModel.goodsCirculateTypeName;
- [vCirculateType addSubview:lblCirculateType];
-
- UIView *vPackage = [UIView new];
- vPackage.frame=CGRectMake(0,CGRectGetMaxY(vCirculateType.frame), Screen_Width, heightRow);
- [vBody addSubview:vPackage];
- UILabel *lblTitlePackage=[UILabel new];
- lblTitlePackage.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitlePackage.text=@"包 装:";
- lblTitlePackage.textColor = [UIColor blackColor];
- lblTitlePackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPackage addSubview:lblTitlePackage];
-
- UILabel *lblPackage =[UILabel new];
- lblPackage.frame=CGRectMake(CGRectGetMaxX(lblTitlePackage.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePackage.frame)-10, valueheight);
- lblPackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblPackage.text =_goodsListModel.package;
- [vPackage addSubview:lblPackage];
-
- UIView *vAcreage = [UIView new];
- vAcreage.frame=CGRectMake(0,CGRectGetMaxY(vPackage.frame), Screen_Width, heightRow);
- [vBody addSubview:vAcreage];
- UILabel *lblTitleAcreage=[UILabel new];
- lblTitleAcreage.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleAcreage.text=@"单位面积:";
- lblTitleAcreage.textColor = [UIColor blackColor];
- lblTitleAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vAcreage addSubview:lblTitleAcreage];
-
- UILabel *lblAcreage =[UILabel new];
- lblAcreage.frame=CGRectMake(CGRectGetMaxX(lblTitleAcreage.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleAcreage.frame)-10, valueheight);
- lblAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblAcreage.text =_goodsListModel.acreage;
- [vAcreage addSubview:lblAcreage];
-
- UIView *vOrderAcreage = [UIView new];
- vOrderAcreage.frame=CGRectMake(0,CGRectGetMaxY(vAcreage.frame), Screen_Width, heightRow);
- [vBody addSubview:vOrderAcreage];
- UILabel *lblTitleOrderAcreage=[UILabel new];
- lblTitleOrderAcreage.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOrderAcreage.text=@"订单面积:";
- lblTitleOrderAcreage.textColor = [UIColor blackColor];
- lblTitleOrderAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderAcreage addSubview:lblTitleOrderAcreage];
-
- UILabel *lblOrderAcreage =[UILabel new];
- lblOrderAcreage.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderAcreage.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderAcreage.frame)-10, valueheight);
- lblOrderAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrderAcreage.text =_goodsListModel.M2;
- [vOrderAcreage addSubview:lblOrderAcreage];
-
- UIView *vUnitVolume = [UIView new];
- vUnitVolume.frame=CGRectMake(0,CGRectGetMaxY(vOrderAcreage.frame), Screen_Width, heightRow);
- [vBody addSubview:vUnitVolume];
- UILabel *lblTitleUnitVolume=[UILabel new];
- lblTitleUnitVolume.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleUnitVolume.text=@"单位体积:";
- lblTitleUnitVolume.textColor = [UIColor blackColor];
- lblTitleUnitVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnitVolume addSubview:lblTitleUnitVolume];
-
- UILabel *lblUnitVolume =[UILabel new];
- lblUnitVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleUnitVolume.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUnitVolume.frame)-10, valueheight);
- lblUnitVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUnitVolume.text =_goodsListModel.volume;
- [vUnitVolume addSubview:lblUnitVolume];
-
- UIView *vOrderVolume = [UIView new];
- vOrderVolume.frame=CGRectMake(0,CGRectGetMaxY(vUnitVolume.frame), Screen_Width, heightRow);
- [vBody addSubview:vOrderVolume];
- UILabel *lblTitleOrderVolume=[UILabel new];
- lblTitleOrderVolume.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOrderVolume.text=@"订单体积:";
- lblTitleOrderVolume.textColor = [UIColor blackColor];
- lblTitleOrderVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderVolume addSubview:lblTitleOrderVolume];
-
- UILabel *lblOrderVolume =[UILabel new];
- lblOrderVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderVolume.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderVolume.frame)-10, valueheight);
- lblOrderVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrderVolume.text =_goodsListModel.M3;
- [vOrderVolume addSubview:lblOrderVolume];
-
-
- UIView *vMarkedPrice = [UIView new];
- vMarkedPrice.frame=CGRectMake(0,CGRectGetMaxY(vOrderVolume.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblMarkedPrice.text =_goodsListModel.markedPrice;
- [vMarkedPrice addSubview:lblMarkedPrice];
-
- UIView *vDiscount = [UIView new];
- vDiscount.frame=CGRectMake(0,CGRectGetMaxY(vMarkedPrice.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblDiscount.text =_goodsListModel.discount;
- [vDiscount addSubview:lblDiscount];
-
- UIView *vUsePosition = [UIView new];
- vUsePosition.frame=CGRectMake(0,CGRectGetMaxY(vDiscount.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUsePosition.text =_goodsListModel.usePositionName;
- [vUsePosition addSubview:lblUsePosition];
-
- UIView *vSupplier = [UIView new];
- vSupplier.frame=CGRectMake(0,CGRectGetMaxY(vUsePosition.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblSupplier.text =_goodsListModel.supplier;
- [vSupplier addSubview:lblSupplier];
-
- UIView *vVariety = [UIView new];
- vVariety.frame=CGRectMake(0,CGRectGetMaxY(vSupplier.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblVariety.text =_goodsListModel.varietyName;
- [vVariety addSubview:lblVariety];
-
- UIView *vSeries = [UIView new];
- vSeries.frame=CGRectMake(0,CGRectGetMaxY(vVariety.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblSeries.text =_goodsListModel.seriesName;
- [vSeries addSubview:lblSeries];
-
- UIView *vGoodsName = [UIView new];
- vGoodsName.frame=CGRectMake(0,CGRectGetMaxY(vSeries.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblGoodsName.text =_goodsListModel.goodsName;
- [vGoodsName addSubview:lblGoodsName];
-
-
- UIView *vExpandAttribute = [UIView new];
- vExpandAttribute.frame=CGRectMake(0,CGRectGetMaxY(vGoodsName.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblExpandAttribute.text =_goodsListModel.expandAttribute;
- [vExpandAttribute addSubview:lblExpandAttribute];
-
- UIView *vExpandAttribute2 = [UIView new];
- vExpandAttribute2.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute.frame), Screen_Width, heightRow);
- [vBody addSubview:vExpandAttribute2];
- UILabel *lblTitleExpandAttribute2=[UILabel new];
- lblTitleExpandAttribute2.frame=CGRectMake(lblx, lbly, lblwidth, 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)-10, valueheight);
- lblExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblExpandAttribute2.text =_goodsListModel.expandAttribute2;
- [vExpandAttribute2 addSubview:lblExpandAttribute2];
-
- UIView *vCodeRemarks= [UIView new];
- vCodeRemarks.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute2.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCodeRemarks.text =_goodsListModel.goodsRemarks;
- [vCodeRemarks addSubview:lblCodeRemarks];
-
- UIView *vRemarks= [UIView new];
- vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vCodeRemarks.frame), Screen_Width, heightRow);
- [vBody 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)-10, valueheight);
- lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblRemarks.text =_goodsListModel.remarks;
- [vRemarks addSubview:lblRemarks];
- vBody.frame=CGRectMake(0,0, Screen_Width,CGRectGetMaxY(vRemarks.frame));
- _scrollView.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vBody.frame)+rectStatusHeight+rectNavHeight);
-
- }
- /**
- 返回
- */
- - (void)goBack
- {
- [self.navigationController popViewControllerAnimated:YES];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
-
- }
- @end
|