| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922 |
- //
- // InventoryDetailViewController.m
- // IBOSS
- //
- // Created by apple on 2017/5/16.
- // Copyright © 2017年 沈阳东科云信软件有限公司. All rights reserved.
- //
- // 功能描述:库存明细表详细控制器
- //
- #import "InventoryDetailViewController.h"
- #import "AlbumPhotoCollectionViewCell.h"
- @interface InventoryDetailViewController ()
- @end
- @implementation InventoryDetailViewController
- /**
- viewDidLoad函数
- */
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self showTitle:@""];
- _detailImgList=[[NSMutableArray alloc]init];
- [self loadData];
- }
- /**
- 安全区视图发生变化
- */
- -(void)viewSafeAreaInsetsDidChange{
- _scroll.frame = self.view.safeAreaLayoutGuide.layoutFrame;
- [super viewSafeAreaInsetsDidChange];
- }
- /**
- didReceiveMemoryWarning函数
- */
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- }
- #pragma mark - 私有函数
- -(void)loadData
- {
- [self startLoading];
- NSMutableDictionary *dict = [NSMutableDictionary dictionary];
- [dict setObject:@"GetNewInventoryDetailIphone" forKey:@"Action"];
- [dict setObject:[NSString stringWithFormat:@"%@",kkAccountCode]forKey:@"AccountCode"];
- [dict setObject:kkUserCode forKey:@"UserCode"];
- [dict setObject:kkUserPwd forKey:@"UserPassword"];
- [dict setObject:kkSessionKey forKey:@"SessionKey"];
- [dict setObject:_inventoryId forKeyedSubscript:@"InventoryID"];
- _downManager = [[ASIDownManager alloc] init];
- _downManager.delegate = self;
- _downManager.onRequestSuccess = @selector(onLoadFinish:);
- _downManager.onRequestFail = @selector(onLoadFail:);
- [_downManager postHttpRequest:ServerURL dic:dict path:nil fileName:nil];
- }
- /**
- 加载列表数据失败回调
-
- @param sender <#sender description#>
- */
- - (void)onLoadFail:(ASIDownManager *)sender {
- [self cancel];
- [self showAlertViewText:@"网络异常"];
- }
- /**
- 隐藏进度条
- */
- - (void)cancel {
- [self stopLoading];
- }
- /**
- 加载列表数据成功回调
-
- @param sender <#sender description#>
- */
- - (void)onLoadFinish:(ASIDownManager *)sender {
- // 取消进度条
- [self cancel];
- // 服务器返回数据
- RequestResultModel *resultModel = [RequestResultModel dk_modelWithJSON:sender.mWebStr];
- // 服务器返回数据状态值
- int iStatus = resultModel.status;
- // 服务器返回数据消息
- NSString *message = resultModel.message;
- // 服务器返回数据状态值正确
- if (iStatus == 0) {
- NSDictionary * infoDic = (NSDictionary *)resultModel.result;
- if(infoDic != nil)
- {
- NSArray *infoArray=[infoDic objectForKey:@"Table"];
- if(infoArray!=nil&&infoArray.count>0){
- NSDictionary *dic=[infoArray objectAtIndex:0];
- _detailModel = [InventoryDetailModel dk_modelWithDictionary:dic];
- _detailModel.costPrice=[NSString stringWithFormat:@"%.2f", [_detailModel.costPrice doubleValue]];
- if(_detailModel.canSaleQuantity != nil && ![_detailModel.canSaleQuantity isEqualToString:@""]){
- if(_detailModel.circulateType != nil && ![_detailModel.circulateType isEqualToString:@""]){
- _detailModel.boxPieceFlag = YES;
- if(_detailModel.package != nil && ![_detailModel.package isEqualToString:@""]){
-
- int circulateType= [_detailModel.circulateType intValue];
- double acreage=[_detailModel.acreage doubleValue];
- if(circulateType==1)
- {
- if([_detailModel.canSaleQuantity doubleValue]>=0)
- {
- _detailModel.box = [NSString stringWithFormat:@"%ld",(long)floor([_detailModel.canSaleQuantity doubleValue]/[_detailModel.package doubleValue])];
-
- }
- else
- {
- _detailModel.box = [NSString stringWithFormat:@"%ld",(long)ceil([_detailModel.canSaleQuantity doubleValue]/[_detailModel.package doubleValue])];
- }
-
- _detailModel.piece = [NSString stringWithFormat:@"%ld",(long)[_detailModel.canSaleQuantity intValue]%[_detailModel.package intValue]];
- }
-
- else
- {
- if([_detailModel.package intValue]>0&&acreage>0)
- {
- long canSalesPieces=0;
- int canSalesBox=0;
- if([_detailModel.canSaleQuantity doubleValue]>=0)
- {
- canSalesPieces=(long)ceil([_detailModel.canSaleQuantity doubleValue]/acreage);
- canSalesBox=(int)floor(canSalesPieces/[_detailModel.package intValue]);
-
- }
- else
- {
-
- canSalesPieces=(long)floor([_detailModel.canSaleQuantity doubleValue]/acreage);
- canSalesBox=(int)ceil(canSalesPieces/[_detailModel.package intValue]);
-
- }
-
- int canSalesPiece=canSalesPieces%[_detailModel.package intValue];
-
- _detailModel.box = [NSString stringWithFormat:@"%d",canSalesBox];
- _detailModel.piece=[NSString stringWithFormat:@"%d",canSalesPiece];
- }
-
-
-
- else
- {
- _detailModel.box = @"0";
- _detailModel.piece = @"0";
- }
- }
- }
-
- else{
- _detailModel.boxPieceFlag = NO;
- }
- }
- else{
- _detailModel.boxPieceFlag = NO;
- }
-
- }
- _expandAttribute=_detailModel.expandAttribute;
- _expandAttribute2=_detailModel.expandAttribute2;
- _code=_detailModel.code;
- _unitName=_detailModel.unitName;
- _onlyCode=_detailModel.onlyCode;
- _goodName=_detailModel.goodName;
- _costPrice=_detailModel.costPrice;
- _brandName=_detailModel.brandName;
- _colorNumber=_detailModel.colorNumber;
- _specification= _detailModel.specification;
- _gradeName=_detailModel.gradeName;
- _photo=_detailModel.photo;
- _wareHouseName=_detailModel.wareHouseName;
- _positionNumber=_detailModel.positionNumber;
- _box=_detailModel.box;
- _piece=_detailModel.piece;
- _canSaleQuantity=_detailModel.canSaleQuantity;
- _inventoryQuantity= _detailModel.inventoryQuantity;
- _price= _detailModel.price;
- _occupyQuantity=_detailModel.occupyQuantity;
- _noOccupyQuantity=_detailModel.noBookOccupyQuantity;
- _noDeliveryQuantity = _detailModel.noDeliveryQuantity;
- _ceaseFlag=_detailModel.ceaseFlag;
- _weight=_detailModel.weight;
- _estimatedShortageQuantity=_detailModel.estimatedShortageQuantity;
- _boxPieceFlag=_detailModel.boxPieceFlag;
- _freezerQuantity=_detailModel.freezeQuantity;
- _deliveryQuantity=_detailModel.deliveryQuantity;
- _seriesName=_detailModel.seriesName;
- _varietyName=_detailModel.varietyName;
- _package=_detailModel.package;
-
- if(_detailModel.photo!=nil&&_detailModel.photo.length>0)
- {
- ImageModel *imgModel=[ImageModel new];
- imgModel.imageName=_detailModel.photo;
- [_detailImgList addObject:imgModel];
- }
- [self initUI];
- }
-
-
- }
- }
- // 服务器返回数据状态值异常
- else if(iStatus == ActionResultStatusAuthError
- ||iStatus == ActionResultStatusNoLogin
- ||iStatus == ActionResultStatusLogined||iStatus==ActionResultSessionOverdue){
- [self showReLoginDialog:message];
- }
- else
- {
- [self initUI];
- }
-
- }
- /**
- 初始化ui
- */
- - (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=_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=_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 = _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 = self.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 = self.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 = self.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 = self.gradeName;
- [vgradeName addSubview:_lblGrade];
-
- UIView *vwareHouseName = [UIView new];
- vwareHouseName.frame=CGRectMake(0, CGRectGetMaxY(vgradeName.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 = self.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 = self.positionNumber;
- [vpositionNumber addSubview:_lblPositionNumber];
- CGFloat height = CGRectGetMaxY(vpositionNumber.frame);
-
- if(_displayCanSalesQuantity)
- {
- if(_boxPieceFlag){
- UIView *vBox = [UIView new];
- vBox.frame=CGRectMake(0,height, Screen_Width, heightRow);
-
- UILabel *titleBox = [[UILabel alloc] init];
- titleBox.text = @"可 售 箱:";
- titleBox.frame = CGRectMake(lblx,lbly, lblwidth,lblheight);
- titleBox.textColor = [UIColor blackColor];
- titleBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBox addSubview:titleBox];
- [vTitle addSubview:vBox];
-
- _lBox = [[UILabel alloc] init];
- _lBox.frame = CGRectMake(valuex, valuey,Screen_Width - valuex - lblx, valueheight);
- _lBox.text =[NSString stringWithFormat:@"%d", [_box intValue]];
- _lBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBox addSubview:_lBox];
- height = CGRectGetMaxY(vBox.frame);
-
- UIView *vPiece = [UIView new];
- vPiece.frame=CGRectMake(0,height, Screen_Width, heightRow);
- [vTitle addSubview:vPiece];
- UILabel *titlepic = [[UILabel alloc] init];
- titlepic.text = @"可 售 片:";
- titlepic.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- titlepic.frame = CGRectMake(lblx,lbly, lblwidth,lblheight);
- [vPiece addSubview:titlepic];
-
- _lPiece= [[UILabel alloc] init];
- _lPiece.frame =CGRectMake(valuex, valuey,Screen_Width - valuex - lblx, valueheight);
- _lPiece.text = _piece;
- _lPiece.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPiece addSubview:_lPiece];
- height = CGRectGetMaxY(vPiece.frame);
- }
-
- if(_canSaleQuantity != nil){
- // —————————
- UIView *vcanSaleQuantity = [UIView new];
- vcanSaleQuantity.frame=CGRectMake(0, height, 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 = self.canSaleQuantity;
- [vcanSaleQuantity addSubview:_lblCanSaleQuantity];
- height = CGRectGetMaxY(vcanSaleQuantity.frame);
- }
- }
-
- if(_displayInventoryQuantity)
- {
- if(_inventoryQuantity != nil){
- // —————————
- UIView *vinventoryQuantity = [UIView new];
- vinventoryQuantity.frame=CGRectMake(0,height, Screen_Width, heightRow);
- [vTitle addSubview:vinventoryQuantity];
- UILabel *lblTitleInventoryQuantity = [UILabel new];
- lblTitleInventoryQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleInventoryQuantity.text = @"结 存 量:";
- lblTitleInventoryQuantity.textColor = [UIColor blackColor];
- lblTitleInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vinventoryQuantity addSubview:lblTitleInventoryQuantity];
-
- _lblInventoryQuantity = [UILabel new];
- _lblInventoryQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblInventoryQuantity.text = self.inventoryQuantity;
- [vinventoryQuantity addSubview:_lblInventoryQuantity];
- height = CGRectGetMaxY(vinventoryQuantity.frame);
- }
- }
- if(_displayStandardPrice){
-
- UIView *vprice = [UIView new];
- vprice.frame=CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle addSubview:vprice];
- UILabel *lblTitlePrice = [UILabel new];
- lblTitlePrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitlePrice.text = @"标 价:";
- lblTitlePrice.textColor = [UIColor blackColor];
- lblTitlePrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vprice addSubview:lblTitlePrice];
-
- _lblPrice= [UILabel new];
- _lblPrice.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblPrice.text = self.price;
- [vprice addSubview:_lblPrice];
- height = CGRectGetMaxY(vprice.frame);
- }
-
- if([_settingValues isEqualToString:@"1"])
- {
- UIView *vCostPrice = [UIView new];
- vCostPrice.frame=CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle addSubview:vCostPrice];
- UILabel *lblTitleCostPrice = [UILabel new];
- lblTitleCostPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCostPrice.text = @"成 本 价:";
- lblTitleCostPrice.textColor = [UIColor blackColor];
- lblTitleCostPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCostPrice addSubview:lblTitleCostPrice];
-
- _lblCostPrice= [UILabel new];
- _lblCostPrice.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblCostPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblCostPrice.text = self.costPrice;
- [vCostPrice addSubview:_lblCostPrice];
- height = CGRectGetMaxY(vCostPrice.frame);
- }
-
- if(_occupyQuantity!=nil&&_occupyQuantity.length>0){
-
- UIView *vOccupyQuantity = [UIView new];
- vOccupyQuantity.frame=CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle 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];
- _lblOccupyQuantity = [UILabel new];
- _lblOccupyQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblOccupyQuantity.text = _occupyQuantity;
- [vOccupyQuantity addSubview:_lblOccupyQuantity];
- height = CGRectGetMaxY(vOccupyQuantity.frame);
- }
-
- if(_noOccupyQuantity!=nil&&_noOccupyQuantity.length>0){
-
- UIView *vNoOccupyQuantity = [UIView new];
- vNoOccupyQuantity.frame=CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle addSubview:vNoOccupyQuantity];
- UILabel *lblTitleNoOccupyQuantity = [UILabel new];
- lblTitleNoOccupyQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleNoOccupyQuantity.text = @"未占库量:";
- lblTitleNoOccupyQuantity.textColor = [UIColor blackColor];
- lblTitleNoOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vNoOccupyQuantity addSubview:lblTitleNoOccupyQuantity];
- _lblNoOccupyQuantity = [UILabel new];
- _lblNoOccupyQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblNoOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblNoOccupyQuantity.text = _noOccupyQuantity;
- [vNoOccupyQuantity addSubview:_lblNoOccupyQuantity];
- height = CGRectGetMaxY(vNoOccupyQuantity.frame);
- }
-
- //2019-05-21 新增未提量
- if (_noDeliveryQuantity!=nil&&_noDeliveryQuantity.length>0) {
- UIView *vNoDeliveryQuantity = [UIView new];
- vNoDeliveryQuantity.frame = CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle addSubview:vNoDeliveryQuantity];
- UILabel *lblTitleNoDeliveryQuantity = [UILabel new];
- lblTitleNoDeliveryQuantity.frame = CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleNoDeliveryQuantity.text = @"未 提 量:";
- lblTitleNoDeliveryQuantity.textColor = [UIColor blackColor];
- lblTitleNoDeliveryQuantity.font = [UIFont systemFontOfSize:LabelAndTextFontOfSize];
- [vNoDeliveryQuantity addSubview:lblTitleNoDeliveryQuantity];
- _lblNoDeliveryQuantity = [UILabel new];
- _lblNoDeliveryQuantity.frame = CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- _lblNoDeliveryQuantity.font = [UIFont systemFontOfSize:LabelAndTextFontOfSize];
- _lblNoDeliveryQuantity.text = _noDeliveryQuantity;
- [vNoDeliveryQuantity addSubview:_lblNoDeliveryQuantity];
- height = CGRectGetMaxY(vNoDeliveryQuantity.frame);
- }
-
- if(_estimatedShortageQuantity!=nil&&_estimatedShortageQuantity.length>0){
-
- UIView *vEstimatedShortageQuantity = [UIView new];
- vEstimatedShortageQuantity.frame=CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle addSubview:vEstimatedShortageQuantity];
- UILabel *lblTitleEstimatedShortageQuantity = [UILabel new];
- lblTitleEstimatedShortageQuantity.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleEstimatedShortageQuantity.text = @"预估缺货量:";
- lblTitleEstimatedShortageQuantity.textColor = [UIColor blackColor];
- lblTitleEstimatedShortageQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vEstimatedShortageQuantity addSubview:lblTitleEstimatedShortageQuantity];
- _lblEstimatedShortageQuantity = [UILabel new];
- _lblEstimatedShortageQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblEstimatedShortageQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblEstimatedShortageQuantity.text = _estimatedShortageQuantity;
- [vEstimatedShortageQuantity addSubview:_lblEstimatedShortageQuantity];
- height = CGRectGetMaxY(vEstimatedShortageQuantity.frame);
- }
-
- UIView *vFreezeQuantity = [UIView new];
- vFreezeQuantity.frame=CGRectMake(0, height, Screen_Width, heightRow);
- [vTitle addSubview:vFreezeQuantity];
- UILabel *lblTitleFreezeQuantity = [UILabel new];
- lblTitleFreezeQuantity.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleFreezeQuantity.text = @"冻 结 量:";
- lblTitleFreezeQuantity.textColor = [UIColor blackColor];
- lblTitleFreezeQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFreezeQuantity addSubview:lblTitleFreezeQuantity];
- _lblFreezerQuantity = [UILabel new];
- _lblFreezerQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblFreezerQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblFreezerQuantity.text =_freezerQuantity;
-
- [vFreezeQuantity addSubview:_lblFreezerQuantity];
-
- UIView *vDeliveryQuantity = [UIView new];
- vDeliveryQuantity.frame=CGRectMake(0,CGRectGetMaxY(vFreezeQuantity.frame), Screen_Width, heightRow);
- [vTitle addSubview:vDeliveryQuantity];
-
- UILabel *lblTitleDeliveryQuantity = [UILabel new];
- lblTitleDeliveryQuantity.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleDeliveryQuantity.text = @"采购发货量:";
- lblTitleDeliveryQuantity.textColor = [UIColor blackColor];
- lblTitleDeliveryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDeliveryQuantity addSubview:lblTitleDeliveryQuantity];
- _lblDeliveryQuantity = [UILabel new];
- _lblDeliveryQuantity.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblDeliveryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblDeliveryQuantity.text =_deliveryQuantity;
-
- [vDeliveryQuantity addSubview:_lblDeliveryQuantity];
-
-
-
- UIView *vSeriesName = [UIView new];
- vSeriesName.frame=CGRectMake(0,CGRectGetMaxY(vDeliveryQuantity.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 =_seriesName;
-
- [vSeriesName addSubview:_lblSeriesName];
-
- UIView *vVarietyName = [UIView new];
- vVarietyName.frame=CGRectMake(0,CGRectGetMaxY(vSeriesName.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 =_varietyName;
-
- [vVarietyName addSubview:_lblVarietyName];
-
- UIView *vPackage = [UIView new];
- vPackage.frame=CGRectMake(0,CGRectGetMaxY(vVarietyName.frame), Screen_Width, heightRow);
- [vTitle addSubview:vPackage];
-
- UILabel *lblTitlePackage = [UILabel new];
- lblTitlePackage.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitlePackage.text = @"包 装:";
- lblTitlePackage.textColor = [UIColor blackColor];
- lblTitlePackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vPackage addSubview:lblTitlePackage];
- _lblPackage = [UILabel new];
- _lblPackage.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblPackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblPackage.text =_package;
-
- [vPackage addSubview:_lblPackage];
-
- UIView *vUnit = [UIView new];
- vUnit.frame=CGRectMake(0,CGRectGetMaxY(vPackage.frame), Screen_Width, heightRow);
- [vTitle addSubview:vUnit];
-
- UILabel *lblTitleUnit = [UILabel new];
- lblTitleUnit.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleUnit.text = @"单 位:";
- lblTitleUnit.textColor = [UIColor blackColor];
- lblTitleUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUnit addSubview:lblTitleUnit];
- _lblUnit = [UILabel new];
- _lblUnit.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblUnit.text =_unitName;
-
- [vUnit addSubview:_lblUnit];
-
- UIView *vWeight = [UIView new];
- vWeight.frame=CGRectMake(0,CGRectGetMaxY(vUnit.frame), Screen_Width, heightRow);
- [vTitle addSubview:vWeight];
-
- UILabel *lblTitleWeight = [UILabel new];
- lblTitleWeight.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleWeight.text = @"重 量:";
- lblTitleWeight.textColor = [UIColor blackColor];
- lblTitleWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWeight addSubview:lblTitleWeight];
- _lblWeight= [UILabel new];
- _lblWeight.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblWeight.text =_weight;
-
- [vWeight addSubview:_lblWeight];
-
-
- UIView *vCeaseFlag = [UIView new];
- vCeaseFlag.frame=CGRectMake(0, CGRectGetMaxY(vWeight.frame), Screen_Width, heightRow);
- [vTitle addSubview:vCeaseFlag];
- UILabel *lblTitleCeaseFlag = [UILabel new];
- lblTitleCeaseFlag.frame=CGRectMake(lblx, lbly, 90, lblheight);
- lblTitleCeaseFlag.text = @"停产标识:";
- lblTitleCeaseFlag.textColor = [UIColor blackColor];
- lblTitleCeaseFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCeaseFlag addSubview:lblTitleCeaseFlag];
- _lblCeaseFlag = [UILabel new];
- _lblCeaseFlag.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblCeaseFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- if([_ceaseFlag intValue]==1){
- _lblCeaseFlag.text =@"已停产";
- }
- else
- {
- _lblCeaseFlag.text =@"未停产";
- }
- [vCeaseFlag addSubview:_lblCeaseFlag];
-
-
- UIView *vExpandAttribute = [UIView new];
- vExpandAttribute.frame=CGRectMake(0,CGRectGetMaxY(vCeaseFlag.frame), Screen_Width, heightRow);
- [vTitle addSubview:vExpandAttribute];
-
- UILabel *lblTitleExpandAttribute = [UILabel new];
- lblTitleExpandAttribute.frame=CGRectMake(lblx, lbly, 90, 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-20, valueheight);
- _lblExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblExpandAttribute.text =_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, 90, lblheight);
- lblTitleExpandAttribute2.text = @"扩展属性二:";
- lblTitleExpandAttribute2.textColor = [UIColor blackColor];
- lblTitleExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vExpandAttribute2 addSubview:lblTitleExpandAttribute2];
- _lblExpandAttribute2 = [UILabel new];
- _lblExpandAttribute2.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx-20, valueheight);
- _lblExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- _lblExpandAttribute2.text =_expandAttribute2;
-
- [vExpandAttribute2 addSubview:_lblExpandAttribute2];
-
- height = CGRectGetMaxY(vExpandAttribute2.frame);
-
- vTitle.frame=CGRectMake(10, 10, Screen_Width-20, height);
- vTitle.layer.cornerRadius = CornerRadius;
- if(_detailImgList!=nil&&_detailImgList.count>0)
- {
- UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
- flowLayout.itemSize = CGSizeMake(85, 85);
- flowLayout.minimumInteritemSpacing = 5;
- flowLayout.minimumLineSpacing = 10;
-
- flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
- flowLayout.sectionInset = UIEdgeInsetsMake(7, 20, 0, 20);
- self.collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(20,CGRectGetMaxY(vExpandAttribute2.frame), self.view.bounds.size.width-40, [self getPhotoCollectionViewHeightWithPhotos:_detailImgList]) collectionViewLayout:flowLayout];
-
- self.collectionView.dataSource=self;
- self.collectionView.delegate=self;
- self.collectionView.scrollEnabled=NO;
- self.collectionView.backgroundColor=[UIColor whiteColor];
- [self.collectionView registerClass:[AlbumPhotoCollectionViewCell class] forCellWithReuseIdentifier:@"PhotoCollectionViewCellIdentifier"];
-
- [vTitle addSubview:self.collectionView];
- vTitle.frame=CGRectMake(10,10,Screen_Width-20,CGRectGetMaxY(self.collectionView.frame)+10);
- }
-
-
- vTitle.layer.cornerRadius = CornerRadius;
-
- _scroll.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vTitle.frame)+rectStatusHeight+rectNavHeight);
- }
- #pragma mark - UICollectionView回调函数
- -(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
- return _detailImgList.count;
- }
- -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
-
- static NSString *PhotoCollectionViewCellIdentifier=@"PhotoCollectionViewCellIdentifier";
- AlbumPhotoCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:PhotoCollectionViewCellIdentifier forIndexPath:indexPath];
- NSArray *followInfoarray=_detailImgList;
- cell.indexPath = indexPath;
- ImageModel *image1 = [followInfoarray objectAtIndex:indexPath.row];
- NSString *imagepath=[image1 imageName];
- if(imagepath!=nil&&[imagepath length]>0){
- NSData *decodedImageData = [[NSData alloc] initWithBase64Encoding:imagepath];
-
- UIImage *_decodedImage = [UIImage imageWithData:decodedImageData];
- [cell.photoImageView setImage:_decodedImage];
- }
-
- return cell;
- };
- /**
- 定义每个UICollectionView 的大小
-
- @param collectionView <#collectionView description#>
- @param collectionViewLayout <#collectionViewLayout description#>
- @param indexPath <#indexPath description#>
- @return <#return value description#>
- */
- - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
- {
- return CGSizeMake(85, 85);
- }
- /**
- 定义每个UICollectionView 的 margin
-
- @param collectionView <#collectionView description#>
- @param collectionViewLayout <#collectionViewLayout description#>
- @param section <#section description#>
- @return <#return value description#>
- */
- -(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
- {
- return UIEdgeInsetsMake(5, 5, 5, 5);
- }
- #pragma mark --UICollectionViewDelegate
- /**
- UICollectionView被选中时调用的方法
-
- @param collectionView <#collectionView description#>
- @param indexPath <#indexPath description#>
- */
- - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
-
- [self showImageViewerAtIndexPath:indexPath];
- }
- /**
- 返回这个UICollectionView是否可以被选择
-
- @param collectionView <#collectionView description#>
- @param indexPath <#indexPath description#>
- @return <#return value description#>
- */
- -(BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath
- {
- return YES;
- }
- #pragma mark - 私有函数
- /**
- 选择图片
-
- @param indexPath <#indexPath description#>
- */
- - (void)showImageViewerAtIndexPath:(NSIndexPath *)indexPath {
- AlbumPhotoCollectionViewCell *cell = (AlbumPhotoCollectionViewCell *)[self.collectionView cellForItemAtIndexPath:indexPath];
-
- NSMutableArray *imageViews = [NSMutableArray array];
- NSArray *visibleCell = [self.collectionView visibleCells];
-
- NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:@"indexPath" ascending:YES];
-
- visibleCell = [visibleCell sortedArrayUsingDescriptors:[NSArray arrayWithObject:sort]];
-
- [visibleCell enumerateObjectsUsingBlock:^(AlbumPhotoCollectionViewCell *cell, NSUInteger idx, BOOL *stop) {
- [imageViews addObject:[[cell.contentView subviews] lastObject]];
- }];
-
- XHImageViewer *imageViewer = [[XHImageViewer alloc] init];
- [imageViewer showWithImageViews:imageViews selectedView:[[cell.contentView subviews] lastObject]];
- }
- /**
- 图片高度
-
- @param photos <#photos description#>
- @return <#return value description#>
- */
- - (CGFloat)getPhotoCollectionViewHeightWithPhotos:(NSArray *)photos {
- // 上下间隔已经在frame上做了
- NSInteger row = (photos.count / 3 + (photos.count % 3 ? 1 : 0));
- return (row *85 + (row *5));
- }
- @end
|