GradingData.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <link rel="shortcut icon" href="/img/logo.png" />
  7. <link rel="bookmark" href="/img/logo.png" />
  8. <link rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
  10. <link href="/Plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  11. <link rel="stylesheet" href="../DashBoard.css?v3" />
  12. <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  13. <script src="/Plugins/xrequest/xrequest.min.js"></script>
  14. <title>东科软件</title>
  15. </head>
  16. <body class="bg-white p-0 dk-report">
  17. <!--实时缺陷记录-->
  18. <div class="container-fluid pt-1 p-0 box_1920_1080">
  19. <div class="position-absolute">
  20. <span id="成检分级质量" class="dk-report-loading" style="padding-left: 290px;font-size: 13px;color: #38dcff;font-weight: 700;float: left;padding-top: 40px;"></span>
  21. </div>
  22. <h4 class="text-center pb-2 dk-report-title" style="font-size: 80px; font-weight: bolder;color: #f8f9fa;">成检分级质量看板(一期)</h4>
  23. <table id="小件看板第一table" class="table-hover table-striped" style="font-size: 14px; width: 1875px; height:60px; margin-left: 21px; margin-top: -18px;">
  24. <tr style="height: 70px; width: 1866px;">
  25. <td scope="col" class="text-center" id="wd" style="width: 130px; font-size: 40px; color: #f8f9fa; text-align:left ">
  26. <div style="text-align:right;"><span id="sj" style=" font-size: 35px;">0000-00-00 00:00</span></div>
  27. </td>
  28. </tr>
  29. </table>
  30. <div style="width: 97.7%; height:65%">
  31. <table id="数据分级" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
  32. <thead style="border: 1px solid #38dcff ">
  33. <tr style="height: 100px; width: 1866px; ">
  34. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 55px; color: #f8f9fa; text-align: center ">工 号</td>
  35. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 55px; color: #f8f9fa; text-align: center ">检验数</td>
  36. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 55px; color: #f8f9fa; text-align: center ">常规漏检</td>
  37. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 55px; color: #f8f9fa; text-align: center ">严重漏检</td>
  38. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 55px; color: #f8f9fa; text-align: center ">漏检数</td>
  39. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 55px; color: #f8f9fa; text-align: center ">漏检率</td>
  40. </tr>
  41. <tr style="height: 100px; width: 1866px; ">
  42. <td colspan="2" scope="col" class="text-center" id="usercode1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  43. <td colspan="2" scope="col" class="text-center" id="countj1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  44. <td colspan="2" scope="col" class="text-center" id="countcg1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  45. <td colspan="2" scope="col" class="text-center" id="countyz1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  46. <td colspan="2" scope="col" class="text-center" id="countlj1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  47. <td colspan="2" scope="col" class="text-center" id="lv1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  48. </tr>
  49. <tr style="height: 100px; width: 1866px; ">
  50. <td colspan="2" scope="col" class="text-center" id="usercode2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  51. <td colspan="2" scope="col" class="text-center" id="countj2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  52. <td colspan="2" scope="col" class="text-center" id="countcg2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  53. <td colspan="2" scope="col" class="text-center" id="countyz2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  54. <td colspan="2" scope="col" class="text-center" id="countlj2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  55. <td colspan="2" scope="col" class="text-center" id="lv2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  56. </tr>
  57. <tr style="height: 100px; width: 1866px; ">
  58. <td colspan="2" scope="col" class="text-center" id="usercode3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  59. <td colspan="2" scope="col" class="text-center" id="countj3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  60. <td colspan="2" scope="col" class="text-center" id="countcg3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  61. <td colspan="2" scope="col" class="text-center" id="countyz3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  62. <td colspan="2" scope="col" class="text-center" id="countlj3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  63. <td colspan="2" scope="col" class="text-center" id="lv3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  64. </tr>
  65. <tr style="height: 100px; width: 1866px; ">
  66. <td colspan="2" scope="col" class="text-center" id="usercode4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  67. <td colspan="2" scope="col" class="text-center" id="countj4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  68. <td colspan="2" scope="col" class="text-center" id="countcg4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  69. <td colspan="2" scope="col" class="text-center" id="countyz4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  70. <td colspan="2" scope="col" class="text-center" id="countlj4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  71. <td colspan="2" scope="col" class="text-center" id="lv4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  72. </tr>
  73. <tr style="height: 100px; width: 1866px; ">
  74. <td colspan="2" scope="col" class="text-center" id="usercode5" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  75. <td colspan="2" scope="col" class="text-center" id="countj5" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  76. <td colspan="2" scope="col" class="text-center" id="countcg5" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  77. <td colspan="2" scope="col" class="text-center" id="countyz5" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  78. <td colspan="2" scope="col" class="text-center" id="countlj5" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  79. <td colspan="2" scope="col" class="text-center" id="lv5" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  80. </tr>
  81. <tr style="height: 100px; width: 1866px; ">
  82. <td colspan="2" scope="col" class="text-center" id="usercode6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  83. <td colspan="2" scope="col" class="text-center" id="countj6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  84. <td colspan="2" scope="col" class="text-center" id="countcg6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  85. <td colspan="2" scope="col" class="text-center" id="countyz6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  86. <td colspan="2" scope="col" class="text-center" id="countlj6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  87. <td colspan="2" scope="col" class="text-center" id="lv6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  88. </tr>
  89. <tr style="height: 100px; width: 1866px; ">
  90. <td colspan="2" scope="col" class="text-center" id="usercode7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  91. <td colspan="2" scope="col" class="text-center" id="countj7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  92. <td colspan="2" scope="col" class="text-center" id="countcg7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  93. <td colspan="2" scope="col" class="text-center" id="countyz7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  94. <td colspan="2" scope="col" class="text-center" id="countlj7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  95. <td colspan="2" scope="col" class="text-center" id="lv7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  96. </tr>
  97. <tr style="height: 100px; width: 1866px; ">
  98. <td colspan="2" scope="col" class="text-center" id="usercode8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  99. <td colspan="2" scope="col" class="text-center" id="countj8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center "></td>
  100. <td colspan="2" scope="col" class="text-center" id="countcg8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  101. <td colspan="2" scope="col" class="text-center" id="countyz8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  102. <td colspan="2" scope="col" class="text-center" id="countlj8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: right "></td>
  103. <td colspan="2" scope="col" class="text-center" id="lv8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right "></td>
  104. </tr>
  105. </thead>
  106. </table>
  107. </div>
  108. </div>
  109. <!--版权信息-->
  110. <script src="/Plugins/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
  111. <script src="/Plugins/bootstrap-table/bootstrap-table.min.js"></script>
  112. <script src="/Plugins/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
  113. <script src="/Plugins/sweetalert/sweetalert.min.js"></script>
  114. <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
  115. <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
  116. <script>
  117. //缺陷明细定时翻页
  118. var showpage = 10; //显示条数
  119. var pages = 1; //当前页数
  120. var excesspage; //剩余条数
  121. var countpage; //总条数
  122. $(document).ready(function () {
  123. loadServerTime();
  124. TableOne();
  125. doGetData = setInterval(function () { TableOne(); }, 60000);
  126. doGetData = setInterval(function () { loadServerTime(); }, 60000);
  127. });
  128. //取服务器时间
  129. function loadServerTime() {
  130. $.get('GradingData.ashx?m=fwq', function (data) {
  131. var json = JSON.parse(data);
  132. if (json["success"] == true) {
  133. $('#sj').html(json["sj"]);
  134. }
  135. });
  136. }
  137. function TableOne() {
  138. $.get('GradingData.ashx?m=分级数据', function (data) {
  139. var json = JSON.parse(data);
  140. if (json["success"] == true) {
  141. $('#usercode1').text(json["rows"][0]["USERCODE"]);
  142. $('#countj1').text(json["rows"][0]["COUNTJ"]);
  143. $('#countcg1').text(json["rows"][0]["COUNTCG"]);
  144. $('#countyz1').text(json["rows"][0]["COUNTYZ"]);
  145. $('#countlj1').text(json["rows"][0]["COUNTLJ"]);
  146. $('#lv1').text(json["rows"][0]["LV"]);
  147. $('#usercode2').text(json["rows"][1]["USERCODE"]);
  148. $('#countj2').text(json["rows"][1]["COUNTJ"]);
  149. $('#countcg2').text(json["rows"][1]["COUNTCG"]);
  150. $('#countyz2').text(json["rows"][1]["COUNTYZ"]);
  151. $('#countlj2').text(json["rows"][1]["COUNTLJ"]);
  152. $('#lv2').text(json["rows"][1]["LV"]);
  153. $('#usercode3').text(json["rows"][2]["USERCODE"]);
  154. $('#countj3').text(json["rows"][2]["COUNTJ"]);
  155. $('#countcg3').text(json["rows"][2]["COUNTCG"]);
  156. $('#countyz3').text(json["rows"][2]["COUNTYZ"]);
  157. $('#countlj3').text(json["rows"][2]["COUNTLJ"]);
  158. $('#lv3').text(json["rows"][2]["LV"]);
  159. $('#usercode4').text(json["rows"][3]["USERCODE"]);
  160. $('#countj4').text(json["rows"][3]["COUNTJ"]);
  161. $('#countcg4').text(json["rows"][3]["COUNTCG"]);
  162. $('#countyz4').text(json["rows"][3]["COUNTYZ"]);
  163. $('#countlj4').text(json["rows"][3]["COUNTLJ"]);
  164. $('#lv4').text(json["rows"][3]["LV"]);
  165. $('#usercode5').text(json["rows"][4]["USERCODE"]);
  166. $('#countj5').text(json["rows"][4]["COUNTJ"]);
  167. $('#countcg5').text(json["rows"][4]["COUNTCG"]);
  168. $('#countyz5').text(json["rows"][4]["COUNTYZ"]);
  169. $('#countlj5').text(json["rows"][4]["COUNTLJ"]);
  170. $('#lv5').text(json["rows"][4]["LV"]);
  171. $('#usercode6').text(json["rows"][5]["USERCODE"]);
  172. $('#countj6').text(json["rows"][5]["COUNTJ"]);
  173. $('#countcg6').text(json["rows"][5]["COUNTCG"]);
  174. $('#countyz6').text(json["rows"][5]["COUNTYZ"]);
  175. $('#countlj6').text(json["rows"][5]["COUNTLJ"]);
  176. $('#lv6').text(json["rows"][5]["LV"]);
  177. var a1 = json["rows"][0]["LV"];
  178. var lj1 = parseFloat(a1.replace(/[^\d.]/g, ""));
  179. if (lj1 > 0.8) {
  180. document.getElementById('lv1').style.color = 'red';
  181. }
  182. else {
  183. document.getElementById('lv1').style.color = '';
  184. }
  185. var a2 = json["rows"][1]["LV"];
  186. var lj2 = parseFloat(a2.replace(/[^\d.]/g, ""));
  187. if (lj2 > 0.8) {
  188. document.getElementById('lv2').style.color = 'red';
  189. }
  190. else {
  191. document.getElementById('lv2').style.color = '';
  192. }
  193. var a3 = json["rows"][2]["LV"];
  194. var lj3 = parseFloat(a3.replace(/[^\d.]/g, ""));
  195. if (lj3 > 0.8) {
  196. document.getElementById('lv3').style.color = 'red';
  197. }
  198. else {
  199. document.getElementById('lv3').style.color = '';
  200. }
  201. var a4 = json["rows"][3]["LV"];
  202. var lj4 = parseFloat(a4.replace(/[^\d.]/g, ""));
  203. if (lj4 > 0.8) {
  204. document.getElementById('lv4').style.color = 'red';
  205. }
  206. else {
  207. document.getElementById('lv4').style.color = '';
  208. }
  209. var a5 = json["rows"][4]["LV"];
  210. var lj5 = parseFloat(a5.replace(/[^\d.]/g, ""));
  211. if (lj5 > 0.8) {
  212. document.getElementById('lv5').style.color = 'red';
  213. }
  214. else {
  215. document.getElementById('lv5').style.color = '';
  216. }
  217. var a6 = json["rows"][5]["LV"];
  218. var lj6 = parseFloat(a6.replace(/[^\d.]/g, ""));
  219. if (lj6 > 0.8) {
  220. document.getElementById('lv6').style.color = 'red';
  221. }
  222. else {
  223. document.getElementById('lv6').style.color = '';
  224. }
  225. $('#usercode7').text(json["rows"][6]["USERCODE"]);
  226. $('#countj7').text(json["rows"][6]["COUNTJ"]);
  227. $('#countcg7').text(json["rows"][6]["COUNTCG"]);
  228. $('#countyz7').text(json["rows"][6]["COUNTYZ"]);
  229. $('#countlj7').text(json["rows"][6]["COUNTLJ"]);
  230. $('#lv7').text(json["rows"][6]["LV"]);
  231. var a7 = json["rows"][6]["LV"];
  232. var lj7 = parseFloat(a7.replace(/[^\d.]/g, ""));
  233. if (lj7 > 0.8) {
  234. document.getElementById('lv7').style.color = 'red';
  235. }
  236. else {
  237. document.getElementById('lv7').style.color = '';
  238. }
  239. $('#usercode8').text(json["rows"][7]["USERCODE"]);
  240. $('#countj8').text(json["rows"][7]["COUNTJ"]);
  241. $('#countcg8').text(json["rows"][7]["COUNTCG"]);
  242. $('#countyz8').text(json["rows"][7]["COUNTYZ"]);
  243. $('#countlj8').text(json["rows"][7]["COUNTLJ"]);
  244. $('#lv8').text(json["rows"][7]["LV"]);
  245. var a8 = json["rows"][7]["LV"];
  246. var lj8 = parseFloat(a8.replace(/[^\d.]/g, ""));
  247. if (lj8 > 0.8) {
  248. document.getElementById('lv8').style.color = 'red';
  249. }
  250. else {
  251. document.getElementById('lv8').style.color = '';
  252. }
  253. }
  254. });
  255. }
  256. </script>
  257. <style>
  258. table {
  259. height: 40px;
  260. color: #f8f9fa !important;
  261. font-size: 20px;
  262. font-weight: 700;
  263. background: rgba(25, 52, 90,.5);
  264. border: 1px solid #38dcff;
  265. margin-bottom: 1rem;
  266. }
  267. td {
  268. padding: 2px !important;
  269. text-align: center !important;
  270. border-bottom: 1px solid #38dcff !important;
  271. border-right: 1px dashed #38dcff !important;
  272. border: white;
  273. }
  274. a {
  275. background-color: lightblue;
  276. }
  277. </style>
  278. </body>
  279. </html>