Index.cshtml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @{
  2. ViewData["TitleController"] = "产线详情";
  3. ViewData["TitleAction"] = "";
  4. ViewData["TitleActionDescription"] = "产线详细信息";
  5. ViewData["Title"] = "产线详情";
  6. }
  7. @section header{
  8. <link rel="stylesheet" href="~/lib/zTree.v3/css/zTreeStyle/zTreeStyle.min.css">
  9. <link rel="stylesheet" href="~/lib/adminlte/bower/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  10. }
  11. <div class="col-md-12">
  12. <div class="box box-primary">
  13. <div class="box-body">
  14. <div class="col-md-2">
  15. <div class="over">
  16. <ul id="productionLineTree" class="ztree"></ul>
  17. </div>
  18. </div>
  19. <div class="col-md-10">
  20. <div class="col-lg-12">
  21. <div class="input-group date" style="width:280px;float:left; padding-left:2px">
  22. <div class="input-group-addon">日期</div>
  23. <input id="date" type="text" class="form-control" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")">
  24. </div>
  25. <div style="float:left;">
  26. <span>&nbsp;&nbsp;</span>
  27. </div>
  28. <div class="btn-group" style="float:left">
  29. <button onclick="shortcut(-2)" class="btn btn-default">前天</button>
  30. <button onclick="shortcut(-1)" class="btn btn-default">昨天</button>
  31. <button onclick="shortcut(0)" class="btn btn-default">今天</button>
  32. </div>
  33. </div>
  34. <div class="col-xs-12">
  35. <div class="tab-content">
  36. <div class="tab-pane" id="line">
  37. <div class="col-md-12" style="overflow:auto">
  38. <p class="title">
  39. <strong>机台 产能、稼动、OEE</strong>
  40. </p>
  41. <table id="table1" class="table table-hover">
  42. <thead>
  43. <tr>
  44. <th>序号</th>
  45. <th>机台</th>
  46. <th>类型</th>
  47. <th>机种</th>
  48. <th>产能(pcs)</th>
  49. <th>可用率(%)</th>
  50. <th>表现性(%)</th>
  51. <th>OEE(%)</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. </tbody>
  56. </table>
  57. </div>
  58. <div class="col-md-12" style="overflow:auto">
  59. <p class="title">
  60. <strong>故障TOP10</strong>
  61. </p>
  62. <table id="table2" class="table table-hover">
  63. <thead>
  64. <tr>
  65. <th style="width:10%">序号</th>
  66. <th>机台</th>
  67. <th>开始时间</th>
  68. <th>结束时间</th>
  69. <th>机台状态</th>
  70. <th>时长(min)</th>
  71. <th>故障码</th>
  72. <th>故障详情</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. </tbody>
  77. </table>
  78. </div>
  79. </div>
  80. <div class="tab-pane" id="machine">
  81. <div class="col-md-12">
  82. <p class="title">
  83. <strong>早班</strong>
  84. </p>
  85. <table id="table3" class="table table-hover">
  86. <thead>
  87. <tr>
  88. <th>时段</th>
  89. <th>机种</th>
  90. <th>运行</th>
  91. <th>报警</th>
  92. <th>待料</th>
  93. <th>产能</th>
  94. <th>TT</th>
  95. <th>报警次数</th>
  96. <th>换料次数</th>
  97. <th>换料时间</th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. </tbody>
  102. </table>
  103. <p class="title">
  104. <strong>夜班</strong>
  105. </p>
  106. <table id="table4" class="table table-hover">
  107. <thead>
  108. <tr>
  109. <th>时段</th>
  110. <th>机种</th>
  111. <th>运行</th>
  112. <th>报警</th>
  113. <th>待料</th>
  114. <th>产能</th>
  115. <th>TT</th>
  116. <th>报警次数</th>
  117. <th>换料次数</th>
  118. <th>换料时间</th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. </tbody>
  123. </table>
  124. </div>
  125. <div class="col-md-12" style="overflow:auto">
  126. <p class="title">
  127. <strong>机台 产能、稼动、OEE</strong>
  128. </p>
  129. <table id="machine_oee" class="table table-hover">
  130. <thead>
  131. <tr>
  132. <th>序号</th>
  133. <th>机种</th>
  134. <th>产能(pcs)</th>
  135. <th>可用率(%)</th>
  136. <th>表现性(%)</th>
  137. <th>OEE(%)</th>
  138. </tr>
  139. </thead>
  140. <tbody>
  141. </tbody>
  142. </table>
  143. </div>
  144. <div class="col-md-12" style="overflow:auto">
  145. <p class="title">
  146. <strong>故障TOP10</strong>
  147. </p>
  148. <table id="machine_alarm" class="table table-hover">
  149. <thead>
  150. <tr>
  151. <th>序号</th>
  152. <th>开始时间</th>
  153. <th>结束时间</th>
  154. <th>机台状态</th>
  155. <th>时长(min)</th>
  156. <th>故障码</th>
  157. <th>故障信息</th>
  158. </tr>
  159. </thead>
  160. <tbody>
  161. </tbody>
  162. </table>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. @section footer{
  172. <script src="~/lib/zTree.v3/js/jquery.ztree.core.min.js"></script>
  173. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
  174. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-cn.js"></script>
  175. <script src="~/js/production-line/production-line.js"></script>
  176. }