<?php 
 $strYear = date("d-m-y");

?>
<style>

html,body {
    text-align: center;
    /* background: #DCDCDC; */
    background: #FFF;
    color: #000;
    margin: 0;
    
  }
  table, td, th {
    /* border: solid 1px #ccc; */
    border-collapse: collapse;
    border-spacing:0;
    color: #000;
    /* background: #DCDCDC; */
    background: #FFF;
    font-weight: bold;
    font-size:13px;
    padding-left:5px !important;
    padding-right:5px !important;
    padding-top:3.5px !important;
    padding-bottom:3.5px !important;
    height: 20px !important;
    vertical-align: middle !important;
  }

.textAlignVer{
  display:block;
    filter: flipv fliph;
    position:relative;
    white-space:nowrap;
    font-size:12px;
    margin-top: 70px;

}
.textnumberright{
  style="text-align: right;"
}

@font-face {
  font-family: 'DIGITAL';
  src: url('https://cssdeck.com/uploads/resources/fonts/digii/DS-DIGII.TTF');
}



.digital-clock {
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: #000;
  text-align: center;
  font: 50px/60px 'DIGITAL',;
}
.memumain{
  text-align: center;
  font-size:16px;
  padding-top:5px;

}
.digital-date {
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: #000;
  text-align: center;
  font: 50px/60px 'DIGITAL',;
}


.border_bold{
    border: solid 0.2rem #000;

}

.border-top-thin {
    border-top: 0.1rem solid #000;
}

.border-right-thin {
    border-right: 0.1rem solid #000;
}

.border-right-bold {
    border-right: 0.2rem solid #000;
}

.border-bottom-thin {
    border-bottom: 0.1rem solid #000;
}

.border-left-thin {
    border-left: 0.1rem solid #000;
}

.v-middle{
  vertical-align: middle !important;
}

.f20 {
  font-size: 20px !important;
}

.f18 {
  font-size: 18px !important;
}

.f17 {
  font-size: 17px !important;
}

.f16 {
  font-size: 16px !important;
}

.f15 {
  font-size: 15px !important;
}

.f14 {
  font-size: 14px !important;
}

.f12 {
   font-size: 12px !important;
}

.w5{
  width:5rem;
}

.w12{
  width:12rem;
}

.w20{
  width:20rem;
}

.w-10{
  width:10%;
}

.w-15{
  width:15%;
}

.w-40{
  width:40%;
}

.w-70{
  width:70%;
}

.w-85{
  width:85%;
}

.w-90{
  width:90%;
}

.w-auto{
  width:100%;
}

.table-fixed td.text-over span {
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    display: inline-block;
    max-width: 80px;
}

.bg-white {
   background: white;
   color: #000;
}

.bg-red {
  background: red;
  color:#FFF;
}

.f-red {
  color:red !important;
}

</style>

<?php $__env->startSection("content"); ?>
<div class="w-auto no-gutters d-flex" style="color:#000;">
    <div class="w-85 flex-fill">
        <div style="padding:5px;">
            <table class=" table table-sm border_bold table-fixed">
                <tr>
                  <th style="width:10%;" rowspan="3" colspan="2" class="text-center border-bottom-thin border-right-thin"><p style="padding-top:10px; font-size:35px;">5W</p></th>
                  <th colspan="9"  class="text-center border-bottom-thin border-right-bold"><h5 class=" mb-0 ">Production Control Board</h5></th>
                  <th colspan="9"  class="text-center border-bottom-thin mb-0"><h5 class=" mb-0 ">Production Control Board</h5></th>
                </tr>

                <tr>
                  
                  <td colspan="4"  class="border-bottom-thin border-right-thin "><h6 class=" mb-0 ">Date : <span class="digital-date"> </span></h6></td>

                  <td colspan="5"  class="text-center border-bottom-thin border-right-bold"><h6 class=" mb-0 ">Update Time : <span class="digital-time"> </span> </h6></td>

                  <td colspan="4"  class="border-bottom-thin border-right-thin "><h6 class=" mb-0 ">Date : <span class="prev-digital-date"> </span></h6></td>

                  <td colspan="5"  class="text-center border-bottom-thin"><h6 class=" mb-0 ">Update Time : <span class="prev-digital-time"> </span></h6></td>

                </tr>
                <tr>
                
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">DB</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">OVEND</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">WB</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">BD.INS</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">MOLD</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">OVENM</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">DICER</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">APP</td>
                  <td  class="w12 text-center border-bottom-thin border-right-bold ">CLS.</td>            
                  
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">DB</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">OVEND</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">WB</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">BD.INS</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">MOLD</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">OVENM</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">DICER</td>
                  <td  class="w12 text-center border-bottom-thin border-right-thin ">APP</td>
                  <td  class="w12 text-center border-bottom-thin  ">CLS.</td>
                
                </tr>

                <tr>
                  <td colspan="2" class=" border-right-thin f14">Capacity / day (Pcs)</td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin  border-right-bold"><span class=""></span></td>

                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin  "><span class=""></span></td>
                </tr>
                <tr>
                  <td colspan="2" class="border-bottom-thin border-right-thin f14">Work rate (%)</td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin  border-right-bold"><span class=""></span></td>

                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id=""></span></td>
                  <td  class="f15 text-center border-bottom-thin  "><span class=""></span></td>
                </tr>

                <tr>
                  <td colspan="2" class=" border-right-thin f14">Today Plan (PCS/day)</td>
                  <td  class="f15 text-center  border-right-thin "><span id="pdieFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="povenFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="pwireFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="pbondinFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="pmoldFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="povenmoldFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="pdicerFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="pappeaFull"></span></td>
                  <td  class="f15 text-center  border-right-bold"><span class="pcalssFull"></span></td>

                  <td  class="f15 text-center  border-right-thin "><span id="prev_pdieFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_povenFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_pwireFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_pbondinFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_pmoldFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_povenmoldFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_pdicerFull"></span></td>
                  <td  class="f15 text-center  border-right-thin "><span id="prev_pappeaFull"></span></td>
                  <td  class="f15 text-center   "><span class="prev_pcalssFull"></span></td>
                </tr>
                <tr>
                  <td colspan="2" class="border-bottom-thin border-right-thin f14">Today Plan (Lot/day)</td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="pdieFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="povenFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="pwireFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="pbondinFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="pmoldFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="povenmoldFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="pdicerFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="pappeaFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin  border-right-bold"><span class="pcalssFulllot"></span></td>

                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pdieFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_povenFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pwireFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pbondinFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pmoldFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_povenmoldFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pdicerFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pappeaFulllot"></span></td>
                  <td  class="f15 text-center border-bottom-thin  "><span class="prev_pcalssFulllot"></span></td>
                </tr>
                <tr>
                  <td colspan="2" class=" border-right-thin f12">Time line Plan : Now (Out) *PCS</td>
                  <td class="f15 text-center border-right-thin "><span id="pdieNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="povenNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="pwireNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="pbondinNow"></span></span></td>
                  <td class="f15 text-center border-right-thin "><span id="pmoldNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="povenmoldNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="pdicerNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="pappeaNow"></span></td>
                  <td class="f15 text-center border-right-bold"><span class="pcalssNow"></span></td> 

                  <td class="f15 text-center border-right-thin "><span id="prev_pdieNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_povenNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_pwireNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_pbondinNow"></span></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_pmoldNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_povenmoldNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_pdicerNow"></span></td>
                  <td class="f15 text-center border-right-thin "><span id="prev_pappeaNow"></span></td>
                  <td class="f15 text-center "><span class="prev_pcalssNow"></span></td> 
                </tr>
                <tr>
                  <td colspan="2" class="border-bottom-thin border-right-thin f12">Time line Plan : Now (Out) *LOT</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="pdieNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="povenNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="pwireNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="pbondinNowlot"></span></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="pmoldNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="povenmoldNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="pdicerNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="pappeaNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-bold"><span class="pcalssNowlot"></span></td> 

                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pdieNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_povenNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pwireNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pbondinNowlot"></span></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pmoldNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_povenmoldNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pdicerNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_pappeaNowlot"></span></td>
                  <td class="f15 text-center border-bottom-thin "><span class="prev_pcalssNowlot"></span></td> 
                </tr>
                <tr>
                  <td  colspan="2" class=" border-right-thin f12">Time Line Actual : Input (Pcs)</td>
                  <td class=" text-center  border-right-thin v-middle"><span id="indieNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inovenNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inwirebondNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inbondingNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inmoldNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inovenmoldNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="indicerNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inappearaNow" class="f16"></span></td>
                  <td class=" text-center v-middle border-right-bold"><span id="incalssNow" class="f16"></span></td>

                  <td class=" text-center  border-right-thin v-middle"><span id="prev_indieNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inovenNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inwirebondNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inbondingNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inmoldNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inovenmoldNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_indicerNow" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inappearaNow" class="f16"></span></td>
                  <td class=" text-center v-middle "><span id="prev_incalssNow" class="f16"></span></td>
                </tr>

                <tr>
                  <td  colspan="2" class="border-bottom-thin border-right-thin f12">Time Line Actual : Input (Lot)</td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="indieNowlot" class="f16" ></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inovenNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inwirebondNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inbondingNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inmoldNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inovenmoldNowlot" class="1f166"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="indicerNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inappearaNowlot" class=""></span></td>
                  <td class=" text-center border-bottom-thin v-middle border-right-bold"><span id="incalssNowlot" class=""></span></td>

                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_indieNowlot" class="f16" ></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inovenNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inwirebondNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inbondingNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inmoldNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inovenmoldNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_indicerNowlot" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inappearaNowlot" class=""></span></td>
                  <td class=" text-center border-bottom-thin v-middle "><span id="prev_incalssNowlot" class=""></span></td>
                </tr>

                <tr id="Output-prev_Output">
                </tr>

                <tr id="Outputlot-prev_Outputlot">
                </tr>  

                <tr>
                  <td  colspan="2" class=" border-right-thin f14">Difference (Pcs)</td>
                  <td class=" text-center  border-right-thin v-middle"><span id="indieDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inovenDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inwirebondDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inbondingDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inmoldDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inovenmoldDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="indicerDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="inappearaDiff" class="f16"></span></td>
                  <td class=" text-center v-middle border-right-bold"><span id="incalssDiff" class="f16"></span></td>

                  <td class=" text-center  border-right-thin v-middle"><span id="prev_indieDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inovenDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inwirebondDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inbondingDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inmoldDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inovenmoldDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_indicerDiff" class=""></span></td>
                  <td class=" text-center  border-right-thin v-middle"><span id="prev_inappearaDiff" class="16"></span></td>
                  <td class=" text-center v-middle "><span id="prev_incalssDiff" class="16"></span></td>
                </tr>

                <tr>
                  <td  colspan="2" class="border-bottom-thin border-right-thin f14">Difference (Lot)</td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="indielotDiff" class="f16" ></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inovenlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inwirebondlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inbondinglotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inmoldlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inovenmoldlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="indicerlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="inappearalotDiff" class=""></span></td>
                  <td class=" text-center border-bottom-thin v-middle border-right-bold"><span id="incalsslotDiff" class=""></span></td>

                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_indielotDiff" class="f16" ></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inovenlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inwirebondlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inbondinglotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inmoldlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inovenmoldlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_indicerlotDiff" class="f16"></span></td>
                  <td class=" text-center border-bottom-thin border-right-thin v-middle"><span id="prev_inappearalotDiff" class=""></span></td>
                  <td class=" text-center border-bottom-thin v-middle "><span id="prev_incalsslotDiff" class=""></span></td>
                </tr>
                
                <tr id="Resultok-prev_Resultok">
                </tr>  

                <tr id="Resultpercen-prev_Resultpercen">
                </tr>

                <tr>
                  <td  colspan="2" class="f17  border-right-thin f14">NG</td>
                  <td class="f15 text-center  border-right-thin "><span id="ngdiebond">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngovendiebond">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngwirebond">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngbonding"></span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngmold"></span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngovenmold">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngdicer"></span></td>
                  <td class="f15 text-center  border-right-thin "><span id="ngappear"></span></td>
                  <td class="f15 text-center  border-right-bold "><span id="ngclassify"></span></td>

                  <td class="f15 text-center  border-right-thin "><span id="prev_ngdiebond">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngovendiebond">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngwirebond">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngbonding"></span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngmold"></span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngovenmold">0</span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngdicer"></span></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_ngappear"></span></td>
                  <td class="f15 text-center   "><span id="prev_ngclassify"></span></td>
                </tr>
                <tr id="Png-prev_Png">
                  
                </tr>
                <!-- <tr>
                  <td colspan="2" style="text-align: center;">TOP 2 NG</td>
                  <td colspan="12" style="text-align: center;"></td>


                </tr> -->
                <tr>
                  <td rowspan="2"  class="  text-center v-middle border-bottom-thin border-right-thin f14" style="width:5%">BONDING<br/>INS</td>
                  <td class=" border-right-thin text-over" style="width:5%"><span id="ant3bonding1"></span></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "><span id="sumant3bonding1"></span>%</td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-bold"></td>

                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_sumant3bonding1"></span>%</td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  "></td>
                </tr>
                <tr>
                  <td class=" border-right-thin text-over border-bottom-thin "><span id="ant3bonding2"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="sumast3bonding2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin  border-right-bold"></td>

                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_sumast3bonding2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin  "></td>
                </tr>
                <tr>

                <td rowspan="2" class="  text-center v-middle border-bottom-thin border-right-thin f14">MOLD</td>
                  <td class=" border-right-thin text-over"><span id="ant3mold1"></span></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "><span id="sumant3mold1"></span>%</td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-bold "></td>

                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_sumant3mold1"></span>%</td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center   "></td>
                </tr>

                <tr>
                  <td class=" border-right-thin text-over border-bottom-thin "><span id="ant3mold2"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="sumant3mold2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-bold "></td>

                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_sumant3mold2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin  "></td>
                </tr>

                <tr>
                  <td rowspan="2" class="  text-center v-middle border-bottom-thin border-right-thin f14">DICER</td>
                  <td class=" border-right-thin text-over"><span id="ant3dicer1"></span></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin " style="text-align: right;"><span id="sumant3dicer1"></span>%</td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-bold "></td>

                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin " style="text-align: right;"><span id="prev_sumant3dicer1"></span>%</td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center   "></td>
                </tr>

                <tr>
                  <td class=" border-right-thin text-over border-bottom-thin "><span id="ant3dicer2"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="sumant3dicer2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-bold "></td>

                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_sumant3dicer2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin  "></td>     
                </tr>

                <tr>
                  <td rowspan="2" class="  text-center v-middle border-bottom-thin border-right-thin f14">APPEARANCE</td>
                  <td class=" border-right-thin text-over"><span id="ant3appea1"></span></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "><span id="sumant3appea1"></span>%</td>
                  <td class="f15 text-center  border-right-bold "></td>

                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "><span id="prev_sumant3appea1"></span>%</td>
                  <td class="f15 text-center   "></td>                  
                </tr>

                <tr>
                  <td class=" border-right-thin text-over border-bottom-thin "><span id="ant3appea2"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="sumant3appea2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-bold "></td>   
                  
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_sumant3appea2"></span>%</td>
                  <td class="f15 text-center border-bottom-thin  "></td> 
                </tr>

                <tr>
                  <td rowspan="2" class="  text-center v-middle border-bottom-thin border-right-thin f14">CLASSIFYING</td>
                  <td class=" border-right-thin text-over"><span id="ant3classi1"></span></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-bold "> <span id="sumant3classi1"></span>%</td>

                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center  border-right-thin "></td>
                  <td class="f15 text-center   "> <span id="prev_sumant3classi1"></span>%</td>
                </tr>

                <tr>
                  <td class=" border-right-thin text-over border-bottom-thin"><span id="ant3classi2"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-bold"><span id="sumant3classi2"></span>%</td>      
                  
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "></td>
                  <td class="f15 text-center border-bottom-thin  "><span id="prev_sumant3classi2"></span>%</td>
                </tr>
      
                <tr>
                  <td colspan="2" class=" border-right-thin border-bottom-thin f14">LOT OUT</td>  <!-- output - ok - ng = Lot out -->
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_a"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_b"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_c"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_d"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_e"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_f"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_g"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_p"></span></td>
                  <td class="f15 text-center border-bottom-thin  border-right-bold"><span id="lotout_q"></span></td>
                    
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_a"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_b"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_c"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_d"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_e"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_f"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_g"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_p"></span></td>
                  <td class="f15 text-center border-bottom-thin  "><span id="prev_lotout_q"></span></td>
                </tr>

                <tr>
                  <td colspan="2" class=" border-right-thin border-bottom-thin f14">% LOT OUT</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_a"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_b"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_c"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_d"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_e"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_f"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_g"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="lotout_percen_p"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-bold "><span id="lotout_percen_q"></span>%</td>

                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_a"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_b"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_c"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_d"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_e"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_f"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_g"></span>%</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_lotout_percen_p"></span>%</td>
                  <td class="f15 text-center border-bottom-thin  "><span id="prev_lotout_percen_q"></span>%</td>  
                </tr>

                <tr >
                  <td colspan="2" rowspan="2" class=" border-right-thin border-bottom-thin f14">Remark</td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkdie_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkoven_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkwirebond_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkbonding_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkmold_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkovenmold_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkdicer_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkappearance_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-bold "><span id="remarkclassif_a1"></span></td>
   
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkdie_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkoven_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkwirebond_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkbonding_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkmold_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkovenmold_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkdicer_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkappearance_a1"></span></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkclassif_a1"></span></td>
                </tr>

                <tr >
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkdie_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkoven_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkwirebond_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkbonding_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkmold_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkovenmold_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkdicer_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="remarkappearance_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-bold "><span id="remarkclassif_a2"></td>

                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkdie_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkoven_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkwirebond_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkbonding_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkmold_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkovenmold_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkdicer_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkappearance_a2"></td>
                  <td class="f15 text-center border-bottom-thin border-right-thin "><span id="prev_remarkclassif_a2"></td>
                </tr>           
            </table>
        </div>  
    </div>
    <div class="w-15 flex-fill" >
        <div class="mt-4">
            <div  style=""><h5 class=" font-weight-bold">Production Control Board</h5></div>
            <div class="d-flex">
                <div class="f18 font-weight-bold w5 border-bottom-thin">5W</div> <div class="f18 font-weight-bold">LINE</div>
            </div>
            <div class="f18 font-weight-bold ">In Charge of : Ms.Dennapa</div>

            <?php echo $__env->make("sss.tablerptsum", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        </div>   

        <div class="mt-4">
            <div  style=""><h5 class=" font-weight-bold">Production Control Board</h5></div>
            <div class="d-flex">
                <div class="f18 font-weight-bold w5 border-bottom-thin">5W</div> <div class="f18 font-weight-bold">LINE</div>
            </div>
            <div class="f18 font-weight-bold ">In Charge of : Ms.Dennapa</div>

            <?php echo $__env->make("sss.prev_tablerptsum", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        </div>
    </div>  
</div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection("script"); ?>
<script type="text/javascript">
$(document).ready(function () {

  loadData();
  clockUpdate();
  setInterval(clockUpdate, 1000);

  setTimeout(
  function() 
  {
    loadData();
  }, 30000);
});

function timerefresh(t)
{
if(t==0){
  loadData();
    }
else{
    t--;
  }
window.setTimeout("timerefresh('"+t+"')",1000)
}

timerefresh(10);

function clockUpdate() {
  var date = new Date();
  $('.digital-clock').css({'color': '#FFFF'});
  function addZero(x) {
    if (x < 10) {
      return x = '0' + x;
    } else {
      return x;
    }
  }

  function twelveHour(x) {
    if (x > 24) {
      return x = x - 24;
    } else if (x == 0) {
      return x = 24;
    } else {
      return x;
    }
  }

  var h = addZero(twelveHour(date.getHours()));
  var m = addZero(date.getMinutes());
  var s = addZero(date.getSeconds());

  $('.digital-clock').text(h + ':' + m + ':' + s)
}



function loadData() {
    $.ajax({
 
        url:'<?php echo e(url("loaddataScreen3")); ?>',
        type:'get',
        data:'',
        dataType:'json',
        success:function(data_ret){

              var ret = data_ret['data_today'];
              console.log(ret['dateshow'])
              $("#Output-prev_Output").empty();
              $("#Outputlot-prev_Outputlot").empty();
              $("#Resultok-prev_Resultok").empty();
              $("#Resultpercen-prev_Resultpercen").empty();
              $("#Png-prev_Png").empty();
              

              pdieFull = ret['pdieFull'];
              pdieNow = ret['pdieNow'];
              povenFull = ret['povenFull'];
              povenNow = ret['povenNow'];
              pwireFull = ret['pwireFull'];
              pwireNow = ret['pwireNow'];
              pbondinFull = ret['pbondinFull'];
              pbondinNow = ret['pbondinNow'];
              pmoldFull = ret['pmoldFull'];
              pmoldNow = ret['pmoldNow'];
              povenmoldFull = ret['povenmoldFull'];
              povenmoldNow = ret['povenmoldNow'];
              pdicerFull = ret['pdicerFull'];
              pdicerNow = ret['pdicerNow'];
              pappeaFull = ret['pappeaFull'];
              pappeaNow = ret['pappeaNow'];
              pcalssFull = ret['pcalssFull'];
              pcalssNow = ret['pcalssNow'];

              pdieFulllot = ret['pdieFulllot'];
              pdieNowlot = ret['pdieNowlot'];
              povenFulllot = ret['povenFulllot'];
              povenNowlot = ret['povenNowlot'];
              pwireFulllot = ret['pwireFulllot'];
              pwireNowlot = ret['pwireNowlot'];
              pbondinFulllot = ret['pbondinFulllot'];
              pbondinNowlot = ret['pbondinNowlot'];
              pmoldFulllot = ret['pmoldFulllot'];
              pmoldNowlot = ret['pmoldNowlot'];
              povenmoldFulllot = ret['povenmoldFulllot'];
              povenmoldNowlot = ret['povenmoldNowlot'];
              pdicerFulllot = ret['pdicerFulllot'];
              pdicerNowlot = ret['pdicerNowlot'];
              pappeaFulllot = ret['pappeaFulllot'];
              pappeaNowlot = ret['pappeaNowlot'];
              pcalssFulllot = ret['pcalssFulllot'];
              pcalssNowlot = ret['pcalssNowlot'];


              indieNow = ret['indieNow'];
              inovenNow = ret['inovenNow'];
              inwirebondNow = ret['inwirebondNow'];
              inbondingNow = ret['inbondingNow'];
              inmoldNow = ret['inmoldNow'];
              inovenmoldNow = ret['inovenmoldNow'];
              indicerNow = ret['indicerNow'];
              inappearaNow = ret['inappearaNow'];
              incalssNow = ret['incalssNow'];

              // input lot
              indieNowlot = ret['indieNowlot']; 
              inovenNowlot = ret['inovenNowlot'];
              inwirebondNowlot = ret['inwirebondNowlot'];
              inbondingNowlot = ret['inbondingNowlot'];
              inmoldNowlot = ret['inmoldNowlot'];
              inovenmoldNowlot = ret['inovenmoldNowlot'];
              indicerNowlot = ret['indicerNowlot'];
              inappearaNowlot = ret['inappearaNowlot'];
              incalssNowlot = ret['incalssNowlot'];
              // end input lot

              outdieend = ret['outdieend'];
              outovenend = ret['outovenend'];
              outwirebondend = ret['outwirebondend'];
              outbondingend = ret['outbondingend'];
              outmoldend = ret['outmoldend'];
              outoven_moldend = ret['outoven_moldend'];
              outdicer_actend = ret['outdicer_actend'];
              outappearanceend = ret['outappearanceend'];
              outclassifyend = ret['outclassifyend'];

              // output lot
              outdieendlot = ret['outdieendlot'];
              outovenendlot = ret['outovenendlot'];
              outwirebondendlot = ret['outwirebondendlot'];
              outbondingendlot = ret['outbondingendlot'];
              outmoldendlot = ret['outmoldendlot'];
              outoven_moldendlot = ret['outoven_moldendlot'];
              outdicer_actendlot = ret['outdicer_actendlot'];
              outappearanceendlot = ret['outappearanceendlot'];
              outclassifyendlot = ret['outclassifyendlot'];
              // end output lot

              ngdiebond = 0;
              ngovendiebond = 0;
              ngwirebond = 0;
              ngbonding = (ret['ngbonding'][0].ngbonding==null)?0:ret['ngbonding'][0].ngbonding;
              ngmold = (ret['ngmold'][0].ngmold==null)?0:ret['ngmold'][0].ngmold;
              //console.log(ret['ngmold'][0].ngmold);
              ngovenmold = 0;
              ngdicer = (ret['ngdicer'][0].ngdicer==null)?0:ret['ngdicer'][0].ngdicer;
              ngappear = (ret['ngappear'][0].ngappear==null)?0:ret['ngappear'][0].ngappear;
              ngclassify = (ret['ngclassify'][0].ngclassify==null)?0:ret['ngclassify'][0].ngclassify;

              t3bonding = ret['t3bonding'];
              t3mold = ret['t3mold'];
              t3dicer = ret['t3dicer'];
              t3appea = ret['t3appea'];
              t3classi = ret['t3classi'];
              dateshow = ret['dateshow'];
              timeshow = ret['timeshow'];

              datestring = ret['datestring'];

              $('.digital-date').text(dateshow);
              $('.digital-time').text(timeshow);
              $('.datestring').text(datestring);

              var indieNow1 = 0;
              var inovenNow1 = 0;
              var inwirebondNow1 = 0;
              var inbondingNow1 = 0;
              var inmoldNow1 = 0;
              var inovenmoldNow1 = 0;
              var indicerNow1 = 0;
              var inappearaNow1 = 0;
              var incalssNow1 = 0;

              var outbondingend2 = 0;
              var outmoldend2 = 0;
              var outdicer_actend2 = 0;
              var outappearanceend2 = 0;
              var outclassifyend2 = 0;


              var DiSumResult = 0;
              var OdiSumResult = 0;
              var WieSumResult = 0;
              var BondSumResult = 0;
              var MoldSumResult = 0;
              var OvenmoSumResult = 0;
              var DicerSumResult = 0;
              var MoldSumResult = 0;
              var AppeaSumResult = 0;
              var ClassSumResult = 0;

              var NgSumdiebond = 0;
              var NgSumovendiebond = 0;
              var NgSumwirebond = 0;
              var NgSumbonding = 0;
              var NgSumngmold = 0;
              var NgSumngovenmold = 0;
              var NgSumngdicer = 0;
              var NgSumngappear = 0;
              var NgSumngclassify = 0;

              var lotout_a = 0;
              var lotout_b = 0;
              var lotout_c = 0;
              var lotout_d = 0;
              var lotout_e = 0;
              var lotout_f = 0;
              var lotout_g = 0;
              var lotout_p = 0;
              var lotout_q = 0;

              var lotout_percen_a = 0;
              var lotout_percen_b = 0;
              var lotout_percen_c = 0;
              var lotout_percen_d = 0;
              var lotout_percen_e = 0;
              var lotout_percen_f = 0;
              var lotout_percen_g = 0;
              var lotout_percen_p = 0;
              var lotout_percen_q = 0;
              
              var diebond_ok = 0;
              var ovendiebond_ok = 0;
              var wirebond_ok = 0;
              var bondingins_ok = 0;
              var mold_ok = 0;
              var ovenmold_ok = 0;
              var dicer_ok = 0;
              var appear_ok = 0;
              var classify_ok = 0;

              if(indieNow[0].indieNow !== 0){ indieNow1 = numeral(indieNow[0].indieNow).format('0,0')}else{ indieNow1 = 0.001};
              if(inovenNow[0].inovenNow !== 0){ inovenNow1 = numeral(inovenNow[0].inovenNow).format('0,0')}else{ inovenNow1 = 0.001};
              if(inwirebondNow[0].inwirebondNow !== 0){ inwirebondNow1 = numeral(inwirebondNow[0].inwirebondNow).format('0,0')}else{ inwirebondNow1 = 0.001};
              if(inbondingNow[0].inbondingNow !== 0){ inbondingNow1 = numeral(inbondingNow[0].inbondingNow).format('0,0')}else{ inbondingNow1 = 0.001};
              if(inmoldNow[0].inmoldNow !== 0){ inmoldNow1 = numeral(inmoldNow[0].inmoldNow).format('0,0')}else{ inmoldNow1 = 0.001};
              if( typeof(inovenmoldNow[0]) != "undefined" && inovenmoldNow[0].inovenmoldNow !== 0){ inovenmoldNow1 = numeral(inovenmoldNow[0].inovenmoldNow).format('0,0')}else{ inovenmoldNow1 = 0.001};
              if(indicerNow[0].indicerNow !== 0){ indicerNow1 = numeral(indicerNow[0].indicerNow).format('0,0')}else{ indicerNow1 = 0.001};
              if(inappearaNow[0].inappearaNow !== 0){ inappearaNow1 = numeral(inappearaNow[0].inappearaNow).format('0,0')}else{ inappearaNow1 = 0.001};
              if(incalssNow[0].incalssNow !== 0){ incalssNow1 = numeral(incalssNow[0].incalssNow).format('0,0')}else{ incalssNow1 = 0.001};

              if(outbondingend[0].outbondingend !== 0){ outbondingend2 = numeral(outbondingend[0].outbondingend).format('0,0')}else{ outbondingend2 = 0.001};
              if(outmoldend[0].outmoldend !== 0){ outmoldend2 = numeral(outmoldend[0].outmoldend).format('0,0')}else{ outmoldend2 = 0.001};
              if(outdicer_actend[0].outdicer_actend !== 0){ outdicer_actend2 = numeral(outdicer_actend[0].outdicer_actend).format('0,0')}else{ outdicer_actend2 = 0.001};
              if(outappearanceend[0].outappearanceend !== 0){ outappearanceend2 = numeral(outappearanceend[0].outappearanceend).format('0,0')}else{ outappearanceend2 = 0.001};
              if(outclassifyend[0].outclassifyend !== 0){ outclassifyend2 = numeral(outclassifyend[0].outclassifyend).format('0,0')}else{ outclassifyend2 = 0.001};

              NgSumbonding = (numeral(ngbonding).value() / numeral(outbondingend2).value()) * 100 ;
              NgSumngmold = (numeral(ngmold).value() / numeral(outmoldend2).value()) * 100 ;
              NgSumngdicer = (numeral(ngdicer).value() / numeral(outdicer_actend2).value()) * 100 ;
              NgSumngappear = (numeral(ngappear).value() / numeral(outappearanceend2).value()) * 100 ;
              NgSumngclassify = (numeral(ngclassify).value() / numeral(outclassifyend2).value()) * 100 ;


              diebond_ok =  (numeral(outdieend[0].outdieend).value() - numeral(ngdiebond).value());
              ovendiebond_ok =  (numeral(outovenend[0].outovenend).value() - numeral(ngovendiebond).value());
              wirebond_ok =  (numeral(outwirebondend[0].outwirebondend).value() - numeral(ngwirebond).value());
              bondingins_ok =  (numeral(outbondingend[0].outbondingend).value() - numeral(ngbonding).value());
              mold_ok =  (numeral(outmoldend[0].outmoldend).value() - numeral(ngmold).value());
              ovenmold_ok =  (numeral(outoven_moldend[0].outoven_moldend).value() - numeral(ngovenmold).value());
              dicer_ok =  (numeral(outdicer_actend[0].outdicer_actend).value()  -numeral(ngdicer).value());
              appear_ok =  (numeral(outappearanceend[0].outappearanceend).value() - numeral(ngappear).value());
              classify_ok =  (numeral(outclassifyend[0].outclassifyend).value() - numeral(ngclassify).value() );

              lotout_a = (numeral(outdieend[0].outdieend).value() - numeral(diebond_ok).value()) - numeral(ngdiebond).value();
              lotout_b = (numeral(outovenend[0].outovenend).value() - numeral(ovendiebond_ok).value()) - numeral(ngovendiebond).value() ;
              lotout_c = (numeral(outwirebondend[0].outwirebondend).value() - numeral(wirebond_ok).value()) - numeral(ngwirebond).value() ;
              lotout_d = (numeral(outbondingend[0].outbondingend).value() - numeral(bondingins_ok).value()) - numeral(ngbonding).value() ;
              lotout_e = (numeral(outmoldend[0].outmoldend).value() - numeral(mold_ok).value()) - numeral(ngmold).value() ;
              lotout_f = (numeral(outoven_moldend[0].outoven_moldend).value() - numeral(ovenmold_ok).value()) - numeral(ngovenmold).value() ;
              lotout_g = (numeral(outdicer_actend[0].outdicer_actend).value() - numeral(dicer_ok).value()) - numeral(ngdicer).value();
              lotout_p = (numeral(outappearanceend[0].outappearanceend).value() - numeral(appear_ok).value()) - numeral(ngappear).value() ;
              lotout_q = (numeral(outclassifyend[0].outclassifyend).value() - numeral(classify_ok).value()) - numeral(ngclassify).value() ;

              lotout_percen_a = numeral(lotout_a).value() / numeral(indieNow[0].indieNow).value()
              lotout_percen_b = numeral(lotout_b).value() / numeral(inovenNow[0].inovenNow).value()
              lotout_percen_c = numeral(lotout_c).value() / numeral(inwirebondNow[0].inwirebondNow).value()
              lotout_percen_d = numeral(lotout_d).value() / numeral(inbondingNow[0].inbondingNow).value()
              lotout_percen_e = numeral(lotout_e).value() / numeral(inmoldNow[0].inmoldNow).value()
              lotout_percen_f = numeral(lotout_f).value() / numeral(inovenmoldNow[0].inovenmoldNow).value()
              lotout_percen_g = numeral(lotout_g).value() / numeral(indicerNow[0].indicerNow).value()
              lotout_percen_p = numeral(lotout_p).value() / numeral(inappearaNow[0].inappearaNow).value()
              lotout_percen_q = numeral(lotout_q).value() / numeral(incalssNow[0].incalssNow).value()

              var bg_lotout_percen_a = "bg-white";
              var bg_lotout_percen_b = "bg-white";
              var bg_lotout_percen_c = "bg-white";
              var bg_lotout_percen_d = "bg-white";
              var bg_lotout_percen_e = "bg-white";
              var bg_lotout_percen_f = "bg-white";
              var bg_lotout_percen_g = "bg-white";
              var bg_lotout_percen_p = "bg-white";
              var bg_lotout_percen_q = "bg-white";

              if( lotout_percen_a>0 ) { bg_lotout_percen_a = "bg-red"; }
              if( lotout_percen_b>0 ) { bg_lotout_percen_b = "bg-red"; }
              if( lotout_percen_c>0 ) { bg_lotout_percen_c = "bg-red"; }
              if( lotout_percen_d>0 ) { bg_lotout_percen_d = "bg-red"; }
              if( lotout_percen_e>0 ) { bg_lotout_percen_e = "bg-red"; }
              if( lotout_percen_f>0 ) { bg_lotout_percen_f = "bg-red"; }
              if( lotout_percen_g>0 ) { bg_lotout_percen_g = "bg-red"; }
              if( lotout_percen_p>0 ) { bg_lotout_percen_p = "bg-red"; }
              if( lotout_percen_q>0 ) { bg_lotout_percen_q = "bg-red"; }



              $("#pdieFull").text(numeral(pdieFull[0].pdieFull).format('0,0'));
              $("#pdieNow").text(numeral(pdieNow[0].pdieNow).format('0,0'));
              $("#povenNow").text(numeral(povenNow[0].povenNow).format('0,0'));
              $("#povenFull").text(numeral(povenFull[0].povenFull).format('0,0'));
              $("#pwireFull").text(numeral(pwireFull[0].pwireFull).format('0,0'));
              $("#pwireNow").text(numeral(pwireNow[0].pwireNow).format('0,0'));
              $("#pbondinFull").text(numeral(pbondinFull[0].pbondinFull).format('0,0'));
              $("#pbondinNow").text(numeral(pbondinNow[0].pbondinNow).format('0,0'));
              $("#pmoldFull").text(numeral(pmoldFull[0].pmoldFull).format('0,0'));
              $("#pmoldNow").text(numeral(pmoldNow[0].pmoldNow).format('0,0'));
              $("#povenmoldFull").text(numeral(povenmoldFull[0].povenmoldFull).format('0,0'));
              $("#povenmoldNow").text(numeral(povenmoldNow[0].povenmoldNow).format('0,0'));
              $("#pdicerNow").text(numeral(pdicerNow[0].pdicerNow).format('0,0'));
              $("#pdicerFull").text(numeral(pdicerFull[0].pdicerFull).format('0,0'));
              $("#pappeaFull").text(numeral(pappeaFull[0].pappeaFull).format('0,0'));
              $("#pappeaNow").text(numeral(pappeaNow[0].pappeaNow).format('0,0'));
              $(".pcalssFull").text(numeral(pcalssFull[0].pcalssFull).format('0,0'));
              $(".pcalssNow").text(numeral(pcalssNow[0].pcalssNow).format('0,0'));

              $("#pdieFulllot").text(numeral(pdieFulllot[0].pdieFulllot).format('0,0'));
              $("#pdieNowlot").text(numeral(pdieNowlot[0].pdieNowlot).format('0,0'));
              $("#povenNowlot").text(numeral(povenNowlot[0].povenNowlot).format('0,0'));
              $("#povenFulllot").text(numeral(povenFulllot[0].povenFulllot).format('0,0'));
              $("#pwireFulllot").text(numeral(pwireFulllot[0].pwireFulllot).format('0,0'));
              $("#pwireNowlot").text(numeral(pwireNowlot[0].pwireNowlot).format('0,0'));
              $("#pbondinFulllot").text(numeral(pbondinFulllot[0].pbondinFulllot).format('0,0'));
              $("#pbondinNowlot").text(numeral(pbondinNowlot[0].pbondinNowlot).format('0,0'));
              $("#pmoldFulllot").text(numeral(pmoldFulllot[0].pmoldFulllot).format('0,0'));
              $("#pmoldNowlot").text(numeral(pmoldNowlot[0].pmoldNowlot).format('0,0'));
              $("#povenmoldFulllot").text(numeral(povenmoldFulllot[0].povenmoldFulllot).format('0,0'));
              $("#povenmoldNowlot").text(numeral(povenmoldNowlot[0].povenmoldNowlot).format('0,0'));
              $("#pdicerNowlot").text(numeral(pdicerNowlot[0].pdicerNowlot).format('0,0'));
              $("#pdicerFulllot").text(numeral(pdicerFulllot[0].pdicerFulllot).format('0,0'));
              $("#pappeaFulllot").text(numeral(pappeaFulllot[0].pappeaFulllot).format('0,0'));
              $("#pappeaNowlot").text(numeral(pappeaNowlot[0].pappeaNowlot).format('0,0'));
              $(".pcalssFulllot").text(numeral(pcalssFulllot[0].pcalssFulllot).format('0,0'));
              $(".pcalssNowlot").text(numeral(pcalssNowlot[0].pcalssNowlot).format('0,0'));

              $(".ocalsspcs").text(numeral(outclassifyend[0].outclassifyend).format('0,0'));

              
              var difclass = numeral(outclassifyend[0].outclassifyend).value() - numeral(pcalssNow[0].pcalssNow).value() 
              if( difclass<0 ){
                $(".difclass").addClass("text-danger");
              }else{
                $(".difclass").removeClass("text-danger");
              }
              $(".difclass").text(numeral(difclass).format('0,0'));
              
              $("#indieNow").text(numeral(indieNow[0].indieNow).format('0,0'));
              $("#inovenNow").text(numeral(inovenNow[0].inovenNow).format('0,0'));
              $("#inwirebondNow").text(numeral(inwirebondNow[0].inwirebondNow).format('0,0'));
              $("#inbondingNow").text(numeral(inbondingNow[0].inbondingNow).format('0,0'));
              $("#inmoldNow").text(numeral(inmoldNow[0].inmoldNow).format('0,0'));
              $("#inovenmoldNow").text(numeral(inovenmoldNow[0].inovenmoldNow).format('0,0'));
              $("#indicerNow").text(numeral(indicerNow[0].indicerNow).format('0,0'));
              $("#inappearaNow").text(numeral(inappearaNow[0].inappearaNow).format('0,0'));
              $("#incalssNow").text(numeral(incalssNow[0].incalssNow).format('0,0'));

              // start input lot
              $("#indieNowlot").text(numeral(indieNowlot[0].indieNowlot).format('0,0'));
              $("#inovenNowlot").text(numeral(inovenNowlot[0].inovenNowlot).format('0,0'));
              $("#inwirebondNowlot").text(numeral(inwirebondNowlot[0].inwirebondNowlot).format('0,0'));
              $("#inbondingNowlot").text(numeral(inbondingNowlot[0].inbondingNowlot).format('0,0'));
              $("#inmoldNowlot").text(numeral(inmoldNowlot[0].inmoldNowlot).format('0,0'));
              $("#inovenmoldNowlot").text(numeral(inovenmoldNowlot[0].inovenmoldNowlot).format('0,0'));
              $("#indicerNowlot").text(numeral(indicerNowlot[0].indicerNowlot).format('0,0'));
              $("#inappearaNowlot").text(numeral(inappearaNowlot[0].inappearaNowlot).format('0,0'));
              $("#incalssNowlot").text(numeral(incalssNowlot[0].incalssNowlot).format('0,0'));
              // end input lot

              $("#ngdiebond").text(numeral(ngdiebond).format('0,0'));
              $("#ngovendiebond").text(numeral(ngovendiebond).format('0,0'));
              $("#ngwirebond").text(numeral(ngwirebond).format('0,0'));
              $("#ngbonding").text(numeral(ngbonding).format('0,0'));
              $("#ngmold").text(numeral(ngmold).format('0,0'));
              $("#ngovenmold").text(numeral(ngovenmold).format('0,0'));
              $("#ngdicer").text(numeral(ngdicer).format('0,0'));
              $("#ngappear").text(numeral(ngappear).format('0,0'));
              $("#ngclassify").text(numeral(ngclassify).format('0,0'));

              $("#lotout_a").text(numeral(lotout_a).format('0,0'));
              $("#lotout_b").text(numeral(lotout_b).format('0,0'));
              $("#lotout_c").text(numeral(lotout_c).format('0,0'));
              $("#lotout_d").text(numeral(lotout_d).format('0,0'));
              $("#lotout_e").text(numeral(lotout_e).format('0,0'));
              $("#lotout_f").text(numeral(lotout_f).format('0,0'));
              $("#lotout_g").text(numeral(lotout_g).format('0,0'));
              $("#lotout_p").text(numeral(lotout_p).format('0,0'));
              $("#lotout_q").text(numeral(lotout_q).format('0,0'));

              $("#lotout_percen_a").text(numeral(numeral(lotout_percen_a).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_a);
              $("#lotout_percen_b").text(numeral(numeral(lotout_percen_b).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_b);
              $("#lotout_percen_c").text(numeral(numeral(lotout_percen_c).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_c);
              $("#lotout_percen_d").text(numeral(numeral(lotout_percen_d).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_d);
              $("#lotout_percen_e").text(numeral(numeral(lotout_percen_e).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_e);
              $("#lotout_percen_f").text(numeral(numeral(lotout_percen_f).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_f);
              $("#lotout_percen_g").text(numeral(numeral(lotout_percen_g).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_g);
              $("#lotout_percen_p").text(numeral(numeral(lotout_percen_p).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_p);
              $("#lotout_percen_q").text(numeral(numeral(lotout_percen_q).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(bg_lotout_percen_q);


              DiSumResult   = (numeral(outdieend[0].outdieend).value() / numeral(indieNow1).value()) * 100 ;
              OieSumResult  = (numeral(outovenend[0].outovenend).value() / numeral(inovenNow1).value()) * 100 ;
              WieSumResult  = (numeral(outwirebondend[0].outwirebondend).value() / numeral(inwirebondNow1).value()) * 100 ;
              BondSumResult = (numeral(outbondingend[0].outbondingend).value() / numeral(inbondingNow1).value()) * 100 ;
              MoldSumResult = (numeral(outmoldend[0].outmoldend).value() / numeral(inmoldNow1).value()) * 100 ;
              OvenmoSumResult= (numeral(outoven_moldend[0].outoven_moldend).value() / numeral(inovenmoldNow1).value()) * 100 ;
              DicerSumResult = (numeral(outdicer_actend[0].outdicer_actend).value() / numeral(indicerNow1).value()) * 100 ;
              AppeaSumResult = (numeral(outappearanceend[0].outappearanceend).value() / numeral(inappearaNow1).value()) * 100 ;
              ClassSumResult = (numeral(outclassifyend[0].outclassifyend).value() / numeral(incalssNow1).value()) * 100 ;
      

              if(DiSumResult >= 100 && DiSumResult != 0){var a ='background-color: lime;color: #000;'}else if( DiSumResult <100 && DiSumResult> 0 ){ var a ='background-color: red ;color: #FFF;' }else {var a = "" };
              if(OieSumResult >= 100 && OieSumResult != 0){var b ='background-color: lime;color: #000;'}else if( OieSumResult <100 && OieSumResult> 0){var b ='background-color: red ;color: #FFF;' }else {var b = ""};
              if(WieSumResult >= 100 && WieSumResult != 0){var c ='background-color: lime;color: #000;'}else if( WieSumResult <100 && WieSumResult> 0 ){ var c ='background-color: red ;color: #FFF;' }else {var c = "" };
              if(BondSumResult >= 100 && BondSumResult != 0){var d ='background-color: lime;color: #000;'}else if( BondSumResult <100 && BondSumResult> 0 ){ var d ='background-color: red ;color: #FFF;' }else {var d = "" };
              if(MoldSumResult >= 100 && MoldSumResult != 0){var e ='background-color: lime;color: #000;'}else if( MoldSumResult <100 && MoldSumResult> 0){var e ='background-color: red ;color: #FFF;' }else {var e = ""};
              if(DicerSumResult >= 100 && DicerSumResult != 0){var f ='background-color: lime;color: #000;'}else if( DicerSumResult <100 && DicerSumResult> 0 ){ var f  ='background-color: red ;color: #FFF;' }else {var f = "" };
              if(OvenmoSumResult >= 100 && OvenmoSumResult != 0){var g ='background-color: lime;color: #000;'}else if( OvenmoSumResult <100 && OvenmoSumResult> 0){var g ='background-color: red ;color: #FFF;' }else {var g = ""};
              if(AppeaSumResult >= 100 && AppeaSumResult != 0){var p ='background-color: lime;color: #000;'}else if( AppeaSumResult <100 && AppeaSumResult> 0 ){ var p ='background-color: red ;color: #FFF;' }else {var p = "" };
              if(ClassSumResult >= 95 && ClassSumResult != 0){var q ='background-color: lime;color: #000;'}else if( ClassSumResult <95 && ClassSumResult> 0){var q ='background-color: red ;color: #FFF;' }else {var q = ""};


              var color_diff_a = (outdieend[0].outdieend - pdieNow[0].pdieNow)<0?"f-red":"";
              var color_diff_b = (outovenend[0].outovenend - povenNow[0].povenNow)<0?"f-red":"";
              var color_diff_c = (outwirebondend[0].outwirebondend - pwireNow[0].pwireNow)<0?"f-red":"";
              var color_diff_d = (outbondingend[0].outbondingend - pbondinNow[0].pbondinNow)<0?"f-red":"";
              var color_diff_e = (outmoldend[0].outmoldend - pmoldNow[0].pmoldNow)<0?"f-red":"";
              var color_diff_f = (outoven_moldend[0].outoven_moldend - povenmoldNow[0].povenmoldNow)<0?"f-red":"";
              var color_diff_g = (outdicer_actend[0].outdicer_actend - pdicerNow[0].pdicerNow)<0?"f-red":"";
              var color_diff_p = (outappearanceend[0].outappearanceend - pappeaNow[0].pappeaNow)<0?"f-red":"";
              var color_diff_q = (outclassifyend[0].outclassifyend - pcalssNow[0].pcalssNow)<0?"f-red":"";

              var color_difflot_a = (outdieendlot[0].outdieendlot - pdieNowlot[0].pdieNowlot)<0?"f-red":"";
              var color_difflot_b = (outovenendlot[0].outovenendlot - povenNowlot[0].povenNowlot)<0?"f-red":"";
              var color_difflot_c = (outwirebondendlot[0].outwirebondendlot - pwireNowlot[0].pwireNowlot)<0?"f-red":"";
              var color_difflot_d = (outbondingendlot[0].outbondingendlot - pbondinNowlot[0].pbondinNowlot)<0?"f-red":"";
              var color_difflot_e = (outmoldendlot[0].outmoldendlot - pmoldNowlot[0].pmoldNowlot)<0?"f-red":"";
              var color_difflot_f = (outoven_moldendlot[0].outoven_moldendlot - povenmoldNowlot[0].povenmoldNowlot)<0?"f-red":"";
              var color_difflot_g = (outdicer_actendlot[0].outdicer_actendlot - pdicerNowlot[0].pdicerNowlot)<0?"f-red":"";
              var color_difflot_p = (outappearanceendlot[0].outappearanceendlot - pappeaNowlot[0].pappeaNowlot)<0?"f-red":"";
              var color_difflot_q = (outclassifyendlot[0].outclassifyendlot - pcalssNowlot[0].pcalssNowlot)<0?"f-red":"";

              // difference pcs/lot
                    $("#indieDiff").addClass(color_diff_a).text(numeral(outdieend[0].outdieend - pdieNow[0].pdieNow ).format('0,0'));
                    $("#indielotDiff").addClass(color_difflot_a).text(numeral(outdieendlot[0].outdieendlot - pdieNowlot[0].pdieNowlot).format('0,0'));

                    $("#inovenDiff").addClass(color_diff_b).text(numeral(outovenend[0].outovenend - povenNow[0].povenNow).format('0,0'));
                    $("#inovenlotDiff").addClass(color_difflot_b).text(numeral(outovenendlot[0].outovenendlot - povenNowlot[0].povenNowlot).format('0,0'));

                    $("#inwirebondDiff").addClass(color_diff_c).text(numeral(outwirebondend[0].outwirebondend - pwireNow[0].pwireNow).format('0,0'));
                    $("#inwirebondlotDiff").addClass(color_difflot_c).text(numeral(outwirebondendlot[0].outwirebondendlot - pwireNowlot[0].pwireNowlot).format('0,0'));

                    $("#inbondingDiff").addClass(color_diff_d).text(numeral(outbondingend[0].outbondingend - pbondinNow[0].pbondinNow).format('0,0'));
                    $("#inbondinglotDiff").addClass(color_difflot_d).text(numeral(outbondingendlot[0].outbondingendlot - pbondinNowlot[0].pbondinNowlot).format('0,0'));

                    $("#inmoldDiff").addClass(color_diff_e).text(numeral(outmoldend[0].outmoldend - pmoldNow[0].pmoldNow).format('0,0'));
                    $("#inmoldlotDiff").addClass(color_difflot_e).text(numeral(outmoldendlot[0].outmoldendlot - pmoldNowlot[0].pmoldNowlot).format('0,0'));

                    $("#inovenmoldDiff").addClass(color_diff_f).text(numeral(outoven_moldend[0].outoven_moldend - povenmoldNow[0].povenmoldNow).format('0,0'));
                    $("#inovenmoldlotDiff").addClass(color_difflot_f).text(numeral(outoven_moldendlot[0].outoven_moldendlot - povenmoldNowlot[0].povenmoldNowlot).format('0,0'));

                    $("#indicerDiff").addClass(color_diff_g).text(numeral(outdicer_actend[0].outdicer_actend - pdicerNow[0].pdicerNow).format('0,0'));
                    $("#indicerlotDiff").addClass(color_difflot_g).text(numeral(outdicer_actendlot[0].outdicer_actendlot - pdicerNowlot[0].pdicerNowlot).format('0,0'));

                    $("#inappearaDiff").addClass(color_diff_p).text(numeral(outappearanceend[0].outappearanceend - pappeaNow[0].pappeaNow).format('0,0'));
                    $("#inappearalotDiff").addClass(color_difflot_p).text(numeral(outappearanceendlot[0].outappearanceendlot - pappeaNowlot[0].pappeaNowlot).format('0,0'));

                    $("#incalssDiff").addClass(color_diff_q).text(numeral(outclassifyend[0].outclassifyend - pcalssNow[0].pcalssNow).format('0,0'));
                    $("#incalsslotDiff").addClass(color_difflot_q).text(numeral(outclassifyendlot[0].outclassifyendlot - pcalssNowlot[0].pcalssNowlot).format('0,0'));
              // difference pcs/lot


              if(NgSumbonding >= 0.5){var a1 ='backgrouclass="border-bottom-thin border-right-thin "nd-color: red ;color: #FFFF;'}else if( ClassSumResult <100 && ClassSumResult > 0){var a1 ='background-color: red ;color: #FFFF;' }else {var a1 = ""};
              if(NgSumngmold >= 0.5){var b1 ='background-color: red ;color: #FFFF;'}else if( NgSumngmold <100 && NgSumngmold > 0){var b1 ='background-color: red ;color: #FFFF;' }else {var b1 = ""};
              if(NgSumngdicer >= 0.5){var c1 ='background-color: red ;color: #FFFF;'}else if( NgSumngdicer <100 && NgSumngdicer > 0){var c1 ='background-color: red ;color: #FFFF;' }else {var c1 = ""};
              if(NgSumngappear >= 0.5){var d1 ='background-color: red ;color: #FFFF;'}else if( NgSumngappear <100 && NgSumngappear > 0){var d1 ='background-color: red ;color: #FFFF;' }else {var d1 = ""};
              if(NgSumngclassify >= 0.5){var e1 ='background-color: red ;color: #FFFF;'}else if( NgSumngclassify <100 && NgSumngclassify > 0){var e1 ='background-color: red ;color: #FFFF;' }else {var e1 = ""};
            
              
              $("#DiSumResult").text(DiSumResult);

              
              // ng detail
                if( typeof(t3bonding[0]) != "undefined" ){
                      $("#ant3bonding1").text(t3bonding[0].ng_name);
                      $("#sumant3bonding1").text(numeral((numeral(t3bonding[0].sumqty).value() / numeral(outbondingend2).value()) * 100).format('0,0.00'));
                }else{
                      $("#ant3bonding1").text("");
                      $("#sumant3bonding1").text("0");
                }

                if( typeof(t3bonding[1]) != "undefined" ){
                      $("#ant3bonding2").text(t3bonding[1].ng_name);
                      $("#sumast3bonding2").text(numeral((numeral(t3bonding[1].sumqty).value() / numeral(outbondingend2).value()) * 100).format('0,0.00'));
                }else{
                      $("#ant3bonding2").text("");
                      $("#sumast3bonding2").text("0");                
                }    
          
  
                if( typeof(t3mold[0]) != "undefined" ){
                    $("#ant3mold1").text(t3mold[0].ng_name.substr(0,15));
                    $("#sumant3mold1").text(numeral((numeral(t3mold[0].sumqty).value() / numeral(outmoldend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3mold1").text("");
                    $("#sumant3mold1").text("0");
                }

                if( typeof(t3mold[1]) != "undefined" ){
                    $("#ant3mold2").text(t3mold[1].ng_name.substr(0,15));
                    $("#sumant3mold2").text(numeral((numeral(t3mold[1].sumqty).value() / numeral(outmoldend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3mold2").text("");
                    $("#sumant3mold2").text("0");
                }


                if( typeof(t3dicer[0]) != "undefined" ){
                    $("#ant3dicer1").text(t3dicer[0].ng_name.substr(0,15));
                    $("#sumant3dicer1").text(numeral((numeral(t3dicer[0].sumqty).value() / numeral(outdicer_actend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3dicer1").text("");
                    $("#sumant3dicer1").text("0");
                }

                if( typeof(t3dicer[1]) != "undefined" ){    
                    $("#ant3dicer2").text(t3dicer[1].ng_name.substr(0,15));
                    $("#sumant3dicer2").text(numeral((numeral(t3dicer[1].sumqty).value() / numeral(outdicer_actend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3dicer2").text("");
                    $("#sumant3dicer2").text("0");
                }
              

                if( typeof(t3appea[0]) != "undefined" ){
                    $("#ant3appea1").text(t3appea[0].ng_name.substr(0,15));
                    $("#sumant3appea1").text(numeral((numeral(t3appea[0].sumqty).value() / numeral(outappearanceend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3appea1").text("");
                    $("#sumant3appea1").text("0");
                }

                if( typeof(t3appea[1]) != "undefined" ){
                    $("#ant3appea2").text(t3appea[1].ng_name.substr(0,15));
                    $("#sumant3appea2").text(numeral((numeral(t3appea[1].sumqty).value() / numeral(outappearanceend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3appea2").text("");
                    $("#sumant3appea2").text("0");
                }
              
              
                if( typeof(t3classi[0]) != "undefined" ){
                    $("#ant3classi1").text(t3classi[0].output_name.substr(0,15));
                    $("#sumant3classi1").text(numeral((numeral(t3classi[0].sumng).value() / numeral(outclassifyend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3classi1").text("");
                    $("#sumant3classi1").text("0");
                }
                
                if( typeof(t3classi[1]) != "undefined" ){
                    $("#ant3classi2").text(t3classi[1].output_name.substr(0,15));
                    $("#sumant3classi2").text(numeral((numeral(t3classi[1].sumng).value() / numeral(outclassifyend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#ant3classi2").text("");
                    $("#sumant3classi2").text("0");
                }

            // remark 
                if( typeof(remarkdie) != "undefined" ){
                      $("#remarkdie_a1").text(remarkdie[0].remark);
                }else{
                      $("#remarkdie_a1").text("");
                }

                if( typeof(remarkdie) != "undefined" ){
                      $("#remarkdie_a2").text(remarkdie[1].remark);
                }else{
                      $("#remarkdie_a2").text("");              
                }   

                if( typeof(remarkoven) != "undefined" ){
                      $("#remarkoven_a1").text(remarkoven[0].remark);
                }else{
                      $("#remarkoven_a1").text("");
                }

                if( typeof(remarkoven) != "undefined" ){
                      $("#remarkoven_a2").text(remarkoven[1].remark);
                }else{
                      $("#remarkoven_a2").text("");              
                }

                if( typeof(remarkwirebond) != "undefined" ){
                      $("#remarkwirebond_a1").text(remarkwirebond[0].remark);
                }else{
                      $("#remarkwirebond_a1").text("");
                }

                if( typeof(remarkwirebond) != "undefined" ){
                      $("#remarkwirebond_a2").text(remarkwirebond[1].remark);
                }else{
                      $("#remarkwirebond_a2").text("");              
                }

                if( typeof(remarkmold) != "undefined" ){
                      $("#remarkmold_a1").text(remarkmold[0].remark);
                }else{
                      $("#remarkmold_a1").text("");
                }

                if( typeof(remarkmold) != "undefined" ){
                      $("#remarkmold_a2").text(remarkmold[1].remark);
                }else{
                      $("#remarkmold_a2").text("");              
                }

                if( typeof(remarkovenmold) != "undefined" ){
                      $("#remarkovenmold_a1").text(remarkovenmold[0].remark);
                }else{
                      $("#remarkovenmold_a1").text("");
                }

                if( typeof(remarkovenmold) != "undefined" ){
                      $("#remarkovenmold_a2").text(remarkovenmold[1].remark);
                }else{
                      $("#remarkovenmold_a2").text("");              
                }

                if( typeof(remarkdicer) != "undefined" ){
                      $("#remarkdicer_a1").text(remarkdicer[0].remark);
                }else{
                      $("#remarkdicer_a1").text("");
                }

                if( typeof(remarkdicer) != "undefined" ){
                      $("#remarkdicer_a2").text(remarkdicer[1].remark);
                }else{
                      $("#remarkdicer_a2").text("");              
                }

                if( typeof(remarkclassif) != "undefined" ){
                      $("#remarkclassif_a1").text(remarkclassif[0].remark);
                }else{
                      $("#remarkclassif_a1").text("");
                }

                if( typeof(remarkclassif) != "undefined" ){
                      $("#remarkclassif_a2").text(remarkclassif[1].remark);
                }else{
                      $("#remarkclassif_a2").text("");              
                }

            //////////////////////////////////////////////////////////////
            
             //var ret_prev = data_ret['date_today'];
              var ret_prev = data_ret['data_prev'];
              console.log(ret_prev['dateshow']);
 
              //$("#prev_Resultok").empty();
              //$("#prev_Resultpercen").empty();
              //$("#prev_Png").empty();
              
        
              prev_pdieFull = ret_prev['pdieFull'];
              prev_pdieNow = ret_prev['pdieNow'];
              prev_povenFull = ret_prev['povenFull'];
              prev_povenNow = ret_prev['povenNow'];
              prev_pwireFull = ret_prev['pwireFull'];
              prev_pwireNow = ret_prev['pwireNow'];
              prev_pbondinFull = ret_prev['pbondinFull'];
              prev_pbondinNow = ret_prev['pbondinNow'];
              prev_pmoldFull = ret_prev['pmoldFull'];
              prev_pmoldNow = ret_prev['pmoldNow'];
              prev_povenmoldFull = ret_prev['povenmoldFull'];
              prev_povenmoldNow = ret_prev['povenmoldNow'];
              prev_pdicerFull = ret_prev['pdicerFull'];
              prev_pdicerNow = ret_prev['pdicerNow'];
              prev_pappeaFull = ret_prev['pappeaFull'];
              prev_pappeaNow = ret_prev['pappeaNow'];
              prev_pcalssFull = ret_prev['pcalssFull'];
              prev_pcalssNow = ret_prev['pcalssNow'];


              prev_pdieFulllot = ret_prev['pdieFulllot'];
              prev_pdieNowlot = ret_prev['pdieNowlot'];
              prev_povenFulllot = ret_prev['povenFulllot'];
              prev_povenNowlot = ret_prev['povenNowlot'];
              prev_pwireFulllot = ret_prev['pwireFulllot'];
              prev_pwireNowlot = ret_prev['pwireNowlot'];
              prev_pbondinFulllot = ret_prev['pbondinFulllot'];
              prev_pbondinNowlot = ret_prev['pbondinNowlot'];
              prev_pmoldFulllot = ret_prev['pmoldFulllot'];
              prev_pmoldNowlot = ret_prev['pmoldNowlot'];
              prev_povenmoldFulllot = ret_prev['povenmoldFulllot'];
              prev_povenmoldNowlot = ret_prev['povenmoldNowlot'];
              prev_pdicerFulllot = ret_prev['pdicerFulllot'];
              prev_pdicerNowlot = ret_prev['pdicerNowlot'];
              prev_pappeaFulllot = ret_prev['pappeaFulllot'];
              prev_pappeaNowlot = ret_prev['pappeaNowlot'];
              prev_pcalssFulllot = ret_prev['pcalssFulllot'];
              prev_pcalssNowlot = ret_prev['pcalssNowlot'];


              prev_indieNow = ret_prev['indieNow'];
              prev_inovenNow = ret_prev['inovenNow'];
              prev_inwirebondNow = ret_prev['inwirebondNow'];
              prev_inbondingNow = ret_prev['inbondingNow'];
              prev_inmoldNow = ret_prev['inmoldNow'];
              prev_inovenmoldNow = ret_prev['inovenmoldNow'];
              prev_indicerNow = ret_prev['indicerNow'];
              prev_inappearaNow = ret_prev['inappearaNow'];
              prev_incalssNow = ret_prev['incalssNow'];

              // input lot
              prev_indieNowlot = ret_prev['indieNowlot']; 
              prev_inovenNowlot = ret_prev['inovenNowlot'];
              prev_inwirebondNowlot = ret_prev['inwirebondNowlot'];
              prev_inbondingNowlot = ret_prev['inbondingNowlot'];
              prev_inmoldNowlot = ret_prev['inmoldNowlot'];
              prev_inovenmoldNowlot = ret_prev['inovenmoldNowlot'];
              prev_indicerNowlot = ret_prev['indicerNowlot'];
              prev_inappearaNowlot = ret_prev['inappearaNowlot'];
              prev_incalssNowlot = ret_prev['incalssNowlot'];
              // end input lot

              prev_outdieend = ret_prev['outdieend'];
              prev_outovenend = ret_prev['outovenend'];
              prev_outwirebondend = ret_prev['outwirebondend'];
              prev_outbondingend = ret_prev['outbondingend'];
              prev_outmoldend = ret_prev['outmoldend'];
              prev_outoven_moldend = ret_prev['outoven_moldend'];
              prev_outdicer_actend = ret_prev['outdicer_actend'];
              prev_outappearanceend = ret_prev['outappearanceend'];
              prev_outclassifyend = ret_prev['outclassifyend'];

              // output lot
              prev_outdieendlot = ret_prev['outdieendlot'];
              prev_outovenendlot = ret_prev['outovenendlot'];
              prev_outwirebondendlot = ret_prev['outwirebondendlot'];
              prev_outbondingendlot = ret_prev['outbondingendlot'];
              prev_outmoldendlot = ret_prev['outmoldendlot'];
              prev_outoven_moldendlot = ret_prev['outoven_moldendlot'];
              prev_outdicer_actendlot = ret_prev['outdicer_actendlot'];
              prev_outappearanceendlot = ret_prev['outappearanceendlot'];
              prev_outclassifyendlot = ret_prev['outclassifyendlot'];
              // end output lot

              prev_ngdiebond = 0;
              prev_ngovendiebond = 0;
              prev_ngwirebond = 0;
              prev_ngbonding = (ret_prev['ngbonding'][0].ngbonding==null)?0:ret_prev['ngbonding'][0].ngbonding;
              prev_ngmold = (ret_prev['ngmold'][0].ngmold==null)?0:ret_prev['ngmold'][0].ngmold;
              //console.log(ret_prev['ngmold'][0].ngmold);
              prev_ngovenmold = 0;
              prev_ngdicer = (ret_prev['ngdicer'][0].ngdicer==null)?0:ret_prev['ngdicer'][0].ngdicer;
              prev_ngappear = (ret_prev['ngappear'][0].ngappear==null)?0:ret_prev['ngappear'][0].ngappear;
              prev_ngclassify = (ret_prev['ngclassify'][0].ngclassify==null)?0:ret_prev['ngclassify'][0].ngclassify;

              prev_t3bonding = ret_prev['t3bonding'];
              prev_t3mold = ret_prev['t3mold'];
              prev_t3dicer = ret_prev['t3dicer'];
              prev_t3appea = ret_prev['t3appea'];
              prev_t3classi = ret_prev['t3classi'];
              prev_dateshow = ret_prev['dateshow'];
              prev_timeshow = ret_prev['timeshow'];

              prev_datestring = ret_prev['datestring'];

              $('.prev-digital-date').text(prev_dateshow);
              $('.prev-digital-time').text(prev_timeshow);
              $('.prev-datestring').text(prev_datestring);

              var prev_indieNow1 = 0;
              var prev_inovenNow1 = 0;
              var prev_inwirebondNow1 = 0;
              var prev_inbondingNow1 = 0;
              var prev_inmoldNow1 = 0;
              var prev_inovenmoldNow1 = 0;
              var prev_indicerNow1 = 0;
              var prev_inappearaNow1 = 0;
              var prev_incalssNow1 = 0;

              var prev_outbondingend2 = 0;
              var prev_outmoldend2 = 0;
              var prev_outdicer_actend2 = 0;
              var prev_outappearanceend2 = 0;
              var prev_outclassifyend2 = 0;


              var prev_DiSumResult = 0;
              var prev_OdiSumResult = 0;
              var prev_WieSumResult = 0;
              var prev_BondSumResult = 0;
              var prev_MoldSumResult = 0;
              var prev_OvenmoSumResult = 0;
              var prev_DicerSumResult = 0;
              var prev_MoldSumResult = 0;
              var prev_AppeaSumResult = 0;
              var prev_ClassSumResult = 0;

              var prev_NgSumdiebond = 0;
              var prev_NgSumovendiebond = 0;
              var prev_NgSumwirebond = 0;
              var prev_NgSumbonding = 0;
              var prev_NgSumngmold = 0;
              var prev_NgSumngovenmold = 0;
              var prev_NgSumngdicer = 0;
              var prev_NgSumngappear = 0;
              var prev_NgSumngclassify = 0;

              var prev_lotout_a = 0;
              var prev_lotout_b = 0;
              var prev_lotout_c = 0;
              var prev_lotout_d = 0;
              var prev_lotout_e = 0;
              var prev_lotout_f = 0;
              var prev_lotout_g = 0;
              var prev_lotout_p = 0;
              var prev_lotout_q = 0;

              var prev_lotout_percen_a = 0;
              var prev_lotout_percen_b = 0;
              var prev_lotout_percen_c = 0;
              var prev_lotout_percen_d = 0;
              var prev_lotout_percen_e = 0;
              var prev_lotout_percen_f = 0;
              var prev_lotout_percen_g = 0;
              var prev_lotout_percen_p = 0;
              var prev_lotout_percen_q = 0;
              
              var prev_diebond_ok = 0;
              var prev_ovendiebond_ok = 0;
              var prev_wirebond_ok = 0;
              var prev_bondingins_ok = 0;
              var prev_mold_ok = 0;
              var prev_ovenmold_ok = 0;
              var prev_dicer_ok = 0;
              var prev_appear_ok = 0;
              var prev_classify_ok = 0;

              if(prev_indieNow[0].indieNow !== 0){ prev_indieNow1 = numeral(prev_indieNow[0].indieNow).format('0,0')}else{ prev_indieNow1 = 0.001};
              if(prev_inovenNow[0].inovenNow !== 0){ prev_inovenNow1 = numeral(prev_inovenNow[0].inovenNow).format('0,0')}else{ prev_inovenNow1 = 0.001};
              if(prev_inwirebondNow[0].inwirebondNow !== 0){ prev_inwirebondNow1 = numeral(prev_inwirebondNow[0].inwirebondNow).format('0,0')}else{ prev_inwirebondNow1 = 0.001};
              if(prev_inbondingNow[0].inbondingNow !== 0){ prev_inbondingNow1 = numeral(prev_inbondingNow[0].inbondingNow).format('0,0')}else{ prev_inbondingNow1 = 0.001};
              if(prev_inmoldNow[0].inmoldNow !== 0){ prev_inmoldNow1 = numeral(prev_inmoldNow[0].inmoldNow).format('0,0')}else{ prev_inmoldNow1 = 0.001};
              if( typeof(prev_inovenmoldNow[0]) != "undefined" && prev_inovenmoldNow[0].inovenmoldNow !== 0){ prev_inovenmoldNow1 = numeral(prev_inovenmoldNow[0].inovenmoldNow).format('0,0')}else{ prev_inovenmoldNow1 = 0.001};
              if(prev_indicerNow[0].indicerNow !== 0){ prev_indicerNow1 = numeral(prev_indicerNow[0].indicerNow).format('0,0')}else{ prev_indicerNow1 = 0.001};
              if(prev_inappearaNow[0].inappearaNow !== 0){ prev_inappearaNow1 = numeral(prev_inappearaNow[0].inappearaNow).format('0,0')}else{ prev_inappearaNow1 = 0.001};
              if(prev_incalssNow[0].incalssNow !== 0){ prev_incalssNow1 = numeral(prev_incalssNow[0].incalssNow).format('0,0')}else{ prev_incalssNow1 = 0.001};

              if(prev_outbondingend[0].outbondingend !== 0){ prev_outbondingend2 = numeral(prev_outbondingend[0].outbondingend).format('0,0')}else{ prev_outbondingend2 = 0.001};
              if(prev_outmoldend[0].outmoldend !== 0){ prev_outmoldend2 = numeral(prev_outmoldend[0].outmoldend).format('0,0')}else{ prev_outmoldend2 = 0.001};
              if(prev_outdicer_actend[0].outdicer_actend !== 0){ prev_outdicer_actend2 = numeral(prev_outdicer_actend[0].outdicer_actend).format('0,0')}else{ prev_outdicer_actend2 = 0.001};
              if(prev_outappearanceend[0].outappearanceend !== 0){ prev_outappearanceend2 = numeral(prev_outappearanceend[0].outappearanceend).format('0,0')}else{ prev_outappearanceend2 = 0.001};
              if(prev_outclassifyend[0].outclassifyend !== 0){ prev_outclassifyend2 = numeral(prev_outclassifyend[0].outclassifyend).format('0,0')}else{ prev_outclassifyend2 = 0.001};

              prev_NgSumbonding = (numeral(prev_ngbonding).value() / numeral(prev_outbondingend2).value()) * 100 ;
              prev_NgSumngmold = (numeral(prev_ngmold).value() / numeral(prev_outmoldend2).value()) * 100 ;
              prev_NgSumngdicer = (numeral(prev_ngdicer).value() / numeral(prev_outdicer_actend2).value()) * 100 ;
              prev_NgSumngappear = (numeral(prev_ngappear).value() / numeral(prev_outappearanceend2).value()) * 100 ;
              prev_NgSumngclassify = (numeral(prev_ngclassify).value() / numeral(prev_outclassifyend2).value()) * 100 ;


              prev_diebond_ok =  (numeral(prev_outdieend[0].outdieend).value() - numeral(prev_ngdiebond).value());
              prev_ovendiebond_ok =  (numeral(prev_outovenend[0].outovenend).value() - numeral(prev_ngovendiebond).value());
              prev_wirebond_ok =  (numeral(prev_outwirebondend[0].outwirebondend).value() - numeral(prev_ngwirebond).value());
              prev_bondingins_ok =  (numeral(prev_outbondingend[0].outbondingend).value() - numeral(prev_ngbonding).value());
              prev_mold_ok =  (numeral(prev_outmoldend[0].outmoldend).value() - numeral(prev_ngmold).value());
              prev_ovenmold_ok =  (numeral(prev_outoven_moldend[0].outoven_moldend).value() - numeral(prev_ngovenmold).value());
              prev_dicer_ok =  (numeral(prev_outdicer_actend[0].outdicer_actend).value()  -numeral(prev_ngdicer).value());
              prev_appear_ok =  (numeral(prev_outappearanceend[0].outappearanceend).value() - numeral(prev_ngappear).value());
              prev_classify_ok =  (numeral(prev_outclassifyend[0].outclassifyend).value() - numeral(prev_ngclassify).value() );

              prev_lotout_a = (numeral(prev_outdieend[0].outdieend).value() - numeral(prev_diebond_ok).value()) - numeral(prev_ngdiebond).value();
              prev_lotout_b = (numeral(prev_outovenend[0].outovenend).value() - numeral(prev_ovendiebond_ok).value()) - numeral(prev_ngovendiebond).value() ;
              prev_lotout_c = (numeral(prev_outwirebondend[0].outwirebondend).value() - numeral(prev_wirebond_ok).value()) - numeral(prev_ngwirebond).value() ;
              prev_lotout_d = (numeral(prev_outbondingend[0].outbondingend).value() - numeral(prev_bondingins_ok).value()) - numeral(prev_ngbonding).value() ;
              prev_lotout_e = (numeral(prev_outmoldend[0].outmoldend).value() - numeral(prev_mold_ok).value()) - numeral(prev_ngmold).value() ;
              prev_lotout_f = (numeral(prev_outoven_moldend[0].outoven_moldend).value() - numeral(prev_ovenmold_ok).value()) - numeral(prev_ngovenmold).value() ;
              prev_lotout_g = (numeral(prev_outdicer_actend[0].outdicer_actend).value() - numeral(prev_dicer_ok).value()) - numeral(prev_ngdicer).value();
              prev_lotout_p = (numeral(prev_outappearanceend[0].outappearanceend).value() - numeral(prev_appear_ok).value()) - numeral(prev_ngappear).value() ;
              prev_lotout_q = (numeral(prev_outclassifyend[0].outclassifyend).value() - numeral(prev_classify_ok).value()) - numeral(prev_ngclassify).value() ;

              prev_lotout_percen_a = numeral(prev_lotout_a).value() / numeral(prev_indieNow[0].indieNow).value()
              prev_lotout_percen_b = numeral(prev_lotout_b).value() / numeral(prev_inovenNow[0].inovenNow).value()
              prev_lotout_percen_c = numeral(prev_lotout_c).value() / numeral(prev_inwirebondNow[0].inwirebondNow).value()
              prev_lotout_percen_d = numeral(prev_lotout_d).value() / numeral(prev_inbondingNow[0].inbondingNow).value()
              prev_lotout_percen_e = numeral(prev_lotout_e).value() / numeral(prev_inmoldNow[0].inmoldNow).value()
              prev_lotout_percen_f = numeral(prev_lotout_f).value() / numeral(prev_inovenmoldNow[0].inovenmoldNow).value()
              prev_lotout_percen_g = numeral(prev_lotout_g).value() / numeral(prev_indicerNow[0].indicerNow).value()
              prev_lotout_percen_p = numeral(prev_lotout_p).value() / numeral(prev_inappearaNow[0].inappearaNow).value()
              prev_lotout_percen_q = numeral(prev_lotout_q).value() / numeral(prev_incalssNow[0].incalssNow).value()

              var prev_bg_lotout_percen_a = "bg-white";
              var prev_bg_lotout_percen_b = "bg-white";
              var prev_bg_lotout_percen_c = "bg-white";
              var prev_bg_lotout_percen_d = "bg-white";
              var prev_bg_lotout_percen_e = "bg-white";
              var prev_bg_lotout_percen_f = "bg-white";
              var prev_bg_lotout_percen_g = "bg-white";
              var prev_bg_lotout_percen_p = "bg-white";
              var prev_bg_lotout_percen_q = "bg-white";

              if( prev_lotout_percen_a>0 ) { prev_bg_lotout_percen_a = "bg-red"; }
              if( prev_lotout_percen_b>0 ) { prev_bg_lotout_percen_b = "bg-red"; }
              if( prev_lotout_percen_c>0 ) { prev_bg_lotout_percen_c = "bg-red"; }
              if( prev_lotout_percen_d>0 ) { prev_bg_lotout_percen_d = "bg-red"; }
              if( prev_lotout_percen_e>0 ) { prev_bg_lotout_percen_e = "bg-red"; }
              if( prev_lotout_percen_f>0 ) { prev_bg_lotout_percen_f = "bg-red"; }
              if( prev_lotout_percen_g>0 ) { prev_bg_lotout_percen_g = "bg-red"; }
              if( prev_lotout_percen_p>0 ) { prev_bg_lotout_percen_p = "bg-red"; }
              if( prev_lotout_percen_q>0 ) { prev_bg_lotout_percen_q = "bg-red"; }



              $("#prev_pdieFull").text(numeral(prev_pdieFull[0].pdieFull).format('0,0'));
              $("#prev_pdieNow").text(numeral(prev_pdieNow[0].pdieNow).format('0,0'));
              $("#prev_povenNow").text(numeral(prev_povenNow[0].povenNow).format('0,0'));
              $("#prev_povenFull").text(numeral(prev_povenFull[0].povenFull).format('0,0'));
              $("#prev_pwireFull").text(numeral(prev_pwireFull[0].pwireFull).format('0,0'));
              $("#prev_pwireNow").text(numeral(prev_pwireNow[0].pwireNow).format('0,0'));
              $("#prev_pbondinFull").text(numeral(prev_pbondinFull[0].pbondinFull).format('0,0'));
              $("#prev_pbondinNow").text(numeral(prev_pbondinNow[0].pbondinNow).format('0,0'));
              $("#prev_pmoldFull").text(numeral(prev_pmoldFull[0].pmoldFull).format('0,0'));
              $("#prev_pmoldNow").text(numeral(prev_pmoldNow[0].pmoldNow).format('0,0'));
              $("#prev_povenmoldFull").text(numeral(prev_povenmoldFull[0].povenmoldFull).format('0,0'));
              $("#prev_povenmoldNow").text(numeral(prev_povenmoldNow[0].povenmoldNow).format('0,0'));
              $("#prev_pdicerNow").text(numeral(prev_pdicerNow[0].pdicerNow).format('0,0'));
              $("#prev_pdicerFull").text(numeral(prev_pdicerFull[0].pdicerFull).format('0,0'));
              $("#prev_pappeaFull").text(numeral(prev_pappeaFull[0].pappeaFull).format('0,0'));
              $("#prev_pappeaNow").text(numeral(prev_pappeaNow[0].pappeaNow).format('0,0'));
              $(".prev_pcalssFull").text(numeral(prev_pcalssFull[0].pcalssFull).format('0,0'));
              $(".prev_pcalssNow").text(numeral(prev_pcalssNow[0].pcalssNow).format('0,0'));

              $("#prev_pdieFulllot").text(numeral(prev_pdieFulllot[0].pdieFulllot).format('0,0'));
              $("#prev_pdieNowlot").text(numeral(prev_pdieNowlot[0].pdieNowlot).format('0,0'));
              $("#prev_povenNowlot").text(numeral(prev_povenNowlot[0].povenNowlot).format('0,0'));
              $("#prev_povenFulllot").text(numeral(prev_povenFulllot[0].povenFulllot).format('0,0'));
              $("#prev_pwireFulllot").text(numeral(prev_pwireFulllot[0].pwireFulllot).format('0,0'));
              $("#prev_pwireNowlot").text(numeral(prev_pwireNowlot[0].pwireNowlot).format('0,0'));
              $("#prev_pbondinFulllot").text(numeral(prev_pbondinFulllot[0].pbondinFulllot).format('0,0'));
              $("#prev_pbondinNowlot").text(numeral(prev_pbondinNowlot[0].pbondinNowlot).format('0,0'));
              $("#prev_pmoldFulllot").text(numeral(prev_pmoldFulllot[0].pmoldFulllot).format('0,0'));
              $("#prev_pmoldNowlot").text(numeral(prev_pmoldNowlot[0].pmoldNowlot).format('0,0'));
              $("#prev_povenmoldFulllot").text(numeral(prev_povenmoldFulllot[0].povenmoldFulllot).format('0,0'));
              $("#prev_povenmoldNowlot").text(numeral(prev_povenmoldNowlot[0].povenmoldNowlot).format('0,0'));
              $("#prev_pdicerNowlot").text(numeral(prev_pdicerNowlot[0].pdicerNowlot).format('0,0'));
              $("#prev_pdicerFulllot").text(numeral(prev_pdicerFulllot[0].pdicerFulllot).format('0,0'));
              $("#prev_pappeaFulllot").text(numeral(prev_pappeaFulllot[0].pappeaFulllot).format('0,0'));
              $("#prev_pappeaNowlot").text(numeral(prev_pappeaNowlot[0].pappeaNowlot).format('0,0'));
              $(".prev_pcalssFulllot").text(numeral(prev_pcalssFulllot[0].pcalssFulllot).format('0,0'));
              $(".prev_pcalssNowlot").text(numeral(prev_pcalssNowlot[0].pcalssNowlot).format('0,0'));

              $(".prev_ocalsspcs").text(numeral(prev_outclassifyend[0].outclassifyend).format('0,0'));

              
              var prev_difclass = numeral(prev_outclassifyend[0].outclassifyend).value() - numeral(pcalssNow[0].pcalssNow).value() 
              if( prev_difclass<0 ){
                $(".prev_difclass").addClass("text-danger");
              }else{
                $(".prev_difclass").removeClass("text-danger");
              }
              $(".prev_difclass").text(numeral(prev_difclass).format('0,0'));
              
              $("#prev_indieNow").text(numeral(prev_indieNow[0].indieNow).format('0,0'));
              $("#prev_inovenNow").text(numeral(prev_inovenNow[0].inovenNow).format('0,0'));
              $("#prev_inwirebondNow").text(numeral(prev_inwirebondNow[0].inwirebondNow).format('0,0'));
              $("#prev_inbondingNow").text(numeral(prev_inbondingNow[0].inbondingNow).format('0,0'));
              $("#prev_inmoldNow").text(numeral(prev_inmoldNow[0].inmoldNow).format('0,0'));
              $("#prev_inovenmoldNow").text(numeral(prev_inovenmoldNow[0].inovenmoldNow).format('0,0'));
              $("#prev_indicerNow").text(numeral(prev_indicerNow[0].indicerNow).format('0,0'));
              $("#prev_inappearaNow").text(numeral(prev_inappearaNow[0].inappearaNow).format('0,0'));
              $("#prev_incalssNow").text(numeral(prev_incalssNow[0].incalssNow).format('0,0'));

              // start input lot
              $("#prev_indieNowlot").text(numeral(prev_indieNowlot[0].indieNowlot).format('0,0'));
              $("#prev_inovenNowlot").text(numeral(prev_inovenNowlot[0].inovenNowlot).format('0,0'));
              $("#prev_inwirebondNowlot").text(numeral(prev_inwirebondNowlot[0].inwirebondNowlot).format('0,0'));
              $("#prev_inbondingNowlot").text(numeral(prev_inbondingNowlot[0].inbondingNowlot).format('0,0'));
              $("#prev_inmoldNowlot").text(numeral(prev_inmoldNowlot[0].inmoldNowlot).format('0,0'));
              $("#prev_inovenmoldNowlot").text(numeral(prev_inovenmoldNowlot[0].inovenmoldNowlot).format('0,0'));
              $("#prev_indicerNowlot").text(numeral(prev_indicerNowlot[0].indicerNowlot).format('0,0'));
              $("#prev_inappearaNowlot").text(numeral(prev_inappearaNowlot[0].inappearaNowlot).format('0,0'));
              $("#prev_incalssNowlot").text(numeral(prev_incalssNowlot[0].incalssNowlot).format('0,0'));
              // end input lot

              $("#prev_ngdiebond").text(numeral(prev_ngdiebond).format('0,0'));
              $("#prev_ngovendiebond").text(numeral(prev_ngovendiebond).format('0,0'));
              $("#prev_ngwirebond").text(numeral(prev_ngwirebond).format('0,0'));
              $("#prev_ngbonding").text(numeral(prev_ngbonding).format('0,0'));
              $("#prev_ngmold").text(numeral(prev_ngmold).format('0,0'));
              $("#prev_ngovenmold").text(numeral(prev_ngovenmold).format('0,0'));
              $("#prev_ngdicer").text(numeral(prev_ngdicer).format('0,0'));
              $("#prev_ngappear").text(numeral(prev_ngappear).format('0,0'));
              $("#prev_ngclassify").text(numeral(prev_ngclassify).format('0,0'));

              $("#prev_lotout_a").text(numeral(prev_lotout_a).format('0,0'));
              $("#prev_lotout_b").text(numeral(prev_lotout_b).format('0,0'));
              $("#prev_lotout_c").text(numeral(prev_lotout_c).format('0,0'));
              $("#prev_lotout_d").text(numeral(prev_lotout_d).format('0,0'));
              $("#prev_lotout_e").text(numeral(prev_lotout_e).format('0,0'));
              $("#prev_lotout_f").text(numeral(prev_lotout_f).format('0,0'));
              $("#prev_lotout_g").text(numeral(prev_lotout_g).format('0,0'));
              $("#prev_lotout_p").text(numeral(prev_lotout_p).format('0,0'));
              $("#prev_lotout_q").text(numeral(prev_lotout_q).format('0,0'));

              $("#prev_lotout_percen_a").text(numeral(numeral(prev_lotout_percen_a).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_a);
              $("#prev_lotout_percen_b").text(numeral(numeral(prev_lotout_percen_b).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_b);
              $("#prev_lotout_percen_c").text(numeral(numeral(prev_lotout_percen_c).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_c);
              $("#prev_lotout_percen_d").text(numeral(numeral(prev_lotout_percen_d).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_d);
              $("#prev_lotout_percen_e").text(numeral(numeral(prev_lotout_percen_e).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_e);
              $("#prev_lotout_percen_f").text(numeral(numeral(prev_lotout_percen_f).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_f);
              $("#prev_lotout_percen_g").text(numeral(numeral(prev_lotout_percen_g).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_g);
              $("#prev_lotout_percen_p").text(numeral(numeral(prev_lotout_percen_p).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_p);
              $("#prev_lotout_percen_q").text(numeral(numeral(prev_lotout_percen_q).value() * 100).format('0,0.00')).removeClass("bg-white bg-red").addClass(prev_bg_lotout_percen_q);


              prev_DiSumResult   = (numeral(prev_outdieend[0].outdieend).value() / numeral(prev_indieNow1).value()) * 100 ;
              prev_OieSumResult  = (numeral(prev_outovenend[0].outovenend).value() / numeral(prev_inovenNow1).value()) * 100 ;
              prev_WieSumResult  = (numeral(prev_outwirebondend[0].outwirebondend).value() / numeral(prev_inwirebondNow1).value()) * 100 ;
              prev_BondSumResult = (numeral(prev_outbondingend[0].outbondingend).value() / numeral(prev_inbondingNow1).value()) * 100 ;
              prev_MoldSumResult = (numeral(prev_outmoldend[0].outmoldend).value() / numeral(prev_inmoldNow1).value()) * 100 ;
              prev_OvenmoSumResult= (numeral(prev_outoven_moldend[0].outoven_moldend).value() / numeral(prev_inovenmoldNow1).value()) * 100 ;
              prev_DicerSumResult = (numeral(prev_outdicer_actend[0].outdicer_actend).value() / numeral(prev_indicerNow1).value()) * 100 ;
              prev_AppeaSumResult = (numeral(prev_outappearanceend[0].outappearanceend).value() / numeral(prev_inappearaNow1).value()) * 100 ;
              prev_ClassSumResult = (numeral(prev_outclassifyend[0].outclassifyend).value() / numeral(prev_incalssNow1).value()) * 100 ;
      

              if(prev_DiSumResult >= 100 && prev_DiSumResult != 0){var prev_a ='background-color: lime;color: #000;'}else if( prev_DiSumResult <100 && prev_DiSumResult> 0 ){ var prev_a ='background-color: red ;color: #FFF;' }else {var prev_a = "" };
              if(prev_OieSumResult >= 100 && prev_OieSumResult != 0){var prev_b ='background-color: lime;color: #000;'}else if( prev_OieSumResult <100 && prev_OieSumResult> 0){var prev_b ='background-color: red ;color: #FFF;' }else {var prev_b = ""};
              if(prev_WieSumResult >= 100 && prev_WieSumResult != 0){var prev_c ='background-color: lime;color: #000;'}else if( prev_WieSumResult <100 && prev_WieSumResult> 0 ){ var prev_c ='background-color: red ;color: #FFF;' }else {var prev_c = "" };
              if(prev_BondSumResult >= 100 && prev_BondSumResult != 0){var prev_d ='background-color: lime;color: #000;'}else if( prev_BondSumResult <100 && prev_BondSumResult> 0 ){ var prev_d ='background-color: red ;color: #FFF;' }else {var prev_d = "" };
              if(prev_MoldSumResult >= 100 && prev_MoldSumResult != 0){var prev_e ='background-color: lime;color: #000;'}else if( prev_MoldSumResult <100 && prev_MoldSumResult> 0){var prev_e ='background-color: red ;color: #FFF;' }else {var prev_e = ""};
              if(prev_DicerSumResult >= 100 && prev_DicerSumResult != 0){var prev_f ='background-color: lime;color: #000;'}else if( prev_DicerSumResult <100 && prev_DicerSumResult> 0 ){ var prev_f  ='background-color: red ;color: #FFF;' }else {var prev_f = "" };
              if(prev_OvenmoSumResult >= 100 && prev_OvenmoSumResult != 0){var prev_g ='background-color: lime;color: #000;'}else if( prev_OvenmoSumResult <100 && prev_OvenmoSumResult> 0){var prev_g ='background-color: red ;color: #FFF;' }else {var prev_g = ""};
              if(prev_AppeaSumResult >= 100 && prev_AppeaSumResult != 0){var prev_p ='background-color: lime;color: #000;'}else if( prev_AppeaSumResult <100 && prev_AppeaSumResult> 0 ){ var prev_p ='background-color: red ;color: #FFF;' }else {var prev_p = "" };
              if(prev_ClassSumResult >= 95 && prev_ClassSumResult != 0){var prev_q ='background-color: lime;color: #000;'}else if( prev_ClassSumResult <95 && prev_ClassSumResult> 0){var prev_q ='background-color: red ;color: #FFF;' }else {var prev_q = ""};     


              var prev_color_diff_a = (prev_outdieend[0].outdieend - prev_pdieNow[0].pdieNow)<0?"f-red":"";
              var prev_color_diff_b = (prev_outovenend[0].outovenend - prev_povenNow[0].povenNow)<0?"f-red":"";
              var prev_color_diff_c = (prev_outwirebondend[0].outwirebondend - prev_pwireNow[0].pwireNow)<0?"f-red":"";
              var prev_color_diff_d = (prev_outbondingend[0].outbondingend - prev_pbondinNow[0].pbondinNow)<0?"f-red":"";
              var prev_color_diff_e = (prev_outmoldend[0].outmoldend - prev_pmoldNow[0].pmoldNow)<0?"f-red":"";
              var prev_color_diff_f = (prev_outoven_moldend[0].outoven_moldend - prev_povenmoldNow[0].povenmoldNow)<0?"f-red":"";
              var prev_color_diff_g = (prev_outdicer_actend[0].outdicer_actend - prev_pdicerNow[0].pdicerNow)<0?"f-red":"";
              var prev_color_diff_p = (prev_outappearanceend[0].outappearanceend - prev_pappeaNow[0].pappeaNow)<0?"f-red":"";
              var prev_color_diff_q = (prev_outclassifyend[0].outclassifyend - prev_pcalssNow[0].pcalssNow)<0?"f-red":"";

              var prev_color_difflot_a = (prev_outdieendlot[0].outdieendlot - prev_pdieNowlot[0].pdieNowlot)<0?"f-red":"";
              var prev_color_difflot_b = (prev_outovenendlot[0].outovenendlot - prev_povenNowlot[0].povenNowlot)<0?"f-red":"";
              var prev_color_difflot_c = (prev_outwirebondendlot[0].outwirebondendlot - prev_pwireNowlot[0].pwireNowlot)<0?"f-red":"";
              var prev_color_difflot_d = (prev_outbondingendlot[0].outbondingendlot - prev_pbondinNowlot[0].pbondinNowlot)<0?"f-red":"";
              var prev_color_difflot_e = (prev_outmoldendlot[0].outmoldendlot - prev_pmoldNowlot[0].pmoldNowlot)<0?"f-red":"";
              var prev_color_difflot_f = (prev_outoven_moldendlot[0].outoven_moldendlot - prev_povenmoldNowlot[0].povenmoldNowlot)<0?"f-red":"";
              var prev_color_difflot_g = (prev_outdicer_actendlot[0].outdicer_actendlot - prev_pdicerNowlot[0].pdicerNowlot)<0?"f-red":"";
              var prev_color_difflot_p = (prev_outappearanceendlot[0].outappearanceendlot - prev_pappeaNowlot[0].pappeaNowlot)<0?"f-red":"";
              var prev_color_difflot_q = (prev_outclassifyendlot[0].outclassifyendlot - prev_pcalssNowlot[0].pcalssNowlot)<0?"f-red":"";

              // prev difference pcs/lot
                    $("#prev_indieDiff").addClass(prev_color_diff_a).text(numeral(prev_outdieend[0].outdieend - prev_pdieNow[0].pdieNow ).format('0,0'));
                    $("#prev_indielotDiff").addClass(prev_color_difflot_a).text(numeral(prev_outdieendlot[0].outdieendlot - prev_pdieNowlot[0].pdieNowlot).format('0,0'));
                    
                    $("#prev_inovenDiff").addClass(prev_color_diff_b).text(numeral(prev_outovenend[0].outovenend - prev_povenNow[0].povenNow).format('0,0'));
                    $("#prev_inovenlotDiff").addClass(prev_color_difflot_b).text(numeral(prev_outovenendlot[0].outovenendlot - prev_povenNowlot[0].povenNowlot).format('0,0'));
                    
                    $("#prev_inwirebondDiff").addClass(prev_color_diff_c).text(numeral(prev_outwirebondend[0].outwirebondend - prev_pwireNow[0].pwireNow).format('0,0'));
                    $("#prev_inwirebondlotDiff").addClass(prev_color_difflot_c).text(numeral(prev_outwirebondendlot[0].outwirebondendlot - prev_pwireNowlot[0].pwireNowlot).format('0,0'));

                    $("#prev_inbondingDiff").addClass(prev_color_diff_d).text(numeral(prev_outbondingend[0].outbondingend - prev_pbondinNow[0].pbondinNow).format('0,0'));
                    $("#prev_inbondinglotDiff").addClass(prev_color_difflot_d).text(numeral(prev_outbondingendlot[0].outbondingendlot - prev_pbondinNowlot[0].pbondinNowlot).format('0,0'));

                    $("#prev_inmoldDiff").addClass(prev_color_diff_e).text(numeral(prev_outmoldend[0].outmoldend - prev_pmoldNow[0].pmoldNow).format('0,0'));
                    $("#prev_inmoldlotDiff").addClass(prev_color_difflot_e).text(numeral(prev_outmoldendlot[0].outmoldendlot - prev_pmoldNowlot[0].pmoldNowlot).format('0,0'));

                    $("#prev_inovenmoldDiff").addClass(prev_color_diff_f).text(numeral(prev_outoven_moldend[0].outoven_moldend - prev_povenmoldNow[0].povenmoldNow).format('0,0'));
                    $("#prev_inovenmoldlotDiff").addClass(prev_color_difflot_f).text(numeral(prev_outoven_moldendlot[0].outoven_moldendlot - prev_povenmoldNowlot[0].povenmoldNowlot).format('0,0'));

                    $("#prev_indicerDiff").addClass(prev_color_diff_g).text(numeral(prev_outdicer_actend[0].outdicer_actend - prev_pdicerNow[0].pdicerNow).format('0,0'));
                    $("#prev_indicerlotDiff").addClass(prev_color_difflot_g).text(numeral(prev_outdicer_actendlot[0].outdicer_actendlot - prev_pdicerNowlot[0].pdicerNowlot).format('0,0'));

                    $("#prev_inappearaDiff").addClass(prev_color_diff_p).text(numeral(prev_outappearanceend[0].outappearanceend - prev_pappeaNow[0].pappeaNow).format('0,0'));
                    $("#prev_inappearalotDiff").addClass(prev_color_difflot_p).text(numeral(prev_outappearanceendlot[0].outappearanceendlot - prev_pappeaNowlot[0].pappeaNowlot).format('0,0'));

                    $("#prev_incalssDiff").addClass(prev_color_diff_q).text(numeral(prev_outclassifyend[0].outclassifyend - prev_pcalssNow[0].pcalssNow).format('0,0'));
                    $("#prev_incalsslotDiff").addClass(prev_color_difflot_q).text(numeral(prev_outclassifyendlot[0].outclassifyendlot - prev_pcalssNowlot[0].pcalssNowlot).format('0,0'));
              // prev difference pcs/lot




            
              if(prev_NgSumbonding >= 0.5){var prev_a1 ='backgrouclass="border-bottom-thin border-right-thin "nd-color: red ;color: #FFFF;'}else if( prev_ClassSumResult <100 && prev_ClassSumResult > 0){var prev_a1 ='background-color: red ;color: #FFFF;' }else {var prev_a1 = ""};
              if(prev_NgSumngmold >= 0.5){var prev_b1 ='background-color: red ;color: #FFFF;'}else if( prev_NgSumngmold <100 && prev_NgSumngmold > 0){var prev_b1 ='background-color: red ;color: #FFFF;' }else {var prev_b1 = ""};
              if(prev_NgSumngdicer >= 0.5){var prev_c1 ='background-color: red ;color: #FFFF;'}else if( prev_NgSumngdicer <100 && prev_NgSumngdicer > 0){var prev_c1 ='background-color: red ;color: #FFFF;' }else {var prev_c1 = ""};
              if(prev_NgSumngappear >= 0.5){var prev_d1 ='background-color: red ;color: #FFFF;'}else if( prev_NgSumngappear <100 && prev_NgSumngappear > 0){var prev_d1 ='background-color: red ;color: #FFFF;' }else {var prev_d1 = ""};
              if(prev_NgSumngclassify >= 0.5){var prev_e1 ='background-color: red ;color: #FFFF;'}else if( prev_NgSumngclassify <100 && prev_NgSumngclassify > 0){var prev_e1 ='background-color: red ;color: #FFFF;' }else {var prev_e1 = ""};

            
              
              $("#prev_DiSumResult").text(prev_DiSumResult);

              
              // ng detail
                if( typeof(prev_t3bonding[0]) != "undefined" ){
                      $("#prev_ant3bonding1").text(prev_t3bonding[0].ng_name);
                      $("#prev_sumant3bonding1").text(numeral((numeral(prev_t3bonding[0].sumqty).value() / numeral(prev_outbondingend2).value()) * 100).format('0,0.00'));
                }else{
                      $("#prev_ant3bonding1").text("");
                      $("#prev_sumant3bonding1").text("0");
                }

                if( typeof(prev_t3bonding[1]) != "undefined" ){
                      $("#prev_ant3bonding2").text(prev_t3bonding[1].ng_name);
                      $("#prev_sumast3bonding2").text(numeral((numeral(prev_t3bonding[1].sumqty).value() / numeral(prev_outbondingend2).value()) * 100).format('0,0.00'));
                }else{
                      $("#prev_ant3bonding2").text("");
                      $("#prev_sumast3bonding2").text("0");                
                }    
          
  
                if( typeof(prev_t3mold[0]) != "undefined" ){
                    $("#prev_ant3mold1").text(prev_t3mold[0].ng_name.substr(0,15));
                    $("#prev_sumant3mold1").text(numeral((numeral(prev_t3mold[0].sumqty).value() / numeral(prev_outmoldend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3mold1").text("");
                    $("#prev_sumant3mold1").text("0");
                }

                if( typeof(prev_t3mold[1]) != "undefined" ){
                    $("#prev_ant3mold2").text(prev_t3mold[1].ng_name.substr(0,15));
                    $("#prev_sumant3mold2").text(numeral((numeral(prev_t3mold[1].sumqty).value() / numeral(prev_outmoldend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3mold2").text("");
                    $("#prev_sumant3mold2").text("0");
                }


                if( typeof(prev_t3dicer[0]) != "undefined" ){
                    $("#prev_ant3dicer1").text(prev_t3dicer[0].ng_name.substr(0,15));
                    $("#prev_sumant3dicer1").text(numeral((numeral(prev_t3dicer[0].sumqty).value() / numeral(prev_outdicer_actend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3dicer1").text("");
                    $("#prev_sumant3dicer1").text("0");
                }

                if( typeof(prev_t3dicer[1]) != "undefined" ){    
                    $("#prev_ant3dicer2").text(prev_t3dicer[1].ng_name.substr(0,15));
                    $("#prev_sumant3dicer2").text(numeral((numeral(prev_t3dicer[1].sumqty).value() / numeral(prev_outdicer_actend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3dicer2").text("");
                    $("#prev_sumant3dicer2").text("0");
                }
              

                if( typeof(prev_t3appea[0]) != "undefined" ){
                    $("#prev_ant3appea1").text(prev_t3appea[0].ng_name.substr(0,15));
                    $("#prev_sumant3appea1").text(numeral((numeral(prev_t3appea[0].sumqty).value() / numeral(prev_outappearanceend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3appea1").text("");
                    $("#prev_sumant3appea1").text("0");
                }

                if( typeof(prev_t3appea[1]) != "undefined" ){
                    $("#prev_ant3appea2").text(prev_t3appea[1].ng_name.substr(0,15));
                    $("#prev_sumant3appea2").text(numeral((numeral(prev_t3appea[1].sumqty).value() / numeral(prev_outappearanceend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3appea2").text("");
                    $("#prev_sumant3appea2").text("0");
                }
              
              
                if( typeof(prev_t3classi[0]) != "undefined" ){
                    $("#prev_ant3classi1").text(prev_t3classi[0].output_name.substr(0,15));
                    $("#prev_sumant3classi1").text(numeral((numeral(prev_t3classi[0].sumng).value() / numeral(prev_outclassifyend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3classi1").text("");
                    $("#prev_sumant3classi1").text("0");
                }
                
                if( typeof(prev_t3classi[1]) != "undefined" ){
                    $("#prev_ant3classi2").text(prev_t3classi[1].output_name.substr(0,15));
                    $("#prev_sumant3classi2").text(numeral((numeral(prev_t3classi[1].sumng).value() / numeral(prev_outclassifyend2).value()) * 100).format('0,0.00'));
                }else{
                    $("#prev_ant3classi2").text("");
                    $("#prev_sumant3classi2").text("0");
                }

            // remark 
                if( typeof(prev_remarkdie) != "undefined" ){
                      $("#prev_remarkdie_a1").text(prev_remarkdie[0].remark);
                }else{
                      $("#prev_remarkdie_a1").text("");
                }

                if( typeof(prev_remarkdie) != "undefined" ){
                      $("#prev_remarkdie_a2").text(prev_remarkdie[1].remark);
                }else{
                      $("#prev_remarkdie_a2").text("");              
                }   

                if( typeof(prev_remarkoven) != "undefined" ){
                      $("#prev_remarkoven_a1").text(prev_remarkoven[0].remark);
                }else{
                      $("#prev_remarkoven_a1").text("");
                }

                if( typeof(prev_remarkoven) != "undefined" ){
                      $("#prev_remarkoven_a2").text(prev_remarkoven[1].remark);
                }else{
                      $("#prev_remarkoven_a2").text("");              
                }

                if( typeof(prev_remarkwirebond) != "undefined" ){
                      $("#prev_remarkwirebond_a1").text(prev_remarkwirebond[0].remark);
                }else{
                      $("#prev_remarkwirebond_a1").text("");
                }

                if( typeof(prev_remarkwirebond) != "undefined" ){
                      $("#prev_remarkwirebond_a2").text(prev_remarkwirebond[1].remark);
                }else{
                      $("#prev_remarkwirebond_a2").text("");              
                }

                if( typeof(prev_remarkmold) != "undefined" ){
                      $("#prev_remarkmold_a1").text(prev_remarkmold[0].remark);
                }else{
                      $("#prev_remarkmold_a1").text("");
                }

                if( typeof(prev_remarkmold) != "undefined" ){
                      $("#prev_remarkmold_a2").text(prev_remarkmold[1].remark);
                }else{
                      $("#prev_remarkmold_a2").text("");              
                }

                if( typeof(prev_remarkovenmold) != "undefined" ){
                      $("#prev_remarkovenmold_a1").text(prev_remarkovenmold[0].remark);
                }else{
                      $("#prev_remarkovenmold_a1").text("");
                }

                if( typeof(prev_remarkovenmold) != "undefined" ){
                      $("#prev_remarkovenmold_a2").text(prev_remarkovenmold[1].remark);
                }else{
                      $("#prev_remarkovenmold_a2").text("");              
                }

                if( typeof(prev_remarkdicer) != "undefined" ){
                      $("#prev_remarkdicer_a1").text(prev_remarkdicer[0].remark);
                }else{
                      $("#prev_remarkdicer_a1").text("");
                }

                if( typeof(prev_remarkdicer) != "undefined" ){
                      $("#prev_remarkdicer_a2").text(prev_remarkdicer[1].remark);
                }else{
                      $("#prev_remarkdicer_a2").text("");              
                }

                if( typeof(prev_remarkclassif) != "undefined" ){
                      $("#prev_remarkclassif_a1").text(prev_remarkclassif[0].remark);
                }else{
                      $("#prev_remarkclassif_a1").text("");
                }

                if( typeof(prev_remarkclassif) != "undefined" ){
                      $("#prev_remarkclassif_a2").text(prev_remarkclassif[1].remark);
                }else{
                      $("#prev_remarkclassif_a2").text("");              
                }


          // td today and td prev  2 type replace to one tr
          
              var color_out_a = "";
              var color_out_b = "";
              var color_out_c = "";
              var color_out_d = "";
              var color_out_e = "";
              var color_out_f = "";
              var color_out_g = "";
              var color_out_p = "";
              var color_out_q = "";

              var color_outlot_a = "";
              var color_outlot_b = "";
              var color_outlot_c = "";
              var color_outlot_d = "";
              var color_outlot_e = "";
              var color_outlot_f = "";
              var color_outlot_g = "";
              var color_outlot_p = "";
              var color_outlot_q = "";

              var prev_color_out_a = "";
              var prev_color_out_b = "";
              var prev_color_out_c = "";
              var prev_color_out_d = "";
              var prev_color_out_e = "";
              var prev_color_out_f = "";
              var prev_color_out_g = "";
              var prev_color_out_p = "";
              var prev_color_out_q = "";

              var prev_color_outlot_a = "";
              var prev_color_outlot_b = "";
              var prev_color_outlot_c = "";
              var prev_color_outlot_d = "";
              var prev_color_outlot_e = "";
              var prev_color_outlot_f = "";
              var prev_color_outlot_g = "";
              var prev_color_outlot_p = "";
              var prev_color_outlot_q = "";

              if( numeral(outdieend[0].outdieend).value() < numeral(indieNow[0].indieNow).value() ){ color_out_a = 'background-color:red; color: #FFF;' }
              if( numeral(outovenend[0].outovenend).value() < numeral(inovenNow[0].inovenNow).value() ){ color_out_b = 'background-color:red; color: #FFF;' }
              if( numeral(outwirebondend[0].outwirebondend).value() < numeral(inwirebondNow[0].inwirebondNow).value() ){ color_out_c = 'background-color:red; color: #FFF;' } 
              if( numeral(outbondingend[0].outbondingend).value() < numeral(inbondingNow[0].inbondingNow).value() ){ color_out_d = 'background-color:red; color: #FFF;' } 
              if( numeral(outmoldend[0].outmoldend).value() < numeral(inmoldNow[0].inmoldNow).value() ){ color_out_e = 'background-color:red; color: #FFF;' } 
              if( numeral(outoven_moldend[0].outoven_moldend).value() < numeral(inovenmoldNow[0].inovenmoldNow).value() ){ color_out_f = 'background-color:red; color: #FFF;' } 
              if( numeral(outdicer_actend[0].outdicer_actend).value() < numeral(indicerNow[0].indicerNow).value() ){ color_out_g = 'background-color:red; color: #FFF;' } 
              if( numeral(outappearanceend[0].outappearanceend).value() < numeral(inappearaNow[0].inappearaNow).value() ){ color_out_p = 'background-color:red; color: #FFF;' } 
              if( numeral(outclassifyend[0].outclassifyend).value() < numeral(incalssNow[0].incalssNow).value() ){ color_out_q = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outdieend[0].outdieend).value() < numeral(prev_indieNow[0].indieNow).value() ){ prev_color_out_a = 'background-color:red; color: #FFF;' }
              if( numeral(prev_outovenend[0].outovenend).value() < numeral(prev_inovenNow[0].inovenNow).value() ){ prev_color_out_b = 'background-color:red; color: #FFF;' }
              if( numeral(prev_outwirebondend[0].outwirebondend).value() < numeral(prev_inwirebondNow[0].inwirebondNow).value() ){ prev_color_out_c = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outbondingend[0].outbondingend).value() < numeral(prev_inbondingNow[0].inbondingNow).value() ){ prev_color_out_d = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outmoldend[0].outmoldend).value() < numeral(prev_inmoldNow[0].inmoldNow).value() ){ prev_color_out_e = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outoven_moldend[0].outoven_moldend).value() < numeral(prev_inovenmoldNow[0].inovenmoldNow).value() ){ prev_color_out_f = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outdicer_actend[0].outdicer_actend).value() < numeral(prev_indicerNow[0].indicerNow).value() ){ prev_color_out_g = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outappearanceend[0].outappearanceend).value() < numeral(prev_inappearaNow[0].inappearaNow).value() ){ prev_color_out_p = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outclassifyend[0].outclassifyend).value() < numeral(prev_incalssNow[0].incalssNow).value() ){ prev_color_out_q = 'background-color:red; color: #FFF;' } 
                   
              strOutput = '<td  colspan="2" class=" border-right-thin f12">Time Line Actual : Output (Pcs)</td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_a +'"><span class="">'+ numeral(outdieend[0].outdieend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_b +'"><span class="">'+ numeral(outovenend[0].outovenend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_c +'"><span class="">'+ numeral(outwirebondend[0].outwirebondend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_d +'"><span class="">'+ numeral(outbondingend[0].outbondingend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_e +'"><span class="">'+ numeral(outmoldend[0].outmoldend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_f +'"><span class="">'+ numeral(outoven_moldend[0].outoven_moldend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_g +'"><span class="">'+ numeral(outdicer_actend[0].outdicer_actend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ color_out_p +'"><span class="f16">'+ numeral(outappearanceend[0].outappearanceend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-bold v-middle" style="'+ color_out_q +'"><span class="f16">'+ numeral(outclassifyend[0].outclassifyend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_a +'"><span class="">'+ numeral(prev_outdieend[0].outdieend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_b +'"><span class="">'+ numeral(prev_outovenend[0].outovenend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_c +'"><span class="">'+ numeral(prev_outwirebondend[0].outwirebondend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_d +'"><span class="">'+ numeral(prev_outbondingend[0].outbondingend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_e +'"><span class="">'+ numeral(prev_outmoldend[0].outmoldend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_f +'"><span class="">'+ numeral(prev_outoven_moldend[0].outoven_moldend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_g +'"><span class="">'+ numeral(prev_outdicer_actend[0].outdicer_actend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_p +'"><span class="f16">'+ numeral(prev_outappearanceend[0].outappearanceend).format('0,0') +'</span></td>'
                      +'<td class=" text-center  border-right-thin v-middle" style="'+ prev_color_out_q +'"><span class="f16">'+ numeral(prev_outclassifyend[0].outclassifyend).format('0,0') +'</span></td>';
              $("#Output-prev_Output").append(strOutput);


              if( numeral(outdieendlot[0].outdieendlot).value() < numeral(indieNowlot[0].indieNowlot).value() ){ color_outlot_a = 'background-color:red; color: #FFF;' }
              if( numeral(outovenendlot[0].outovenendlot).value() < numeral(inovenNowlot[0].inovenNowlot).value() ){ color_outlot_b = 'background-color:red; color: #FFF;' }
              if( numeral(outwirebondendlot[0].outwirebondendlot).value() < numeral(inwirebondNowlot[0].inwirebondNowlot).value() ){ color_outlot_c = 'background-color:red; color: #FFF;' } 
              if( numeral(outbondingendlot[0].outbondingendlot).value() < numeral(inbondingNowlot[0].inbondingNowlot).value() ){ color_outlot_d = 'background-color:red; color: #FFF;' } 
              if( numeral(outmoldendlot[0].outmoldendlot).value() < numeral(inmoldNowlot[0].inmoldNowlot).value() ){ color_outlot_e = 'background-color:red; color: #FFF;' } 
              if( numeral(outoven_moldendlot[0].outoven_moldendlot).value() < numeral(inovenmoldNowlot[0].inovenmoldNowlot).value() ){ color_outlot_f = 'background-color:red; color: #FFF;' } 
              if( numeral(outdicer_actendlot[0].outdicer_actendlot).value() < numeral(indicerNowlot[0].indicerNowlot).value() ){ color_outlot_g = 'background-color:red; color: #FFF;' } 
              if( numeral(outappearanceendlot[0].outappearanceendlot).value() < numeral(inappearaNowlot[0].inappearaNowlot).value() ){ color_outlot_p = 'background-color:red; color: #FFF;' } 
              if( numeral(outclassifyendlot[0].outclassifyendlot).value() < numeral(incalssNowlot[0].incalssNowlot).value() ){ color_outlot_q = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outdieendlot[0].outdieendlot).value() < numeral(prev_indieNowlot[0].indieNowlot).value() ){ prev_color_outlot_a = 'background-color:red; color: #FFF;' }
              if( numeral(prev_outovenendlot[0].outovenendlot).value() < numeral(prev_inovenNowlot[0].inovenNowlot).value() ){ prev_color_outlot_b = 'background-color:red; color: #FFF;' }
              if( numeral(prev_outwirebondendlot[0].outwirebondendlot).value() < numeral(prev_inwirebondNowlot[0].inwirebondNowlot).value() ){ prev_color_outlot_c = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outbondingendlot[0].outbondingendlot).value() < numeral(prev_inbondingNowlot[0].inbondingNowlot).value() ){ prev_color_outlot_d = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outmoldendlot[0].outmoldendlot).value() < numeral(prev_inmoldNowlot[0].inmoldNowlot).value() ){ prev_color_outlot_e = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outoven_moldendlot[0].outoven_moldendlot).value() < numeral(prev_inovenmoldNowlot[0].inovenmoldNowlot).value() ){ prev_color_outlot_f = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outdicer_actendlot[0].outdicer_actendlot).value() < numeral(prev_indicerNowlot[0].indicerNowlot).value() ){ prev_color_outlot_g = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outappearanceendlot[0].outappearanceendlot).value() < numeral(prev_inappearaNowlot[0].inappearaNowlot).value() ){ prev_color_outlot_p = 'background-color:red; color: #FFF;' } 
              if( numeral(prev_outclassifyendlot[0].outclassifyendlot).value() < numeral(prev_incalssNowlot[0].incalssNowlot).value() ){ prev_color_outlot_q = 'background-color:red; color: #FFF;' } 
                        
              strOutputlot = '<td  colspan="2" class="border-bottom-thin border-right-thin f12">Time Line Actual : Output (Lot)</td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_a +'" ><span class="f16">'+ numeral(outdieendlot[0].outdieendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_b +'" ><span class="f16">'+ numeral(outovenendlot[0].outovenendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_c +'" ><span class="f16">'+ numeral(outwirebondendlot[0].outwirebondendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_d +'" ><span class="f16">'+ numeral(outbondingendlot[0].outbondingendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_e +'" ><span class="f16">'+ numeral(outmoldendlot[0].outmoldendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_f +'" ><span class="f16">'+ numeral(outoven_moldendlot[0].outoven_moldendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_g +'" ><span class="f16">'+ numeral(outdicer_actendlot[0].outdicer_actendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ color_outlot_p +'" ><span class="">'+ numeral(outappearanceendlot[0].outappearanceendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-bold v-middle" style="'+ color_outlot_q +'" ><span class="">'+ numeral(outclassifyendlot[0].outclassifyendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_a +'" ><span class="f16">'+ numeral(prev_outdieendlot[0].outdieendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_b +'" ><span class="f16">'+ numeral(prev_outovenendlot[0].outovenendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_c +'" ><span class="f16">'+ numeral(prev_outwirebondendlot[0].outwirebondendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_d +'" ><span class="f16">'+ numeral(prev_outbondingendlot[0].outbondingendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_e +'" ><span class="f16">'+ numeral(prev_outmoldendlot[0].outmoldendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_f +'" ><span class="f16">'+ numeral(prev_outoven_moldendlot[0].outoven_moldendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_g +'" ><span class="f16">'+ numeral(prev_outdicer_actendlot[0].outdicer_actendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_p +'" ><span class="">'+ numeral(prev_outappearanceendlot[0].outappearanceendlot).format('0,0') +'</span></td>'
                      +'<td class=" text-center border-bottom-thin border-right-thin v-middle" style="'+ prev_color_outlot_q +'" ><span class="">'+ numeral(prev_outclassifyendlot[0].outclassifyendlot).format('0,0') +'</span></td>';
                      
              $("#Outputlot-prev_Outputlot").append(strOutputlot);


              strResultok = '<td  colspan="2" class=" border-right-thin f14">Ok</td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(diebond_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(ovendiebond_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span>'+  numeral(wirebond_ok).format('0,0') + '</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(bondingins_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(mold_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(ovenmold_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(dicer_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(appear_ok).format('0,0') + '</span></td>'
                      +'<td  class="f15 text-center border-right-bold " ><span >'+ numeral(classify_ok).format('0,0') + '</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_diebond_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_ovendiebond_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span>'+  numeral(prev_wirebond_ok).format('0,0') + '</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_bondingins_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_mold_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_ovenmold_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_dicer_ok).format('0,0') +'</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_appear_ok).format('0,0') + '</span></td>'
                      +'<td  class="f15 text-center border-right-thin " ><span >'+ numeral(prev_classify_ok).format('0,0') + '</span></td>';
              $("#Resultok-prev_Resultok").append(strResultok);

              Resultpercen = '<td  colspan="2"  class="border-bottom-thin border-right-thin f14" >%Ok</td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ a +'"><span >'+ numeral(DiSumResult).format('0,0.00')     +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ b +'"><span >'+ numeral(OieSumResult).format('0,0.00')    +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ c +'"><span >'+ numeral(WieSumResult).format('0,0.00')    +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ d +'"><span >'+ numeral(BondSumResult).format('0,0.00')   +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ e +'"><span >'+ numeral(MoldSumResult).format('0,0.00')   +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ g +'"><span >'+ numeral(OvenmoSumResult).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ f +'"><span >'+ numeral(DicerSumResult).format('0,0.00')  +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ p +'"><span >'+ numeral(AppeaSumResult).format('0,0.00')  +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-bold " style="'+ q +'"><span >'+ numeral(ClassSumResult).format('0,0.00')  +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_a +'"><span >'+ numeral(prev_DiSumResult).format('0,0.00')     +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_b +'"><span >'+ numeral(prev_OieSumResult).format('0,0.00')    +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_c +'"><span >'+ numeral(prev_WieSumResult).format('0,0.00')    +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_d +'"><span >'+ numeral(prev_BondSumResult).format('0,0.00')   +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_e +'"><span >'+ numeral(prev_MoldSumResult).format('0,0.00')   +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_g +'"><span >'+ numeral(prev_OvenmoSumResult).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_f +'"><span >'+ numeral(prev_DicerSumResult).format('0,0.00')  +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_p +'"><span >'+ numeral(prev_AppeaSumResult).format('0,0.00')  +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_q +'"><span >'+ numeral(prev_ClassSumResult).format('0,0.00')  +'%</span></td>';
              $("#Resultpercen-prev_Resultpercen").append(Resultpercen);
              
              strPng = '<td  colspan="2" class="border-bottom-thin border-right-thin f14">%NG</td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin "><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin "><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin "><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ a1 +'"><span >'+ numeral(NgSumbonding).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ b1 +'"><span >'+ numeral(NgSumngmold).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " ><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ c1 +'"><span >'+ numeral(NgSumngdicer).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ d1 +'"><span ">'+ numeral(NgSumngappear).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-bold " style="'+ e1 +'"><span>'+ numeral(NgSumngclassify).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin "><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin "><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin "><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_a1 +'"><span >'+ numeral(prev_NgSumbonding).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_b1 +'"><span >'+ numeral(prev_NgSumngmold).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " ><span ></span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_c1 +'"><span >'+ numeral(prev_NgSumngdicer).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_d1 +'"><span ">'+ numeral(prev_NgSumngappear).format('0,0.00') +'%</span></td>'
                      +'<td class="f15 text-center border-bottom-thin border-right-thin " style="'+ prev_e1 +'"><span>'+ numeral(prev_NgSumngclassify).format('0,0.00') +'%</span></td>';
              $("#Png-prev_Png").append(strPng);

        },
        error:function(err){

        // alert('Error : '+err.responseText);
        }
        });

    }
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make("layout.menu", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\asi\display\resources\views/sss/screen3.blade.php ENDPATH**/ ?>