SalesOrderGoodsDetailVC.m 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751
  1. //
  2. // OrderGoodsDetailVC.m
  3. // IBOSSmini
  4. //
  5. // Created by guan hong hou on 2018/1/23.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. #import "SalesOrderGoodsDetailVC.h"
  9. @interface SalesOrderGoodsDetailVC (){
  10. UIScrollView *_scrollView;
  11. }
  12. @end
  13. @implementation SalesOrderGoodsDetailVC
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. [self loadNavStyle];
  17. [self initUI];
  18. }
  19. /**
  20. 导航按钮样式
  21. */
  22. -(void)loadNavStyle
  23. {
  24. self.navigationItem.title=@"订单商品明细信息";
  25. //返回
  26. UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  27. [button setBackgroundImage:[UIImage imageNamed:@"icon_back"]
  28. forState:UIControlStateNormal];
  29. [button addTarget:self action:@selector(goBack)
  30. forControlEvents:UIControlEventTouchUpInside];
  31. button.frame = CGRectMake(0, 0, 15, 18);
  32. UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:button];
  33. self.navigationItem.leftBarButtonItem = menuButton;
  34. }
  35. /**
  36. 安全区视图发生变化
  37. */
  38. -(void)viewSafeAreaInsetsDidChange{
  39. _scrollView.frame = self.view.safeAreaLayoutGuide.layoutFrame;
  40. [super viewSafeAreaInsetsDidChange];
  41. }
  42. -(void)initUI{
  43. [self.view setBackgroundColor:[UIColor whiteColor]];
  44. CGFloat heightRow = 40;
  45. CGFloat lblx = 10;
  46. CGFloat lbly = 8;
  47. CGFloat lblwidth = 80;
  48. CGFloat lblheight = 25;
  49. CGFloat heightLine = 1;
  50. CGFloat valuey = 8;
  51. CGFloat valueheight = 25;
  52. _scrollView=[UIScrollView new];
  53. _scrollView.frame=self.view.bounds;
  54. [self.view addSubview:_scrollView];
  55. UIView *vBody = [UIView new];
  56. [_scrollView addSubview:vBody];
  57. UIView *vOrderNo = [UIView new];
  58. vOrderNo.frame=CGRectMake(0,0, Screen_Width, heightRow);
  59. [vBody addSubview:vOrderNo];
  60. UILabel *lblTitleOrderNo=[UILabel new];
  61. lblTitleOrderNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  62. lblTitleOrderNo.text=@"订单编号:";
  63. lblTitleOrderNo.textColor = [UIColor blackColor];
  64. lblTitleOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  65. [vOrderNo addSubview:lblTitleOrderNo];
  66. UILabel *lblOrderNo = [UILabel new];
  67. lblOrderNo.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderNo.frame)-10, valueheight);
  68. lblOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  69. lblOrderNo.text = _goodsListModel.orderNo;
  70. [vOrderNo addSubview:lblOrderNo];
  71. UIView *topSeparatorView= [UIView new];
  72. topSeparatorView.frame = CGRectMake(0, CGRectGetMaxY(vOrderNo.frame), Screen_Width, heightLine);
  73. [vBody addSubview:topSeparatorView];
  74. UIButton *btnLine = [UIButton buttonWithType:UIButtonTypeCustom];
  75. [btnLine setBackgroundImage:[UIImage imageNamed:@"dash"] forState:UIControlStateNormal];
  76. btnLine.frame = CGRectMake(0 ,0 , Screen_Width, heightLine);
  77. [topSeparatorView addSubview:btnLine];
  78. //唯一编码
  79. UIView *vOnlyCode = [UIView new];
  80. vOnlyCode.frame=CGRectMake(0,CGRectGetMaxY(topSeparatorView.frame), Screen_Width, heightRow);
  81. [vBody addSubview:vOnlyCode];
  82. UILabel *lblTitleOnlyCode=[UILabel new];
  83. lblTitleOnlyCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  84. lblTitleOnlyCode.text=@"唯一编码:";
  85. lblTitleOnlyCode.textColor = [UIColor blackColor];
  86. lblTitleOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  87. [vOnlyCode addSubview:lblTitleOnlyCode];
  88. UILabel *lblOnlyCode = [UILabel new];
  89. lblOnlyCode.frame=CGRectMake(CGRectGetMaxX(lblTitleOnlyCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOnlyCode.frame)-10-120, valueheight);
  90. lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  91. lblOnlyCode.text = _goodsListModel.onlyCode;
  92. [vOnlyCode addSubview:lblOnlyCode];
  93. UILabel *lblStatus=[UILabel new];
  94. lblStatus.frame=CGRectMake(Screen_Width-120, valuey, 110, valueheight);
  95. lblStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  96. lblStatus.textAlignment=NSTextAlignmentRight;
  97. [vOnlyCode addSubview:lblStatus];
  98. if(_status!=10){
  99. if(_goodsListModel.factToSalesQuantity>0&&_goodsListModel.factOrderQuantity<=_goodsListModel.factToSalesQuantity){
  100. lblStatus.text=@"完全转销售";
  101. lblStatus.textColor=[UIColor hexColor:@"#234B0B" ];
  102. }
  103. else if(_goodsListModel.factToSalesQuantity>0&&_goodsListModel.factOrderQuantity>_goodsListModel.factToSalesQuantity){
  104. lblStatus.text=@"部分转销售单";
  105. lblStatus.textColor=[UIColor hexColor:@"#3B587A"];
  106. }
  107. else if(_goodsListModel.factOrderQuantity<=_goodsListModel.factOccupyQuantity){
  108. lblStatus.text=@"完全占库";
  109. lblStatus.textColor=[UIColor hexColor:@"#3423C7"];
  110. }
  111. else if(_goodsListModel.factOccupyQuantity>0&&(_goodsListModel.factOrderQuantity>_goodsListModel.factOccupyQuantity)){
  112. lblStatus.text=@"未完全占库";
  113. lblStatus.textColor=[UIColor hexColor:@"#EC8628"];
  114. }
  115. else if(_goodsListModel.applyQuantity>0){
  116. lblStatus.text=@"已请购";
  117. lblStatus.textColor=[UIColor hexColor:@"#525151"];
  118. }
  119. else if(_goodsListModel.factOccupyQuantity<=0){
  120. lblStatus.text=@"未占库";
  121. lblStatus.textColor=[UIColor hexColor:@"#000000"];
  122. }
  123. }
  124. else{
  125. lblStatus.text=@"未占库";
  126. lblStatus.textColor=[UIColor hexColor:@"#000000"];
  127. }
  128. UIView *middleSeparator= [UIView new];
  129. middleSeparator.frame=CGRectMake(0, CGRectGetMaxY(vOnlyCode.frame), Screen_Width, 1);
  130. middleSeparator.backgroundColor = LineBackgroundColor;
  131. [vBody addSubview:middleSeparator];
  132. UIView *vDetailType = [UIView new];
  133. vDetailType.frame=CGRectMake(0,CGRectGetMaxY(middleSeparator.frame), Screen_Width, heightRow);
  134. [vBody addSubview:vDetailType];
  135. UILabel *lblTitleDetailType=[UILabel new];
  136. lblTitleDetailType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  137. lblTitleDetailType.text=@"明细类型:";
  138. lblTitleDetailType.textColor = [UIColor blackColor];
  139. lblTitleDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  140. [vDetailType addSubview:lblTitleDetailType];
  141. UILabel *lblDetailType = [UILabel new];
  142. lblDetailType.frame=CGRectMake(CGRectGetMaxX(lblTitleDetailType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDetailType.frame)-10, valueheight);
  143. lblDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  144. lblDetailType.text = _goodsListModel.salesDetailTypeName;
  145. [vDetailType addSubview:lblDetailType];
  146. UIView *vCode = [UIView new];
  147. vCode.frame=CGRectMake(0,CGRectGetMaxY(vDetailType.frame), Screen_Width, heightRow);
  148. [vBody addSubview:vCode];
  149. UILabel *lblTitleCode=[UILabel new];
  150. lblTitleCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  151. lblTitleCode.text=@"商品编码:";
  152. lblTitleCode.textColor = [UIColor blackColor];
  153. lblTitleCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  154. [vCode addSubview:lblTitleCode];
  155. UILabel *lblCode = [UILabel new];
  156. lblCode.frame=CGRectMake(CGRectGetMaxX(lblTitleCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCode.frame)-10, valueheight);
  157. lblCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  158. lblCode.text = _goodsListModel.code;
  159. [vCode addSubview:lblCode];
  160. UIView *vBrand = [UIView new];
  161. vBrand.frame=CGRectMake(0,CGRectGetMaxY(vCode.frame), Screen_Width, heightRow);
  162. [vBody addSubview:vBrand];
  163. UILabel *lblTitleBrand=[UILabel new];
  164. lblTitleBrand.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  165. lblTitleBrand.text=@"商品品牌:";
  166. lblTitleBrand.textColor = [UIColor blackColor];
  167. lblTitleBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  168. [vBrand addSubview:lblTitleBrand];
  169. UILabel *lblBrand = [UILabel new];
  170. lblBrand.frame=CGRectMake(CGRectGetMaxX(lblTitleBrand.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBrand.frame)-10, valueheight);
  171. lblBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  172. lblBrand.text = _goodsListModel.brandName;
  173. [vBrand addSubview:lblBrand];
  174. UIView *vKindName = [UIView new];
  175. vKindName.frame=CGRectMake(0,CGRectGetMaxY(vBrand.frame), Screen_Width, heightRow);
  176. [vBody addSubview:vKindName];
  177. UILabel *lblTitleKindName=[UILabel new];
  178. lblTitleKindName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  179. lblTitleKindName.text=@"商品种类:";
  180. lblTitleKindName.textColor = [UIColor blackColor];
  181. lblTitleKindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  182. [vKindName addSubview:lblTitleKindName];
  183. UILabel *lblKindName =[UILabel new];
  184. lblKindName.frame=CGRectMake(CGRectGetMaxX(lblTitleKindName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleKindName.frame)-10, valueheight);
  185. lblKindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  186. lblKindName.text = _goodsListModel.kindName;
  187. [vKindName addSubview:lblKindName];
  188. UIView *vOrderPrice = [UIView new];
  189. vOrderPrice.frame=CGRectMake(0,CGRectGetMaxY(vKindName.frame), Screen_Width, heightRow);
  190. [vBody addSubview:vOrderPrice];
  191. UILabel *lblTitleOrderPrice=[UILabel new];
  192. lblTitleOrderPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  193. lblTitleOrderPrice.text=@"订单价格:";
  194. lblTitleOrderPrice.textColor = [UIColor blackColor];
  195. lblTitleOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  196. [vOrderPrice addSubview:lblTitleOrderPrice];
  197. UILabel *lblOrderPrice =[UILabel new];
  198. lblOrderPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderPrice.frame)-10, valueheight);
  199. lblOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  200. lblOrderPrice.text = _goodsListModel.orderPrice;
  201. [vOrderPrice addSubview:lblOrderPrice];
  202. UIView *vOrderQuantity = [UIView new];
  203. vOrderQuantity.frame=CGRectMake(0,CGRectGetMaxY(vOrderPrice.frame), Screen_Width, heightRow);
  204. [vBody addSubview:vOrderQuantity];
  205. UILabel *lblTitleOrderQuantity=[UILabel new];
  206. lblTitleOrderQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  207. lblTitleOrderQuantity.text=@"订单数量:";
  208. lblTitleOrderQuantity.textColor = [UIColor blackColor];
  209. lblTitleOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  210. [vOrderQuantity addSubview:lblTitleOrderQuantity];
  211. UILabel *lblOrderQuantity =[UILabel new];
  212. lblOrderQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderQuantity.frame)-10, valueheight);
  213. lblOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  214. double orderQuantityValue= _goodsListModel.factOrderQuantity;
  215. lblOrderQuantity.text =[NSString stringWithFormat:@"%lf",orderQuantityValue];
  216. [vOrderQuantity addSubview:lblOrderQuantity];
  217. UIView *vBox = [UIView new];
  218. vBox.frame=CGRectMake(0,CGRectGetMaxY(vOrderQuantity.frame), Screen_Width, heightRow);
  219. [vBody addSubview:vBox];
  220. UILabel *lblTitleBox=[UILabel new];
  221. lblTitleBox.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  222. lblTitleBox.text=@"箱:";
  223. lblTitleBox.textColor = [UIColor blackColor];
  224. lblTitleBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  225. [vBox addSubview:lblTitleBox];
  226. UILabel *lblBox =[UILabel new];
  227. lblBox.frame=CGRectMake(CGRectGetMaxX(lblTitleBox.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBox.frame)-10, valueheight);
  228. lblBox.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  229. lblBox.text =_goodsListModel.box;
  230. [vBox addSubview:lblBox];
  231. UIView *vPiece = [UIView new];
  232. vPiece.frame=CGRectMake(0,CGRectGetMaxY(vBox.frame), Screen_Width, heightRow);
  233. [vBody addSubview:vPiece];
  234. UILabel *lblTitlePiece=[UILabel new];
  235. lblTitlePiece.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  236. lblTitlePiece.text=@"片/个:";
  237. lblTitlePiece.textColor = [UIColor blackColor];
  238. lblTitlePiece.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  239. [vPiece addSubview:lblTitlePiece];
  240. UILabel *lblPiece =[UILabel new];
  241. lblPiece.frame=CGRectMake(CGRectGetMaxX(lblTitlePiece.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePiece.frame)-10, valueheight);
  242. lblPiece.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  243. lblPiece.text =_goodsListModel.piece;
  244. [vPiece addSubview:lblPiece];
  245. UIView *vUnit = [UIView new];
  246. vUnit.frame=CGRectMake(0,CGRectGetMaxY(vPiece.frame), Screen_Width, heightRow);
  247. [vBody addSubview:vUnit];
  248. UILabel *lblTitleUnit=[UILabel new];
  249. lblTitleUnit.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  250. lblTitleUnit.text=@"计量单位:";
  251. lblTitleUnit.textColor = [UIColor blackColor];
  252. lblTitleUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  253. [vUnit addSubview:lblTitleUnit];
  254. UILabel *lblUnit =[UILabel new];
  255. lblUnit.frame=CGRectMake(CGRectGetMaxX(lblTitleUnit.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUnit.frame)-10, valueheight);
  256. lblUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  257. lblUnit.text =_goodsListModel.unitName;
  258. [vUnit addSubview:lblUnit];
  259. UIView *vSpecification = [UIView new];
  260. vSpecification.frame=CGRectMake(0,CGRectGetMaxY(vUnit.frame), Screen_Width, heightRow);
  261. [vBody addSubview:vSpecification];
  262. UILabel *lblTitleSpecification=[UILabel new];
  263. lblTitleSpecification.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  264. lblTitleSpecification.text=@"商品规格:";
  265. lblTitleSpecification.textColor = [UIColor blackColor];
  266. lblTitleSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  267. [vSpecification addSubview:lblTitleSpecification];
  268. UILabel *lblSpecification =[UILabel new];
  269. lblSpecification.frame=CGRectMake(CGRectGetMaxX(lblTitleSpecification.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSpecification.frame)-10, valueheight);
  270. lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  271. lblSpecification.text =_goodsListModel.specification;
  272. [vSpecification addSubview:lblSpecification];
  273. UIView *vWarehouseAreaCode = [UIView new];
  274. vWarehouseAreaCode.frame=CGRectMake(0,CGRectGetMaxY(vSpecification.frame), Screen_Width, heightRow);
  275. [vBody addSubview:vWarehouseAreaCode];
  276. UILabel *lblTitleWarehouseAreaCode=[UILabel new];
  277. lblTitleWarehouseAreaCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  278. lblTitleWarehouseAreaCode.text=@"库区编码:";
  279. lblTitleWarehouseAreaCode.textColor = [UIColor blackColor];
  280. lblTitleWarehouseAreaCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  281. [vWarehouseAreaCode addSubview:lblTitleWarehouseAreaCode];
  282. UILabel *lblWarehouseAreaCode =[UILabel new];
  283. lblWarehouseAreaCode.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseAreaCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseAreaCode.frame)-10, valueheight);
  284. lblWarehouseAreaCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  285. lblWarehouseAreaCode.text =_goodsListModel.warehouseCode;
  286. [vWarehouseAreaCode addSubview:lblWarehouseAreaCode];
  287. UIView *vWarehouseAreaName = [UIView new];
  288. vWarehouseAreaName.frame=CGRectMake(0,CGRectGetMaxY(vWarehouseAreaCode.frame), Screen_Width, heightRow);
  289. [vBody addSubview:vWarehouseAreaName];
  290. UILabel *lblTitleWarehouseAreaName=[UILabel new];
  291. lblTitleWarehouseAreaName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  292. lblTitleWarehouseAreaName.text=@"库区名称:";
  293. lblTitleWarehouseAreaName.textColor = [UIColor blackColor];
  294. lblTitleWarehouseAreaName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  295. [vWarehouseAreaName addSubview:lblTitleWarehouseAreaName];
  296. UILabel *lblWarehouseAreaName =[UILabel new];
  297. lblWarehouseAreaName.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseAreaName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseAreaName.frame)-10, valueheight);
  298. lblWarehouseAreaName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  299. lblWarehouseAreaName.text =_goodsListModel.warehouseName;
  300. [vWarehouseAreaName addSubview:lblWarehouseAreaName];
  301. UIView *vPositionNo = [UIView new];
  302. vPositionNo.frame=CGRectMake(0,CGRectGetMaxY(vWarehouseAreaName.frame), Screen_Width, heightRow);
  303. [vBody addSubview:vPositionNo];
  304. UILabel *lblTitlePositionNo=[UILabel new];
  305. lblTitlePositionNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  306. lblTitlePositionNo.text=@"仓 位 号:";
  307. lblTitlePositionNo.textColor = [UIColor blackColor];
  308. lblTitlePositionNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  309. [vPositionNo addSubview:lblTitlePositionNo];
  310. UILabel *lblPositionNo =[UILabel new];
  311. lblPositionNo.frame=CGRectMake(CGRectGetMaxX(lblTitlePositionNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePositionNo.frame)-10, valueheight);
  312. lblPositionNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  313. lblPositionNo.text =_goodsListModel.positionNumber;
  314. [vPositionNo addSubview:lblPositionNo];
  315. UIView *vGrade = [UIView new];
  316. vGrade.frame=CGRectMake(0,CGRectGetMaxY(vPositionNo.frame), Screen_Width, heightRow);
  317. [vBody addSubview:vGrade];
  318. UILabel *lblTitleGrade=[UILabel new];
  319. lblTitleGrade.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  320. lblTitleGrade.text=@"商品等级:";
  321. lblTitleGrade.textColor = [UIColor blackColor];
  322. lblTitleGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  323. [vGrade addSubview:lblTitleGrade];
  324. UILabel *lblGrade =[UILabel new];
  325. lblGrade.frame=CGRectMake(CGRectGetMaxX(lblTitleGrade.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGrade.frame)-10, valueheight);
  326. lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  327. lblGrade.text =_goodsListModel.gradeName;
  328. [vGrade addSubview:lblGrade];
  329. UIView *vColorNumber = [UIView new];
  330. vColorNumber.frame=CGRectMake(0,CGRectGetMaxY(vGrade.frame), Screen_Width, heightRow);
  331. [vBody addSubview:vColorNumber];
  332. UILabel *lblTitleColorNumber=[UILabel new];
  333. lblTitleColorNumber.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  334. lblTitleColorNumber.text=@"色 号:";
  335. lblTitleColorNumber.textColor = [UIColor blackColor];
  336. lblTitleColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  337. [vColorNumber addSubview:lblTitleColorNumber];
  338. UILabel *lblColorNumber =[UILabel new];
  339. lblColorNumber.frame=CGRectMake(CGRectGetMaxX(lblTitleColorNumber.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleColorNumber.frame)-10, valueheight);
  340. lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  341. lblColorNumber.text =_goodsListModel.colorNumber;
  342. [vColorNumber addSubview:lblColorNumber];
  343. UIView *vToSalesQuantity = [UIView new];
  344. vToSalesQuantity.frame=CGRectMake(0,CGRectGetMaxY(vColorNumber.frame), Screen_Width, heightRow);
  345. [vBody addSubview:vToSalesQuantity];
  346. UILabel *lblTitleToSalesQuantity=[UILabel new];
  347. lblTitleToSalesQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  348. lblTitleToSalesQuantity.text=@"转销售数量:";
  349. lblTitleToSalesQuantity.textColor = [UIColor blackColor];
  350. lblTitleToSalesQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  351. [vToSalesQuantity addSubview:lblTitleToSalesQuantity];
  352. UILabel *lblToSalesQuantity =[UILabel new];
  353. lblToSalesQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleToSalesQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleToSalesQuantity.frame)-10, valueheight);
  354. lblToSalesQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  355. double toSalesQuantityValue= _goodsListModel.factToSalesQuantity;
  356. lblToSalesQuantity.text =[NSString stringWithFormat:@"%lf",toSalesQuantityValue];
  357. [vToSalesQuantity addSubview:lblToSalesQuantity];
  358. UIView *vApplyQuantity = [UIView new];
  359. vApplyQuantity.frame=CGRectMake(0,CGRectGetMaxY(vToSalesQuantity.frame), Screen_Width, heightRow);
  360. [vBody addSubview:vApplyQuantity];
  361. UILabel *lblTitleApplyQuantity=[UILabel new];
  362. lblTitleApplyQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  363. lblTitleApplyQuantity.text=@"采购请够量:";
  364. lblTitleApplyQuantity.textColor = [UIColor blackColor];
  365. lblTitleApplyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  366. [vApplyQuantity addSubview:lblTitleApplyQuantity];
  367. UILabel *lblApplyQuantity =[UILabel new];
  368. lblApplyQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleApplyQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleApplyQuantity.frame)-10, valueheight);
  369. lblApplyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  370. double applyQuantityValue= _goodsListModel.applyQuantity;
  371. lblApplyQuantity.text =[NSString stringWithFormat:@"%lf",applyQuantityValue];
  372. [vApplyQuantity addSubview:lblApplyQuantity];
  373. UIView *vOccupyQuantity = [UIView new];
  374. vOccupyQuantity.frame=CGRectMake(0,CGRectGetMaxY(vApplyQuantity.frame), Screen_Width, heightRow);
  375. [vBody addSubview:vOccupyQuantity];
  376. UILabel *lblTitleOccupyQuantity=[UILabel new];
  377. lblTitleOccupyQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  378. lblTitleOccupyQuantity.text=@"占库数量:";
  379. lblTitleOccupyQuantity.textColor = [UIColor blackColor];
  380. lblTitleOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  381. [vOccupyQuantity addSubview:lblTitleOccupyQuantity];
  382. UILabel *lblOccupyQuantity =[UILabel new];
  383. lblOccupyQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleOccupyQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOccupyQuantity.frame)-10, valueheight);
  384. lblOccupyQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  385. double occupyQuantityValue= _goodsListModel.factOccupyQuantity;
  386. lblOccupyQuantity.text =[NSString stringWithFormat:@"%lf",occupyQuantityValue];
  387. [vOccupyQuantity addSubview:lblOccupyQuantity];
  388. UIView *vCirculateType = [UIView new];
  389. vCirculateType.frame=CGRectMake(0,CGRectGetMaxY(vOccupyQuantity.frame), Screen_Width, heightRow);
  390. [vBody addSubview:vCirculateType];
  391. UILabel *lblTitleCirculateType=[UILabel new];
  392. lblTitleCirculateType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  393. lblTitleCirculateType.text=@"流通方式:";
  394. lblTitleCirculateType.textColor = [UIColor blackColor];
  395. lblTitleCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  396. [vCirculateType addSubview:lblTitleCirculateType];
  397. UILabel *lblCirculateType =[UILabel new];
  398. lblCirculateType.frame=CGRectMake(CGRectGetMaxX(lblTitleCirculateType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCirculateType.frame)-10, valueheight);
  399. lblCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  400. lblCirculateType.text =_goodsListModel.goodsCirculateTypeName;
  401. [vCirculateType addSubview:lblCirculateType];
  402. UIView *vPackage = [UIView new];
  403. vPackage.frame=CGRectMake(0,CGRectGetMaxY(vCirculateType.frame), Screen_Width, heightRow);
  404. [vBody addSubview:vPackage];
  405. UILabel *lblTitlePackage=[UILabel new];
  406. lblTitlePackage.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  407. lblTitlePackage.text=@"包 装:";
  408. lblTitlePackage.textColor = [UIColor blackColor];
  409. lblTitlePackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  410. [vPackage addSubview:lblTitlePackage];
  411. UILabel *lblPackage =[UILabel new];
  412. lblPackage.frame=CGRectMake(CGRectGetMaxX(lblTitlePackage.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePackage.frame)-10, valueheight);
  413. lblPackage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  414. lblPackage.text =_goodsListModel.package;
  415. [vPackage addSubview:lblPackage];
  416. UIView *vAcreage = [UIView new];
  417. vAcreage.frame=CGRectMake(0,CGRectGetMaxY(vPackage.frame), Screen_Width, heightRow);
  418. [vBody addSubview:vAcreage];
  419. UILabel *lblTitleAcreage=[UILabel new];
  420. lblTitleAcreage.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  421. lblTitleAcreage.text=@"单位面积:";
  422. lblTitleAcreage.textColor = [UIColor blackColor];
  423. lblTitleAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  424. [vAcreage addSubview:lblTitleAcreage];
  425. UILabel *lblAcreage =[UILabel new];
  426. lblAcreage.frame=CGRectMake(CGRectGetMaxX(lblTitleAcreage.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleAcreage.frame)-10, valueheight);
  427. lblAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  428. lblAcreage.text =_goodsListModel.acreage;
  429. [vAcreage addSubview:lblAcreage];
  430. UIView *vOrderAcreage = [UIView new];
  431. vOrderAcreage.frame=CGRectMake(0,CGRectGetMaxY(vAcreage.frame), Screen_Width, heightRow);
  432. [vBody addSubview:vOrderAcreage];
  433. UILabel *lblTitleOrderAcreage=[UILabel new];
  434. lblTitleOrderAcreage.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  435. lblTitleOrderAcreage.text=@"订单面积:";
  436. lblTitleOrderAcreage.textColor = [UIColor blackColor];
  437. lblTitleOrderAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  438. [vOrderAcreage addSubview:lblTitleOrderAcreage];
  439. UILabel *lblOrderAcreage =[UILabel new];
  440. lblOrderAcreage.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderAcreage.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderAcreage.frame)-10, valueheight);
  441. lblOrderAcreage.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  442. lblOrderAcreage.text =_goodsListModel.M2;
  443. [vOrderAcreage addSubview:lblOrderAcreage];
  444. UIView *vUnitVolume = [UIView new];
  445. vUnitVolume.frame=CGRectMake(0,CGRectGetMaxY(vOrderAcreage.frame), Screen_Width, heightRow);
  446. [vBody addSubview:vUnitVolume];
  447. UILabel *lblTitleUnitVolume=[UILabel new];
  448. lblTitleUnitVolume.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  449. lblTitleUnitVolume.text=@"单位体积:";
  450. lblTitleUnitVolume.textColor = [UIColor blackColor];
  451. lblTitleUnitVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  452. [vUnitVolume addSubview:lblTitleUnitVolume];
  453. UILabel *lblUnitVolume =[UILabel new];
  454. lblUnitVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleUnitVolume.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUnitVolume.frame)-10, valueheight);
  455. lblUnitVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  456. lblUnitVolume.text =_goodsListModel.volume;
  457. [vUnitVolume addSubview:lblUnitVolume];
  458. UIView *vOrderVolume = [UIView new];
  459. vOrderVolume.frame=CGRectMake(0,CGRectGetMaxY(vUnitVolume.frame), Screen_Width, heightRow);
  460. [vBody addSubview:vOrderVolume];
  461. UILabel *lblTitleOrderVolume=[UILabel new];
  462. lblTitleOrderVolume.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  463. lblTitleOrderVolume.text=@"订单体积:";
  464. lblTitleOrderVolume.textColor = [UIColor blackColor];
  465. lblTitleOrderVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  466. [vOrderVolume addSubview:lblTitleOrderVolume];
  467. UILabel *lblOrderVolume =[UILabel new];
  468. lblOrderVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderVolume.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderVolume.frame)-10, valueheight);
  469. lblOrderVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  470. lblOrderVolume.text =_goodsListModel.M3;
  471. [vOrderVolume addSubview:lblOrderVolume];
  472. UIView *vMarkedPrice = [UIView new];
  473. vMarkedPrice.frame=CGRectMake(0,CGRectGetMaxY(vOrderVolume.frame), Screen_Width, heightRow);
  474. [vBody addSubview:vMarkedPrice];
  475. UILabel *lblTitleMarkedPrice=[UILabel new];
  476. lblTitleMarkedPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  477. lblTitleMarkedPrice.text=@"标 价:";
  478. lblTitleMarkedPrice.textColor = [UIColor blackColor];
  479. lblTitleMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  480. [vMarkedPrice addSubview:lblTitleMarkedPrice];
  481. UILabel *lblMarkedPrice =[UILabel new];
  482. lblMarkedPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleMarkedPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleMarkedPrice.frame)-10, valueheight);
  483. lblMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  484. lblMarkedPrice.text =_goodsListModel.markedPrice;
  485. [vMarkedPrice addSubview:lblMarkedPrice];
  486. UIView *vDiscount = [UIView new];
  487. vDiscount.frame=CGRectMake(0,CGRectGetMaxY(vMarkedPrice.frame), Screen_Width, heightRow);
  488. [vBody addSubview:vDiscount];
  489. UILabel *lblTitleDiscount=[UILabel new];
  490. lblTitleDiscount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  491. lblTitleDiscount.text=@"折 扣:";
  492. lblTitleDiscount.textColor = [UIColor blackColor];
  493. lblTitleDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  494. [vDiscount addSubview:lblTitleDiscount];
  495. UILabel *lblDiscount =[UILabel new];
  496. lblDiscount.frame=CGRectMake(CGRectGetMaxX(lblTitleDiscount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDiscount.frame)-10, valueheight);
  497. lblDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  498. lblDiscount.text =_goodsListModel.discount;
  499. [vDiscount addSubview:lblDiscount];
  500. UIView *vUsePosition = [UIView new];
  501. vUsePosition.frame=CGRectMake(0,CGRectGetMaxY(vDiscount.frame), Screen_Width, heightRow);
  502. [vBody addSubview:vUsePosition];
  503. UILabel *lblTitleUsePosition=[UILabel new];
  504. lblTitleUsePosition.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  505. lblTitleUsePosition.text=@"使用位置:";
  506. lblTitleUsePosition.textColor = [UIColor blackColor];
  507. lblTitleUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  508. [vUsePosition addSubview:lblTitleUsePosition];
  509. UILabel *lblUsePosition =[UILabel new];
  510. lblUsePosition.frame=CGRectMake(CGRectGetMaxX(lblTitleUsePosition.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUsePosition.frame)-10, valueheight);
  511. lblUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  512. lblUsePosition.text =_goodsListModel.usePositionName;
  513. [vUsePosition addSubview:lblUsePosition];
  514. UIView *vSupplier = [UIView new];
  515. vSupplier.frame=CGRectMake(0,CGRectGetMaxY(vUsePosition.frame), Screen_Width, heightRow);
  516. [vBody addSubview:vSupplier];
  517. UILabel *lblTitleSupplier=[UILabel new];
  518. lblTitleSupplier.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  519. lblTitleSupplier.text=@"供 应 商:";
  520. lblTitleSupplier.textColor = [UIColor blackColor];
  521. lblTitleSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  522. [vSupplier addSubview:lblTitleSupplier];
  523. UILabel *lblSupplier =[UILabel new];
  524. lblSupplier.frame=CGRectMake(CGRectGetMaxX(lblTitleSupplier.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSupplier.frame)-10, valueheight);
  525. lblSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  526. lblSupplier.text =_goodsListModel.supplier;
  527. [vSupplier addSubview:lblSupplier];
  528. UIView *vVariety = [UIView new];
  529. vVariety.frame=CGRectMake(0,CGRectGetMaxY(vSupplier.frame), Screen_Width, heightRow);
  530. [vBody addSubview:vVariety];
  531. UILabel *lblTitleVariety=[UILabel new];
  532. lblTitleVariety.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  533. lblTitleVariety.text=@"商品品种:";
  534. lblTitleVariety.textColor = [UIColor blackColor];
  535. lblTitleVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  536. [vVariety addSubview:lblTitleVariety];
  537. UILabel *lblVariety =[UILabel new];
  538. lblVariety.frame=CGRectMake(CGRectGetMaxX(lblTitleVariety.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleVariety.frame)-10, valueheight);
  539. lblVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  540. lblVariety.text =_goodsListModel.varietyName;
  541. [vVariety addSubview:lblVariety];
  542. UIView *vSeries = [UIView new];
  543. vSeries.frame=CGRectMake(0,CGRectGetMaxY(vVariety.frame), Screen_Width, heightRow);
  544. [vBody addSubview:vSeries];
  545. UILabel *lblTitleSeries=[UILabel new];
  546. lblTitleSeries.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  547. lblTitleSeries.text=@"商品系列:";
  548. lblTitleSeries.textColor = [UIColor blackColor];
  549. lblTitleSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  550. [vSeries addSubview:lblTitleSeries];
  551. UILabel *lblSeries =[UILabel new];
  552. lblSeries.frame=CGRectMake(CGRectGetMaxX(lblTitleSeries.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSeries.frame)-10, valueheight);
  553. lblSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  554. lblSeries.text =_goodsListModel.seriesName;
  555. [vSeries addSubview:lblSeries];
  556. UIView *vGoodsName = [UIView new];
  557. vGoodsName.frame=CGRectMake(0,CGRectGetMaxY(vSeries.frame), Screen_Width, heightRow);
  558. [vBody addSubview:vGoodsName];
  559. UILabel *lblTitleGoodsName=[UILabel new];
  560. lblTitleGoodsName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  561. lblTitleGoodsName.text=@"商品名称:";
  562. lblTitleGoodsName.textColor = [UIColor blackColor];
  563. lblTitleGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  564. [vGoodsName addSubview:lblTitleGoodsName];
  565. UILabel *lblGoodsName =[UILabel new];
  566. lblGoodsName.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsName.frame)-10, valueheight);
  567. lblGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  568. lblGoodsName.text =_goodsListModel.goodsName;
  569. [vGoodsName addSubview:lblGoodsName];
  570. UIView *vExpandAttribute = [UIView new];
  571. vExpandAttribute.frame=CGRectMake(0,CGRectGetMaxY(vGoodsName.frame), Screen_Width, heightRow);
  572. [vBody addSubview:vExpandAttribute];
  573. UILabel *lblTitleExpandAttribute=[UILabel new];
  574. lblTitleExpandAttribute.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  575. lblTitleExpandAttribute.text=@"扩展属性:";
  576. lblTitleExpandAttribute.textColor = [UIColor blackColor];
  577. lblTitleExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  578. [vExpandAttribute addSubview:lblTitleExpandAttribute];
  579. UILabel *lblExpandAttribute =[UILabel new];
  580. lblExpandAttribute.frame=CGRectMake(CGRectGetMaxX(lblTitleExpandAttribute.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExpandAttribute.frame)-10, valueheight);
  581. lblExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  582. lblExpandAttribute.text =_goodsListModel.expandAttribute;
  583. [vExpandAttribute addSubview:lblExpandAttribute];
  584. UIView *vExpandAttribute2 = [UIView new];
  585. vExpandAttribute2.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute.frame), Screen_Width, heightRow);
  586. [vBody addSubview:vExpandAttribute2];
  587. UILabel *lblTitleExpandAttribute2=[UILabel new];
  588. lblTitleExpandAttribute2.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  589. lblTitleExpandAttribute2.text=@"扩展属性二:";
  590. lblTitleExpandAttribute2.textColor = [UIColor blackColor];
  591. lblTitleExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  592. [vExpandAttribute2 addSubview:lblTitleExpandAttribute2];
  593. UILabel *lblExpandAttribute2 =[UILabel new];
  594. lblExpandAttribute2.frame=CGRectMake(CGRectGetMaxX(lblTitleExpandAttribute2.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExpandAttribute2.frame)-10, valueheight);
  595. lblExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  596. lblExpandAttribute2.text =_goodsListModel.expandAttribute2;
  597. [vExpandAttribute2 addSubview:lblExpandAttribute2];
  598. UIView *vCodeRemarks= [UIView new];
  599. vCodeRemarks.frame=CGRectMake(0,CGRectGetMaxY(vExpandAttribute2.frame), Screen_Width, heightRow);
  600. [vBody addSubview:vCodeRemarks];
  601. UILabel *lblTitleCodeRemarks=[UILabel new];
  602. lblTitleCodeRemarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  603. lblTitleCodeRemarks.text=@"商品备注:";
  604. lblTitleCodeRemarks.textColor = [UIColor blackColor];
  605. lblTitleCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  606. [vCodeRemarks addSubview:lblTitleCodeRemarks];
  607. UILabel *lblCodeRemarks =[UILabel new];
  608. lblCodeRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleCodeRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCodeRemarks.frame)-10, valueheight);
  609. lblCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  610. lblCodeRemarks.text =_goodsListModel.goodsRemarks;
  611. [vCodeRemarks addSubview:lblCodeRemarks];
  612. UIView *vRemarks= [UIView new];
  613. vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vCodeRemarks.frame), Screen_Width, heightRow);
  614. [vBody addSubview:vRemarks];
  615. UILabel *lblTitleRemarks=[UILabel new];
  616. lblTitleRemarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  617. lblTitleRemarks.text=@"备 注:";
  618. lblTitleRemarks.textColor = [UIColor blackColor];
  619. lblTitleRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  620. [vRemarks addSubview:lblTitleRemarks];
  621. UILabel *lblRemarks =[UILabel new];
  622. lblRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemarks.frame)-10, valueheight);
  623. lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  624. lblRemarks.text =_goodsListModel.remarks;
  625. [vRemarks addSubview:lblRemarks];
  626. vBody.frame=CGRectMake(0,0, Screen_Width,CGRectGetMaxY(vRemarks.frame));
  627. _scrollView.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vBody.frame)+rectStatusHeight+rectNavHeight);
  628. }
  629. /**
  630. 返回
  631. */
  632. - (void)goBack
  633. {
  634. [self.navigationController popViewControllerAnimated:YES];
  635. }
  636. - (void)didReceiveMemoryWarning {
  637. [super didReceiveMemoryWarning];
  638. }
  639. @end