OtherOutStorageDetailVC.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. //
  2. // OtherOutStorageDetailVCViewController.m
  3. // IBOSSmini
  4. //
  5. // Created by guan hong hou on 2018/4/28.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. #import "OtherOutStorageDetailVC.h"
  9. @interface OtherOutStorageDetailVC (){
  10. UIScrollView *_scrollView;
  11. }
  12. @end
  13. @implementation OtherOutStorageDetailVC
  14. #pragma mark 公共函数
  15. /**
  16. 视图加载完成
  17. */
  18. - (void)viewDidLoad {
  19. [super viewDidLoad];
  20. [self loadNavStyle];
  21. [self initUI];
  22. }
  23. /**
  24. 修改:2017-9-25
  25. 适配机型
  26. 安全区视图发生变化
  27. */
  28. -(void)viewSafeAreaInsetsDidChange{
  29. _scrollView.frame = CGRectMake(0, 0,Screen_Width, self.view.safeAreaLayoutGuide.layoutFrame.size.height);
  30. [super viewSafeAreaInsetsDidChange];
  31. }
  32. /**
  33. 内存警告函数
  34. */
  35. - (void)didReceiveMemoryWarning {
  36. [super didReceiveMemoryWarning];
  37. }
  38. #pragma mark 私有函数
  39. /**
  40. 导航按钮样式
  41. */
  42. -(void)loadNavStyle
  43. {
  44. self.navigationItem.title=@"其他出库信息";
  45. //返回
  46. UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  47. [button setBackgroundImage:[UIImage imageNamed:@"icon_back"]
  48. forState:UIControlStateNormal];
  49. [button addTarget:self action:@selector(goBack)
  50. forControlEvents:UIControlEventTouchUpInside];
  51. button.frame = CGRectMake(0, 0, 15, 18);
  52. UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:button];
  53. self.navigationItem.leftBarButtonItem = menuButton;
  54. }
  55. /**
  56. 初始化UI
  57. */
  58. -(void)initUI{
  59. [self.view setBackgroundColor:[UIColor whiteColor]];
  60. CGFloat heightRow = 40;
  61. CGFloat lblx = 10;
  62. CGFloat lbly = 8;
  63. CGFloat lblwidth = 80;
  64. CGFloat lblheight = 25;
  65. CGFloat heightLine = 1;
  66. CGFloat valuey = 8;
  67. CGFloat valueheight = 25;
  68. _scrollView=[UIScrollView new];
  69. _scrollView.frame=self.view.bounds;
  70. [self.view addSubview:_scrollView];
  71. UIView *vBody = [UIView new];
  72. [_scrollView addSubview:vBody];
  73. UIView *topSeparatorView= [UIView new];
  74. topSeparatorView.frame = CGRectMake(0, 0, Screen_Width, 10);
  75. topSeparatorView.backgroundColor=LineBackgroundColor;
  76. [vBody addSubview:topSeparatorView];
  77. UIView *vOutStorageNo = [UIView new];
  78. vOutStorageNo.frame=CGRectMake(0,CGRectGetMaxY(topSeparatorView.frame), Screen_Width, heightRow);
  79. [vBody addSubview:vOutStorageNo];
  80. NSDictionary *outStorageDict = @{NSFontAttributeName: [UIFont systemFontOfSize: LabelAndTextFontOfSize]};
  81. NSString *outStorageNoTitle=@"出库单号:";
  82. CGRect outStorageNoTitleFrame = [outStorageNoTitle textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:outStorageDict];
  83. outStorageNoTitleFrame.origin.x =lblx;
  84. outStorageNoTitleFrame.origin.y = 12;
  85. UILabel *lblTitleOutStorageNo=[UILabel new];
  86. lblTitleOutStorageNo.frame=outStorageNoTitleFrame;
  87. lblTitleOutStorageNo.textColor = [UIColor redColor];
  88. lblTitleOutStorageNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  89. [vOutStorageNo addSubview:lblTitleOutStorageNo];
  90. lblTitleOutStorageNo.text=outStorageNoTitle;
  91. NSString *outStorageNo= _outStorageDetailModel.deliveryNo;
  92. CGRect outStorageNoFrame = [outStorageNo textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:outStorageDict];
  93. outStorageNoFrame.origin.x =Screen_Width-outStorageNoFrame.size.width-10;
  94. outStorageNoFrame.origin.y = 12;
  95. UILabel *lblOutStorageNo = [UILabel new];
  96. lblOutStorageNo.frame=outStorageNoFrame;
  97. lblOutStorageNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  98. lblOutStorageNo.text =outStorageNo;
  99. [vOutStorageNo addSubview:lblOutStorageNo];
  100. UIView *topSeparatorView1= [UIView new];
  101. topSeparatorView1.frame = CGRectMake(0, CGRectGetMaxY(vOutStorageNo.frame), Screen_Width, heightLine);
  102. topSeparatorView1.backgroundColor=LineBackgroundColor;
  103. [vBody addSubview:topSeparatorView1];
  104. UIView *vOutStorageType = [UIView new];
  105. vOutStorageType.frame=CGRectMake(0,CGRectGetMaxY(topSeparatorView1.frame), Screen_Width, heightRow);
  106. [vBody addSubview:vOutStorageType];
  107. UILabel *lblTitleOutStorageType=[UILabel new];
  108. lblTitleOutStorageType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  109. lblTitleOutStorageType.text=@"出库类型:";
  110. lblTitleOutStorageType.textColor = [UIColor blackColor];
  111. lblTitleOutStorageType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  112. [vOutStorageType addSubview:lblTitleOutStorageType];
  113. UILabel *lblOutStorageType = [UILabel new];
  114. lblOutStorageType.frame=CGRectMake(CGRectGetMaxX(lblTitleOutStorageType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOutStorageType.frame)-10, valueheight);
  115. lblOutStorageType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  116. lblOutStorageType.text = _outStorageDetailModel.inventoryDeliveryTypeName;
  117. [vOutStorageType addSubview:lblOutStorageType];
  118. [vBody addSubview:vOutStorageType];
  119. UIView *vInvoiceStatus = [UIView new];
  120. vInvoiceStatus.frame=CGRectMake(0,CGRectGetMaxY(vOutStorageType.frame), Screen_Width, heightRow);
  121. [vBody addSubview:vInvoiceStatus];
  122. UILabel *lblTitleInvoiceStatus=[UILabel new];
  123. lblTitleInvoiceStatus.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  124. lblTitleInvoiceStatus.text=@"单据状态:";
  125. lblTitleInvoiceStatus.textColor = [UIColor blackColor];
  126. lblTitleInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  127. [vInvoiceStatus addSubview:lblTitleInvoiceStatus];
  128. UILabel *lblInvoiceStatus = [UILabel new];
  129. lblInvoiceStatus.frame=CGRectMake(CGRectGetMaxX(lblTitleInvoiceStatus.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInvoiceStatus.frame)-10, valueheight);
  130. lblInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  131. lblInvoiceStatus.text = _outStorageDetailModel.invoiceStatusName;
  132. [vInvoiceStatus addSubview:lblInvoiceStatus];
  133. [vBody addSubview:vInvoiceStatus];
  134. UIView *vAccountDate = [UIView new];
  135. vAccountDate.frame=CGRectMake(0,CGRectGetMaxY(vInvoiceStatus.frame), Screen_Width, heightRow);
  136. [vBody addSubview:vAccountDate];
  137. UILabel *lblTitleAccountDate=[UILabel new];
  138. lblTitleAccountDate.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  139. lblTitleAccountDate.text=@"账务日期:";
  140. lblTitleAccountDate.textColor = [UIColor blackColor];
  141. lblTitleAccountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  142. [vAccountDate addSubview:lblTitleAccountDate];
  143. UILabel *lblAccountDate = [UILabel new];
  144. lblAccountDate.frame=CGRectMake(CGRectGetMaxX(lblTitleAccountDate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleAccountDate.frame)-10, valueheight);
  145. lblAccountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  146. lblAccountDate.text = _outStorageDetailModel.accountDate;
  147. [vAccountDate addSubview:lblAccountDate];
  148. [vBody addSubview:vAccountDate];
  149. UIView *vBusinessDepartment = [UIView new];
  150. vBusinessDepartment.frame=CGRectMake(0,CGRectGetMaxY(vAccountDate.frame), Screen_Width, heightRow);
  151. [vBody addSubview:vBusinessDepartment];
  152. UILabel *lblTitleBusinessDepartment=[UILabel new];
  153. lblTitleBusinessDepartment.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  154. lblTitleBusinessDepartment.text=@"业务部门:";
  155. lblTitleBusinessDepartment.textColor = [UIColor blackColor];
  156. lblTitleBusinessDepartment.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  157. [vBusinessDepartment addSubview:lblTitleBusinessDepartment];
  158. UILabel *lblBusinessDepartment = [UILabel new];
  159. lblBusinessDepartment.frame=CGRectMake(CGRectGetMaxX(lblTitleBusinessDepartment.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBusinessDepartment.frame)-10, valueheight);
  160. lblBusinessDepartment.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  161. lblBusinessDepartment.text = _outStorageDetailModel.organizationName;
  162. [vBusinessDepartment addSubview:lblBusinessDepartment];
  163. UIView *vStaff = [UIView new];
  164. vStaff.frame=CGRectMake(0,CGRectGetMaxY(vBusinessDepartment.frame), Screen_Width, heightRow);
  165. [vBody addSubview:vStaff];
  166. UILabel *lblTitleStaff=[UILabel new];
  167. lblTitleStaff.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  168. lblTitleStaff.text=@"业 务 员:";
  169. lblTitleStaff.textColor = [UIColor blackColor];
  170. lblTitleStaff.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  171. [vStaff addSubview:lblTitleStaff];
  172. UILabel *lblStaff = [UILabel new];
  173. lblStaff.frame=CGRectMake(CGRectGetMaxX(lblTitleStaff.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleStaff.frame)-10, valueheight);
  174. lblStaff.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  175. lblStaff.text = _outStorageDetailModel.staffName;
  176. [vStaff addSubview:lblStaff];
  177. UIView *vCustomerCode= [UIView new];
  178. vCustomerCode.frame=CGRectMake(0,CGRectGetMaxY(vStaff.frame), Screen_Width, heightRow);
  179. [vBody addSubview:vCustomerCode];
  180. UILabel *lblTitleCustomerCode=[UILabel new];
  181. lblTitleCustomerCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  182. lblTitleCustomerCode.text=@"客户编码:";
  183. lblTitleCustomerCode.textColor = [UIColor blackColor];
  184. lblTitleCustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  185. [vCustomerCode addSubview:lblTitleCustomerCode];
  186. UILabel *lblCustomerCode = [UILabel new];
  187. lblCustomerCode.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerCode.frame)-10, valueheight);
  188. lblCustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  189. lblCustomerCode.text = _outStorageDetailModel.customerCode;
  190. [vCustomerCode addSubview:lblCustomerCode];
  191. UIView *vCustomerName= [UIView new];
  192. vCustomerName.frame=CGRectMake(0,CGRectGetMaxY(vCustomerCode.frame), Screen_Width, heightRow);
  193. [vBody addSubview:vCustomerName];
  194. UILabel *lblTitleCustomerName=[UILabel new];
  195. lblTitleCustomerName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  196. lblTitleCustomerName.text=@"客户名称:";
  197. lblTitleCustomerName.textColor = [UIColor blackColor];
  198. lblTitleCustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  199. [vCustomerName addSubview:lblTitleCustomerName];
  200. UILabel *lblCustomerName = [UILabel new];
  201. lblCustomerName.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerName.frame)-10, valueheight);
  202. lblCustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  203. lblCustomerName.text = _outStorageDetailModel.customerName;
  204. [vCustomerName addSubview:lblCustomerName];
  205. UIView *vContacts= [UIView new];
  206. vContacts.frame=CGRectMake(0,CGRectGetMaxY(vCustomerName.frame), Screen_Width, heightRow);
  207. [vBody addSubview:vContacts];
  208. UILabel *lblTitleContacts=[UILabel new];
  209. lblTitleContacts.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  210. lblTitleContacts.text=@"联 系 人:";
  211. lblTitleContacts.textColor = [UIColor blackColor];
  212. lblTitleContacts.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  213. [vContacts addSubview:lblTitleContacts];
  214. UILabel *lblContacts = [UILabel new];
  215. lblContacts.frame=CGRectMake(CGRectGetMaxX(lblTitleContacts.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleContacts.frame)-10, valueheight);
  216. lblContacts.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  217. lblContacts.text = _outStorageDetailModel.contacts;
  218. [vContacts addSubview:lblContacts];
  219. UIView *vTelephone= [UIView new];
  220. vTelephone.frame=CGRectMake(0,CGRectGetMaxY(vContacts.frame), Screen_Width, heightRow);
  221. [vBody addSubview:vTelephone];
  222. UILabel *lblTitleTelephone=[UILabel new];
  223. lblTitleTelephone.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  224. lblTitleTelephone.text=@"联系电话:";
  225. lblTitleTelephone.textColor = [UIColor blackColor];
  226. lblTitleTelephone.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  227. [vTelephone addSubview:lblTitleTelephone];
  228. UILabel *lblTelephone = [UILabel new];
  229. lblTelephone.frame=CGRectMake(CGRectGetMaxX(lblTitleTelephone.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleTelephone.frame)-10, valueheight);
  230. lblTelephone.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  231. lblTelephone.text = _outStorageDetailModel.telephone;
  232. [vTelephone addSubview:lblTelephone];
  233. UIView *vCustomerAddress= [UIView new];
  234. vCustomerAddress.frame=CGRectMake(0,CGRectGetMaxY(vTelephone.frame), Screen_Width, heightRow);
  235. [vBody addSubview:vCustomerAddress];
  236. UILabel *lblTitleCustomerAddress=[UILabel new];
  237. lblTitleCustomerAddress.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  238. lblTitleCustomerAddress.text=@"客户地址:";
  239. lblTitleCustomerAddress.textColor = [UIColor blackColor];
  240. lblTitleCustomerAddress.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  241. [vCustomerAddress addSubview:lblTitleCustomerAddress];
  242. UILabel *lblCustomerAddress = [UILabel new];
  243. lblCustomerAddress.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerAddress.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerAddress.frame)-10, valueheight);
  244. lblCustomerAddress.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  245. lblCustomerAddress.text = _outStorageDetailModel.address;
  246. [vCustomerAddress addSubview:lblCustomerAddress];
  247. UIView *vDriver= [UIView new];
  248. vDriver.frame=CGRectMake(0,CGRectGetMaxY(vCustomerAddress.frame), Screen_Width, heightRow);
  249. [vBody addSubview:vDriver];
  250. UILabel *lblTitleDriver=[UILabel new];
  251. lblTitleDriver.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  252. lblTitleDriver.text=@"运输司机:";
  253. lblTitleDriver.textColor = [UIColor blackColor];
  254. lblTitleDriver.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  255. [vDriver addSubview:lblTitleDriver];
  256. UILabel *lblDriver = [UILabel new];
  257. lblDriver.frame=CGRectMake(CGRectGetMaxX(lblTitleDriver.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDriver.frame)-10, valueheight);
  258. lblDriver.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  259. lblDriver.text = _outStorageDetailModel.driver;
  260. [vDriver addSubview:lblDriver];
  261. UIView *vDockerName= [UIView new];
  262. vDockerName.frame=CGRectMake(0,CGRectGetMaxY(vDriver.frame), Screen_Width, heightRow);
  263. [vBody addSubview:vDockerName];
  264. UILabel *lblTitleDockerName=[UILabel new];
  265. lblTitleDockerName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  266. lblTitleDockerName.text=@"装卸工人:";
  267. lblTitleDockerName.textColor = [UIColor blackColor];
  268. lblTitleDockerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  269. [vDockerName addSubview:lblTitleDockerName];
  270. UILabel *lblDockerName = [UILabel new];
  271. lblDockerName.frame=CGRectMake(CGRectGetMaxX(lblTitleDockerName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDockerName.frame)-10, valueheight);
  272. lblDockerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  273. lblDockerName.text = _outStorageDetailModel.docker;
  274. [vDockerName addSubview:lblDockerName];
  275. UIView *vSupplier= [UIView new];
  276. vSupplier.frame=CGRectMake(0,CGRectGetMaxY(vDockerName.frame), Screen_Width, heightRow);
  277. [vBody addSubview:vSupplier];
  278. UILabel *lblTitleSupplier=[UILabel new];
  279. lblTitleSupplier.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  280. lblTitleSupplier.text=@"供 应 商:";
  281. lblTitleSupplier.textColor = [UIColor blackColor];
  282. lblTitleSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  283. [vSupplier addSubview:lblTitleSupplier];
  284. UILabel *lblSupplier = [UILabel new];
  285. lblSupplier.frame=CGRectMake(CGRectGetMaxX(lblTitleSupplier.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleSupplier.frame)-10, valueheight);
  286. lblSupplier.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  287. lblSupplier.text = _outStorageDetailModel.supplierName;
  288. [vSupplier addSubview:lblSupplier];
  289. UIView *vCorrectNo= [UIView new];
  290. vCorrectNo.frame=CGRectMake(0,CGRectGetMaxY(vSupplier.frame), Screen_Width, heightRow);
  291. [vBody addSubview:vCorrectNo];
  292. UILabel *lblTitleCorrectNo=[UILabel new];
  293. lblTitleCorrectNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  294. lblTitleCorrectNo.text=@"冲正单号:";
  295. lblTitleCorrectNo.textColor = [UIColor blackColor];
  296. lblTitleCorrectNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  297. [vCorrectNo addSubview:lblTitleCorrectNo];
  298. UILabel *lblCorrectNo = [UILabel new];
  299. lblCorrectNo.frame=CGRectMake(CGRectGetMaxX(lblTitleCorrectNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCorrectNo.frame)-10, valueheight);
  300. lblCorrectNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  301. lblCorrectNo.text = _outStorageDetailModel.reversedDeliveryNo;
  302. [vCorrectNo addSubview:lblCorrectNo];
  303. UIView *vCreater= [UIView new];
  304. vCreater.frame=CGRectMake(0,CGRectGetMaxY(vCorrectNo.frame), Screen_Width, heightRow);
  305. [vBody addSubview:vCreater];
  306. UILabel *lblTitleCreater=[UILabel new];
  307. lblTitleCreater.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  308. lblTitleCreater.text=@"创 建 者:";
  309. lblTitleCreater.textColor = [UIColor blackColor];
  310. lblTitleCreater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  311. [vCreater addSubview:lblTitleCreater];
  312. UILabel *lblCreater = [UILabel new];
  313. lblCreater.frame=CGRectMake(CGRectGetMaxX(lblTitleCreater.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCreater.frame)-10, valueheight);
  314. lblCreater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  315. lblCreater.text = _outStorageDetailModel.creater;
  316. [vCreater addSubview:lblCreater];
  317. UIView *vRemarks= [UIView new];
  318. vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vCreater.frame), Screen_Width, heightRow);
  319. [vBody addSubview:vRemarks];
  320. UILabel *lblTitleRemarks=[UILabel new];
  321. lblTitleRemarks.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
  322. lblTitleRemarks.text=@"备 注:";
  323. lblTitleRemarks.textColor = [UIColor blackColor];
  324. lblTitleRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  325. [vRemarks addSubview:lblTitleRemarks];
  326. UILabel *lblRemarks = [UILabel new];
  327. lblRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemarks.frame)-10, valueheight);
  328. lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
  329. lblRemarks.text = _outStorageDetailModel.remarks;
  330. [vRemarks addSubview:lblRemarks];
  331. vBody.frame=CGRectMake(0,0, Screen_Width,CGRectGetMaxY(vRemarks.frame));
  332. _scrollView.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vBody.frame)+rectStatusHeight+rectNavHeight);
  333. }
  334. @end