ExpenseDetailViewController.m 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. //
  2. // ExpenseDetailViewController.m
  3. // IBOSS
  4. //
  5. // Created by apple on 2017/5/15.
  6. // Copyright © 2017年 沈阳东科云信软件有限公司. All rights reserved.
  7. //
  8. // 功能描述:费用明细表详细控制器
  9. //
  10. #import "ExpenseDetailViewController.h"
  11. @interface ExpenseDetailViewController ()
  12. @end
  13. @implementation ExpenseDetailViewController
  14. #pragma mark - 公共函数
  15. /**
  16. viewDidLoad函数
  17. */
  18. - (void)viewDidLoad {
  19. [super viewDidLoad];
  20. [self showTitle:@"费用明细表详细"];
  21. [self initUI];
  22. }
  23. /**
  24. 安全区视图发生变化
  25. */
  26. -(void)viewSafeAreaInsetsDidChange{
  27. _scroll.frame=self.view.safeAreaLayoutGuide.layoutFrame;
  28. [super viewSafeAreaInsetsDidChange];
  29. }
  30. /**
  31. didReceiveMemoryWarning函数
  32. */
  33. - (void)didReceiveMemoryWarning {
  34. [super didReceiveMemoryWarning];
  35. }
  36. #pragma mark - 委托回调函数
  37. #pragma mark - 私有函数
  38. /**
  39. 初始化ui
  40. */
  41. - (void)initUI {
  42. self.view.backgroundColor = LineBackgroundColor;
  43. CGFloat heightRow = 30;
  44. CGFloat lblx = 10;
  45. CGFloat lbly = 3;
  46. CGFloat lblwidth = 70;
  47. CGFloat lblheight = 25;
  48. CGFloat valuex = 80;
  49. CGFloat valuey = 3;
  50. CGFloat valueheight = 25;
  51. _scroll = [UIScrollView new];
  52. _scroll.frame=self.view.bounds;
  53. [self.view addSubview:_scroll];
  54. UIView *vTitle = [UIView new];
  55. [_scroll addSubview:vTitle];
  56. vTitle.backgroundColor = [UIColor whiteColor];
  57. // —————————
  58. UIView *vObjectTypeName = [UIView new];
  59. vObjectTypeName.frame=CGRectMake(0, CGRectGetMaxY(vTitle.frame), Screen_Width, heightRow);
  60. [vTitle addSubview:vObjectTypeName];
  61. UILabel *lblObjectTypeName = [UILabel new];
  62. lblObjectTypeName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  63. lblObjectTypeName.text = @"对象类型:";
  64. lblObjectTypeName.textColor = [UIColor blackColor];
  65. lblObjectTypeName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  66. [vObjectTypeName addSubview:lblObjectTypeName];
  67. UILabel *lblObjectTypeNameValue = [UILabel new];
  68. lblObjectTypeNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  69. lblObjectTypeNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  70. lblObjectTypeNameValue.text = self.objectTypeName;
  71. [vObjectTypeName addSubview:lblObjectTypeNameValue];
  72. // —————————
  73. UIView *vfeeNo = [UIView new];
  74. vfeeNo.frame=CGRectMake(0, CGRectGetMaxY(vObjectTypeName.frame), Screen_Width, heightRow);
  75. [vTitle addSubview:vfeeNo];
  76. UILabel *lblfeeNo = [UILabel new];
  77. lblfeeNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  78. lblfeeNo.text = @"费用单号:";
  79. lblfeeNo.textColor = [UIColor blackColor];
  80. lblfeeNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  81. [vfeeNo addSubview:lblfeeNo];
  82. UILabel *lblfeeNoValue = [UILabel new];
  83. lblfeeNoValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  84. lblfeeNoValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  85. lblfeeNoValue.text = self.feeNo;
  86. [vfeeNo addSubview:lblfeeNoValue];
  87. // —————————
  88. UIView *vobjectName = [UIView new];
  89. vobjectName.frame=CGRectMake(0, CGRectGetMaxY(vfeeNo.frame), Screen_Width, heightRow);
  90. [vTitle addSubview:vobjectName];
  91. UILabel *lblobjectName = [UILabel new];
  92. lblobjectName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  93. lblobjectName.text = @"账务对象:";
  94. lblobjectName.textColor = [UIColor blackColor];
  95. lblobjectName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  96. [vobjectName addSubview:lblobjectName];
  97. UILabel *lblobjectNameValue = [UILabel new];
  98. lblobjectNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  99. lblobjectNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  100. lblobjectNameValue.text = self.objectName;
  101. [vobjectName addSubview:lblobjectNameValue];
  102. // —————————
  103. UIView *vaccountOrganizationName = [UIView new];
  104. vaccountOrganizationName.frame=CGRectMake(0, CGRectGetMaxY(vobjectName.frame), Screen_Width, heightRow);
  105. [vTitle addSubview:vaccountOrganizationName];
  106. UILabel *lblvaccountOrganizationName = [UILabel new];
  107. lblvaccountOrganizationName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  108. lblvaccountOrganizationName.text = @"结算机构:";
  109. lblvaccountOrganizationName.textColor = [UIColor blackColor];
  110. lblvaccountOrganizationName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  111. [vaccountOrganizationName addSubview:lblvaccountOrganizationName];
  112. UILabel *lblvaccountOrganizationNameValue = [UILabel new];
  113. lblvaccountOrganizationNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  114. lblvaccountOrganizationNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  115. lblvaccountOrganizationNameValue.text = self.accountOrganizationName;
  116. [vaccountOrganizationName addSubview:lblvaccountOrganizationNameValue];
  117. // —————————
  118. UIView *vfeeDirectionName = [UIView new];
  119. vfeeDirectionName.frame=CGRectMake(0, CGRectGetMaxY(vaccountOrganizationName.frame), Screen_Width, heightRow);
  120. [vTitle addSubview:vfeeDirectionName];
  121. UILabel *lblfeeDirectionName = [UILabel new];
  122. lblfeeDirectionName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  123. lblfeeDirectionName.text = @"费用方向:";
  124. lblfeeDirectionName.textColor = [UIColor blackColor];
  125. lblfeeDirectionName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  126. [vfeeDirectionName addSubview:lblfeeDirectionName];
  127. UILabel *lblfeeDirectionNameValue = [UILabel new];
  128. lblfeeDirectionNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  129. lblfeeDirectionNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  130. lblfeeDirectionNameValue.text = self.feeDirectionName;
  131. [vfeeDirectionName addSubview:lblfeeDirectionNameValue];
  132. // —————————
  133. UIView *vfeeItemName = [UIView new];
  134. vfeeItemName.frame=CGRectMake(0, CGRectGetMaxY(vfeeDirectionName.frame), Screen_Width, heightRow);
  135. [vTitle addSubview:vfeeItemName];
  136. UILabel *lblfeeItemName = [UILabel new];
  137. lblfeeItemName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  138. lblfeeItemName.text = @"费用项目:";
  139. lblfeeItemName.textColor = [UIColor blackColor];
  140. lblfeeItemName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  141. [vfeeItemName addSubview:lblfeeItemName];
  142. UILabel *lblfeeItemNameValue = [UILabel new];
  143. lblfeeItemNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  144. lblfeeItemNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  145. lblfeeItemNameValue.text = self.feeItemName;
  146. [vfeeItemName addSubview:lblfeeItemNameValue];
  147. // —————————
  148. UIView *vstatusName = [UIView new];
  149. vstatusName.frame=CGRectMake(0, CGRectGetMaxY(vfeeItemName.frame), Screen_Width, heightRow);
  150. [vTitle addSubview:vstatusName];
  151. UILabel *lblstatusName = [UILabel new];
  152. lblstatusName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  153. lblstatusName.text = @"单据状态:";
  154. lblstatusName.textColor = [UIColor blackColor];
  155. lblstatusName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  156. [vstatusName addSubview:lblstatusName];
  157. UILabel *lblstatusNameValue = [UILabel new];
  158. lblstatusNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  159. lblstatusNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  160. lblstatusNameValue.text = self.statusName;
  161. [vstatusName addSubview:lblstatusNameValue];
  162. // —————————
  163. UIView *vorganizationName = [UIView new];
  164. vorganizationName.frame=CGRectMake(0, CGRectGetMaxY(vstatusName.frame), Screen_Width, heightRow);
  165. [vTitle addSubview:vorganizationName];
  166. UILabel *lblorganizationName = [UILabel new];
  167. lblorganizationName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  168. lblorganizationName.text = @"部门名称:";
  169. lblorganizationName.textColor = [UIColor blackColor];
  170. lblorganizationName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  171. [vorganizationName addSubview:lblorganizationName];
  172. UILabel *lblorganizationNameValue = [UILabel new];
  173. lblorganizationNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  174. lblorganizationNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  175. lblorganizationNameValue.text = self.organizationName;
  176. [vorganizationName addSubview:lblorganizationNameValue];
  177. // —————————
  178. UIView *vwstaffName = [UIView new];
  179. vwstaffName.frame=CGRectMake(0, CGRectGetMaxY(vorganizationName.frame), Screen_Width, heightRow);
  180. [vTitle addSubview:vwstaffName];
  181. UILabel *lblstaffName = [UILabel new];
  182. lblstaffName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  183. lblstaffName.text = @"业 务 员:";
  184. lblstaffName.textColor = [UIColor blackColor];
  185. lblstaffName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  186. [vwstaffName addSubview:lblstaffName];
  187. UILabel *staffName = [UILabel new];
  188. staffName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  189. staffName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  190. staffName.text = self.staffName;
  191. [vwstaffName addSubview:staffName];
  192. // —————————
  193. UIView *vbrandName = [UIView new];
  194. vbrandName.frame=CGRectMake(0, CGRectGetMaxY(vwstaffName.frame), Screen_Width, heightRow);
  195. [vTitle addSubview:vbrandName];
  196. UILabel *lblbrandName = [UILabel new];
  197. lblbrandName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  198. lblbrandName.text = @"商品品牌:";
  199. lblbrandName.textColor = [UIColor blackColor];
  200. lblbrandName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  201. [vbrandName addSubview:lblbrandName];
  202. UILabel *lblbrandNameValue = [UILabel new];
  203. lblbrandNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  204. lblbrandNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  205. lblbrandNameValue.text = self.brandName;
  206. [vbrandName addSubview:lblbrandNameValue];
  207. // —————————
  208. UIView *vkindName = [UIView new];
  209. vkindName.frame=CGRectMake(0, CGRectGetMaxY(vbrandName.frame), Screen_Width, heightRow);
  210. [vTitle addSubview:vkindName];
  211. UILabel *lblkindName = [UILabel new];
  212. lblkindName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  213. lblkindName.text = @"商品种类:";
  214. lblkindName.textColor = [UIColor blackColor];
  215. lblkindName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  216. [vkindName addSubview:lblkindName];
  217. UILabel *lblkindNameValue = [UILabel new];
  218. lblkindNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  219. lblkindNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  220. lblkindNameValue.text = self.kindName;
  221. [vkindName addSubview:lblkindNameValue];
  222. // —————————
  223. UIView *vseriesName = [UIView new];
  224. vseriesName.frame=CGRectMake(0, CGRectGetMaxY(vkindName.frame), Screen_Width, heightRow);
  225. [vTitle addSubview:vseriesName];
  226. UILabel *lblvseriesName = [UILabel new];
  227. lblvseriesName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  228. lblvseriesName.text = @"商品系列:";
  229. lblvseriesName.textColor = [UIColor blackColor];
  230. lblvseriesName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  231. [vseriesName addSubview:lblvseriesName];
  232. UILabel *lblseriesNameValue = [UILabel new];
  233. lblseriesNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  234. lblseriesNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  235. lblseriesNameValue.text = self.seriesName;
  236. [vseriesName addSubview:lblseriesNameValue];
  237. // —————————
  238. UIView *vreversedFeeNo = [UIView new];
  239. vreversedFeeNo.frame=CGRectMake(0, CGRectGetMaxY(vseriesName.frame), Screen_Width, heightRow);
  240. [vTitle addSubview:vreversedFeeNo];
  241. UILabel *lblreversedFeeNo = [UILabel new];
  242. lblreversedFeeNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  243. lblreversedFeeNo.text = @"冲正单号:";
  244. lblreversedFeeNo.textColor = [UIColor blackColor];
  245. lblreversedFeeNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  246. [vreversedFeeNo addSubview:lblreversedFeeNo];
  247. UILabel *lblreversedFeeNoValue = [UILabel new];
  248. lblreversedFeeNoValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  249. lblreversedFeeNoValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  250. lblreversedFeeNoValue.text = self.reversedFeeNo;
  251. [vreversedFeeNo addSubview:lblreversedFeeNoValue];
  252. // —————————
  253. UIView *vfeeSum = [UIView new];
  254. vfeeSum.frame=CGRectMake(0, CGRectGetMaxY(vreversedFeeNo.frame), Screen_Width, heightRow);
  255. [vTitle addSubview:vfeeSum];
  256. UILabel *lblincomeAmount = [UILabel new];
  257. lblincomeAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  258. lblincomeAmount.text = @"费用金额:";
  259. lblincomeAmount.textColor = [UIColor blackColor];
  260. lblincomeAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  261. [vfeeSum addSubview:lblincomeAmount];
  262. UILabel *incomeAmount = [UILabel new];
  263. incomeAmount.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  264. incomeAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  265. incomeAmount.text = self.feeSum;
  266. [vfeeSum addSubview:incomeAmount];
  267. // —————————
  268. UIView *vconfirmFeeSum = [UIView new];
  269. vconfirmFeeSum.frame=CGRectMake(0, CGRectGetMaxY(vfeeSum.frame), Screen_Width, heightRow);
  270. [vTitle addSubview:vconfirmFeeSum];
  271. UILabel *lblconfirmFeeSum = [UILabel new];
  272. lblconfirmFeeSum.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  273. lblconfirmFeeSum.text = @"确认金额:";
  274. lblconfirmFeeSum.textColor = [UIColor blackColor];
  275. lblconfirmFeeSum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  276. [vconfirmFeeSum addSubview:lblconfirmFeeSum];
  277. UILabel *lblconfirmFeeSumValue = [UILabel new];
  278. lblconfirmFeeSumValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  279. lblconfirmFeeSumValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  280. lblconfirmFeeSumValue.text = self.confirmFeeSum;
  281. [vconfirmFeeSum addSubview:lblconfirmFeeSumValue];
  282. UIView *vbusinessFunctionName = [UIView new];
  283. vbusinessFunctionName.frame=CGRectMake(0, CGRectGetMaxY(vconfirmFeeSum.frame), Screen_Width, heightRow);
  284. [vTitle addSubview:vbusinessFunctionName];
  285. UILabel *lblbusinessFunctionName = [UILabel new];
  286. lblbusinessFunctionName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  287. lblbusinessFunctionName.text = @"业务类型:";
  288. lblbusinessFunctionName.textColor = [UIColor blackColor];
  289. lblbusinessFunctionName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  290. [vbusinessFunctionName addSubview:lblbusinessFunctionName];
  291. UILabel *lblbusinessFunctionNameValue = [UILabel new];
  292. lblbusinessFunctionNameValue.frame = CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  293. lblbusinessFunctionNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  294. lblbusinessFunctionNameValue.text = self.businessFunctionName;
  295. [vbusinessFunctionName addSubview:lblbusinessFunctionNameValue];
  296. UIView *vinvoiceNo = [UIView new];
  297. vinvoiceNo.frame=CGRectMake(0, CGRectGetMaxY(vbusinessFunctionName.frame), Screen_Width, heightRow);
  298. [vTitle addSubview:vinvoiceNo];
  299. UILabel *lblinvoiceNo = [UILabel new];
  300. lblinvoiceNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  301. lblinvoiceNo.text = @"来源单号:";
  302. lblinvoiceNo.textColor = [UIColor blackColor];
  303. lblinvoiceNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  304. [vinvoiceNo addSubview:lblinvoiceNo];
  305. UILabel *lblinvoiceNoValue = [UILabel new];
  306. lblinvoiceNoValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  307. lblinvoiceNoValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  308. lblinvoiceNoValue.text = self.invoiceNo;
  309. [vinvoiceNo addSubview:lblinvoiceNoValue];
  310. UIView *vcustomerCode = [UIView new];
  311. vcustomerCode.frame=CGRectMake(0, CGRectGetMaxY(vinvoiceNo.frame), Screen_Width, heightRow);
  312. [vTitle addSubview:vcustomerCode];
  313. UILabel *lblcustomerCode = [UILabel new];
  314. lblcustomerCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  315. lblcustomerCode.text = @"客户编码:";
  316. lblcustomerCode.textColor = [UIColor blackColor];
  317. lblcustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  318. [vcustomerCode addSubview:lblcustomerCode];
  319. UILabel *lblcustomerCodeValue = [UILabel new];
  320. lblcustomerCodeValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  321. lblcustomerCodeValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  322. lblcustomerCodeValue.text = self.customerCode;
  323. [vcustomerCode addSubview:lblcustomerCodeValue];
  324. UIView *vcustomerName = [UIView new];
  325. vcustomerName.frame=CGRectMake(0, CGRectGetMaxY(vcustomerCode.frame), Screen_Width, heightRow);
  326. [vTitle addSubview:vcustomerName];
  327. UILabel *lblcustomerName = [UILabel new];
  328. lblcustomerName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  329. lblcustomerName.text = @"客户名称:";
  330. lblcustomerName.textColor = [UIColor blackColor];
  331. lblcustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  332. [vcustomerName addSubview:lblcustomerName];
  333. UILabel *lblcustomerNameValue = [UILabel new];
  334. lblcustomerNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  335. lblcustomerNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  336. lblcustomerNameValue.text = self.customerName;
  337. [vcustomerName addSubview:lblcustomerNameValue];
  338. UIView *vfeePayName = [UIView new];
  339. vfeePayName.frame=CGRectMake(0, CGRectGetMaxY(vcustomerName.frame), Screen_Width, heightRow);
  340. [vTitle addSubview:vfeePayName];
  341. UILabel *lblfeePayName = [UILabel new];
  342. lblfeePayName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  343. lblfeePayName.text = @"支付标识:";
  344. lblfeePayName.textColor = [UIColor blackColor];
  345. lblfeePayName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  346. [vfeePayName addSubview:lblfeePayName];
  347. UILabel *lblfeePayNameValue = [UILabel new];
  348. lblfeePayNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  349. lblfeePayNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  350. lblfeePayNameValue.text = self.feePayName;
  351. [vfeePayName addSubview:lblfeePayNameValue];
  352. UIView *vpaySum = [UIView new];
  353. vpaySum.frame=CGRectMake(0, CGRectGetMaxY(vfeePayName.frame), Screen_Width, heightRow);
  354. [vTitle addSubview:vpaySum];
  355. UILabel *lblpaySum = [UILabel new];
  356. lblpaySum.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  357. lblpaySum.text = @"支付金额:";
  358. lblpaySum.textColor = [UIColor blackColor];
  359. lblpaySum.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  360. [vpaySum addSubview:lblpaySum];
  361. UILabel *lblpaySumValue = [UILabel new];
  362. lblpaySumValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  363. lblpaySumValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  364. lblpaySumValue.text = self.paySum;
  365. [vpaySum addSubview:lblpaySumValue];
  366. UIView *vcheckUserName = [UIView new];
  367. vcheckUserName.frame=CGRectMake(0, CGRectGetMaxY(vpaySum.frame), Screen_Width, heightRow);
  368. [vTitle addSubview:vcheckUserName];
  369. UILabel *lblcheckUserName = [UILabel new];
  370. lblcheckUserName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  371. lblcheckUserName.text = @"审 核 人:";
  372. lblcheckUserName.textColor = [UIColor blackColor];
  373. lblcheckUserName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  374. [vcheckUserName addSubview:lblcheckUserName];
  375. UILabel *lblcheckUserNameValue = [UILabel new];
  376. lblcheckUserNameValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  377. lblcheckUserNameValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  378. lblcheckUserNameValue.text = self.checkUserName;
  379. [vcheckUserName addSubview:lblcheckUserNameValue];
  380. UIView *vcheckTime = [UIView new];
  381. vcheckTime.frame=CGRectMake(0, CGRectGetMaxY(vcheckUserName.frame), Screen_Width, heightRow);
  382. [vTitle addSubview:vcheckTime];
  383. UILabel *lblcheckTime = [UILabel new];
  384. lblcheckTime.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  385. lblcheckTime.text = @"审核时间:";
  386. lblcheckTime.textColor = [UIColor blackColor];
  387. lblcheckTime.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  388. [vcheckTime addSubview:lblcheckTime];
  389. UILabel *lblcheckTimeValue = [UILabel new];
  390. lblcheckTimeValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  391. lblcheckTimeValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  392. lblcheckTimeValue.text = self.checkTime;
  393. [vcheckTime addSubview:lblcheckTimeValue];
  394. UIView *vsuggestion = [UIView new];
  395. vsuggestion.frame=CGRectMake(0, CGRectGetMaxY(vcheckTime.frame), Screen_Width, heightRow);
  396. [vTitle addSubview:vsuggestion];
  397. UILabel *lblsuggestion = [UILabel new];
  398. lblsuggestion.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  399. lblsuggestion.text = @"审核意见:";
  400. lblsuggestion.textColor = [UIColor blackColor];
  401. lblsuggestion.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  402. [vsuggestion addSubview:lblsuggestion];
  403. UILabel *lblsuggestionValue = [UILabel new];
  404. lblsuggestionValue.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  405. lblsuggestionValue.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  406. lblsuggestionValue.text = self.suggestion;
  407. [vsuggestion addSubview:lblsuggestionValue];
  408. UIView *vremarks = [UIView new];
  409. vremarks.frame=CGRectMake(0, CGRectGetMaxY(vsuggestion.frame), Screen_Width, heightRow);
  410. [vTitle addSubview:vremarks];
  411. UILabel *lblremarks = [UILabel new];
  412. lblremarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  413. lblremarks.text = @"备 注:";
  414. lblremarks.textColor = [UIColor blackColor];
  415. lblremarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  416. [vremarks addSubview:lblremarks];
  417. UILabel *remarks = [UILabel new];
  418. remarks.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
  419. remarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  420. remarks.text = self.remarks;
  421. [vremarks addSubview:remarks];
  422. vTitle.frame=CGRectMake(10, 10, Screen_Width-20, CGRectGetMaxY(vremarks.frame) );
  423. vTitle.layer.cornerRadius = CornerRadius;
  424. _scroll.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vTitle.frame)+rectStatusHeight+rectNavHeight);
  425. }
  426. @end