Sfoglia il codice sorgente

次品区看板 合格率折线图

zhangzhongshuai 2 anni fa
parent
commit
8a759e337b
2 ha cambiato i file con 1027 aggiunte e 936 eliminazioni
  1. 887 895
      wwwroot/main/Procedure/test5/index.html
  2. 140 41
      wwwroot/main/Procedure/test5/rpt.ashx

+ 887 - 895
wwwroot/main/Procedure/test5/index.html

@@ -1,903 +1,895 @@
 <!doctype html>
 <html lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-    <link rel="shortcut icon" href="/img/logo.png" />
-    <link rel="bookmark" href="/img/logo.png" />
-    <link href="/Plugins/animate/animate.min.css" rel="stylesheet" />
-    <link rel="stylesheet" href="../DashBoard.css?v3" />
-    <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
-    <script src="/Plugins/animate/xanimate.js"></script>
-    <script src="/Plugins/xrequest/xrequest.min.js"></script>
-    <title>东科软件</title>
-    <link rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
-    <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
-    <link href="/Plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
-    <link rel="stylesheet" href="DashBoard.css?v3" />
-    <script src="/Plugins/xrequest/xrequest.min.js"></script>
+	<meta charset="utf-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+	<link rel="shortcut icon" href="/img/logo.png" />
+	<link rel="bookmark" href="/img/logo.png" />
+	<link href="/Plugins/animate/animate.min.css" rel="stylesheet" />
+	<link rel="stylesheet" href="../DashBoard.css?v3" />
+	<script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+	<script src="/Plugins/animate/xanimate.js"></script>
+	<script src="/Plugins/xrequest/xrequest.min.js"></script>
+	<title>东科软件</title>
+	<link rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
+	<link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
+	<link href="/Plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
+	<link rel="stylesheet" href="DashBoard.css?v3" />
+	<script src="/Plugins/xrequest/xrequest.min.js"></script>
 </head>
 <body style="background-color:black;">
 
-    <div class="box_1920_1080">
-        <!--<div class="box_title" onclick="showHelp()" style="cursor:pointer">
-        次品区看板&nbsp;&nbsp;<span class="box_title_arrow">>>></span><span class="box_title_loading" id="报表加载"></span>
-    </div>-->
-        <div class="box_title" style="display:flex;flex-direction:row;">
-            <div style="width:30%;text-align:left;"></div>
-            <div style="width: 40%; text-align: center; font-size: 38px; font-weight: 700">次品区看板</div>
-            <div style="width:30%;text-align:right;"><span class="box_title_loading" style="font-size:32px;display:none;" id="报表加载"></span></div>
-        </div>
-        <div class="box_body" style="display: flex; flex-direction: column;">
-            <div style="width:1840px;height:50%;display:flex;flex-direction:row;">
-                <!--缺陷1-4-->
-                <div style="width: 560px;height:100%;">
-                    <div style="width:560px;height:50%;display:flex;flex-direction:row;">
-                        <div style="width: 33%; height: 25%;">
-                            <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                                <tr class="tr_title_warning">
-                                    <td colspan="9" style="font-size: 18px; color:white;" id="TOP1">缺陷TOP1(位置TOP3)</td>
-                                </tr>
-                                <tr class="tr_title_warning">
-                                    <!--<td>缺陷名称</td>-->
-                                    <td style="font-size: 16px;">缺陷位置</td>
-                                    <td style="font-size: 16px;">数量</td>
-                                    <!--<td style="font-size: 16px;">占比</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn11" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp11" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n11" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt11" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn12" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp12" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n12" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt12" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn13" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp13" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n13" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt13" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="dn14" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="dp14" style="font-size: 18px; width: 10%">--</td>
-                                <td id="n14" style="font-size: 18px; width: 10%">--</td>
-                                <td id="pt14" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                            </table>
-                        </div>
-                        <div style="width: 33%; height: 25%;">
-                            <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                                <tr class="tr_title_warning">
-                                    <td colspan="9" style="font-size: 18px; color:white;" id="TOP2">缺陷TOP2(位置TOP3)</td>
-                                </tr>
-                                <tr class="tr_title_warning">
-                                    <!--<td>缺陷名称</td>-->
-                                    <td style="font-size: 16px;">缺陷位置</td>
-                                    <td style="font-size: 16px;">数量</td>
-                                    <!--<td style="font-size: 16px;">占比</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn21" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp21" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n21" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt21" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn22" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp22" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n22" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt22" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn23" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp23" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n23" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt23" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="dn24" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="dp24" style="font-size: 18px; width: 10%">--</td>
-                                <td id="n24" style="font-size: 18px; width: 10%">--</td>
-                                <td id="pt24" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                            </table>
-                        </div>
-                        <div style="width: 33%; height: 25%;">
-                            <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                                <tr class="tr_title_warning">
-                                    <td colspan="9" style="font-size: 18px; color:white;" id="TOP3">缺陷TOP3(位置TOP3)</td>
-                                </tr>
-                                <tr class="tr_title_warning">
-                                    <!--<td>缺陷名称</td>-->
-                                    <td style="font-size: 16px;">缺陷位置</td>
-                                    <td style="font-size: 16px;">数量</td>
-                                    <!--<td style="font-size: 16px;">占比</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn31" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp31" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n31" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt31" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn32" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp32" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n32" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt32" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn33" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp33" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n33" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt33" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="dn34" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="dp34" style="font-size: 18px; width: 10%">--</td>
-                                <td id="n34" style="font-size: 18px; width: 10%">--</td>
-                                <td id="pt34" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                            </table>
-                        </div>
-                    </div>
-
-                    <!--缺陷5-8-->
-                    <div style="width: 560px; height: 50%; display: flex; flex-direction: row;padding-top:0px">
-                        <div style="width: 33%; height: 25%;">
-                            <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                                <tr class="tr_title_warning">
-                                    <td colspan="9" style="font-size: 18px; color:white;" id="TOP4">缺陷TOP4(位置TOP3)</td>
-                                </tr>
-                                <tr class="tr_title_warning">
-                                    <!--<td>缺陷名称</td>-->
-                                    <td style="font-size: 16px;">缺陷位置</td>
-                                    <td style="font-size: 16px;">数量</td>
-                                    <!--<td style="font-size: 16px;">占比</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn41" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp41" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n41" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt41" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn42" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp42" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n42" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt42" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn43" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp43" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n43" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt43" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="dn44" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="dp44" style="font-size: 18px; width: 10%">--</td>
-                                <td id="n44" style="font-size: 18px; width: 10%">--</td>
-                                <td id="pt44" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                            </table>
-                        </div>
-                        <div style="width: 33%; height: 25%;">
-                            <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                                <tr class="tr_title_warning">
-                                    <td colspan="9" style="font-size: 18px; color:white;" id="TOP5">缺陷TOP5(位置TOP3)</td>
-                                </tr>
-                                <tr class="tr_title_warning">
-                                    <!--<td>缺陷名称</td>-->
-                                    <td style="font-size: 16px;">缺陷位置</td>
-                                    <td style="font-size: 16px;">数量</td>
-                                    <!--<td style="font-size: 16px;">占比</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn51" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp51" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n51" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt51" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn52" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp52" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n52" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt52" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn53" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp53" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n53" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt53" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="dn54" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="dp54" style="font-size: 18px; width: 10%">--</td>
-                                <td id="n54" style="font-size: 18px; width: 10%">--</td>
-                                <td id="pt54" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                            </table>
-                        </div>
-                        <div style="width: 33%; height: 25%;">
-                            <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                                <tr class="tr_title_warning">
-                                    <td colspan="9" style="font-size: 18px; color:white;" id="TOP6">缺陷TOP6(位置TOP3)</td>
-                                </tr>
-                                <tr class="tr_title_warning">
-                                    <!--<td>缺陷名称</td>-->
-                                    <td style="font-size: 16px;">缺陷位置</td>
-                                    <td style="font-size: 16px;">数量</td>
-                                    <!--<td style="font-size: 16px;">占比</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn61" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp61" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n61" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt61" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn62" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp62" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n62" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt62" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <tr class="tr_bg_light_warning" style="height:35px;">
-                                    <!--<td id="dn63" style="font-size: 18px; width: 10%">--</td>-->
-                                    <td id="dp63" style="font-size: 18px; width: 10%">--</td>
-                                    <td id="n63" style="font-size: 18px; width: 10%">--</td>
-                                    <!--<td id="pt63" style="font-size: 18px; width: 10%">--</td>-->
-                                </tr>
-                                <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="dn64" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="dp64" style="font-size: 18px; width: 10%">--</td>
-                                <td id="n64" style="font-size: 18px; width: 10%">--</td>
-                                <td id="pt64" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                            </table>
-                        </div>
-                    </div>
-                </div>
-                <div style="width: 360px; height: 100%">
-                    <div style="width: 360px;">
-                        <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                            <tr class="tr_title_warning">
-                                <td colspan="9" style="font-size: 18px; color:white;">科室产品缺陷统计</td>
-                            </tr>
-                            <tr class="tr_title_warning">
-                                <!--<td style="font-size: 16px;">排行</td>-->
-                                <td style="font-size: 16px; width: 40%">科室</td>
-                                <td style="font-size: 16px; width: 25%">数量</td>
-                                <td style="font-size: 16px; width: 35%">占比</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="1dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="1class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="2dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="2class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="3dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="3class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="4dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="4class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="5dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="5class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="6dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="6class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="7dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="7class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="8dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="8class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="9dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="9class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="10dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="10class" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10classnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10pt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                        </table>
-                    </div>
-                    <!--<div style="width: 365px;">
-                    <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                        <tr class="tr_title_warning">
-                            <td colspan="9" style="font-size: 18px; color:white;" id="TOP6">三车间本烧出窑统计</td>
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height: 30px;">
-                            <td style="font-size: 18px; width: 10%">三车间产量合计</td>
-                            <td id="pd1" style="font-size: 18px; width: 10%">0</td>
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height: 30px;">
-                            <td style="font-size: 18px; width: 10% ">三车间高压合计</td>
-                            <td id="pd2" style="font-size: 18px; width: 10% ">0</td>
-                        </tr>
-                    </table>
-                </div>-->
-                </div>
-                <div style="width: 400px;height:100%;padding-left:10px;">
-                    <div style="width: 400px;">
-                        <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                            <tr class="tr_title_warning">
-                                <td colspan="9" style="font-size: 18px; color:white;">成检报废缺陷排行</td>
-                            </tr>
-                            <tr class="tr_title_warning">
-                                <!--<td style="font-size: 16px;">排行</td>-->
-                                <td style="font-size: 16px;width:40%">缺陷</td>
-                                <td style="font-size: 16px; width: 25%">数量</td>
-                                <td style="font-size: 16px; width: 35%">占比</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="1dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="1dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="2dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="2dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="3dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="3dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="4dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="4dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="5dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="5dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="6dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="6dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="7dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="7dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <!--<td id="8dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <td id="8dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <!--<tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="9dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="9dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">-->
-                                <!--<td id="10dc" style="font-size: 18px; width: 10%">--</td>-->
-                                <!--<td id="10dn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10nm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10t" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                        </table>
-                    </div>
-                </div>
-                <div style="width: 480px; height: 100%; padding-left: 20px;">
-                    <div style="width: 480px; ">
-                        <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                            <tr class="tr_title_warning">
-                                <td colspan="9" style="font-size: 18px; color:white;">产品缺陷排行</td>
-                            </tr>
-                            <tr class="tr_title_warning">
-                                <!--<td style="font-size: 16px;">排行</td>-->
-                                <td style="font-size: 16px; width: 35%">产品</td>
-                                <td style="font-size: 16px; width: 35%">缺陷</td>
-                                <td style="font-size: 16px; width: 14%">数量</td>
-                                <td style="font-size: 16px; width: 16%">占比</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="1qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="1tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="2qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="2tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="3qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="3tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="4qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="4tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="5qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="5tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="6qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="6tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="7qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="7tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="8qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="8tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <!--<tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="9qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="9tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>
-                            <tr class="tr_bg_light_warning" style="height:35px;">
-                                <td id="10qgc" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10qdn" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10qnm" style="font-size: 18px; width: 10%">--</td>
-                                <td id="10tt" style="font-size: 18px; width: 10%">--</td>
-                            </tr>-->
-                        </table>
-                    </div>
-                </div>
-            </div>
-
-            <!--近7日质量柱图-->
-            <div style="width: 1840px; height: 50%; display: flex; flex-direction: row; padding-top: 0px;">
-                <div style="width: 20%; height: 100%;">
-                    <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
-                        <tr class="tr_title_warning">
-                            <td colspan="9" style="font-size: 18px; color:white;" id="TOP6">高压型号本烧统计</td>
-                        </tr>
-                        <tr class="tr_title_warning">
-                            <td style="font-size: 16px;">型号</td>
-                            <td style="font-size: 16px;">检验</td>
-                            <td style="font-size: 16px;">合格</td>
-                            <!--<td style="font-size: 16px;">合格率</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="1gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="1cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="1gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="1gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="2gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="2cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="2gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="2gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="3gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="3cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="3gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="3gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="4gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="4cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="4gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="4gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="5gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="5cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="5gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="5gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="6gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="6cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="6gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="6gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="7gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="7cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="7gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="7gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td id="8gc" style="font-size: 15px; width: 10%">--</td>
-                            <td id="8cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="8gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="8gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                        <tr class="tr_bg_light_warning" style="height:30px;">
-                            <td style="font-size: 15px; width: 10%">合计</td>
-                            <td id="cn" style="font-size: 15px; width: 10%">--</td>
-                            <td id="gn" style="font-size: 15px; width: 10%">--</td>
-                            <!--<td id="gp" style="font-size: 15px; width: 10%">--</td>-->
-                        </tr>
-                    </table>
-                </div>
-                <div style="width: 40%; height: 80%; padding-left: 10px;padding-top:80px;">
-                    <div style="color:white;font-size:20px;font-weight:600; text-align:center">近7日产量统计柱图</div>
-                    <canvas id="canvasDayZL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 100%; width: 100%"></canvas>
-                </div>
-                <div style="width: 40%; height: 80%; padding-left: 10px;padding-top:80px;">
-                    <div style="color:white;font-size:20px;font-weight:600; text-align:center">近7日质量统计柱图</div>
-                    <canvas id="canvasDayZL2" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 100%; width: 100%"></canvas>
-                </div>
-            </div>
-        </div>
-    </div>
-
-    <script>
-
-        var refreshTime1 = 80000;
-        var currentTime1 = 0;
-
-        var doGetData;
-        var doGetTime;
-
-        $(document).ready(function () {
-            initData();
-            clearData();
-            doGetData = setInterval(function () { timeUpdate(); }, 1000);
-
-        });
-
-        function clearData() {
-            //清除数据
-            //window.DayZL.data.datasets[0].data = [0, 0, 0, 0, 0, 0, 0,0];
-            //window.DayZL.data.datasets[1].data = [0, 0, 0, 0, 0, 0, 0,0];
-            //window.DayZL.update();
-        }
-
-        function timeUpdate() {
-
-            if (currentTime1 <= 0) {
-                //clearData();
-                setTimeout(loadData(), 1000);
-                //loadData();
-                currentTime1 = refreshTime1;
-            }
-            else {
-                if (currentTime1 > 0) {
-                    $('#报表加载').html('刷新:' + currentTime1 / 1000 + ' 秒');
-                    currentTime1 = currentTime1 - 1000;
-                }
-            }
-        }
-
-        //帮助说明
-        function showHelp() {
-            var message = "统计说明:" + "\n";
-            message += "缺陷排行统计:" + "\n";
-            message += "缺陷排行TOP8对应的位置TOP3:" + "\n";
-            message += "限制条件为(SK3或TK3)且(C**A**):" + "\n";
-            message += "本烧质量统计:" + "\n";
-            message += "本烧质量=(本烧出窑数-本烧次品-本烧重烧)/本烧出窑数;" + "\n";
-            message += "本烧出窑取值为3#成检交接的首检以及7-1成检出窑交接;" + "\n";
-            message += "本烧次品重烧取值为3#质量登记以及8-2重烧质量登记;" + "\n";
-            message += "限制条件为(SK3或TK3)且(C**A**);" + "\n";
-            message += "整体质量统计:" + "\n";
-            message += "综合合格率={(本烧出窑数+重烧出窑数)-(本烧次品+重烧次品+本烧重烧品+重烧重烧品+损坯)}/本烧出窑数;" + "\n";
-            message += "综合出窑取值为3#成检交接的首检以及7-1成检出窑交接以及7-2重烧出窑交接;" + "\n";
-            message += "综合次品重烧取值为3#质量登记的以及8-1质量登记以及8-2重烧质量登记;" + "\n";
-            message += "综合损坯取值为3#质量登记(重烧)以及8-2重烧质量登记;" + "\n";
-            message += "限制条件为(SK3或TK3)且(C**A**);" + "\n";
-            alert(message);
-        }
-        function loadData() {
-
-            $.get("rpt.ashx?m=defect", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var i = 0; i < json["rows"].length; i++) {
-                        for (var j = 1; j < 7; j++) {
-                            for (var k = 1; k < 5; k++) {
-                                if (json["rows"][i]["缺陷排行"] + '' == 'TOP' + j.toString() && json["rows"][i]["位置排行"] + '' == 'TOP' + k.toString()) {
-                                    if (json["rows"][i]["位置排行"] + '' == 'TOP1') {
-                                        $('#TOP' + j.toString()).text(json["rows"][i]["缺陷名称"] + '#' + j.toString());
-                                    }
-                                    //$('#dn' + j.toString() + k.toString()).text(json["rows"][i]["缺陷名称"]);
-                                    $('#dp' + j.toString() + k.toString()).text(json["rows"][i]["缺陷位置"]);
-                                    $('#n' + j.toString() + k.toString()).text(json["rows"][i]["数量"]);
-                                    $('#pt' + j.toString() + k.toString()).text(json["rows"][i]["占比"]);
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-
-            $.get("rpt.ashx?m=scrap", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var n = 1; n < json.rows.length + 1; n++) {
-                        $('#' + n.toString() + 'dc').text('TOP' + json["rows"][n-1]["RN"]);
-                        $('#' + n.toString() + 'dn').text(json["rows"][n-1]["DN"]);
-                        $('#' + n.toString() + 'nm').text(json["rows"][n-1]["NM"]);
-                        $('#' + n.toString() + 't').text(json["rows"][n - 1]["PERCENTAGE"]);
-                    }
-                }
-            });
-
-            $.get("rpt.ashx?m=goodsdefect", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var n = 1; n < json.rows.length + 1; n++) {
-                        $('#' + n.toString() + 'qgc').text(json["rows"][n-1]["GOODSCODE"]);
-                        $('#' + n.toString() + 'qdn').text(json["rows"][n-1]["DEFECTNAME"]);
-                        $('#' + n.toString() + 'qnm').text(json["rows"][n-1]["NUM"]);
-                        $('#' + n.toString() + 'tt').text(json["rows"][n - 1]["PERCENTAGE"]);
-                    }
-                }
-            });
-
-            $.get("rpt.ashx?m=officedefect", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var n = 1; n < json.rows.length + 1; n++) {
-                        $('#' + n.toString() + 'class').text(json["rows"][n - 1]["OFFICENAME"]);
-                        $('#' + n.toString() + 'classnm').text(json["rows"][n-1]["NUM"]);
-                        $('#' + n.toString() + 'pt').text(json["rows"][n - 1]["PERCENTAGE"]);
-                    }
-                }
-            });
-
-            $.get("rpt.ashx?m=high", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var n = 0; n < json.rows.length; n++) {
-                        $('#cn').text(json["rows"][0]["N1"]);
-                        $('#gn').text(json["rows"][0]["N2"]);
-                        $('#gp').text(json["rows"][0]["GP"]);
-                        $('#' + (n + 1).toString() + 'gc').text(json["rows"][n+1]["GOODSCODE"]);
-                        $('#' + (n + 1).toString() + 'cn').text(json["rows"][n+1]["N1"]);
-                        $('#' + (n + 1).toString() + 'gn').text(json["rows"][n+1]["N2"]);
-                        $('#' + (n + 1).toString() + 'gp').text(json["rows"][n+1]["GP"]);
-                    }
-                }1
-            });
-
-            $.get("rpt.ashx?m=nm", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                        $('#pd1').text(json["rows"][0]["NUM2"]);
-                        $('#pd2').text(json["rows"][0]["NUM1"]);
-                }
-            });
-
-            $.get("rpt.ashx?m=count", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var n = 0; n < json.rows.length; n++) {
-                        window.DayZL.data.labels[n] = (json["rows"][n]["SJ"]);
-                        window.DayZL.data.datasets[0].data[n] = (json["rows"][n]["NUM1"]);
-                        window.DayZL.data.datasets[1].data[n] = (json["rows"][n]["NUM3"]);
-                    }
-                    window.DayZL.update();
-                }
-            });
-
-            $.get("rpt.ashx?m=pass", function (data) {
-                var json = JSON.parse(data);
-                if (json["success"] == true) {
-                    for (var n = 0; n < json.rows.length; n++) {
-                        window.DayZL2.data.labels[n] = (json["rows"][n]["SJ"]);
-                        window.DayZL2.data.datasets[0].data[n] = (json["rows"][n]["本烧"]);
-                        window.DayZL2.data.datasets[1].data[n] = (json["rows"][n]["整体"]);
-                    }
-                    window.DayZL2.update();
-                }
-            });
-
-
-        }
-
-        function initData() {
-            window.chartColors = {
-                red: 'rgb(255, 99, 132)',
-                orange: 'rgb(255, 159, 64)',
-                yellow: 'rgb(255, 250, 86)',
-                green: 'rgb(75, 192, 192)',
-                blue: 'rgb(54, 162, 250)',
-                purple: 'rgb(153, 102, 255)',
-                grey: 'rgb(231,233,237)'
-            };
-
-            var color = Chart.helpers.color;
-
-            window.randomScalingFactor = function (num) {
-                return Math.round(Math.random() * num);
-            }
-
-            Chart.defaults.global.defaultFontColor = 'white';
-            Chart.defaults.global.defaultFontSize = 18;
-            Chart.defaults.global.legend.display = false;
-       
-            //质量统计=========================================
-            window.configDayZL = {
-                data: {
-                    labels: ["01", "02", "03", "04", "05", "06", "07"],
-                    datasets: [
-                        {
-                            label: "近七日本烧出窑数",
-                            fill: false,
-                            backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
-                            borderColor: window.chartColors.blue,
-                            borderWidth: 2,
-                            pointRadius: 15,
-                            data: [0, 0, 0, 0, 0, 0, 0, 0]
-                        }, {
-                            label: "近七日整体出窑数",
-                            fill: false,
-                            backgroundColor: color(window.chartColors.orange).alpha(0.6).rgbString(),
-                            borderColor: window.chartColors.orange,
-                            borderWidth: 2,
-                            pointRadius: 15,
-                            data: [0, 0, 0, 0, 0, 0, 0, 0]
-                        }
-                    ]
-                },
-                type: 'bar',
-                options: {
-                    legend: {
-                        display: true
-                    },
-                    title: {
-                        display: true,
-                        text: ""
-                    },
-                    tooltips: {
-                        mode: 'point',
-                        intersect: false
-                    },
-                    responsive: true,
-                    scales: {
-                        xAxes: [{
-                            stacked: false
-                        }],
-                        yAxes: [{
-                            display: true,
-                            stacked: false,
-                            //ticks: {
-                            //    min: 0,
-                            //    stepSize: 2,
-                            //    max: 18
-                            //}
-                        }]
-                    }
-
-                }
-            };
-            var ctxDayZL = document.getElementById("canvasDayZL").getContext("2d");
-            window.DayZL = new Chart(ctxDayZL, configDayZL);
-            //===================================================
-            //质量统计=========================================
-            window.configDayZL2 = {
-                data: {
-                    labels: ["01", "02", "03", "04", "05", "06", "07"],
-                    datasets: [
-                        {
-                        //label: "近七日本烧合格率",
-                        label: "近七日本烧合格数",
-                        fill: false,
-                        backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
-                        borderColor: window.chartColors.blue,
-                        borderWidth: 2,
-                        pointRadius: 15,
-                            data: [0, 0, 0, 0, 0, 0, 0, 0]
-                    },{
-                        //label: "近七日整体合格率",
-                        label: "近七日整体合格数",
-                        fill: false,
-                        backgroundColor: color(window.chartColors.orange).alpha(0.6).rgbString(),
-                        borderColor: window.chartColors.orange,
-                        borderWidth: 2,
-                        pointRadius: 15,
-                            data: [0, 0, 0, 0, 0, 0, 0, 0]
-                        }
-                    ]
-                },
-                type: 'bar',
-                options: {
-                    legend: {
-                        display: true
-                    },
-                    title: {
-                        display: true,
-                        text: ""
-                    },
-                    tooltips: {
-                        mode: 'point',
-                        intersect: false
-                    },
-                    responsive: true,
-                    scales: {
-                        xAxes: [{
-                            stacked: false
-                        }],
-                        yAxes: [{
-                            display: true,
-                            stacked: false,
-                            //ticks: {
-                            //    min: 0,
-                            //    stepSize: 2,
-                            //    max: 18
-                            //}
-                        }]
-                    }
-
-                }
-            };
-            var ctxDayZL2 = document.getElementById("canvasDayZL2").getContext("2d");
-            window.DayZL2 = new Chart(ctxDayZL2, configDayZL2);
-            //===================================================
-        }
-
-
-
-    </script>
-
-    <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
-    <script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>
-    <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
-    <script src="/Plugins/circleChart/circleChart.min.js"></script>
+	<div class="box_1920_1080">
+		<!--<div class="box_title" onclick="showHelp()" style="cursor:pointer">
+			次品区看板&nbsp;&nbsp;<span class="box_title_arrow">>>></span><span class="box_title_loading" id="报表加载"></span>
+		</div>-->
+		<div class="box_title" style="display:flex;flex-direction:row;">
+			<div style="width:30%;text-align:left;"></div>
+			<div style="width: 40%; text-align: center; font-size: 38px; font-weight: 700">次品区看板</div>
+			<div style="width:30%;text-align:right;"><span class="box_title_loading" style="font-size:32px;display:none;" id="报表加载"></span></div>
+		</div>
+		<div class="box_body" style="display: flex; flex-direction: column;">
+			<div style="width:1840px;height:50%;display:flex;flex-direction:row;">
+				<!--缺陷1-4-->
+				<div style="width: 560px;height:100%;">
+					<div style="width:560px;height:50%;display:flex;flex-direction:row;">
+						<div style="width: 33%; height: 25%;">
+							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+								<tr class="tr_title_warning">
+									<td colspan="9" style="font-size: 18px; color:white;" id="TOP1">缺陷TOP1(位置TOP3)</td>
+								</tr>
+								<tr class="tr_title_warning">
+									<!--<td>缺陷名称</td>-->
+									<td style="font-size: 16px;">缺陷位置</td>
+									<td style="font-size: 16px;">数量</td>
+									<!--<td style="font-size: 16px;">占比</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn11" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp11" style="font-size: 18px; width: 10%">--</td>
+									<td id="n11" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt11" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn12" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp12" style="font-size: 18px; width: 10%">--</td>
+									<td id="n12" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt12" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn13" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp13" style="font-size: 18px; width: 10%">--</td>
+									<td id="n13" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt13" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+								<!--<td id="dn14" style="font-size: 18px; width: 10%">--</td>-->
+								<!--<td id="dp14" style="font-size: 18px; width: 10%">--</td>
+									<td id="n14" style="font-size: 18px; width: 10%">--</td>
+									<td id="pt14" style="font-size: 18px; width: 10%">--</td>
+								</tr>-->
+							</table>
+						</div>
+						<div style="width: 33%; height: 25%;">
+							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+								<tr class="tr_title_warning">
+									<td colspan="9" style="font-size: 18px; color:white;" id="TOP2">缺陷TOP2(位置TOP3)</td>
+								</tr>
+								<tr class="tr_title_warning">
+									<!--<td>缺陷名称</td>-->
+									<td style="font-size: 16px;">缺陷位置</td>
+									<td style="font-size: 16px;">数量</td>
+									<!--<td style="font-size: 16px;">占比</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn21" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp21" style="font-size: 18px; width: 10%">--</td>
+									<td id="n21" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt21" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn22" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp22" style="font-size: 18px; width: 10%">--</td>
+									<td id="n22" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt22" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn23" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp23" style="font-size: 18px; width: 10%">--</td>
+									<td id="n23" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt23" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+								<!--<td id="dn24" style="font-size: 18px; width: 10%">--</td>-->
+								<!--<td id="dp24" style="font-size: 18px; width: 10%">--</td>
+									<td id="n24" style="font-size: 18px; width: 10%">--</td>
+									<td id="pt24" style="font-size: 18px; width: 10%">--</td>
+								</tr>-->
+							</table>
+						</div>
+						<div style="width: 33%; height: 25%;">
+							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+								<tr class="tr_title_warning">
+									<td colspan="9" style="font-size: 18px; color:white;" id="TOP3">缺陷TOP3(位置TOP3)</td>
+								</tr>
+								<tr class="tr_title_warning">
+									<!--<td>缺陷名称</td>-->
+									<td style="font-size: 16px;">缺陷位置</td>
+									<td style="font-size: 16px;">数量</td>
+									<!--<td style="font-size: 16px;">占比</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn31" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp31" style="font-size: 18px; width: 10%">--</td>
+									<td id="n31" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt31" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn32" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp32" style="font-size: 18px; width: 10%">--</td>
+									<td id="n32" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt32" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn33" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp33" style="font-size: 18px; width: 10%">--</td>
+									<td id="n33" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt33" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+								<!--<td id="dn34" style="font-size: 18px; width: 10%">--</td>-->
+								<!--<td id="dp34" style="font-size: 18px; width: 10%">--</td>
+									<td id="n34" style="font-size: 18px; width: 10%">--</td>
+									<td id="pt34" style="font-size: 18px; width: 10%">--</td>
+								</tr>-->
+							</table>
+						</div>
+					</div>
+
+					<!--缺陷5-8-->
+					<div style="width: 560px; height: 50%; display: flex; flex-direction: row;padding-top:0px">
+						<div style="width: 33%; height: 25%;">
+							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+								<tr class="tr_title_warning">
+									<td colspan="9" style="font-size: 18px; color:white;" id="TOP4">缺陷TOP4(位置TOP3)</td>
+								</tr>
+								<tr class="tr_title_warning">
+									<!--<td>缺陷名称</td>-->
+									<td style="font-size: 16px;">缺陷位置</td>
+									<td style="font-size: 16px;">数量</td>
+									<!--<td style="font-size: 16px;">占比</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn41" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp41" style="font-size: 18px; width: 10%">--</td>
+									<td id="n41" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt41" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn42" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp42" style="font-size: 18px; width: 10%">--</td>
+									<td id="n42" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt42" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn43" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp43" style="font-size: 18px; width: 10%">--</td>
+									<td id="n43" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt43" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+								<!--<td id="dn44" style="font-size: 18px; width: 10%">--</td>-->
+								<!--<td id="dp44" style="font-size: 18px; width: 10%">--</td>
+									<td id="n44" style="font-size: 18px; width: 10%">--</td>
+									<td id="pt44" style="font-size: 18px; width: 10%">--</td>
+								</tr>-->
+							</table>
+						</div>
+						<div style="width: 33%; height: 25%;">
+							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+								<tr class="tr_title_warning">
+									<td colspan="9" style="font-size: 18px; color:white;" id="TOP5">缺陷TOP5(位置TOP3)</td>
+								</tr>
+								<tr class="tr_title_warning">
+									<!--<td>缺陷名称</td>-->
+									<td style="font-size: 16px;">缺陷位置</td>
+									<td style="font-size: 16px;">数量</td>
+									<!--<td style="font-size: 16px;">占比</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn51" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp51" style="font-size: 18px; width: 10%">--</td>
+									<td id="n51" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt51" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn52" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp52" style="font-size: 18px; width: 10%">--</td>
+									<td id="n52" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt52" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn53" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp53" style="font-size: 18px; width: 10%">--</td>
+									<td id="n53" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt53" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+								<!--<td id="dn54" style="font-size: 18px; width: 10%">--</td>-->
+								<!--<td id="dp54" style="font-size: 18px; width: 10%">--</td>
+									<td id="n54" style="font-size: 18px; width: 10%">--</td>
+									<td id="pt54" style="font-size: 18px; width: 10%">--</td>
+								</tr>-->
+							</table>
+						</div>
+						<div style="width: 33%; height: 25%;">
+							<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+								<tr class="tr_title_warning">
+									<td colspan="9" style="font-size: 18px; color:white;" id="TOP6">缺陷TOP6(位置TOP3)</td>
+								</tr>
+								<tr class="tr_title_warning">
+									<!--<td>缺陷名称</td>-->
+									<td style="font-size: 16px;">缺陷位置</td>
+									<td style="font-size: 16px;">数量</td>
+									<!--<td style="font-size: 16px;">占比</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn61" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp61" style="font-size: 18px; width: 10%">--</td>
+									<td id="n61" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt61" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn62" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp62" style="font-size: 18px; width: 10%">--</td>
+									<td id="n62" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt62" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<tr class="tr_bg_light_warning" style="height:35px;">
+									<!--<td id="dn63" style="font-size: 18px; width: 10%">--</td>-->
+									<td id="dp63" style="font-size: 18px; width: 10%">--</td>
+									<td id="n63" style="font-size: 18px; width: 10%">--</td>
+									<!--<td id="pt63" style="font-size: 18px; width: 10%">--</td>-->
+								</tr>
+								<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+								<!--<td id="dn64" style="font-size: 18px; width: 10%">--</td>-->
+								<!--<td id="dp64" style="font-size: 18px; width: 10%">--</td>
+									<td id="n64" style="font-size: 18px; width: 10%">--</td>
+									<td id="pt64" style="font-size: 18px; width: 10%">--</td>
+								</tr>-->
+							</table>
+						</div>
+					</div>
+				</div>
+				<div style="width: 360px; height: 100%">
+					<div style="width: 360px;">
+						<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+							<tr class="tr_title_warning">
+								<td colspan="9" style="font-size: 18px; color:white;">科室产品缺陷统计</td>
+							</tr>
+							<tr class="tr_title_warning">
+								<!--<td style="font-size: 16px;">排行</td>-->
+								<td style="font-size: 16px; width: 40%">科室</td>
+								<td style="font-size: 16px; width: 25%">数量</td>
+								<td style="font-size: 16px; width: 35%">占比</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="1dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="1class" style="font-size: 18px; width: 10%">--</td>
+								<td id="1classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="1pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="2dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="2class" style="font-size: 18px; width: 10%">--</td>
+								<td id="2classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="2pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="3dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="3class" style="font-size: 18px; width: 10%">--</td>
+								<td id="3classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="3pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="4dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="4class" style="font-size: 18px; width: 10%">--</td>
+								<td id="4classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="4pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="5dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="5class" style="font-size: 18px; width: 10%">--</td>
+								<td id="5classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="5pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="6dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="6class" style="font-size: 18px; width: 10%">--</td>
+								<td id="6classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="6pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="7dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="7class" style="font-size: 18px; width: 10%">--</td>
+								<td id="7classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="7pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="8dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="8class" style="font-size: 18px; width: 10%">--</td>
+								<td id="8classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="8pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+							<!--<td id="9dc" style="font-size: 18px; width: 10%">--</td>-->
+							<!--<td id="9class" style="font-size: 18px; width: 10%">--</td>
+								<td id="9classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="9pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">-->
+							<!--<td id="10dc" style="font-size: 18px; width: 10%">--</td>-->
+							<!--<td id="10class" style="font-size: 18px; width: 10%">--</td>
+								<td id="10classnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="10pt" style="font-size: 18px; width: 10%">--</td>
+							</tr>-->
+						</table>
+					</div>
+					<!--<div style="width: 365px;">
+						<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+							<tr class="tr_title_warning">
+								<td colspan="9" style="font-size: 18px; color:white;" id="TOP6">三车间本烧出窑统计</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height: 30px;">
+								<td style="font-size: 18px; width: 10%">三车间产量合计</td>
+								<td id="pd1" style="font-size: 18px; width: 10%">0</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height: 30px;">
+								<td style="font-size: 18px; width: 10% ">三车间高压合计</td>
+								<td id="pd2" style="font-size: 18px; width: 10% ">0</td>
+							</tr>
+						</table>
+					</div>-->
+				</div>
+				<div style="width: 400px;height:100%;padding-left:10px;">
+					<div style="width: 400px;">
+						<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+							<tr class="tr_title_warning">
+								<td colspan="9" style="font-size: 18px; color:white;">成检报废缺陷排行</td>
+							</tr>
+							<tr class="tr_title_warning">
+								<!--<td style="font-size: 16px;">排行</td>-->
+								<td style="font-size: 16px;width:40%">缺陷</td>
+								<td style="font-size: 16px; width: 25%">数量</td>
+								<td style="font-size: 16px; width: 35%">占比</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="1dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="1dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="1nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="1t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="2dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="2dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="2nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="2t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="3dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="3dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="3nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="3t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="4dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="4dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="4nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="4t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="5dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="5dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="5nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="5t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="6dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="6dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="6nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="6t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="7dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="7dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="7nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="7t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<!--<td id="8dc" style="font-size: 18px; width: 10%">--</td>-->
+								<td id="8dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="8nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="8t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<!--<tr class="tr_bg_light_warning" style="height:35px;">-->
+							<!--<td id="9dc" style="font-size: 18px; width: 10%">--</td>-->
+							<!--<td id="9dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="9nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="9t" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">-->
+							<!--<td id="10dc" style="font-size: 18px; width: 10%">--</td>-->
+							<!--<td id="10dn" style="font-size: 18px; width: 10%">--</td>
+								<td id="10nm" style="font-size: 18px; width: 10%">--</td>
+								<td id="10t" style="font-size: 18px; width: 10%">--</td>
+							</tr>-->
+						</table>
+					</div>
+				</div>
+				<div style="width: 480px; height: 100%; padding-left: 20px;">
+					<div style="width: 480px; ">
+						<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+							<tr class="tr_title_warning">
+								<td colspan="9" style="font-size: 18px; color:white;">产品缺陷排行</td>
+							</tr>
+							<tr class="tr_title_warning">
+								<!--<td style="font-size: 16px;">排行</td>-->
+								<td style="font-size: 16px; width: 35%">产品</td>
+								<td style="font-size: 16px; width: 35%">缺陷</td>
+								<td style="font-size: 16px; width: 14%">数量</td>
+								<td style="font-size: 16px; width: 16%">占比</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="1qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="1qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="1qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="1tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="2qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="2qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="2qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="2tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="3qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="3qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="3qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="3tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="4qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="4qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="4qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="4tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="5qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="5qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="5qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="5tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="6qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="6qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="6qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="6tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="7qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="7qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="7qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="7tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="8qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="8qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="8qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="8tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<!--<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="9qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="9qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="9qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="9tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>
+							<tr class="tr_bg_light_warning" style="height:35px;">
+								<td id="10qgc" style="font-size: 18px; width: 10%">--</td>
+								<td id="10qdn" style="font-size: 18px; width: 10%">--</td>
+								<td id="10qnm" style="font-size: 18px; width: 10%">--</td>
+								<td id="10tt" style="font-size: 18px; width: 10%">--</td>
+							</tr>-->
+						</table>
+					</div>
+				</div>
+			</div>
+
+			<!--近7日质量柱图-->
+			<div style="width: 1840px; height: 50%; display: flex; flex-direction: row; padding-top: 0px;">
+				<div style="width: 20%; height: 100%;">
+					<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
+						<tr class="tr_title_warning">
+							<td colspan="9" style="font-size: 18px; color:white;" id="TOP6">高压型号本烧统计</td>
+						</tr>
+						<tr class="tr_title_warning">
+							<td style="font-size: 16px;">型号</td>
+							<td style="font-size: 16px;">检验</td>
+							<td style="font-size: 16px;">合格</td>
+							<!--<td style="font-size: 16px;">合格率</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="1gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="1cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="1gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="1gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="2gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="2cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="2gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="2gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="3gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="3cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="3gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="3gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="4gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="4cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="4gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="4gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="5gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="5cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="5gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="5gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="6gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="6cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="6gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="6gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="7gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="7cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="7gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="7gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td id="8gc" style="font-size: 15px; width: 10%">--</td>
+							<td id="8cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="8gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="8gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+						<tr class="tr_bg_light_warning" style="height:30px;">
+							<td style="font-size: 15px; width: 10%">合计</td>
+							<td id="cn" style="font-size: 15px; width: 10%">--</td>
+							<td id="gn" style="font-size: 15px; width: 10%">--</td>
+							<!--<td id="gp" style="font-size: 15px; width: 10%">--</td>-->
+						</tr>
+					</table>
+				</div>
+				<div style="width: 40%; height: 80%; padding-left: 10px;padding-top:80px;">
+					<div style="color:white;font-size:20px;font-weight:600; text-align:center">近7日产量统计柱图</div>
+					<canvas id="canvasDayZL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 100%; width: 100%"></canvas>
+				</div>
+				<div style="width: 40%; height: 80%; padding-left: 10px; padding-top: 80px;">
+					<div style="color:white;font-size:20px;font-weight:600; text-align:center">近7日质量统百分比折线图</div>
+					<canvas id="canvasDayZL2" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 100%; width: 100%"></canvas>
+				</div>
+			</div>
+		</div>
+	</div>
+
+	<script>
+
+		var refreshTime1 = 80000;
+		var currentTime1 = 0;
+
+		var doGetData;
+		var doGetTime;
+
+		$(document).ready(function () {
+			initData();
+			clearData();
+			doGetData = setInterval(function () { timeUpdate(); }, 1000);
+
+		});
+
+		function clearData() {
+			//清除数据
+			//window.DayZL.data.datasets[0].data = [0, 0, 0, 0, 0, 0, 0,0];
+			//window.DayZL.data.datasets[1].data = [0, 0, 0, 0, 0, 0, 0,0];
+			//window.DayZL.update();
+		}
+
+		function timeUpdate() {
+
+			if (currentTime1 <= 0) {
+				//clearData();
+				setTimeout(loadData(), 1000);
+				//loadData();
+				currentTime1 = refreshTime1;
+			}
+			else {
+				if (currentTime1 > 0) {
+					$('#报表加载').html('刷新:' + currentTime1 / 1000 + ' 秒');
+					currentTime1 = currentTime1 - 1000;
+				}
+			}
+		}
+
+		//帮助说明
+		function showHelp() {
+			var message = "统计说明:" + "\n";
+			message += "缺陷排行统计:" + "\n";
+			message += "缺陷排行TOP8对应的位置TOP3:" + "\n";
+			message += "限制条件为(SK3或TK3)且(C**A**):" + "\n";
+			message += "本烧质量统计:" + "\n";
+			message += "本烧质量=(本烧出窑数-本烧次品-本烧重烧)/本烧出窑数;" + "\n";
+			message += "本烧出窑取值为3#成检交接的首检以及7-1成检出窑交接;" + "\n";
+			message += "本烧次品重烧取值为3#质量登记以及8-2重烧质量登记;" + "\n";
+			message += "限制条件为(SK3或TK3)且(C**A**);" + "\n";
+			message += "整体质量统计:" + "\n";
+			message += "综合合格率={(本烧出窑数+重烧出窑数)-(本烧次品+重烧次品+本烧重烧品+重烧重烧品+损坯)}/本烧出窑数;" + "\n";
+			message += "综合出窑取值为3#成检交接的首检以及7-1成检出窑交接以及7-2重烧出窑交接;" + "\n";
+			message += "综合次品重烧取值为3#质量登记的以及8-1质量登记以及8-2重烧质量登记;" + "\n";
+			message += "综合损坯取值为3#质量登记(重烧)以及8-2重烧质量登记;" + "\n";
+			message += "限制条件为(SK3或TK3)且(C**A**);" + "\n";
+			alert(message);
+		}
+		function loadData() {
+
+			$.get("rpt.ashx?m=defect", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var i = 0; i < json["rows"].length; i++) {
+						for (var j = 1; j < 7; j++) {
+							for (var k = 1; k < 5; k++) {
+								if (json["rows"][i]["缺陷排行"] + '' == 'TOP' + j.toString() && json["rows"][i]["位置排行"] + '' == 'TOP' + k.toString()) {
+									if (json["rows"][i]["位置排行"] + '' == 'TOP1') {
+										$('#TOP' + j.toString()).text(json["rows"][i]["缺陷名称"] + '#' + j.toString());
+									}
+									//$('#dn' + j.toString() + k.toString()).text(json["rows"][i]["缺陷名称"]);
+									$('#dp' + j.toString() + k.toString()).text(json["rows"][i]["缺陷位置"]);
+									$('#n' + j.toString() + k.toString()).text(json["rows"][i]["数量"]);
+									$('#pt' + j.toString() + k.toString()).text(json["rows"][i]["占比"]);
+								}
+							}
+						}
+					}
+				}
+			});
+
+			$.get("rpt.ashx?m=scrap", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var n = 1; n < json.rows.length + 1; n++) {
+						$('#' + n.toString() + 'dc').text('TOP' + json["rows"][n - 1]["RN"]);
+						$('#' + n.toString() + 'dn').text(json["rows"][n - 1]["DN"]);
+						$('#' + n.toString() + 'nm').text(json["rows"][n - 1]["NM"]);
+						$('#' + n.toString() + 't').text(json["rows"][n - 1]["PERCENTAGE"]);
+					}
+				}
+			});
+
+			$.get("rpt.ashx?m=goodsdefect", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var n = 1; n < json.rows.length + 1; n++) {
+						$('#' + n.toString() + 'qgc').text(json["rows"][n - 1]["GOODSCODE"]);
+						$('#' + n.toString() + 'qdn').text(json["rows"][n - 1]["DEFECTNAME"]);
+						$('#' + n.toString() + 'qnm').text(json["rows"][n - 1]["NUM"]);
+						$('#' + n.toString() + 'tt').text(json["rows"][n - 1]["PERCENTAGE"]);
+					}
+				}
+			});
+
+			$.get("rpt.ashx?m=officedefect", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var n = 1; n < json.rows.length + 1; n++) {
+						$('#' + n.toString() + 'class').text(json["rows"][n - 1]["OFFICENAME"]);
+						$('#' + n.toString() + 'classnm').text(json["rows"][n - 1]["NUM"]);
+						$('#' + n.toString() + 'pt').text(json["rows"][n - 1]["PERCENTAGE"]);
+					}
+				}
+			});
+
+			$.get("rpt.ashx?m=high", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var n = 0; n < json.rows.length; n++) {
+						$('#cn').text(json["rows"][0]["N1"]);
+						$('#gn').text(json["rows"][0]["N2"]);
+						$('#gp').text(json["rows"][0]["GP"]);
+						$('#' + (n + 1).toString() + 'gc').text(json["rows"][n + 1]["GOODSCODE"]);
+						$('#' + (n + 1).toString() + 'cn').text(json["rows"][n + 1]["N1"]);
+						$('#' + (n + 1).toString() + 'gn').text(json["rows"][n + 1]["N2"]);
+						$('#' + (n + 1).toString() + 'gp').text(json["rows"][n + 1]["GP"]);
+					}
+				} 1
+			});
+
+			$.get("rpt.ashx?m=nm", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					$('#pd1').text(json["rows"][0]["NUM2"]);
+					$('#pd2').text(json["rows"][0]["NUM1"]);
+				}
+			});
+
+			$.get("rpt.ashx?m=count", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var n = 0; n < json.rows.length; n++) {
+						window.DayZL.data.labels[n] = (json["rows"][n]["SJ"]);
+						window.DayZL.data.datasets[0].data[n] = (json["rows"][n]["NUM1"]);
+						window.DayZL.data.datasets[1].data[n] = (json["rows"][n]["NUM3"]);
+					}
+					window.DayZL.update();
+				}
+			});
+
+			$.get("rpt.ashx?m=pass", function (data) {
+				var json = JSON.parse(data);
+				if (json["success"] == true) {
+					for (var n = 0; n < json.rows.length; n++) {
+						window.DayZL2.data.labels.push(json["rows"][n]["SJ"]);
+						window.DayZL2.data.datasets[0].data[n] = (json["rows"][n]["合格本烧"]);
+						window.DayZL2.data.datasets[1].data[n] = (json["rows"][n]["合格整体"]);
+					}
+					window.DayZL2.update();
+				}
+			});
+
+
+		}
+
+		function initData() {
+			window.chartColors = {
+				red: 'rgb(255, 99, 132)',
+				orange: 'rgb(255, 159, 64)',
+				yellow: 'rgb(255, 250, 86)',
+				green: 'rgb(75, 192, 192)',
+				blue: 'rgb(54, 162, 250)',
+				purple: 'rgb(153, 102, 255)',
+				grey: 'rgb(231,233,237)'
+			};
+
+			var color = Chart.helpers.color;
+
+			window.randomScalingFactor = function (num) {
+				return Math.round(Math.random() * num);
+			}
+
+			Chart.defaults.global.defaultFontColor = 'white';
+			Chart.defaults.global.defaultFontSize = 18;
+			Chart.defaults.global.legend.display = false;
+
+			//质量统计=========================================
+			window.configDayZL = {
+				data: {
+					labels: ["01", "02", "03", "04", "05", "06", "07"],
+					datasets: [
+						{
+							label: "近七日本烧出窑数",
+							fill: false,
+							backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
+							borderColor: window.chartColors.blue,
+							borderWidth: 2,
+							pointRadius: 15,
+							data: [0, 0, 0, 0, 0, 0, 0, 0]
+						}, {
+							label: "近七日整体出窑数",
+							fill: false,
+							backgroundColor: color(window.chartColors.orange).alpha(0.6).rgbString(),
+							borderColor: window.chartColors.orange,
+							borderWidth: 2,
+							pointRadius: 15,
+							data: [0, 0, 0, 0, 0, 0, 0, 0]
+						}
+					]
+				},
+				type: 'bar',
+				options: {
+					legend: {
+						display: true
+					},
+					title: {
+						display: true,
+						text: ""
+					},
+					tooltips: {
+						mode: 'point',
+						intersect: false
+					},
+					responsive: true,
+					scales: {
+						xAxes: [{
+							stacked: false
+						}],
+						yAxes: [{
+							display: true,
+							stacked: false,
+							//ticks: {
+							//    min: 0,
+							//    stepSize: 2,
+							//    max: 18
+							//}
+						}]
+					}
+
+				}
+			};
+			var ctxDayZL = document.getElementById("canvasDayZL").getContext("2d");
+			window.DayZL = new Chart(ctxDayZL, configDayZL);
+			//===================================================
+			//质量统计=========================================
+			window.configDayZL2 = {
+				data: {
+					labels: [],
+					datasets: [{
+						label: "本烧合格率:%",
+						fill: false,
+						backgroundColor: color(window.chartColors.red).alpha(0.6).rgbString(),
+						borderColor: window.chartColors.red,
+						data: [],
+						borderWidth: 2,
+						pointRadius: 15,
+
+					}, {
+						label: "整体合格率:%",
+						fill: false,
+						backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
+						borderColor: window.chartColors.blue,
+						borderWidth: 2,
+						data: [],
+						pointRadius: 15,
+					}]
+				},
+				type: 'line',
+				options: {
+					legend: {
+						display: true
+					},
+					title: {
+						display: true,
+						text: ""
+					},
+					tooltips: {
+						mode: 'point',
+						intersect: false
+					},
+					responsive: true,
+					scales: {
+						xAxes: [{
+							stacked: false
+						}],
+						yAxes: [{
+							display: true,
+							stacked: false,
+						}]
+					}
+
+				}
+			};
+			var ctxDayZL2 = document.getElementById("canvasDayZL2").getContext("2d");
+			window.DayZL2 = new Chart(ctxDayZL2, configDayZL2);
+			//===================================================
+		}
+
+
+
+	</script>
+
+	<script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
+	<script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>
+	<script src="/Plugins/chartjs-2.8.0/utils.js"></script>
+	<script src="/Plugins/circleChart/circleChart.min.js"></script>
 </body>
 </html>

+ 140 - 41
wwwroot/main/Procedure/test5/rpt.ashx

@@ -212,48 +212,147 @@ public class rpt : IHttpHandler, IReadOnlySessionState
             }
             else if (context.Request["m"].ToString() == "pass")
             {
-                string sqlStr = @"
-				SELECT
-					SJ,
--- 					ROUND( ( NUM1 - NUM2 ) / DECODE( NUM1, 0, 1, NUM1 )*100, 1 ) AS 本烧,
--- 					ROUND( ( NUM3 - NUM4 ) / DECODE( NUM1, 0, 1, NUM1 )*100, 1 ) AS 整体 
-					NUM1 - NUM2  AS 本烧,
-					NUM3 - NUM4  AS 整体 
-				FROM
-					(
+                //                string sqlStr = @"
+                //				SELECT
+                //					SJ,
+                //-- 					ROUND( ( NUM1 - NUM2 ) / DECODE( NUM1, 0, 1, NUM1 )*100, 1 ) AS 本烧,
+                //-- 					ROUND( ( NUM3 - NUM4 ) / DECODE( NUM1, 0, 1, NUM1 )*100, 1 ) AS 整体 
+                //					NUM1 - NUM2  AS 本烧,
+                //					NUM3 - NUM4  AS 整体 
+                //				FROM
+                //					(
+                //					SELECT
+                //						TO_CHAR( TRUNC( CREATETIME - 7/24 ), 'YY-MM-DD' ) AS SJ,
+                //						-- SUM( CASE WHEN ( PROCEDUREID = 104 AND ISREFIRE = 0 AND CHECKFLAG = 1 OR PROCEDUREID = 11 AND VALUEFLAG = 1  OR PROCEDUREID = 58 AND VALUEFLAG = 1 ) THEN 1 ELSE 0 END ) AS NUM1,
+                //						SUM( CASE WHEN PROCEDUREID = 104 AND ISREFIRE = 0 AND CHECKFLAG = 1  THEN 1 ELSE 0 END ) AS NUM1,
+                //						SUM(
+                //						CASE
+
+                //								WHEN 
+                //								 ( PROCEDUREID = 105 AND ISREFIRE = 0 OR PROCEDUREID = 12 )
+                //								 -- PROCEDUREID = 105 AND ISREFIRE = 0 
+                //								AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) 
+                //								AND VALUEFLAG = 1 THEN
+                //									1 ELSE 0 
+                //								END 
+                //								) AS NUM2,
+                //								SUM( CASE WHEN PROCEDUREID = 104 AND CHECKFLAG = 1  THEN 1 ELSE 0 END ) AS NUM3,
+                //								-- SUM( CASE WHEN ( PROCEDUREID = 104 AND CHECKFLAG = 1 OR PROCEDUREID = 11 AND VALUEFLAG = 1 OR PROCEDUREID = 58 AND VALUEFLAG = 1 ) THEN 1 ELSE 0 END ) AS NUM3,
+                //								-- SUM( CASE WHEN ( PROCEDUREID = 105 OR PROCEDUREID = 12 OR PROCEDUREID = 59 ) AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) AND VALUEFLAG = 1 THEN 1 ELSE 0 END ) AS NUM4 
+                //								SUM( CASE WHEN  PROCEDUREID = 105  AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) AND VALUEFLAG = 1 THEN 1 ELSE 0 END ) AS NUM4 
+                //							FROM
+                //								TP_PM_PRODUCTIONDATA 
+                //							WHERE
+                //								CREATETIME >= TRUNC( SYSDATE ) - 6  + 7/24
+                //								AND CREATETIME < TRUNC( SYSDATE ) + 1  + 7/24
+                //				                -- AND KILNCODE IN('SK3', 'TK3') 
+                //								-- AND (INSTR( GROUTINGLINECODE, 'C' ) = 1 AND INSTR( GROUTINGLINECODE, 'A' ) = 4 OR INSTR( GROUTINGLINECODE, 'C06B' ) = 1)
+                //								-- AND INSTR( GROUTINGLINECODE, 'C' ) = 1 AND INSTR( GROUTINGLINECODE, 'A' ) = 4
+                //							GROUP BY
+                //							TO_CHAR( TRUNC( CREATETIME - 7/24  ), 'YY-MM-DD' ) 
+                //					)
+                //					ORDER BY
+                //						SJ -- DESC ";
+                string sqlStr = @"WITH 出窑 AS (
+	SELECT
+		num1,
+		num3,
+		SJ 
+	FROM
+		(
+		SELECT
+			TO_CHAR( TRUNC( CREATETIME - 7 / 24 ), 'YY-MM-DD' ) AS SJ,
+			SUM( CASE WHEN PROCEDUREID = 104 AND ISREFIRE = 0 AND CHECKFLAG = 1 THEN 1 ELSE 0 END ) AS NUM1,
+			SUM(
+			CASE
+					
+					WHEN ( PROCEDUREID = 105 AND ISREFIRE = 0 OR PROCEDUREID = 12 ) 
+					AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) 
+					AND VALUEFLAG = 1 THEN
+						1 ELSE 0 
+					END 
+					) AS NUM2,
+					SUM( CASE WHEN PROCEDUREID = 104 AND CHECKFLAG = 1 THEN 1 ELSE 0 END ) AS NUM3,
+					SUM(
+					CASE
+							
+							WHEN ( PROCEDUREID = 105 OR PROCEDUREID = 12 OR PROCEDUREID = 59 ) 
+							AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) 
+							AND VALUEFLAG = 1 THEN
+								1 ELSE 0 
+							END 
+							) AS NUM4 
+						FROM
+							TP_PM_PRODUCTIONDATA 
+						WHERE
+							CREATETIME >= TRUNC( SYSDATE ) - 6 + 7 / 24 
+							AND CREATETIME < TRUNC( SYSDATE ) + 1 + 7 / 24 
+						GROUP BY
+							TO_CHAR( TRUNC( CREATETIME - 7 / 24 ), 'YY-MM-DD' ) 
+						ORDER BY
+							TO_CHAR( TRUNC( CREATETIME - 7 / 24 ), 'YY-MM-DD' ) 
+						) 
+					),
+					合格 AS (
 					SELECT
-						TO_CHAR( TRUNC( CREATETIME - 7/24 ), 'YY-MM-DD' ) AS SJ,
-						-- SUM( CASE WHEN ( PROCEDUREID = 104 AND ISREFIRE = 0 AND CHECKFLAG = 1 OR PROCEDUREID = 11 AND VALUEFLAG = 1  OR PROCEDUREID = 58 AND VALUEFLAG = 1 ) THEN 1 ELSE 0 END ) AS NUM1,
-						SUM( CASE WHEN PROCEDUREID = 104 AND ISREFIRE = 0 AND CHECKFLAG = 1  THEN 1 ELSE 0 END ) AS NUM1,
-						SUM(
-						CASE
-				
-								WHEN 
-								 ( PROCEDUREID = 105 AND ISREFIRE = 0 OR PROCEDUREID = 12 )
-								 -- PROCEDUREID = 105 AND ISREFIRE = 0 
-								AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) 
-								AND VALUEFLAG = 1 THEN
-									1 ELSE 0 
-								END 
-								) AS NUM2,
-								SUM( CASE WHEN PROCEDUREID = 104 AND CHECKFLAG = 1  THEN 1 ELSE 0 END ) AS NUM3,
-								-- SUM( CASE WHEN ( PROCEDUREID = 104 AND CHECKFLAG = 1 OR PROCEDUREID = 11 AND VALUEFLAG = 1 OR PROCEDUREID = 58 AND VALUEFLAG = 1 ) THEN 1 ELSE 0 END ) AS NUM3,
-								-- SUM( CASE WHEN ( PROCEDUREID = 105 OR PROCEDUREID = 12 OR PROCEDUREID = 59 ) AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) AND VALUEFLAG = 1 THEN 1 ELSE 0 END ) AS NUM4 
-								SUM( CASE WHEN  PROCEDUREID = 105  AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) AND VALUEFLAG = 1 THEN 1 ELSE 0 END ) AS NUM4 
-							FROM
-								TP_PM_PRODUCTIONDATA 
-							WHERE
-								CREATETIME >= TRUNC( SYSDATE ) - 6  + 7/24
-								AND CREATETIME < TRUNC( SYSDATE ) + 1  + 7/24
-				                -- AND KILNCODE IN('SK3', 'TK3') 
-								-- AND (INSTR( GROUTINGLINECODE, 'C' ) = 1 AND INSTR( GROUTINGLINECODE, 'A' ) = 4 OR INSTR( GROUTINGLINECODE, 'C06B' ) = 1)
-								-- AND INSTR( GROUTINGLINECODE, 'C' ) = 1 AND INSTR( GROUTINGLINECODE, 'A' ) = 4
-							GROUP BY
-							TO_CHAR( TRUNC( CREATETIME - 7/24  ), 'YY-MM-DD' ) 
-					)
-					ORDER BY
-						SJ -- DESC
-                ";
+						SJ,
+						NUM1 - NUM2 AS 本烧,
+						NUM3 - NUM4 AS 整体 
+					FROM
+						(
+						SELECT
+							TO_CHAR( TRUNC( CREATETIME - 7 / 24 ), 'YY-MM-DD' ) AS SJ,
+							SUM( CASE WHEN PROCEDUREID = 104 AND ISREFIRE = 0 AND CHECKFLAG = 1 THEN 1 ELSE 0 END ) AS NUM1,
+							SUM(
+							CASE
+									
+									WHEN ( PROCEDUREID = 105 AND ISREFIRE = 0 OR PROCEDUREID = 12 ) 
+									AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) 
+									AND VALUEFLAG = 1 THEN
+										1 ELSE 0 
+									END 
+									) AS NUM2,
+									SUM( CASE WHEN PROCEDUREID = 104 AND CHECKFLAG = 1 THEN 1 ELSE 0 END ) AS NUM3,
+									SUM( CASE WHEN PROCEDUREID = 105 AND GOODSLEVELTYPEID IN ( 6, 7, 8 ) AND VALUEFLAG = 1 THEN 1 ELSE 0 END ) AS NUM4 
+								FROM
+									TP_PM_PRODUCTIONDATA 
+								WHERE
+									CREATETIME >= TRUNC( SYSDATE ) - 6 + 7 / 24 
+									AND CREATETIME < TRUNC( SYSDATE ) + 1 + 7 / 24 
+								GROUP BY
+									TO_CHAR( TRUNC( CREATETIME - 7 / 24 ), 'YY-MM-DD' ) 
+								) 
+							ORDER BY
+								SJ 
+							) SELECT
+							合格.SJ,
+						TO_CHAR(DECODE(
+								NVL( 合格.本烧, 0 ),
+								0,
+								'0%',
+								TO_CHAR(
+									(
+										NVL( 合格.本烧, 0 ) / DECODE( NVL( 出窑.num1, 1 ), 0, 1, NVL( 出窑.num1, 1 ) ) 
+									) * 100,
+									'fm99990.00' 
+								) 
+							)) AS 合格本烧,
+							DECODE(
+								NVL( 合格.整体, 0 ),
+								0,
+								'0%',
+								TO_CHAR(
+									(
+										NVL( 合格.整体, 0 ) / DECODE( NVL( 出窑.num3, 1 ), 0, 1, NVL( 出窑.num3, 1 ) ) 
+									) * 100,
+									'fm99990.00' 
+								) 
+							) AS 合格整体 
+							
+						FROM
+						合格
+	LEFT JOIN 出窑 ON 合格.SJ =出窑.SJ
+	ORDER BY 合格.SJ";
                 //直接获取不分页数据
                 DataTable dt = conn.ExecuteDatatable(sqlStr);
                 string jsonStr = new JsonResult(dt).ToJson();