activity_index.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/background_color_first"
  7. android:focusable="true"
  8. android:focusableInTouchMode="true"
  9. tools:ignore="MissingDefaultResource">
  10. <com.scwang.smartrefresh.layout.SmartRefreshLayout
  11. android:visibility="gone"
  12. android:id="@+id/SmartRefreshLayout_id"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:layout_below="@id/include_menuactionbar"
  16. android:layout_centerInParent="true">
  17. <android.support.v4.widget.NestedScrollView
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent">
  20. </android.support.v4.widget.NestedScrollView>
  21. <com.scwang.smartrefresh.layout.footer.ClassicsFooter
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. app:srlAccentColor="@android:color/darker_gray" />
  25. <com.scwang.smartrefresh.layout.header.ClassicsHeader
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. app:srlAccentColor="@android:color/darker_gray" />
  29. </com.scwang.smartrefresh.layout.SmartRefreshLayout>
  30. <LinearLayout
  31. android:visibility="gone"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@id/include_menuactionbar"
  35. android:layout_centerInParent="true"
  36. android:orientation="vertical">
  37. <LinearLayout
  38. android:visibility="gone"
  39. android:layout_width="match_parent"
  40. android:layout_height="20dp"
  41. android:layout_marginTop="10dp"
  42. android:paddingLeft="20dp"
  43. android:paddingRight="20dp">
  44. <TextView
  45. style="@style/captiontext"
  46. android:layout_width="wrap_content"
  47. android:text="工单数:" />
  48. <TextView
  49. android:id="@+id/index_unfinish_number"
  50. style="@style/valuetext"
  51. android:layout_width="0dp"
  52. android:layout_weight="1" />
  53. <TextView
  54. android:layout_marginLeft="@dimen/textsize_20"
  55. style="@style/captiontext"
  56. android:text="报废数: " />
  57. <TextView
  58. android:id="@+id/index_scrap_number"
  59. style="@style/valuetext"
  60. android:layout_width="0dp"
  61. android:layout_weight="1" />
  62. <View
  63. android:layout_width="20dp"
  64. android:layout_height="wrap_content"/>
  65. </LinearLayout>
  66. <LinearLayout
  67. android:visibility="gone"
  68. android:layout_width="match_parent"
  69. android:layout_height="20dp"
  70. android:layout_marginTop="10dp"
  71. android:paddingLeft="20dp"
  72. android:paddingRight="20dp">
  73. <TextView
  74. style="@style/captiontext"
  75. android:layout_width="wrap_content"
  76. android:text="报工数:" />
  77. <TextView
  78. android:id="@+id/index_qty"
  79. style="@style/valuetext"
  80. android:layout_width="0dp"
  81. android:layout_weight="1" />
  82. </LinearLayout>
  83. <TextView
  84. android:visibility="gone"
  85. android:id="@+id/tv_metrimal_name"
  86. android:layout_width="match_parent"
  87. android:layout_height="match_parent"
  88. android:padding="15dp"
  89. android:layout_marginLeft="5dp"
  90. tools:text="K002雾化棒半成品_金桔柠檬0mg"/>
  91. <com.uas.esop.view.MyGridView
  92. android:id="@+id/grid_menu"
  93. style="@style/MenuGridViewStyle"
  94. android:numColumns="3" />
  95. <View
  96. android:visibility="gone"
  97. android:layout_gravity="center"
  98. android:layout_width="match_parent"
  99. android:layout_height="100dp">
  100. </View>
  101. <Button
  102. android:visibility="gone"
  103. android:id="@+id/btn_getbanner"
  104. android:text="获取Image"
  105. android:layout_marginTop="@dimen/dp_10"
  106. android:layout_marginLeft="@dimen/textsize_20"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:background="@drawable/bg_button">
  110. </Button>
  111. </LinearLayout>
  112. <ScrollView
  113. android:layout_below="@id/include_menuactionbar"
  114. android:layout_centerInParent="true"
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent">
  117. <RelativeLayout
  118. android:id="@+id/rela_dimss"
  119. android:layout_width="match_parent"
  120. android:layout_height="match_parent">
  121. <LinearLayout
  122. android:id="@+id/lineone"
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. android:orientation="vertical">
  126. <RelativeLayout
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content">
  129. <LinearLayout
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:gravity="center_vertical">
  133. <LinearLayout
  134. android:layout_width="0dp"
  135. android:layout_height="wrap_content"
  136. android:layout_weight="1"
  137. android:orientation="vertical"
  138. android:layout_marginLeft="12dp"
  139. android:padding="8dp">
  140. <LinearLayout
  141. android:id="@+id/line_login_post"
  142. android:layout_gravity="center"
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:gravity="center_vertical"
  146. android:orientation="horizontal">
  147. <ImageView
  148. android:layout_width="30dp"
  149. android:layout_height="30dp"
  150. android:src="@mipmap/infoimage">
  151. </ImageView>
  152. <TextView
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"
  155. android:text="登录岗位:"
  156. android:textColor="#333333"
  157. android:textSize="@dimen/space_top_line_15" />
  158. <TextView
  159. android:id="@+id/em_code_tv"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:layout_marginLeft="10dp"
  163. android:textColor="#333333"
  164. android:textSize="@dimen/space_top_line_15" />
  165. </LinearLayout>
  166. </LinearLayout>
  167. </LinearLayout>
  168. <com.uas.esop.view.SwitchView
  169. android:visibility="gone"
  170. android:id="@+id/sound_monitor_Vibration_sv"
  171. android:layout_width="40dp"
  172. android:layout_height="25dp"
  173. android:layout_marginLeft="@dimen/textsize_20"
  174. android:layout_centerVertical="true"/>
  175. <ImageView
  176. android:layout_width="wrap_content"
  177. android:layout_height="wrap_content"
  178. android:id="@+id/sound_monitor_Vibration_sv2"
  179. android:layout_marginLeft="@dimen/textsize_20"
  180. android:background="@drawable/bg_index_ok_error"
  181. android:layout_centerVertical="true">
  182. </ImageView>
  183. <TextView
  184. android:layout_centerVertical="true"
  185. android:text="@string/string_monitor_socket"
  186. android:textSize="@dimen/space_top_line_15"
  187. android:layout_toRightOf="@id/sound_monitor_Vibration_sv2"
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content">
  190. </TextView>
  191. <TextView
  192. android:layout_marginLeft="@dimen/dp_10"
  193. android:id="@+id/em_name_tv"
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:textColor="#333333"
  197. android:layout_centerVertical="true"
  198. android:layout_alignParentRight="true"
  199. android:layout_marginRight="@dimen/textsize_20"
  200. android:textSize="@dimen/space_top_line_15"
  201. android:text="()"
  202. />
  203. </RelativeLayout>
  204. </LinearLayout>
  205. <LinearLayout
  206. android:id="@+id/linetwo"
  207. android:orientation="horizontal"
  208. android:layout_width="match_parent"
  209. android:layout_height="wrap_content"
  210. android:layout_below="@id/lineone"
  211. android:layout_centerInParent="true">
  212. <LinearLayout
  213. android:layout_marginLeft="@dimen/textsize_20"
  214. android:layout_width="0dp"
  215. android:layout_height="wrap_content"
  216. android:layout_weight="1"
  217. android:orientation="horizontal">
  218. <LinearLayout
  219. android:layout_width="match_parent"
  220. android:layout_height="wrap_content"
  221. android:layout_marginTop="4dp"
  222. android:gravity="center_vertical">
  223. <LinearLayout
  224. android:layout_marginLeft="@dimen/dp_10"
  225. android:orientation="vertical"
  226. android:layout_width="0dp"
  227. android:layout_weight="1"
  228. android:layout_height="wrap_content">
  229. <com.uas.esop.view.ClearableEditText
  230. android:id="@+id/index_position_resource"
  231. style="@style/EditTextLineStyle"
  232. android:layout_width="match_parent"
  233. android:hint="输入产品索引SOP"
  234. android:imeOptions="actionSend" />
  235. </LinearLayout>
  236. <TextView
  237. android:visibility="gone"
  238. android:id="@+id/scname_tv"
  239. style="@style/valuetext"
  240. android:singleLine="true"
  241. android:ellipsize="end"
  242. android:layout_width="wrap_content"
  243. android:paddingLeft="@dimen/textsize_20" />
  244. </LinearLayout>
  245. </LinearLayout>
  246. <ImageView
  247. android:id="@+id/index_edit"
  248. android:layout_width="20dp"
  249. android:layout_height="24dp"
  250. android:layout_gravity="center"
  251. android:layout_marginLeft="@dimen/dp_10"
  252. android:layout_marginRight="@dimen/textsize_20"
  253. android:src="@mipmap/magnifyingglass" />
  254. </LinearLayout>
  255. <LinearLayout
  256. android:visibility="gone"
  257. android:id="@+id/linethree"
  258. android:layout_marginTop="@dimen/dp_10"
  259. android:orientation="horizontal"
  260. android:layout_width="match_parent"
  261. android:layout_height="wrap_content"
  262. android:layout_below="@id/linetwo"
  263. android:layout_centerInParent="true"
  264. android:paddingLeft="20dp">
  265. <LinearLayout
  266. android:layout_width="match_parent"
  267. android:layout_height="wrap_content"
  268. android:layout_marginTop="4dp"
  269. android:orientation="horizontal"
  270. android:layout_weight="1">
  271. <LinearLayout
  272. android:layout_marginLeft="@dimen/dp_10"
  273. android:orientation="vertical"
  274. android:layout_width="0dp"
  275. android:layout_weight="1"
  276. android:layout_height="wrap_content">
  277. <com.uas.esop.view.ClearableEditText
  278. android:id="@+id/index_cur_doc"
  279. style="@style/EditTextLineStyle"
  280. android:layout_width="match_parent"
  281. android:hint="请输入工单号"
  282. android:imeOptions="actionSend" />
  283. </LinearLayout>
  284. </LinearLayout>
  285. <ImageView
  286. android:layout_gravity="center"
  287. android:id="@+id/index_cur_doc_imag"
  288. android:layout_width="20dp"
  289. android:layout_height="24dp"
  290. android:layout_marginRight="@dimen/textsize_20"
  291. android:layout_marginLeft="@dimen/dp_10"
  292. android:src="@mipmap/magnifyingglass" />
  293. <LinearLayout
  294. android:visibility="gone"
  295. android:layout_width="0dp"
  296. android:layout_height="wrap_content"
  297. android:layout_marginTop="4dp">
  298. <TextView
  299. android:visibility="gone"
  300. style="@style/captiontext"
  301. android:layout_width="wrap_content"
  302. android:text="工序编号:" />
  303. <TextView
  304. android:visibility="gone"
  305. android:id="@+id/tv_pihao"
  306. style="@style/valuetext" />
  307. </LinearLayout>
  308. </LinearLayout>
  309. <LinearLayout
  310. android:visibility="gone"
  311. android:id="@+id/linefour"
  312. android:orientation="horizontal"
  313. android:layout_width="match_parent"
  314. android:layout_height="wrap_content"
  315. android:layout_below="@id/linethree"
  316. android:layout_centerInParent="true"
  317. android:paddingLeft="20dp">
  318. <LinearLayout
  319. android:layout_width="match_parent"
  320. android:layout_height="wrap_content"
  321. android:layout_marginTop="@dimen/dp_10"
  322. android:orientation="horizontal"
  323. android:layout_weight="1">
  324. <LinearLayout
  325. android:layout_marginLeft="@dimen/dp_10"
  326. android:orientation="vertical"
  327. android:layout_width="0dp"
  328. android:layout_weight="1"
  329. android:layout_height="wrap_content">
  330. <com.uas.esop.view.ClearableEditText
  331. android:id="@+id/index_prodcode"
  332. style="@style/EditTextLineStyle"
  333. android:layout_width="match_parent"
  334. android:hint="请输入产品编号"
  335. android:imeOptions="actionSend" />
  336. </LinearLayout>
  337. </LinearLayout>
  338. <ImageView
  339. android:visibility="gone"
  340. android:layout_gravity="center"
  341. android:id="@+id/index_prodcode_imag"
  342. android:layout_width="20dp"
  343. android:layout_height="24dp"
  344. android:layout_marginRight="@dimen/dp_10"
  345. android:src="@mipmap/magnifyingglass" />
  346. <View
  347. android:layout_gravity="center"
  348. android:layout_width="20dp"
  349. android:layout_height="24dp"
  350. android:layout_marginRight="@dimen/textsize_20"
  351. android:layout_marginLeft="@dimen/dp_10"/>
  352. </LinearLayout>
  353. <LinearLayout
  354. android:orientation="vertical"
  355. android:id="@+id/line_ra_dataurl"
  356. android:layout_below="@id/linethree"
  357. android:layout_marginLeft="30dp"
  358. android:layout_marginRight="30dp"
  359. android:layout_marginTop="@dimen/dp_10"
  360. android:layout_width="match_parent"
  361. android:layout_height="wrap_content">
  362. <TextView
  363. android:text="当前获取文件:"
  364. android:layout_width="wrap_content"
  365. android:layout_height="wrap_content">
  366. </TextView>
  367. <LinearLayout
  368. android:orientation="horizontal"
  369. android:layout_width="match_parent"
  370. android:layout_height="wrap_content">
  371. <TextView
  372. android:text="文件版本:"
  373. android:layout_width="wrap_content"
  374. android:layout_height="wrap_content">
  375. </TextView>
  376. <TextView
  377. android:id="@+id/tv_pscode"
  378. android:text=""
  379. android:layout_marginLeft="@dimen/dp_10"
  380. android:layout_width="wrap_content"
  381. android:layout_height="wrap_content">
  382. </TextView>
  383. </LinearLayout>
  384. <LinearLayout
  385. android:orientation="horizontal"
  386. android:layout_width="match_parent"
  387. android:layout_height="wrap_content">
  388. <TextView
  389. android:text="产品:"
  390. android:layout_width="wrap_content"
  391. android:layout_height="wrap_content">
  392. </TextView>
  393. <TextView
  394. android:id="@+id/tv_ps_prodcode"
  395. android:text=""
  396. android:layout_marginLeft="@dimen/dp_10"
  397. android:layout_width="wrap_content"
  398. android:layout_height="wrap_content">
  399. </TextView>
  400. <TextView
  401. android:id="@+id/tv_pr_detail"
  402. android:text=""
  403. android:layout_marginLeft="@dimen/dp_10"
  404. android:layout_width="wrap_content"
  405. android:layout_height="wrap_content">
  406. </TextView>
  407. <TextView
  408. android:id="@+id/tv_pr_spec"
  409. android:text=""
  410. android:layout_marginLeft="@dimen/dp_10"
  411. android:layout_width="wrap_content"
  412. android:layout_height="wrap_content"
  413. android:ellipsize="end"
  414. android:lines="1">
  415. </TextView>
  416. </LinearLayout>
  417. <LinearLayout
  418. android:orientation="horizontal"
  419. android:layout_width="match_parent"
  420. android:layout_height="wrap_content">
  421. <TextView
  422. android:text="工序:"
  423. android:layout_width="wrap_content"
  424. android:layout_height="wrap_content">
  425. </TextView>
  426. <TextView
  427. android:id="@+id/tv_ps_stepcode"
  428. android:text=""
  429. android:layout_marginLeft="@dimen/dp_10"
  430. android:layout_width="wrap_content"
  431. android:layout_height="wrap_content">
  432. </TextView>
  433. </LinearLayout>
  434. <LinearLayout
  435. android:orientation="horizontal"
  436. android:layout_width="match_parent"
  437. android:layout_height="wrap_content">
  438. <TextView
  439. android:text="下载地址:"
  440. android:layout_width="wrap_content"
  441. android:layout_height="wrap_content">
  442. </TextView>
  443. <android.support.v7.widget.RecyclerView
  444. android:id="@+id/ra_dataurl"
  445. android:layout_width="wrap_content"
  446. android:layout_height="wrap_content"
  447. >
  448. </android.support.v7.widget.RecyclerView>
  449. </LinearLayout>
  450. </LinearLayout>
  451. <TextView
  452. android:id="@+id/btn_get"
  453. android:text="播放SOP"
  454. android:layout_marginLeft="20dp"
  455. android:layout_marginRight="20dp"
  456. android:layout_width="match_parent"
  457. android:layout_height="50dp"
  458. android:layout_below="@id/line_ra_dataurl"
  459. android:gravity="center"
  460. android:layout_centerInParent="true"
  461. android:layout_marginTop="100dp"
  462. android:background="@drawable/bg_button">
  463. </TextView>
  464. <TextView
  465. android:visibility="gone"
  466. android:id="@+id/btn_sengMessage"
  467. android:text="tcp发送消息"
  468. android:layout_marginLeft="20dp"
  469. android:layout_marginRight="20dp"
  470. android:layout_width="match_parent"
  471. android:layout_height="50dp"
  472. android:layout_below="@id/btn_get"
  473. android:gravity="center"
  474. android:layout_centerInParent="true"
  475. android:layout_marginTop="@dimen/textsize_20"
  476. android:background="@drawable/bg_button">
  477. </TextView>
  478. <TextView
  479. android:visibility="gone"
  480. android:id="@+id/tcp_text"
  481. android:text="tcp服务端发送"
  482. android:layout_marginLeft="20dp"
  483. android:layout_marginRight="20dp"
  484. android:layout_width="match_parent"
  485. android:layout_height="wrap_content"
  486. android:layout_below="@id/btn_sengMessage"
  487. android:gravity="center"
  488. android:layout_centerInParent="true"
  489. android:layout_marginTop="100dp"
  490. android:layout_marginBottom="@dimen/textsize_20">
  491. </TextView>
  492. <android.support.v7.widget.RecyclerView
  493. android:id="@+id/rv_data"
  494. android:visibility="gone"
  495. android:background="@color/white"
  496. android:layout_width="match_parent"
  497. android:layout_height="wrap_content"
  498. android:layout_below="@id/linetwo"
  499. android:layout_centerInParent="true">
  500. </android.support.v7.widget.RecyclerView>
  501. <android.support.v7.widget.RecyclerView
  502. android:id="@+id/rv_datawork"
  503. android:visibility="gone"
  504. android:background="@color/white"
  505. android:layout_width="match_parent"
  506. android:layout_height="wrap_content"
  507. android:layout_below="@id/linethree"
  508. android:layout_centerInParent="true">
  509. </android.support.v7.widget.RecyclerView>
  510. </RelativeLayout>
  511. </ScrollView>
  512. <include
  513. android:id="@+id/include_menuactionbar"
  514. layout="@layout/index_actionbar" />
  515. </RelativeLayout>