OptionCombinationDetailCell.m 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. //
  2. // OptionCombinationPromotionDetailCell.m
  3. // IBOSS
  4. //
  5. // Created by 关宏厚 on 2020/9/14.
  6. // Copyright © 2020 elongtian. All rights reserved.
  7. //
  8. #import "OptionCombinationDetailCell.h"
  9. @implementation OptionCombinationDetailCell
  10. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  11. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  12. return self;
  13. }
  14. - (void) setCheckBackground: (BOOL) checked
  15. {
  16. if(!checked)
  17. {
  18. [_btnCheck setImage:[UIImage imageNamed:@"order_unchecked"] forState:UIControlStateNormal];
  19. }
  20. else
  21. {
  22. [_btnCheck setImage:[UIImage imageNamed:@"order_checked"] forState:UIControlStateNormal];
  23. }
  24. }
  25. -(void)setCombinationGoodsDetailCell:(InventoryListModel*)goodsModel
  26. {
  27. CGFloat heightLine = 1;
  28. CGFloat heightRow = 31;
  29. CGFloat lblx = 10;
  30. CGFloat lbly = 0;
  31. CGFloat lblwidth = 70;
  32. CGFloat lblheight = 31;
  33. CGFloat valuey = 0;
  34. CGFloat valueheight = 31;
  35. CGFloat topMargin=8;
  36. NSString *promotionTypeId= goodsModel.promotionTypeDetailId;
  37. UIView *vCode = [UIView new];
  38. vCode.frame=CGRectMake(0,0, Screen_Width,35);
  39. [self.contentView addSubview:vCode];
  40. _btnCheck = [UIButton buttonWithType:UIButtonTypeCustom];
  41. _btnCheck.frame= CGRectMake(lblx,8, 25,25);
  42. [_btnCheck addTarget:self action:@selector(btnGoCheck) forControlEvents:UIControlEventTouchUpInside];
  43. [vCode addSubview:_btnCheck];
  44. UILabel *lblCode = [UILabel new];
  45. lblCode.frame=CGRectMake(CGRectGetMaxX(_btnCheck.frame)+3, 5, Screen_Width-CGRectGetMaxX(_btnCheck.frame), valueheight);
  46. lblCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  47. [vCode addSubview:lblCode];
  48. lblCode.text = goodsModel.code;
  49. UIView *viewBackgroud = [UIView new];
  50. viewBackgroud.frame = CGRectMake(0, CGRectGetMaxY(vCode.frame)-1, Screen_Width, 1);
  51. viewBackgroud.backgroundColor = LineBackgroundColor;
  52. [vCode addSubview:viewBackgroud];
  53. UIView *vGoodsCate = [UIView new];
  54. vGoodsCate.frame=CGRectMake(0,CGRectGetMaxY(vCode.frame)+10, Screen_Width, heightRow);
  55. UILabel *lblTitleGoodsCateName = [UILabel new];
  56. lblTitleGoodsCateName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  57. lblTitleGoodsCateName.text = @"自选种类:";
  58. lblTitleGoodsCateName.textColor = [UIColor lightGrayColor];
  59. lblTitleGoodsCateName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  60. [vGoodsCate addSubview:lblTitleGoodsCateName];
  61. UILabel *lblGoodsCateName = [UILabel new];
  62. lblGoodsCateName.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsCateName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsCateName.frame), valueheight);
  63. lblGoodsCateName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  64. [vGoodsCate addSubview:lblGoodsCateName];
  65. lblGoodsCateName.text = goodsModel.goodsCateName;
  66. [self.contentView addSubview:vGoodsCate];
  67. UIView *vCodeName = [UIView new];
  68. vCodeName.frame=CGRectMake(0,CGRectGetMaxY(vGoodsCate.frame)+10, Screen_Width/2, heightRow);
  69. UILabel *lblTitleCodeName = [UILabel new];
  70. lblTitleCodeName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  71. lblTitleCodeName.text = @"商品名称:";
  72. lblTitleCodeName.textColor = [UIColor lightGrayColor];
  73. lblTitleCodeName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  74. [vCodeName addSubview:lblTitleCodeName];
  75. UILabel *lblCodeName = [UILabel new];
  76. lblCodeName.frame=CGRectMake(CGRectGetMaxX(lblTitleCodeName.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleCodeName.frame), valueheight);
  77. lblCodeName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  78. [vCodeName addSubview:lblCodeName];
  79. lblCodeName.text = goodsModel.goodsName;
  80. [self.contentView addSubview:vCodeName];
  81. UIView *vVariety = [UIView new];
  82. vVariety.frame=CGRectMake(Screen_Width/2,CGRectGetMaxY(vCode.frame)+10, Screen_Width/2, heightRow);
  83. UILabel *lblTitleVariety = [UILabel new];
  84. lblTitleVariety.frame=CGRectMake(0, lbly, lblwidth, lblheight);
  85. lblTitleVariety.text = @"商品品种:";
  86. lblTitleVariety.textColor = [UIColor lightGrayColor];
  87. lblTitleVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  88. [vVariety addSubview:lblTitleVariety];
  89. UILabel *lblVariety = [UILabel new];
  90. lblVariety.frame=CGRectMake(CGRectGetMaxX(lblTitleVariety.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleVariety.frame), valueheight);
  91. lblVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  92. [vVariety addSubview:lblVariety];
  93. lblVariety.text =goodsModel.varietyName;
  94. [self.contentView addSubview:vVariety];
  95. UIView *vOnlyCode = [UIView new];
  96. vOnlyCode.frame=CGRectMake(0,CGRectGetMaxY(vCodeName.frame)+10, Screen_Width/2, heightRow);
  97. UILabel *lblTitleOnlyCode = [UILabel new];
  98. lblTitleOnlyCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  99. lblTitleOnlyCode.text = @"唯一编码:";
  100. lblTitleOnlyCode.textColor = [UIColor lightGrayColor];
  101. lblTitleOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  102. [vOnlyCode addSubview:lblTitleOnlyCode];
  103. UILabel *lblOnlyCode = [UILabel new];
  104. lblOnlyCode.frame=CGRectMake(CGRectGetMaxX(lblTitleOnlyCode.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleOnlyCode.frame), valueheight);
  105. lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  106. [vOnlyCode addSubview:lblOnlyCode];
  107. lblOnlyCode.text =goodsModel.onlyCode;
  108. [self.contentView addSubview:vOnlyCode];
  109. UIView *vBrand = [UIView new];
  110. vBrand.frame=CGRectMake(Screen_Width/2,CGRectGetMaxY(vCodeName.frame)+10, Screen_Width/2, heightRow);
  111. UILabel *lblTitleBrand = [UILabel new];
  112. lblTitleBrand.frame=CGRectMake(0, lbly, lblwidth, lblheight);
  113. lblTitleBrand.text = @"商品品牌:";
  114. lblTitleBrand.textColor = [UIColor lightGrayColor];
  115. lblTitleBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  116. [vBrand addSubview:lblTitleBrand];
  117. UILabel *lblBrand = [UILabel new];
  118. lblBrand.frame=CGRectMake(CGRectGetMaxX(lblTitleBrand.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleBrand.frame), valueheight);
  119. lblBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  120. [vBrand addSubview:lblBrand];
  121. lblBrand.text = goodsModel.brandName;
  122. [self.contentView addSubview:vBrand];
  123. UIView *vGoodsQuantity = [UIView new];
  124. vGoodsQuantity.frame=CGRectMake(0,CGRectGetMaxY(vOnlyCode.frame)+10, Screen_Width, heightRow);
  125. UILabel *lblTitleGoodsQuantity = [UILabel new];
  126. lblTitleGoodsQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  127. lblTitleGoodsQuantity.text = @"商品数量:";
  128. lblTitleGoodsQuantity.textColor = [UIColor redColor];
  129. lblTitleGoodsQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  130. [vGoodsQuantity addSubview:lblTitleGoodsQuantity];
  131. UILabel *lblGoodsQuantity = [UILabel new];
  132. lblGoodsQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblGoodsQuantity.frame), valueheight);
  133. lblGoodsQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  134. [vGoodsQuantity addSubview:lblGoodsQuantity];
  135. lblGoodsQuantity.text =goodsModel.salesQuantity;
  136. [self.contentView addSubview:vGoodsQuantity];
  137. UIView *vColorNumber = [UIView new];
  138. vColorNumber.frame=CGRectMake(0,CGRectGetMaxY(vGoodsQuantity.frame)+10, Screen_Width/3, heightRow);
  139. UILabel *lblTitleColorNumber = [UILabel new];
  140. lblTitleColorNumber.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  141. lblTitleColorNumber.text = @"色号:";
  142. lblTitleColorNumber.textColor = [UIColor lightGrayColor];
  143. lblTitleColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  144. [vColorNumber addSubview:lblTitleColorNumber];
  145. UILabel *lblColorNumber = [UILabel new];
  146. lblColorNumber.frame=CGRectMake(CGRectGetMaxX(lblTitleColorNumber.frame), valuey, Screen_Width/3-CGRectGetMaxX(lblTitleColorNumber.frame), valueheight);
  147. lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  148. [vColorNumber addSubview:lblColorNumber];
  149. lblColorNumber.text = goodsModel.colorNumber;
  150. [self.contentView addSubview:vColorNumber];
  151. UIView *vSpecification = [UIView new];
  152. vSpecification.frame=CGRectMake(Screen_Width/3,CGRectGetMaxY(vGoodsQuantity.frame)+10, Screen_Width/3, heightRow);
  153. UILabel *lblTitleSpecification = [UILabel new];
  154. lblTitleSpecification.frame=CGRectMake(0, lbly, lblwidth, lblheight);
  155. lblTitleSpecification.text = @"规格:";
  156. lblTitleSpecification.textColor = [UIColor lightGrayColor];
  157. lblTitleSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  158. [vSpecification addSubview:lblTitleSpecification];
  159. UILabel *lblSpecification = [UILabel new];
  160. lblSpecification.frame=CGRectMake(CGRectGetMaxX(lblTitleSpecification.frame), valuey, Screen_Width/3-CGRectGetWidth(lblTitleSpecification.frame), valueheight);
  161. lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  162. [vSpecification addSubview:lblSpecification];
  163. lblSpecification.text = goodsModel.specification;
  164. [self.contentView addSubview:vSpecification];
  165. UIView *vGrade = [UIView new];
  166. vGrade.frame=CGRectMake(Screen_Width/3*2,CGRectGetMaxY(vGoodsQuantity.frame)+10, Screen_Width/3, heightRow);
  167. UILabel *lblTitleGrade = [UILabel new];
  168. lblTitleGrade.frame=CGRectMake(0, lbly, lblwidth, lblheight);
  169. lblTitleGrade.text = @"等级:";
  170. lblTitleGrade.textColor = [UIColor lightGrayColor];
  171. lblTitleGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  172. [vGrade addSubview:lblTitleGrade];
  173. UILabel *lblGrade = [UILabel new];
  174. lblGrade.frame=CGRectMake(CGRectGetMaxX(lblTitleGrade.frame), valuey, Screen_Width/3-CGRectGetWidth(lblTitleGrade.frame), valueheight);
  175. lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  176. [vGrade addSubview:lblGrade];
  177. lblGrade.text = goodsModel.gradeName;
  178. [self.contentView addSubview:vGrade];
  179. UIView *vGiftFlag = [UIView new];
  180. vGiftFlag.frame=CGRectMake(0,CGRectGetMaxY(vColorNumber.frame)+10, Screen_Width/2, heightRow);
  181. UILabel *lblTitleGiftFlag = [UILabel new];
  182. lblTitleGiftFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  183. lblTitleGiftFlag.text = @"赠品标识:";
  184. lblTitleGiftFlag.textColor = [UIColor lightGrayColor];
  185. lblTitleGiftFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  186. [vGiftFlag addSubview:lblTitleGiftFlag];
  187. UILabel *lblGiftFlag = [UILabel new];
  188. lblGiftFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleGiftFlag.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleGiftFlag.frame), valueheight);
  189. lblGiftFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  190. [vGiftFlag addSubview:lblGiftFlag];
  191. BOOL giftFlag= goodsModel.giftFlag;
  192. NSString *giftFlagStr;
  193. if(giftFlag)
  194. {
  195. giftFlagStr=@"是";
  196. }
  197. else
  198. {
  199. giftFlagStr=@"否";
  200. }
  201. lblGiftFlag.text = giftFlagStr;
  202. [self.contentView addSubview:vGiftFlag];
  203. UIView *vWarehouseArea = [UIView new];
  204. vWarehouseArea.frame=CGRectMake(Screen_Width/2,CGRectGetMaxY(vColorNumber.frame)+10, Screen_Width/2, heightRow);
  205. UILabel *lblTitleWarehouseArea = [UILabel new];
  206. lblTitleWarehouseArea.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  207. lblTitleWarehouseArea.text = @"库区:";
  208. lblTitleWarehouseArea.textColor = [UIColor lightGrayColor];
  209. lblTitleWarehouseArea.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  210. [vWarehouseArea addSubview:lblTitleWarehouseArea];
  211. UILabel *lblWarehouseArea = [UILabel new];
  212. lblWarehouseArea.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseArea.frame), valuey, Screen_Width/2-CGRectGetWidth(lblTitleWarehouseArea.frame), valueheight);
  213. lblWarehouseArea.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  214. [vWarehouseArea addSubview:lblWarehouseArea];
  215. lblWarehouseArea.text = goodsModel.wareHouseName;
  216. [self.contentView addSubview:vWarehouseArea];
  217. UIView *vKind = [UIView new];
  218. vKind.frame=CGRectMake(0,CGRectGetMaxY(vGiftFlag.frame)+10, Screen_Width/2, heightRow);
  219. UILabel *lblTitleKind = [UILabel new];
  220. lblTitleKind.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  221. lblTitleKind.text = @"种类:";
  222. lblTitleKind.textColor = [UIColor lightGrayColor];
  223. lblTitleKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  224. [vKind addSubview:lblTitleKind];
  225. UILabel *lblKind = [UILabel new];
  226. lblKind.frame=CGRectMake(CGRectGetMaxX(lblTitleKind.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleKind.frame), valueheight);
  227. lblKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  228. [vKind addSubview:lblKind];
  229. lblKind.text = goodsModel.kindName;
  230. [self.contentView addSubview:vKind];
  231. UIView *vSeries = [UIView new];
  232. vSeries.frame=CGRectMake(Screen_Width/2,CGRectGetMaxY(vGiftFlag.frame)+10, Screen_Width/2, heightRow);
  233. UILabel *lblTitleSeires = [UILabel new];
  234. lblTitleSeires.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  235. lblTitleSeires.text = @"系列:";
  236. lblTitleSeires.textColor = [UIColor lightGrayColor];
  237. lblTitleSeires.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  238. [vSeries addSubview:lblTitleSeires];
  239. UILabel *lblSeries = [UILabel new];
  240. lblSeries.frame=CGRectMake(CGRectGetMaxX(lblTitleSeires.frame), valuey, Screen_Width/2-CGRectGetWidth(lblTitleSeires.frame), valueheight);
  241. lblSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  242. [vSeries addSubview:lblSeries];
  243. lblSeries.text = goodsModel.seriesName;
  244. [self.contentView addSubview:vSeries];
  245. UIView *vPromotionPrice = [UIView new];
  246. vPromotionPrice.frame=CGRectMake(0,CGRectGetMaxY(vKind.frame)+10, Screen_Width/2, heightRow);
  247. UILabel *lblTitlePromotionPrice = [UILabel new];
  248. lblTitlePromotionPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  249. lblTitlePromotionPrice.text = @"促销价:";
  250. lblTitlePromotionPrice.textColor = [UIColor lightGrayColor];
  251. lblTitlePromotionPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  252. [vPromotionPrice addSubview:lblTitlePromotionPrice];
  253. UILabel *lblPromotionPrice = [UILabel new];
  254. lblPromotionPrice.frame=CGRectMake(CGRectGetMaxX(lblTitlePromotionPrice.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitlePromotionPrice.frame), valueheight);
  255. lblPromotionPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  256. [vPromotionPrice addSubview:lblPromotionPrice];
  257. lblPromotionPrice.text = goodsModel.salesPrice;
  258. [self.contentView addSubview:vPromotionPrice];
  259. UIView *vMarkedPrice = [UIView new];
  260. vMarkedPrice.frame=CGRectMake(Screen_Width/2,CGRectGetMaxY(vKind.frame)+10, Screen_Width/2, heightRow);
  261. UILabel *lblTitleMarkedPrice= [UILabel new];
  262. lblTitleMarkedPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  263. lblTitleMarkedPrice.text = @"标价:";
  264. lblTitleMarkedPrice.textColor = [UIColor lightGrayColor];
  265. lblTitleMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  266. [vMarkedPrice addSubview:lblTitleMarkedPrice];
  267. UILabel *lblMarkedPrice = [UILabel new];
  268. lblMarkedPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleMarkedPrice.frame), valuey, Screen_Width/2-CGRectGetWidth(lblTitleMarkedPrice.frame), valueheight);
  269. lblMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  270. [vMarkedPrice addSubview:lblMarkedPrice];
  271. lblMarkedPrice.text = goodsModel.markedPrice;
  272. [self.contentView addSubview:vMarkedPrice];
  273. UIView *vInventoryQuantity = [UIView new];
  274. vInventoryQuantity.frame=CGRectMake(0,CGRectGetMaxY(vPromotionPrice.frame)+10, Screen_Width/2, heightRow);
  275. UILabel *lblTitleInventoryQuantity = [UILabel new];
  276. lblTitleInventoryQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  277. lblTitleInventoryQuantity.text = @"结存量:";
  278. lblTitleInventoryQuantity.textColor = [UIColor lightGrayColor];
  279. lblTitleInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  280. [vInventoryQuantity addSubview:lblTitleInventoryQuantity];
  281. UILabel *lblInventoryQuantity = [UILabel new];
  282. lblInventoryQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleInventoryQuantity.frame), valuey, Screen_Width/2-CGRectGetMaxX(lblTitleInventoryQuantity.frame), valueheight);
  283. lblInventoryQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  284. [vInventoryQuantity addSubview:lblInventoryQuantity];
  285. lblInventoryQuantity.text = goodsModel.inventoryQuantity;
  286. [self.contentView addSubview:vInventoryQuantity];
  287. UIView *vCanSalesQuantity = [UIView new];
  288. vCanSalesQuantity.frame=CGRectMake(Screen_Width/2,CGRectGetMaxY(vPromotionPrice.frame)+10, Screen_Width/2, heightRow);
  289. UILabel *lblTitleCanSalesQuantity= [UILabel new];
  290. lblTitleCanSalesQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  291. lblTitleCanSalesQuantity.text = @"可售量:";
  292. lblTitleCanSalesQuantity.textColor = [UIColor lightGrayColor];
  293. lblTitleCanSalesQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  294. [vCanSalesQuantity addSubview:lblTitleCanSalesQuantity];
  295. UILabel *lblCanSalesQuantity= [UILabel new];
  296. lblCanSalesQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleCanSalesQuantity.frame), valuey, Screen_Width/2-CGRectGetWidth(lblTitleCanSalesQuantity.frame), valueheight);
  297. lblCanSalesQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  298. [vCanSalesQuantity addSubview:lblCanSalesQuantity];
  299. lblCanSalesQuantity.text = goodsModel.canSaleQuantity;
  300. [self.contentView addSubview:vCanSalesQuantity];
  301. UIView *bottomSeparator= [UIView new];
  302. bottomSeparator.frame=CGRectMake(0, CGRectGetMaxY(vInventoryQuantity.frame), Screen_Width, 1);
  303. bottomSeparator.backgroundColor = LineBackgroundColor;
  304. [self.contentView addSubview:bottomSeparator];
  305. _height=CGRectGetMaxY(bottomSeparator.frame);
  306. }
  307. -(void)btnGoCheck
  308. {
  309. if([self.delegate respondsToSelector:@selector(btnGoodsCombinationCheckPressed:)])
  310. {
  311. [self.delegate btnGoodsCombinationCheckPressed:self];
  312. }
  313. }
  314. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  315. [super setSelected:selected animated:animated];
  316. }
  317. @end