ProcurementApplyDetailListVc.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. //
  2. // ProcurementApplyDetailListVc.m
  3. // IBOSS
  4. //
  5. // Created by guan hong hou on 2018/7/25.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. #import "ProcurementApplyDetailListVc.h"
  9. @interface ProcurementApplyDetailListVc ()
  10. @end
  11. @implementation ProcurementApplyDetailListVc
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. [self initUI];
  15. }
  16. /**
  17. 安全区视图发生变化
  18. */
  19. -(void)viewSafeAreaInsetsDidChange{
  20. _scroll.frame = self.view.safeAreaLayoutGuide.layoutFrame;
  21. [super viewSafeAreaInsetsDidChange];
  22. }
  23. -(void)initUI
  24. {
  25. self.navigationItem.title = @"请购总表明细";
  26. self.view.backgroundColor = LineBackgroundColor;
  27. UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  28. [button setImage:[UIImage imageNamed:@"icon_back"] forState:UIControlStateNormal];
  29. [button addTarget:self action:@selector(goBack)
  30. forControlEvents:UIControlEventTouchUpInside];
  31. button.frame = CGRectMake(0, 0,45,22);
  32. UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:button];
  33. self.navigationItem.leftBarButtonItem = menuButton;
  34. CGFloat heightRow = 30;
  35. CGFloat lblx = 10;
  36. CGFloat lbly = 3;
  37. CGFloat lblwidth = 70;
  38. CGFloat lblheight = 25;
  39. CGFloat valuex = 80;
  40. CGFloat valuey = 3;
  41. CGFloat valueheight = 25;
  42. _scroll = [UIScrollView new];
  43. _scroll.frame=self.view.bounds;
  44. [self.view addSubview:_scroll];
  45. UIView *vContent = [UIView new];
  46. [_scroll addSubview:vContent];
  47. vContent.backgroundColor = [UIColor whiteColor];
  48. //请购单号
  49. UIView *vApplyNo = [UIView new];
  50. vApplyNo.frame=CGRectMake(0,0, Screen_Width, heightRow);
  51. [vContent addSubview:vApplyNo];
  52. UILabel *lblApplyNoTitle = [UILabel new];
  53. lblApplyNoTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  54. lblApplyNoTitle.text = @"请购单号:";
  55. lblApplyNoTitle.textColor = [UIColor blackColor];
  56. lblApplyNoTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  57. [vApplyNo addSubview:lblApplyNoTitle];
  58. UILabel *lblApplyNo = [UILabel new];
  59. lblApplyNo.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  60. lblApplyNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  61. lblApplyNo.text = _applyListModel.applyNo;
  62. [vApplyNo addSubview:lblApplyNo];
  63. UIView *vApplyTitle = [UIView new];
  64. vApplyTitle.frame=CGRectMake(0, CGRectGetMaxY(vApplyNo.frame), Screen_Width, heightRow);
  65. [vContent addSubview:vApplyTitle];
  66. UILabel *lblApplyTitleTitle = [UILabel new];
  67. lblApplyTitleTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  68. lblApplyTitleTitle.text = @"请购名头:";
  69. lblApplyTitleTitle.textColor = [UIColor blackColor];
  70. lblApplyTitleTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  71. [vApplyTitle addSubview:lblApplyTitleTitle];
  72. UILabel *lblApplyTitle = [UILabel new];
  73. lblApplyTitle.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  74. lblApplyTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  75. lblApplyTitle.text=_applyListModel.applyTitle;
  76. [vApplyTitle addSubview:lblApplyTitle];
  77. //订单单号
  78. UIView *vOrderNo = [UIView new];
  79. vOrderNo.frame=CGRectMake(0, CGRectGetMaxY(vApplyTitle.frame), Screen_Width, heightRow);
  80. [vContent addSubview:vOrderNo];
  81. UILabel *lblOrderNoTitle = [UILabel new];
  82. lblOrderNoTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  83. lblOrderNoTitle.text = @"订单单号:";
  84. lblOrderNoTitle.textColor = [UIColor blackColor];
  85. lblOrderNoTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  86. [vOrderNo addSubview:lblOrderNoTitle];
  87. UILabel *lblOrderNo = [UILabel new];
  88. lblOrderNo.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  89. lblOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  90. lblOrderNo.text=_applyListModel.orderNo;
  91. [vOrderNo addSubview:lblOrderNo];
  92. //客户编码
  93. UIView *vCustomerCode = [UIView new];
  94. vCustomerCode.frame=CGRectMake(0, CGRectGetMaxY(vOrderNo.frame), Screen_Width, heightRow);
  95. [vContent addSubview:vCustomerCode];
  96. UILabel *lblCustomerCodeTitle = [UILabel new];
  97. lblCustomerCodeTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  98. lblCustomerCodeTitle.text = @"客户编码:";
  99. lblCustomerCodeTitle.textColor = [UIColor blackColor];
  100. lblCustomerCodeTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  101. [vCustomerCode addSubview:lblCustomerCodeTitle];
  102. UILabel *lblCustomerCode = [UILabel new];
  103. lblCustomerCode.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  104. lblCustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  105. lblCustomerCode.text=_applyListModel.customerCode;
  106. [vCustomerCode addSubview:lblCustomerCode];
  107. //客户名称
  108. UIView *vCustomerName= [UIView new];
  109. vCustomerName.frame=CGRectMake(0, CGRectGetMaxY(vCustomerCode.frame), Screen_Width, heightRow);
  110. [vContent addSubview:vCustomerName];
  111. UILabel *lblCustomerNameTitle = [UILabel new];
  112. lblCustomerNameTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  113. lblCustomerNameTitle.text = @"客户名称:";
  114. lblCustomerNameTitle.textColor = [UIColor blackColor];
  115. lblCustomerNameTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  116. [vCustomerName addSubview:lblCustomerNameTitle];
  117. UILabel *lblCustomerName = [UILabel new];
  118. lblCustomerName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  119. lblCustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  120. lblCustomerName.text=_applyListModel.customerName;
  121. [vCustomerName addSubview:lblCustomerName];
  122. //合同号
  123. UIView *vContractNumber = [UIView new];
  124. vContractNumber.frame=CGRectMake(0, CGRectGetMaxY(vCustomerName.frame), Screen_Width, heightRow);
  125. [vContent addSubview:vContractNumber];
  126. UILabel *lblContractNumberTitle = [UILabel new];
  127. lblContractNumberTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  128. lblContractNumberTitle.text = @"合 同 号:";
  129. lblContractNumberTitle.textColor = [UIColor blackColor];
  130. lblContractNumberTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  131. [vContractNumber addSubview:lblContractNumberTitle];
  132. UILabel *lblContractNumber = [UILabel new];
  133. lblContractNumber.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  134. lblContractNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  135. lblContractNumber.text=_applyListModel.contractNumber;
  136. [vContractNumber addSubview:lblContractNumber];
  137. UIView *vArrivalDate = [UIView new];
  138. vArrivalDate.frame=CGRectMake(0, CGRectGetMaxY(vContractNumber.frame), Screen_Width, heightRow);
  139. [vContent addSubview:vArrivalDate];
  140. UILabel *lblArrivalDateTitle = [UILabel new];
  141. lblArrivalDateTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  142. lblArrivalDateTitle.text = @"到货日期:";
  143. lblArrivalDateTitle.textColor = [UIColor blackColor];
  144. lblArrivalDateTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  145. [vArrivalDate addSubview:lblArrivalDateTitle];
  146. UILabel *lblArrivalDate = [UILabel new];
  147. lblArrivalDate.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  148. lblArrivalDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  149. lblArrivalDate.text=_applyListModel.arrivalDate;
  150. [vArrivalDate addSubview:lblArrivalDate];
  151. //请购部门
  152. UIView *vApplyDepartment = [UIView new];
  153. vApplyDepartment.frame=CGRectMake(0, CGRectGetMaxY(vArrivalDate.frame), Screen_Width, heightRow);
  154. [vContent addSubview:vApplyDepartment];
  155. UILabel *lblApplyDepartmentTitle = [UILabel new];
  156. lblApplyDepartmentTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  157. lblApplyDepartmentTitle.text = @"申请部门:";
  158. lblApplyDepartmentTitle.textColor = [UIColor blackColor];
  159. lblApplyDepartmentTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  160. [vApplyDepartment addSubview:lblApplyDepartmentTitle];
  161. UILabel *lblApplyDepartment = [UILabel new];
  162. lblApplyDepartment.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  163. lblApplyDepartment.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  164. lblApplyDepartment.text=_applyListModel.organizationName;
  165. [vApplyDepartment addSubview:lblApplyDepartment];
  166. //申请者
  167. UIView *vApplicant = [UIView new];
  168. vApplicant.frame=CGRectMake(0, CGRectGetMaxY(vApplyDepartment.frame), Screen_Width, heightRow);
  169. [vContent addSubview:vApplicant];
  170. UILabel *lblApplicantTitle = [UILabel new];
  171. lblApplicantTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  172. lblApplicantTitle.text = @"申 请 者:";
  173. lblApplicantTitle.textColor = [UIColor blackColor];
  174. lblApplicantTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  175. [vApplicant addSubview:lblApplicantTitle];
  176. UILabel *lblApplicant = [UILabel new];
  177. lblApplicant.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  178. lblApplicant.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  179. lblApplicant.text=_applyListModel.applicant;
  180. [vApplicant addSubview:lblApplicant];
  181. //明细备注
  182. UIView *vRemarks = [UIView new];
  183. vRemarks.frame=CGRectMake(0, CGRectGetMaxY(vApplicant.frame), Screen_Width, heightRow);
  184. [vContent addSubview:vRemarks];
  185. UILabel *lblRemarksTitle = [UILabel new];
  186. lblRemarksTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  187. lblRemarksTitle.text = @"明细备注:";
  188. lblRemarksTitle.textColor = [UIColor blackColor];
  189. lblRemarksTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  190. [vRemarks addSubview:lblRemarksTitle];
  191. UILabel *lblRemarks = [UILabel new];
  192. lblRemarks.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  193. lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  194. lblRemarks.text=_applyListModel.remarks;
  195. [vRemarks addSubview:lblRemarks];
  196. UIView *vInvoiceStatus = [UIView new];
  197. vInvoiceStatus.frame=CGRectMake(0, CGRectGetMaxY(vRemarks.frame), Screen_Width, heightRow);
  198. [vContent addSubview:vInvoiceStatus];
  199. UILabel *lblInvoiceStatusTitle = [UILabel new];
  200. lblInvoiceStatusTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  201. lblInvoiceStatusTitle.text = @"单据状态:";
  202. lblInvoiceStatusTitle.textColor = [UIColor blackColor];
  203. lblInvoiceStatusTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  204. [vInvoiceStatus addSubview:lblInvoiceStatusTitle];
  205. UILabel *lblInvoiceStatus = [UILabel new];
  206. lblInvoiceStatus.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  207. lblInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  208. lblInvoiceStatus.text=_applyListModel.invoiceStatusName;
  209. [vInvoiceStatus addSubview:lblInvoiceStatus];
  210. //审批人
  211. UIView *vReviewer= [UIView new];
  212. vReviewer.frame=CGRectMake(0, CGRectGetMaxY(vInvoiceStatus.frame), Screen_Width, heightRow);
  213. [vContent addSubview:vReviewer];
  214. UILabel *lblReviewerTitle = [UILabel new];
  215. lblReviewerTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  216. lblReviewerTitle.text = @"审 批 人:";
  217. lblReviewerTitle.textColor = [UIColor blackColor];
  218. lblReviewerTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  219. [vReviewer addSubview:lblReviewerTitle];
  220. UILabel *lblReviewer = [UILabel new];
  221. lblReviewer.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  222. lblReviewer.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  223. lblReviewer.text=_applyListModel.reviewerName;
  224. [vReviewer addSubview:lblReviewer];
  225. UIView *vReversedApply = [UIView new];
  226. vReversedApply.frame=CGRectMake(0, CGRectGetMaxY(vReviewer.frame), Screen_Width, heightRow);
  227. [vContent addSubview:vReversedApply];
  228. UILabel *lblReversedApplyTitle = [UILabel new];
  229. lblReversedApplyTitle.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
  230. lblReversedApplyTitle.text = @"冲正请购单号:";
  231. lblReversedApplyTitle.textColor = [UIColor blackColor];
  232. lblReversedApplyTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  233. [vReversedApply addSubview:lblReversedApplyTitle];
  234. UILabel *lblReversedApply = [UILabel new];
  235. lblReversedApply.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx, valueheight);
  236. lblReversedApply.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  237. lblReversedApply.text=_applyListModel.reversedApply;
  238. [vReversedApply addSubview:lblReversedApply];
  239. UIView *vAccountDate= [UIView new];
  240. vAccountDate.frame=CGRectMake(0, CGRectGetMaxY(vReversedApply.frame), Screen_Width, heightRow);
  241. [vContent addSubview:vAccountDate];
  242. UILabel *lblAccountDateTitle = [UILabel new];
  243. lblAccountDateTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  244. lblAccountDateTitle.text = @"账务日期:";
  245. lblAccountDateTitle.textColor = [UIColor blackColor];
  246. lblAccountDateTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  247. [vAccountDate addSubview:lblAccountDateTitle];
  248. UILabel *lblAccountDate = [UILabel new];
  249. lblAccountDate.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  250. lblAccountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  251. lblAccountDate.text=_applyListModel.accountDate;
  252. [vAccountDate addSubview:lblAccountDate];
  253. UIView *vCreater= [UIView new];
  254. vCreater.frame=CGRectMake(0, CGRectGetMaxY(vAccountDate.frame), Screen_Width, heightRow);
  255. [vContent addSubview:vCreater];
  256. UILabel *lblCreaterTitle = [UILabel new];
  257. lblCreaterTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  258. lblCreaterTitle.text = @"创 建 者:";
  259. lblCreaterTitle.textColor = [UIColor blackColor];
  260. lblCreaterTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  261. [vCreater addSubview:lblCreaterTitle];
  262. UILabel *lblCreater = [UILabel new];
  263. lblCreater.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  264. lblCreater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  265. lblCreater.text=_applyListModel.createUser;
  266. [vCreater addSubview:lblCreater];
  267. UIView *vCreateTime= [UIView new];
  268. vCreateTime.frame=CGRectMake(0, CGRectGetMaxY(vCreater.frame), Screen_Width, heightRow);
  269. [vContent addSubview:vCreateTime];
  270. UILabel *lblCreateTimeTitle = [UILabel new];
  271. lblCreateTimeTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  272. lblCreateTimeTitle.text = @"创建时间:";
  273. lblCreateTimeTitle.textColor = [UIColor blackColor];
  274. lblCreateTimeTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  275. [vCreateTime addSubview:lblCreateTimeTitle];
  276. UILabel *lblCreateTime = [UILabel new];
  277. lblCreateTime.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  278. lblCreateTime.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  279. lblCreateTime.text=_applyListModel.createTime;
  280. [vCreateTime addSubview:lblCreateTime];
  281. UIView *vUpdater= [UIView new];
  282. vUpdater.frame=CGRectMake(0, CGRectGetMaxY(vCreateTime.frame), Screen_Width, heightRow);
  283. [vContent addSubview:vUpdater];
  284. UILabel *lblUpdaterTitle = [UILabel new];
  285. lblUpdaterTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  286. lblUpdaterTitle.text = @"更 新 者:";
  287. lblUpdaterTitle.textColor = [UIColor blackColor];
  288. lblUpdaterTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  289. [vUpdater addSubview:lblUpdaterTitle];
  290. UILabel *lblUpdater = [UILabel new];
  291. lblUpdater.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  292. lblUpdater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  293. lblUpdater.text=_applyListModel.updateUser;
  294. [vUpdater addSubview:lblUpdater];
  295. UIView *vUpdateTime= [UIView new];
  296. vUpdateTime.frame=CGRectMake(0, CGRectGetMaxY(vUpdater.frame), Screen_Width, heightRow);
  297. [vContent addSubview:vUpdateTime];
  298. UILabel *lblUpdateTimeTitle = [UILabel new];
  299. lblUpdateTimeTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  300. lblUpdateTimeTitle.text = @"更新时间:";
  301. lblUpdateTimeTitle.textColor = [UIColor blackColor];
  302. lblUpdateTimeTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  303. [vUpdateTime addSubview:lblUpdateTimeTitle];
  304. UILabel *lblUpdateTime = [UILabel new];
  305. lblUpdateTime.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  306. lblUpdateTime.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  307. lblUpdateTime.text=_applyListModel.updateTime;
  308. [vUpdateTime addSubview:lblUpdateTime];
  309. UIView *vDistrict= [UIView new];
  310. vDistrict.frame=CGRectMake(0, CGRectGetMaxY(vUpdateTime.frame), Screen_Width, heightRow);
  311. [vContent addSubview:vDistrict];
  312. UILabel *lblDistrictTitle = [UILabel new];
  313. lblDistrictTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  314. lblDistrictTitle.text = @"客户区域:";
  315. lblDistrictTitle.textColor = [UIColor blackColor];
  316. lblDistrictTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  317. [vDistrict addSubview:lblDistrictTitle];
  318. UILabel *lblDistrict = [UILabel new];
  319. lblDistrict.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  320. lblDistrict.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  321. lblDistrict.text=_applyListModel.districtName;
  322. [vDistrict addSubview:lblDistrict];
  323. UIView *vSourceNo= [UIView new];
  324. vSourceNo.frame=CGRectMake(0, CGRectGetMaxY(vDistrict.frame), Screen_Width, heightRow);
  325. [vContent addSubview:vSourceNo];
  326. UILabel *lblSourceNoTitle = [UILabel new];
  327. lblSourceNoTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  328. lblSourceNoTitle.text = @"源 单 号:";
  329. lblSourceNoTitle.textColor = [UIColor blackColor];
  330. lblSourceNoTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  331. [vSourceNo addSubview:lblSourceNoTitle];
  332. UILabel *lblSourceNo = [UILabel new];
  333. lblSourceNo.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  334. lblSourceNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  335. lblSourceNo.text=_applyListModel.sourceNo;
  336. [vSourceNo addSubview:lblSourceNo];
  337. vContent.frame=CGRectMake(10, 10, Screen_Width-20, CGRectGetMaxY(vSourceNo.frame) );
  338. vContent.layer.cornerRadius = CornerRadius;
  339. _scroll.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vContent.frame)+rectStatusHeight+rectNavHeight+10);
  340. }
  341. @end