OrderAuditDetailListCell.m 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  1. //
  2. // OrderAuditDetailListCell.m
  3. // IBOSS
  4. //
  5. // Created by 关宏厚 on 2018/11/19.
  6. // Copyright © 2018 elongtian. All rights reserved.
  7. //
  8. #import "OrderAuditDetailListCell.h"
  9. @implementation OrderAuditDetailListCell
  10. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  11. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  12. self.layer.cornerRadius = CornerRadius;
  13. self.backgroundColor = [UIColor whiteColor];
  14. return self;
  15. }
  16. - (void)setOrderAuditDetailCell:(OrderDetailModel *)auditDetailModel{
  17. CGFloat heightRow = 31;
  18. CGFloat lblx = 10;
  19. CGFloat lbly = 0;
  20. CGFloat lblwidth = 70;
  21. CGFloat lblheight = 31;
  22. CGFloat valuey = 0;
  23. CGFloat valueheight = 31;
  24. UIView *vSalesDetailType = [UIView new];
  25. vSalesDetailType.frame=CGRectMake(0,0, Screen_Width, heightRow);
  26. [self.contentView addSubview:vSalesDetailType];
  27. UILabel *lblTitleSalesDetailType = [UILabel new];
  28. lblTitleSalesDetailType.frame=CGRectMake(lblx, lbly, 100, lblheight);
  29. lblTitleSalesDetailType.text = @"销售明细类型:";
  30. lblTitleSalesDetailType.textColor = [UIColor blackColor];
  31. lblTitleSalesDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  32. [vSalesDetailType addSubview:lblTitleSalesDetailType];
  33. UILabel *lblSalesDetailType = [UILabel new];
  34. lblSalesDetailType.frame=CGRectMake(CGRectGetMaxX(lblTitleSalesDetailType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSalesDetailType.frame), valueheight);
  35. lblSalesDetailType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  36. [vSalesDetailType addSubview:lblSalesDetailType];
  37. lblSalesDetailType.text = auditDetailModel.salesDetailTypeName;
  38. UIView *vOnlyCode = [UIView new];
  39. vOnlyCode.frame=CGRectMake(0, CGRectGetMaxY(vSalesDetailType.frame)+8, Screen_Width, heightRow);
  40. [self.contentView addSubview:vOnlyCode];
  41. UILabel *lblTitleOnlyCode = [UILabel new];
  42. lblTitleOnlyCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  43. lblTitleOnlyCode.text = @"唯一编码:";
  44. lblTitleOnlyCode.textColor = [UIColor blackColor];
  45. lblTitleOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  46. [vOnlyCode addSubview:lblTitleOnlyCode];
  47. UILabel *lblOnlyCode = [UILabel new];
  48. lblOnlyCode.frame=CGRectMake(CGRectGetMaxX(lblTitleOnlyCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOnlyCode.frame), valueheight);
  49. lblOnlyCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  50. [vOnlyCode addSubview:lblOnlyCode];
  51. lblOnlyCode.text = auditDetailModel.onlyCode;
  52. UIView *vCode = [UIView new];
  53. vCode.frame=CGRectMake(0, CGRectGetMaxY(vOnlyCode.frame)+8, Screen_Width, heightRow);
  54. [self.contentView addSubview:vCode];
  55. UILabel *lblTitleCode = [UILabel new];
  56. lblTitleCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  57. lblTitleCode.text = @"商品编码:";
  58. lblTitleCode.textColor = [UIColor blackColor];
  59. lblTitleCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  60. [vCode addSubview:lblTitleCode];
  61. UILabel *lblCode = [UILabel new];
  62. lblCode.frame=CGRectMake(CGRectGetMaxX(lblTitleCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCode.frame), valueheight);
  63. lblCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  64. [vCode addSubview:lblCode];
  65. lblCode.text = auditDetailModel.code;
  66. UIView *vCeaseFlag = [UIView new];
  67. vCeaseFlag.frame=CGRectMake(0, CGRectGetMaxY(vCode.frame)+8, Screen_Width, heightRow);
  68. [self.contentView addSubview:vCeaseFlag];
  69. UILabel *lblTitleCeaseFlag = [UILabel new];
  70. lblTitleCeaseFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  71. lblTitleCeaseFlag.text = @"停产标识:";
  72. lblTitleCeaseFlag.textColor = [UIColor blackColor];
  73. lblTitleCeaseFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  74. [vCeaseFlag addSubview:lblTitleCeaseFlag];
  75. UILabel *lblCeaseFlag = [UILabel new];
  76. lblCeaseFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleCeaseFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCeaseFlag.frame), valueheight);
  77. lblCeaseFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  78. [vCeaseFlag addSubview:lblCeaseFlag];
  79. int ceaseFlag= auditDetailModel.ceaseFlag;
  80. NSString *ceaseFlagStr;
  81. if(ceaseFlag==0){
  82. ceaseFlagStr=@"否";
  83. }
  84. else
  85. {
  86. ceaseFlagStr=@"是";
  87. }
  88. lblCeaseFlag.text =ceaseFlagStr ;
  89. UIView *vBrand = [UIView new];
  90. vBrand.frame=CGRectMake(0, CGRectGetMaxY(vCeaseFlag.frame)+8, Screen_Width, heightRow);
  91. [self.contentView addSubview:vBrand];
  92. UILabel *lblTitleBrand = [UILabel new];
  93. lblTitleBrand.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  94. lblTitleBrand.text = @"商品品牌:";
  95. lblTitleBrand.textColor = [UIColor blackColor];
  96. lblTitleBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  97. [vBrand addSubview:lblTitleBrand];
  98. UILabel *lblBrand = [UILabel new];
  99. lblBrand.frame=CGRectMake(CGRectGetMaxX(lblTitleBrand.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBrand.frame), valueheight);
  100. lblBrand.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  101. [vBrand addSubview:lblBrand];
  102. lblBrand.text = auditDetailModel.brandName;
  103. UIView *vKind= [UIView new];
  104. vKind.frame=CGRectMake(0, CGRectGetMaxY(vBrand.frame)+8, Screen_Width, heightRow);
  105. [self.contentView addSubview:vKind];
  106. UILabel *lblTitleKind = [UILabel new];
  107. lblTitleKind.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  108. lblTitleKind.text = @"商品种类:";
  109. lblTitleKind.textColor = [UIColor blackColor];
  110. lblTitleKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  111. [vKind addSubview:lblTitleKind];
  112. UILabel *lblKind = [UILabel new];
  113. lblKind.frame=CGRectMake(CGRectGetMaxX(lblTitleKind.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleKind.frame), valueheight);
  114. lblKind.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  115. [vKind addSubview:lblKind];
  116. lblKind.text = auditDetailModel.kindName;
  117. UIView *vVariety= [UIView new];
  118. vVariety.frame=CGRectMake(0, CGRectGetMaxY(vKind.frame)+8, Screen_Width, heightRow);
  119. [self.contentView addSubview:vVariety];
  120. UILabel *lblTitleVariety = [UILabel new];
  121. lblTitleVariety.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  122. lblTitleVariety.text = @"商品品种:";
  123. lblTitleVariety.textColor = [UIColor blackColor];
  124. lblTitleVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  125. [vVariety addSubview:lblTitleVariety];
  126. UILabel *lblVariety = [UILabel new];
  127. lblVariety.frame=CGRectMake(CGRectGetMaxX(lblTitleVariety.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleVariety.frame), valueheight);
  128. lblVariety.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  129. [vVariety addSubview:lblVariety];
  130. lblVariety.text = auditDetailModel.varietyName;
  131. UIView *vSeries= [UIView new];
  132. vSeries.frame=CGRectMake(0, CGRectGetMaxY(vVariety.frame)+8, Screen_Width, heightRow);
  133. [self.contentView addSubview:vSeries];
  134. UILabel *lblTitleSeries = [UILabel new];
  135. lblTitleSeries.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  136. lblTitleSeries.text = @"商品系列:";
  137. lblTitleSeries.textColor = [UIColor blackColor];
  138. lblTitleSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  139. [vSeries addSubview:lblTitleSeries];
  140. UILabel *lblSeries = [UILabel new];
  141. lblSeries.frame=CGRectMake(CGRectGetMaxX(lblTitleSeries.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSeries.frame), valueheight);
  142. lblSeries.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  143. [vSeries addSubview:lblSeries];
  144. lblSeries.text = auditDetailModel.seriesName;
  145. UIView *vUnit= [UIView new];
  146. vUnit.frame=CGRectMake(0, CGRectGetMaxY(vSeries.frame)+8, Screen_Width, heightRow);
  147. [self.contentView addSubview:vUnit];
  148. UILabel *lblTitleUnit = [UILabel new];
  149. lblTitleUnit.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  150. lblTitleUnit.text = @"计量单位:";
  151. lblTitleUnit.textColor = [UIColor blackColor];
  152. lblTitleUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  153. [vUnit addSubview:lblTitleUnit];
  154. UILabel *lblUnit = [UILabel new];
  155. lblUnit.frame=CGRectMake(CGRectGetMaxX(lblTitleUnit.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUnit.frame), valueheight);
  156. lblUnit.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  157. [vUnit addSubview:lblUnit];
  158. lblUnit.text = auditDetailModel.unitName;
  159. UIView *vCirculateType= [UIView new];
  160. vCirculateType.frame=CGRectMake(0, CGRectGetMaxY(vUnit.frame)+8, Screen_Width, heightRow);
  161. [self.contentView addSubview:vCirculateType];
  162. UILabel *lblTitleCirculateType = [UILabel new];
  163. lblTitleCirculateType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  164. lblTitleCirculateType.text = @"流通方式:";
  165. lblTitleCirculateType.textColor = [UIColor blackColor];
  166. lblTitleCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  167. [vCirculateType addSubview:lblTitleCirculateType];
  168. UILabel *lblCirculateType = [UILabel new];
  169. lblCirculateType.frame=CGRectMake(CGRectGetMaxX(lblTitleCirculateType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCirculateType.frame), valueheight);
  170. lblCirculateType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  171. [vCirculateType addSubview:lblCirculateType];
  172. lblCirculateType.text = auditDetailModel.goodsCirculateTypeName;
  173. UIView *vSpecification= [UIView new];
  174. vSpecification.frame=CGRectMake(0, CGRectGetMaxY(vCirculateType.frame)+8, Screen_Width, heightRow);
  175. [self.contentView addSubview:vSpecification];
  176. UILabel *lblTitleSpecification = [UILabel new];
  177. lblTitleSpecification.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  178. lblTitleSpecification.text = @"商品规格:";
  179. lblTitleSpecification.textColor = [UIColor blackColor];
  180. lblTitleSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  181. [vSpecification addSubview:lblTitleSpecification];
  182. UILabel *lblSpecification = [UILabel new];
  183. lblSpecification.frame=CGRectMake(CGRectGetMaxX(lblTitleSpecification.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSpecification.frame), valueheight);
  184. lblSpecification.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  185. [vSpecification addSubview:lblSpecification];
  186. lblSpecification.text = auditDetailModel.specification;
  187. UIView *vGrade= [UIView new];
  188. vGrade.frame=CGRectMake(0, CGRectGetMaxY(vSpecification.frame)+8, Screen_Width, heightRow);
  189. [self.contentView addSubview:vGrade];
  190. UILabel *lblTitleGrade = [UILabel new];
  191. lblTitleGrade.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  192. lblTitleGrade.text = @"商品等级:";
  193. lblTitleGrade.textColor = [UIColor blackColor];
  194. lblTitleGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  195. [vGrade addSubview:lblTitleGrade];
  196. UILabel *lblGrade = [UILabel new];
  197. lblGrade.frame=CGRectMake(CGRectGetMaxX(lblTitleGrade.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGrade.frame), valueheight);
  198. lblGrade.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  199. [vGrade addSubview:lblGrade];
  200. lblGrade.text = auditDetailModel.gradeName;
  201. UIView *vGoodsName= [UIView new];
  202. vGoodsName.frame=CGRectMake(0, CGRectGetMaxY(vGrade.frame)+8, Screen_Width, heightRow);
  203. [self.contentView addSubview:vGoodsName];
  204. UILabel *lblTitleGoodsName = [UILabel new];
  205. lblTitleGoodsName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  206. lblTitleGoodsName.text = @"商品名称:";
  207. lblTitleGoodsName.textColor = [UIColor blackColor];
  208. lblTitleGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  209. [vGoodsName addSubview:lblTitleGoodsName];
  210. UILabel *lblGoodsName = [UILabel new];
  211. lblGoodsName.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsName.frame), valueheight);
  212. lblGoodsName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  213. [vGoodsName addSubview:lblGoodsName];
  214. lblGoodsName.text = auditDetailModel.goodsName;
  215. UIView *vColorNumber= [UIView new];
  216. vColorNumber.frame=CGRectMake(0, CGRectGetMaxY(vGoodsName.frame)+8, Screen_Width, heightRow);
  217. [self.contentView addSubview:vColorNumber];
  218. UILabel *lblTitleColorNumber = [UILabel new];
  219. lblTitleColorNumber.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  220. lblTitleColorNumber.text = @"色号:";
  221. lblTitleColorNumber.textColor = [UIColor blackColor];
  222. lblTitleColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  223. [vColorNumber addSubview:lblTitleColorNumber];
  224. UILabel *lblColorNumber = [UILabel new];
  225. lblColorNumber.frame=CGRectMake(CGRectGetMaxX(lblTitleColorNumber.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleColorNumber.frame), valueheight);
  226. lblColorNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  227. [vColorNumber addSubview:lblColorNumber];
  228. lblColorNumber.text = auditDetailModel.colorNumber;
  229. UIView *vOrderQuantity= [UIView new];
  230. vOrderQuantity.frame=CGRectMake(0, CGRectGetMaxY(vColorNumber.frame)+8, Screen_Width, heightRow);
  231. [self.contentView addSubview:vOrderQuantity];
  232. UILabel *lblTitleOrderQuantity = [UILabel new];
  233. lblTitleOrderQuantity.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  234. lblTitleOrderQuantity.text = @"订单数量:";
  235. lblTitleOrderQuantity.textColor = [UIColor blackColor];
  236. lblTitleOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  237. [vOrderQuantity addSubview:lblTitleOrderQuantity];
  238. UILabel *lblOrderQuantity = [UILabel new];
  239. lblOrderQuantity.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderQuantity.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderQuantity.frame), valueheight);
  240. lblOrderQuantity.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  241. [vOrderQuantity addSubview:lblOrderQuantity];
  242. lblOrderQuantity.text = auditDetailModel.orderQuantity;
  243. UIView *vM3= [UIView new];
  244. vM3.frame=CGRectMake(0, CGRectGetMaxY(vOrderQuantity.frame)+8, Screen_Width, heightRow);
  245. [self.contentView addSubview:vM3];
  246. UILabel *lblTitleM3 = [UILabel new];
  247. lblTitleM3.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  248. lblTitleM3.text = @"体积数:";
  249. lblTitleM3.textColor = [UIColor blackColor];
  250. lblTitleM3.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  251. [vM3 addSubview:lblTitleM3];
  252. UILabel *lblM3 = [UILabel new];
  253. lblM3.frame=CGRectMake(CGRectGetMaxX(lblTitleM3.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleM3.frame), valueheight);
  254. lblM3.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  255. [vM3 addSubview:lblM3];
  256. lblM3.text = auditDetailModel.M3;
  257. UIView *vFactOrderQuantiy= [UIView new];
  258. vFactOrderQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vM3.frame)+8, Screen_Width, heightRow);
  259. [self.contentView addSubview:vFactOrderQuantiy];
  260. UILabel *lblTitleFactOrderQuantiy = [UILabel new];
  261. lblTitleFactOrderQuantiy.frame=CGRectMake(lblx, lbly, 100, lblheight);
  262. lblTitleFactOrderQuantiy.text = @"实际订单数量:";
  263. lblTitleFactOrderQuantiy.textColor = [UIColor blackColor];
  264. lblTitleFactOrderQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  265. [vFactOrderQuantiy addSubview:lblTitleFactOrderQuantiy];
  266. UILabel *lblFactOrderQuantiy = [UILabel new];
  267. lblFactOrderQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleFactOrderQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactOrderQuantiy.frame), valueheight);
  268. lblFactOrderQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  269. [vFactOrderQuantiy addSubview:lblFactOrderQuantiy];
  270. lblFactOrderQuantiy.text = auditDetailModel.factOrderQuantiy;
  271. UIView *vToSalesQuantiy= [UIView new];
  272. vToSalesQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vFactOrderQuantiy.frame)+8, Screen_Width, heightRow);
  273. [self.contentView addSubview:vToSalesQuantiy];
  274. UILabel *lblTitleToSalesQuantiy = [UILabel new];
  275. lblTitleToSalesQuantiy.frame=CGRectMake(lblx, lbly, 100, lblheight);
  276. lblTitleToSalesQuantiy.text = @"转销售数量:";
  277. lblTitleToSalesQuantiy.textColor = [UIColor blackColor];
  278. lblTitleToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  279. [vToSalesQuantiy addSubview:lblTitleToSalesQuantiy];
  280. UILabel *lblToSalesQuantiy = [UILabel new];
  281. lblToSalesQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleToSalesQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleToSalesQuantiy.frame), valueheight);
  282. lblToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  283. [vToSalesQuantiy addSubview:lblToSalesQuantiy];
  284. lblToSalesQuantiy.text = auditDetailModel.toSalesQuantity;
  285. UIView *vFactOccupyQuantiy= [UIView new];
  286. vFactOccupyQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vToSalesQuantiy.frame)+8, Screen_Width, heightRow);
  287. [self.contentView addSubview:vFactOccupyQuantiy];
  288. UILabel *lblTitleFactOccupyQuantiy = [UILabel new];
  289. lblTitleFactOccupyQuantiy.frame=CGRectMake(lblx, lbly, 100, lblheight);
  290. lblTitleFactOccupyQuantiy.text = @"实际占库量:";
  291. lblTitleFactOccupyQuantiy.textColor = [UIColor blackColor];
  292. lblTitleFactOccupyQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  293. [vFactOccupyQuantiy addSubview:lblTitleFactOccupyQuantiy];
  294. UILabel *lblFactOccupyQuantiy = [UILabel new];
  295. lblFactOccupyQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleFactOccupyQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactOccupyQuantiy.frame), valueheight);
  296. lblFactOccupyQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  297. [vFactOccupyQuantiy addSubview:lblFactOccupyQuantiy];
  298. lblFactOccupyQuantiy.text = auditDetailModel.factOccupyQuantity;
  299. UIView *vFactToSalesQuantiy= [UIView new];
  300. vFactToSalesQuantiy.frame=CGRectMake(0, CGRectGetMaxY(vFactOccupyQuantiy.frame)+8, Screen_Width, heightRow);
  301. [self.contentView addSubview:vFactToSalesQuantiy];
  302. UILabel *lblTitleFactToSalesQuantiy = [UILabel new];
  303. lblTitleFactToSalesQuantiy.frame=CGRectMake(lblx, lbly, 110, lblheight);
  304. lblTitleFactToSalesQuantiy.text = @"实际转销售数量:";
  305. lblTitleFactToSalesQuantiy.textColor = [UIColor blackColor];
  306. lblTitleFactToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  307. [vFactToSalesQuantiy addSubview:lblTitleFactToSalesQuantiy];
  308. UILabel *lblFactToSalesQuantiy = [UILabel new];
  309. lblFactToSalesQuantiy.frame=CGRectMake(CGRectGetMaxX(lblTitleFactToSalesQuantiy.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactToSalesQuantiy.frame), valueheight);
  310. lblFactToSalesQuantiy.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  311. [vFactToSalesQuantiy addSubview:lblFactToSalesQuantiy];
  312. lblFactToSalesQuantiy.text = auditDetailModel.factToSalesQuantity;
  313. UIView *vGoodsAmount= [UIView new];
  314. vGoodsAmount.frame=CGRectMake(0, CGRectGetMaxY(vFactToSalesQuantiy.frame)+8, Screen_Width, heightRow);
  315. [self.contentView addSubview:vGoodsAmount];
  316. UILabel *lblTitleGoodsAmount = [UILabel new];
  317. lblTitleGoodsAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  318. lblTitleGoodsAmount.text = @"整单金额:";
  319. lblTitleGoodsAmount.textColor = [UIColor blackColor];
  320. lblTitleGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  321. [vGoodsAmount addSubview:lblTitleGoodsAmount];
  322. UILabel *lblGoodsAmount= [UILabel new];
  323. lblGoodsAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsAmount.frame), valueheight);
  324. lblGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  325. [vGoodsAmount addSubview:lblGoodsAmount];
  326. lblGoodsAmount.text = auditDetailModel.goodsAmount;
  327. UIView *vFactGoodsAmount= [UIView new];
  328. vFactGoodsAmount.frame=CGRectMake(0, CGRectGetMaxY(vGoodsAmount.frame)+8, Screen_Width, heightRow);
  329. [self.contentView addSubview:vFactGoodsAmount];
  330. UILabel *lblTitleFactGoodsAmount = [UILabel new];
  331. lblTitleFactGoodsAmount.frame=CGRectMake(lblx, lbly, 100, lblheight);
  332. lblTitleFactGoodsAmount.text = @"实际整单金额:";
  333. lblTitleFactGoodsAmount.textColor = [UIColor blackColor];
  334. lblTitleFactGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  335. [vFactGoodsAmount addSubview:lblTitleFactGoodsAmount];
  336. UILabel *lblFactGoodsAmount= [UILabel new];
  337. lblFactGoodsAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleFactGoodsAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFactGoodsAmount.frame), valueheight);
  338. lblFactGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  339. [vFactGoodsAmount addSubview:lblFactGoodsAmount];
  340. lblFactGoodsAmount.text = auditDetailModel.factGoodsAmount;
  341. UIView *vWarehouseCode= [UIView new];
  342. vWarehouseCode.frame=CGRectMake(0, CGRectGetMaxY(vFactGoodsAmount.frame)+8, Screen_Width, heightRow);
  343. [self.contentView addSubview:vWarehouseCode];
  344. UILabel *lblTitleWarehouseCode = [UILabel new];
  345. lblTitleWarehouseCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  346. lblTitleWarehouseCode.text = @"库区编码:";
  347. lblTitleWarehouseCode.textColor = [UIColor blackColor];
  348. lblTitleWarehouseCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  349. [vWarehouseCode addSubview:lblTitleWarehouseCode];
  350. UILabel *lblWarehouseCode= [UILabel new];
  351. lblWarehouseCode.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseCode.frame), valueheight);
  352. lblWarehouseCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  353. [vWarehouseCode addSubview:lblWarehouseCode];
  354. lblWarehouseCode.text = auditDetailModel.warehouseCode;
  355. UIView *vWarehouseName= [UIView new];
  356. vWarehouseName.frame=CGRectMake(0, CGRectGetMaxY(vWarehouseCode.frame)+8, Screen_Width, heightRow);
  357. [self.contentView addSubview:vWarehouseName];
  358. UILabel *lblTitleWarehouseName = [UILabel new];
  359. lblTitleWarehouseName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  360. lblTitleWarehouseName.text = @"库区名称:";
  361. lblTitleWarehouseName.textColor = [UIColor blackColor];
  362. lblTitleWarehouseName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  363. [vWarehouseName addSubview:lblTitleWarehouseName];
  364. UILabel *lblWarehouseName= [UILabel new];
  365. lblWarehouseName.frame=CGRectMake(CGRectGetMaxX(lblTitleWarehouseName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWarehouseName.frame), valueheight);
  366. lblWarehouseName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  367. [vWarehouseName addSubview:lblWarehouseName];
  368. lblWarehouseName.text = auditDetailModel.warehouseName;
  369. UIView *vPositionNumber= [UIView new];
  370. vPositionNumber.frame=CGRectMake(0, CGRectGetMaxY(vWarehouseName.frame)+8, Screen_Width, heightRow);
  371. [self.contentView addSubview:vPositionNumber];
  372. UILabel *lblTitlePositionNumber = [UILabel new];
  373. lblTitlePositionNumber.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  374. lblTitlePositionNumber.text = @"仓位号:";
  375. lblTitlePositionNumber.textColor = [UIColor blackColor];
  376. lblTitlePositionNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  377. [vPositionNumber addSubview:lblTitlePositionNumber];
  378. UILabel *lblPositionNumber= [UILabel new];
  379. lblPositionNumber.frame=CGRectMake(CGRectGetMaxX(lblTitlePositionNumber.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitlePositionNumber.frame), valueheight);
  380. lblPositionNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  381. [vPositionNumber addSubview:lblPositionNumber];
  382. lblPositionNumber.text = auditDetailModel.positionNumber;
  383. UIView *vWeight= [UIView new];
  384. vWeight.frame=CGRectMake(0, CGRectGetMaxY(vPositionNumber.frame)+8, Screen_Width, heightRow);
  385. [self.contentView addSubview:vWeight];
  386. UILabel *lblTitleWeight = [UILabel new];
  387. lblTitleWeight.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  388. lblTitleWeight.text = @"重量:";
  389. lblTitleWeight.textColor = [UIColor blackColor];
  390. lblTitleWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  391. [vWeight addSubview:lblTitleWeight];
  392. UILabel *lblWeight= [UILabel new];
  393. lblWeight.frame=CGRectMake(CGRectGetMaxX(lblTitleWeight.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWeight.frame), valueheight);
  394. lblWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  395. [vWeight addSubview:lblWeight];
  396. lblWeight.text = auditDetailModel.weight;
  397. UIView *vVolume= [UIView new];
  398. vVolume.frame=CGRectMake(0, CGRectGetMaxY(vWeight.frame)+8, Screen_Width, heightRow);
  399. [self.contentView addSubview:vVolume];
  400. UILabel *lblTitleVolume = [UILabel new];
  401. lblTitleVolume.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  402. lblTitleVolume.text = @"体积:";
  403. lblTitleVolume.textColor = [UIColor blackColor];
  404. lblTitleVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  405. [vVolume addSubview:lblTitleVolume];
  406. UILabel *lblVolume= [UILabel new];
  407. lblVolume.frame=CGRectMake(CGRectGetMaxX(lblTitleVolume.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleVolume.frame), valueheight);
  408. lblVolume.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  409. [vVolume addSubview:lblVolume];
  410. lblVolume.text = auditDetailModel.volume;
  411. UIView *vSupplier= [UIView new];
  412. vSupplier.frame=CGRectMake(0, CGRectGetMaxY(vVolume.frame)+8, Screen_Width, heightRow);
  413. [self.contentView addSubview:vSupplier];
  414. UILabel *lblTitleSupplier = [UILabel new];
  415. lblTitleSupplier.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  416. lblTitleSupplier.text = @"供应商:";
  417. lblTitleSupplier.textColor = [UIColor blackColor];
  418. lblTitleSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  419. [vSupplier addSubview:lblTitleSupplier];
  420. UILabel *lblSupplier= [UILabel new];
  421. lblSupplier.frame=CGRectMake(CGRectGetMaxX(lblTitleSupplier.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSupplier.frame), valueheight);
  422. lblSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  423. [vSupplier addSubview:lblSupplier];
  424. lblSupplier.text = auditDetailModel.supplierName;
  425. UIView *vOrderPrice= [UIView new];
  426. vOrderPrice.frame=CGRectMake(0, CGRectGetMaxY(vSupplier.frame)+8, Screen_Width, heightRow);
  427. [self.contentView addSubview:vOrderPrice];
  428. UILabel *lblTitleOrderPrice = [UILabel new];
  429. lblTitleOrderPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  430. lblTitleOrderPrice.text = @"订单价格:";
  431. lblTitleOrderPrice.textColor = [UIColor blackColor];
  432. lblTitleOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  433. [vOrderPrice addSubview:lblTitleOrderPrice];
  434. UILabel *lblOrderPrice= [UILabel new];
  435. lblOrderPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleOrderPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrderPrice.frame), valueheight);
  436. lblOrderPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  437. [vOrderPrice addSubview:lblOrderPrice];
  438. lblOrderPrice.text = auditDetailModel.orderPrice;
  439. UIView *vMarkedPrice= [UIView new];
  440. vMarkedPrice.frame=CGRectMake(0, CGRectGetMaxY(vOrderPrice.frame)+8, Screen_Width, heightRow);
  441. [self.contentView addSubview:vMarkedPrice];
  442. UILabel *lblTitleMarkedPrice = [UILabel new];
  443. lblTitleMarkedPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  444. lblTitleMarkedPrice.text = @"标价:";
  445. lblTitleMarkedPrice.textColor = [UIColor blackColor];
  446. lblTitleMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  447. [vMarkedPrice addSubview:lblTitleMarkedPrice];
  448. UILabel *lblMarkedPrice= [UILabel new];
  449. lblMarkedPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleMarkedPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleMarkedPrice.frame), valueheight);
  450. lblMarkedPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  451. [vMarkedPrice addSubview:lblMarkedPrice];
  452. lblMarkedPrice.text = auditDetailModel.markedPrice;
  453. UIView *vDiscount= [UIView new];
  454. vDiscount.frame=CGRectMake(0, CGRectGetMaxY(vMarkedPrice.frame)+8, Screen_Width, heightRow);
  455. [self.contentView addSubview:vDiscount];
  456. UILabel *lblTitleDiscount = [UILabel new];
  457. lblTitleDiscount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  458. lblTitleDiscount.text = @"折扣:";
  459. lblTitleDiscount.textColor = [UIColor blackColor];
  460. lblTitleDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  461. [vDiscount addSubview:lblTitleDiscount];
  462. UILabel *lblDiscount= [UILabel new];
  463. lblDiscount.frame=CGRectMake(CGRectGetMaxX(lblTitleDiscount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDiscount.frame), valueheight);
  464. lblDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  465. [vDiscount addSubview:lblDiscount];
  466. lblDiscount.text = auditDetailModel.discount;
  467. // UIView *vCostPrice= [UIView new];
  468. // vCostPrice.frame=CGRectMake(0, CGRectGetMaxY(vDiscount.frame)+8, Screen_Width, heightRow);
  469. //
  470. // [self.contentView addSubview:vCostPrice];
  471. //
  472. // UILabel *lblTitleCostPrice = [UILabel new];
  473. // lblTitleCostPrice.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  474. // lblTitleCostPrice.text = @"成本价:";
  475. // lblTitleCostPrice.textColor = [UIColor blackColor];
  476. // lblTitleCostPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  477. // [vCostPrice addSubview:lblTitleCostPrice];
  478. //
  479. // UILabel *lblCostPrice= [UILabel new];
  480. // lblCostPrice.frame=CGRectMake(CGRectGetMaxX(lblTitleCostPrice.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCostPrice.frame), valueheight);
  481. // lblCostPrice.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  482. // [vCostPrice addSubview:lblCostPrice];
  483. // lblCostPrice.text = auditDetailModel.costPrice;
  484. UIView *vUsePosition= [UIView new];
  485. vUsePosition.frame=CGRectMake(0, CGRectGetMaxY(vDiscount.frame)+8, Screen_Width, heightRow);
  486. [self.contentView addSubview:vUsePosition];
  487. UILabel *lblTitleUsePosition = [UILabel new];
  488. lblTitleUsePosition.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  489. lblTitleUsePosition.text = @"使用位置:";
  490. lblTitleUsePosition.textColor = [UIColor blackColor];
  491. lblTitleUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  492. [vUsePosition addSubview:lblTitleUsePosition];
  493. UILabel *lblUsePosition= [UILabel new];
  494. lblUsePosition.frame=CGRectMake(CGRectGetMaxX(lblTitleUsePosition.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUsePosition.frame), valueheight);
  495. lblUsePosition.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  496. [vUsePosition addSubview:lblUsePosition];
  497. lblUsePosition.text = auditDetailModel.usePositionName;
  498. UIView *vExistsPromotionFlag= [UIView new];
  499. vExistsPromotionFlag.frame=CGRectMake(0, CGRectGetMaxY(vUsePosition.frame)+8, Screen_Width, heightRow);
  500. [self.contentView addSubview:vExistsPromotionFlag];
  501. UILabel *lblTitleExistsPromotionFlag = [UILabel new];
  502. lblTitleExistsPromotionFlag.frame=CGRectMake(lblx, lbly, 100, lblheight);
  503. lblTitleExistsPromotionFlag.text = @"促销存在标识:";
  504. lblTitleExistsPromotionFlag.textColor = [UIColor blackColor];
  505. lblTitleExistsPromotionFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  506. [vExistsPromotionFlag addSubview:lblTitleExistsPromotionFlag];
  507. UILabel *lblExistsPromotionFlag= [UILabel new];
  508. lblExistsPromotionFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleExistsPromotionFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExistsPromotionFlag.frame), valueheight);
  509. lblExistsPromotionFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  510. [vExistsPromotionFlag addSubview:lblExistsPromotionFlag];
  511. int existsPromotionFlag= auditDetailModel.existPromotionFlagDetail;
  512. NSString *existsPromotionFlagStr;
  513. if(existsPromotionFlag==0){
  514. existsPromotionFlagStr=@"否";
  515. }
  516. else{
  517. existsPromotionFlagStr=@"是";
  518. }
  519. lblExistsPromotionFlag.text=existsPromotionFlagStr;
  520. UIView *vManuFlag= [UIView new];
  521. vManuFlag.frame=CGRectMake(0, CGRectGetMaxY(vExistsPromotionFlag.frame)+8, Screen_Width, heightRow);
  522. [self.contentView addSubview:vManuFlag];
  523. UILabel *lblTitleManuFlag = [UILabel new];
  524. lblTitleManuFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  525. lblTitleManuFlag.text = @"加工标识:";
  526. lblTitleManuFlag.textColor = [UIColor blackColor];
  527. lblTitleManuFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  528. [vManuFlag addSubview:lblTitleManuFlag];
  529. UILabel *lblManuFlag= [UILabel new];
  530. lblManuFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleManuFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleManuFlag.frame), valueheight);
  531. lblManuFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  532. [vManuFlag addSubview:lblManuFlag];
  533. int manuFlag=auditDetailModel.manuFlag;
  534. NSString *manuFlagStr;
  535. if(manuFlag==0){
  536. manuFlagStr=@"否";
  537. }
  538. else
  539. {
  540. manuFlagStr=@"是";
  541. }
  542. lblManuFlag.text=manuFlagStr;
  543. UIView *vManufactureStatus= [UIView new];
  544. vManufactureStatus.frame=CGRectMake(0, CGRectGetMaxY(vManuFlag.frame)+8, Screen_Width, heightRow);
  545. [self.contentView addSubview:vManufactureStatus];
  546. UILabel *lblTitleManufactureStatus = [UILabel new];
  547. lblTitleManufactureStatus.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  548. lblTitleManufactureStatus.text = @"加工状态:";
  549. lblTitleManufactureStatus.textColor = [UIColor blackColor];
  550. lblTitleManufactureStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  551. [vManufactureStatus addSubview:lblTitleManufactureStatus];
  552. UILabel *lblManufactureStatus = [UILabel new];
  553. lblManufactureStatus.frame=CGRectMake(CGRectGetMaxX(lblTitleManufactureStatus.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleManufactureStatus.frame), valueheight);
  554. lblManufactureStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  555. [vManufactureStatus addSubview:lblManufactureStatus];
  556. Boolean manufactureStatus= auditDetailModel.manufactureStatus;
  557. NSString *manufactureStatusStr;
  558. if(manufactureStatus){
  559. manufactureStatusStr=@"是";
  560. }
  561. else{
  562. manufactureStatusStr=@"否";
  563. }
  564. lblManufactureStatus.text=manufactureStatusStr;
  565. UIView *vDeliveryFlag= [UIView new];
  566. vDeliveryFlag.frame=CGRectMake(0, CGRectGetMaxY(vManufactureStatus.frame)+8, Screen_Width, heightRow);
  567. [self.contentView addSubview:vDeliveryFlag];
  568. UILabel *lblTitleDeliveryFlag = [UILabel new];
  569. lblTitleDeliveryFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  570. lblTitleDeliveryFlag.text = @"送货标识:";
  571. lblTitleDeliveryFlag.textColor = [UIColor blackColor];
  572. lblTitleDeliveryFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  573. [vDeliveryFlag addSubview:lblTitleDeliveryFlag];
  574. UILabel *lblDeliveryFlag= [UILabel new];
  575. lblDeliveryFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDeliveryFlag.frame), valueheight);
  576. lblDeliveryFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  577. [vDeliveryFlag addSubview:lblDeliveryFlag];
  578. int deliveryFlag=auditDetailModel.deliveryFlag;
  579. NSString *deliveryFlagStr;
  580. if(deliveryFlag==0){
  581. deliveryFlagStr=@"否";
  582. }
  583. else
  584. {
  585. deliveryFlagStr=@"是";
  586. }
  587. lblDeliveryFlag.text=deliveryFlagStr;
  588. UIView *vInstallFlag= [UIView new];
  589. vInstallFlag.frame=CGRectMake(0, CGRectGetMaxY(vDeliveryFlag.frame)+8, Screen_Width, heightRow);
  590. [self.contentView addSubview:vInstallFlag];
  591. UILabel *lblTitleInstallFlag = [UILabel new];
  592. lblTitleInstallFlag.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  593. lblTitleInstallFlag.text = @"安装标识:";
  594. lblTitleInstallFlag.textColor = [UIColor blackColor];
  595. lblTitleInstallFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  596. [vInstallFlag addSubview:lblTitleInstallFlag];
  597. UILabel *lblInstallFlag= [UILabel new];
  598. lblInstallFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleInstallFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInstallFlag.frame), valueheight);
  599. lblInstallFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  600. [vInstallFlag addSubview:lblInstallFlag];
  601. int installFlag=auditDetailModel.installationFlag;
  602. NSString *installFlagStr;
  603. if(installFlag==0){
  604. installFlagStr=@"否";
  605. }
  606. else
  607. {
  608. installFlagStr=@"是";
  609. }
  610. lblInstallFlag.text=installFlagStr;
  611. UIView *vExpandAttribute= [UIView new];
  612. vExpandAttribute.frame=CGRectMake(0, CGRectGetMaxY(vInstallFlag.frame)+8, Screen_Width, heightRow);
  613. [self.contentView addSubview:vExpandAttribute];
  614. UILabel *lblTitleExpandAttribute = [UILabel new];
  615. lblTitleExpandAttribute.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  616. lblTitleExpandAttribute.text = @"扩展属性:";
  617. lblTitleExpandAttribute.textColor = [UIColor blackColor];
  618. lblTitleExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  619. [vExpandAttribute addSubview:lblTitleExpandAttribute];
  620. UILabel *lblExpandAttribute = [UILabel new];
  621. lblExpandAttribute.frame=CGRectMake(CGRectGetMaxX(lblTitleExpandAttribute.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExpandAttribute.frame), valueheight);
  622. lblExpandAttribute.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  623. [vExpandAttribute addSubview:lblExpandAttribute];
  624. lblExpandAttribute.text=auditDetailModel.expandAttribute;
  625. UIView *vExpandAttribute2= [UIView new];
  626. vExpandAttribute2.frame=CGRectMake(0, CGRectGetMaxY(vExpandAttribute.frame)+8, Screen_Width, heightRow);
  627. [self.contentView addSubview:vExpandAttribute2];
  628. UILabel *lblTitleExpandAttribute2 = [UILabel new];
  629. lblTitleExpandAttribute2.frame=CGRectMake(lblx, lbly, 100, lblheight);
  630. lblTitleExpandAttribute2.text = @"扩展属性二:";
  631. lblTitleExpandAttribute2.textColor = [UIColor blackColor];
  632. lblTitleExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  633. [vExpandAttribute2 addSubview:lblTitleExpandAttribute2];
  634. UILabel *lblExpandAttribute2 = [UILabel new];
  635. lblExpandAttribute2.frame=CGRectMake(CGRectGetMaxX(lblTitleExpandAttribute2.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleExpandAttribute2.frame), valueheight);
  636. lblExpandAttribute2.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  637. [vExpandAttribute2 addSubview:lblExpandAttribute2];
  638. lblExpandAttribute2.text=auditDetailModel.expandAttribute2;
  639. UIView *vCodeRemarks= [UIView new];
  640. vCodeRemarks.frame=CGRectMake(0, CGRectGetMaxY(vExpandAttribute2.frame)+8, Screen_Width, heightRow);
  641. [self.contentView addSubview:vCodeRemarks];
  642. UILabel *lblTitleCodeRemarks = [UILabel new];
  643. lblTitleCodeRemarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  644. lblTitleCodeRemarks.text = @"商品备注:";
  645. lblTitleCodeRemarks.textColor = [UIColor blackColor];
  646. lblTitleCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  647. [vCodeRemarks addSubview:lblTitleCodeRemarks];
  648. UILabel *lblCodeRemarks = [UILabel new];
  649. lblCodeRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleCodeRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCodeRemarks.frame), valueheight);
  650. lblCodeRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  651. [vCodeRemarks addSubview:lblCodeRemarks];
  652. lblCodeRemarks.text=auditDetailModel.codeRemarks;
  653. UIView *vRemarks= [UIView new];
  654. vRemarks.frame=CGRectMake(0, CGRectGetMaxY(vCodeRemarks.frame)+8, Screen_Width, heightRow);
  655. [self.contentView addSubview:vRemarks];
  656. UILabel *lblTitleRemarks = [UILabel new];
  657. lblTitleRemarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  658. lblTitleRemarks.text = @"备注:";
  659. lblTitleRemarks.textColor = [UIColor blackColor];
  660. lblTitleRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  661. [vRemarks addSubview:lblTitleRemarks];
  662. UILabel *lblRemarks = [UILabel new];
  663. lblRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemarks.frame), valueheight);
  664. lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  665. [vRemarks addSubview:lblRemarks];
  666. lblRemarks.text=auditDetailModel.remarks;
  667. }
  668. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  669. [super setSelected:selected animated:animated];
  670. }
  671. @end