| | 1 | | @model YieldStatistics |
| | 2 | |
|
| | 3 | | @{ |
| 0 | 4 | | int totalWafersOut = 0; |
| 0 | 5 | | int totalCustomerScrap = 0; |
| 0 | 6 | | int totalManufacturingScrap = 0; |
| 0 | 7 | | int totalProdScrap = 0; |
| 0 | 8 | | int totalYieldedWafersOut = 0; |
| 0 | 9 | | int deltaToCommit = 0; |
| 0 | 10 | | int deltaToPlan = 0; |
| 0 | 11 | | float totalYield = 0f; |
| | 12 | |
|
| | 13 | | string myClass; |
| | 14 | |
|
| 0 | 15 | | int numberOfDaysInWeek = Model.OutsByDay.Count; |
| 0 | 16 | | int yieldOutDays = Model.IsCurrentWeek ? Model.OutsByDay.Count - 1 : Model.OutsByDay.Count; |
| | 17 | | } |
| | 18 | |
|
| | 19 | |
|
| | 20 | | <table class="table table-bordered"> |
| | 21 | | <thead> |
| | 22 | | <tr> |
| | 23 | | <th scope="col" rowspan="2" class="text-center align-middle">SI Operations</th> |
| 0 | 24 | | @for (int i = 0; i < 7; i++) |
| 0 | 25 | | { |
| 0 | 26 | | <th scope="col" class="text-center">@Model.StartDate.AddDays(i).ToString("MM/dd/yyyy")</th> |
| 0 | 27 | | } |
| | 28 | | <th scope="col" rowspan="2" class="text-center align-middle">Weekly Total</th> |
| | 29 | | <th scope="col" rowspan="2" class="text-center align-middle">Comment</th> |
| | 30 | | </tr> |
| | 31 | | <tr> |
| | 32 | | <th scope="col" class="text-center">Monday</th> |
| | 33 | | <th scope="col" class="text-center">Tuesday</th> |
| | 34 | | <th scope="col" class="text-center">Wednesday</th> |
| | 35 | | <th scope="col" class="text-center">Thursday</th> |
| | 36 | | <th scope="col" class="text-center">Friday</th> |
| | 37 | | <th scope="col" class="text-center">Saturday</th> |
| | 38 | | <th scope="col" class="text-center">Sunday</th> |
| | 39 | | </tr> |
| | 40 | | </thead> |
| | 41 | | <tbody> |
| | 42 | | <tr> |
| | 43 | | <td scope="row">Commited Target to meet Shipment Requirements</td> |
| 0 | 44 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 45 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 46 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 47 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 48 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 49 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 50 | | <td class="text-center">@string.Format("{0:#,###}", Model.DailyPlanWafers)</td> |
| 0 | 51 | | <td class="text-center">@string.Format("{0:##,###}", Model.DailyPlanWafers * 7)</td> |
| | 52 | | <td>Number updated quarterly</td> |
| | 53 | | </tr> |
| | 54 | | <tr> |
| | 55 | | <td scope="row">Actual Reactor Out</td> |
| 0 | 56 | | @for (int i = 0; i < 7; i++) |
| 0 | 57 | | { |
| | 58 | |
|
| 0 | 59 | | if (i < numberOfDaysInWeek) |
| 0 | 60 | | { |
| 0 | 61 | | int reactorMoves = Model.OutsByDay[i].TotalWafers; |
| | 62 | |
|
| 0 | 63 | | <td class="text-center">@reactorMoves</td> |
| | 64 | |
|
| 0 | 65 | | totalWafersOut += reactorMoves; |
| 0 | 66 | | } |
| | 67 | | else |
| 0 | 68 | | { |
| | 69 | | <td></td> |
| 0 | 70 | | } |
| 0 | 71 | | } |
| 0 | 72 | | <td class="text-center">@totalWafersOut</td> |
| | 73 | | <td>Before Scrap</td> |
| | 74 | | </tr> |
| | 75 | | <tr> |
| | 76 | | <td scope="row" id="expandYield"> |
| | 77 | | Actual Yielded Wafers Out |
| | 78 | | <button class="btn btn-default" onclick="expandYield()"> |
| | 79 | | <img src="~/Images/plusIcon.png" width="20" style="padding-bottom: 3px" id="yieldImage" /> |
| | 80 | | </button> |
| | 81 | | </td> |
| 0 | 82 | | @for (int i = 0; i < 7; i++) |
| 0 | 83 | | { |
| 0 | 84 | | if (i < numberOfDaysInWeek) |
| 0 | 85 | | { |
| 0 | 86 | | int yieldedOuts = Model.OutsByDay[i].TotalWafers - Model.ScrapByDay[i].TOT_REJ_WFRS - Model.ScrapByD |
| | 87 | |
|
| 0 | 88 | | <td class="text-center">@yieldedOuts</td> |
| | 89 | |
|
| 0 | 90 | | totalYieldedWafersOut += yieldedOuts; |
| 0 | 91 | | } |
| | 92 | | else |
| 0 | 93 | | { |
| | 94 | | <td></td> |
| 0 | 95 | | } |
| 0 | 96 | | } |
| 0 | 97 | | <td class="text-center">@totalYieldedWafersOut</td> |
| | 98 | | <td>After Scrap</td> |
| | 99 | | </tr> |
| | 100 | | <tr class="yield hidden"> |
| | 101 | | @{ |
| 0 | 102 | | int index = numberOfDaysInWeek - 1; |
| 0 | 103 | | int modifiedYieldedOuts = 0; |
| 0 | 104 | | if (Model.IsCurrentWeek) |
| 0 | 105 | | modifiedYieldedOuts = totalYieldedWafersOut - (Model.OutsByDay[index].TotalWafers - Model.ScrapByDay |
| | 106 | | else |
| 0 | 107 | | modifiedYieldedOuts = totalYieldedWafersOut; |
| | 108 | |
|
| 0 | 109 | | int averageYieldedOuts = yieldOutDays == 0 ? 0 : modifiedYieldedOuts / yieldOutDays; |
| | 110 | | } |
| 0 | 111 | | <td scope="row" colspan="10" id="expandYield" class="text-center">Yielded Wafers Out Daily Average: @(averag |
| | 112 | | </tr> |
| | 113 | | <tr class="yield hidden"> |
| | 114 | | <td scope="row">Customer Scrap</td> |
| 0 | 115 | | @for (int i = 0; i < 7; i++) |
| 0 | 116 | | { |
| 0 | 117 | | if (i < numberOfDaysInWeek) |
| 0 | 118 | | { |
| 0 | 119 | | int custScrap = Model.ScrapByDay[i].TOT_REJ_CUST; |
| | 120 | |
|
| 0 | 121 | | <td class="text-center">@custScrap</td> |
| | 122 | |
|
| 0 | 123 | | totalCustomerScrap += custScrap; |
| 0 | 124 | | } |
| | 125 | | else |
| 0 | 126 | | { |
| | 127 | | <td></td> |
| 0 | 128 | | } |
| 0 | 129 | | } |
| 0 | 130 | | <td class="text-center">@totalCustomerScrap</td> |
| | 131 | | <td></td> |
| | 132 | | </tr> |
| | 133 | | <tr class="yield hidden"> |
| | 134 | | <td scope="row">Manufacturing Scrap</td> |
| 0 | 135 | | @for (int i = 0; i < 7; i++) |
| 0 | 136 | | { |
| 0 | 137 | | if (i < numberOfDaysInWeek) |
| 0 | 138 | | { |
| 0 | 139 | | int manuScrap = Model.ScrapByDay[i].TOT_REJ_MANU; |
| | 140 | |
|
| 0 | 141 | | <td class="text-center">@manuScrap</td> |
| | 142 | |
|
| 0 | 143 | | totalManufacturingScrap += manuScrap; |
| 0 | 144 | | } |
| | 145 | | else |
| 0 | 146 | | { |
| | 147 | | <td></td> |
| 0 | 148 | | } |
| 0 | 149 | | } |
| 0 | 150 | | <td class="text-center">@totalManufacturingScrap</td> |
| | 151 | | <td></td> |
| | 152 | | </tr> |
| | 153 | | <tr class="yield hidden"> |
| | 154 | | <td scope="row">Production Scrap</td> |
| 0 | 155 | | @for (int i = 0; i < 7; i++) |
| 0 | 156 | | { |
| 0 | 157 | | if (i < numberOfDaysInWeek) |
| 0 | 158 | | { |
| 0 | 159 | | int prodScrap = Model.ScrapByDay[i].TW_PROD; |
| | 160 | |
|
| 0 | 161 | | <td class="text-center">@prodScrap</td> |
| | 162 | |
|
| 0 | 163 | | totalProdScrap += prodScrap; |
| 0 | 164 | | } |
| | 165 | | else |
| 0 | 166 | | { |
| | 167 | | <td></td> |
| 0 | 168 | | } |
| 0 | 169 | | } |
| 0 | 170 | | <td class="text-center">@totalProdScrap</td> |
| | 171 | | <td></td> |
| | 172 | | </tr> |
| | 173 | | <tr class="yield hidden"> |
| | 174 | | <td scope="row">Yield</td> |
| 0 | 175 | | @for (int i = 0; i < 7; i++) |
| 0 | 176 | | { |
| 0 | 177 | | if (i < numberOfDaysInWeek) |
| 0 | 178 | | { |
| 0 | 179 | | float yield = ((float)Model.OutsByDay[i].TotalWafers - (float)Model.ScrapByDay[i].TOT_REJ_WFRS) / (f |
| | 180 | |
|
| 0 | 181 | | <td class="text-center">@(string.Format("{0:P2}", yield))</td> |
| | 182 | |
|
| 0 | 183 | | totalYield += yield; |
| 0 | 184 | | } |
| | 185 | | else |
| 0 | 186 | | { |
| | 187 | | <td></td> |
| 0 | 188 | | } |
| 0 | 189 | | } |
| 0 | 190 | | <td class="text-center">@(string.Format("{0:P2}", totalYield / numberOfDaysInWeek))</td> |
| | 191 | | <td>After Scrap</td> |
| | 192 | | </tr> |
| | 193 | | <tr> |
| | 194 | | <td scope="row">Delta to commit</td> |
| 0 | 195 | | @for (int i = 0; i < 7; i++) |
| 0 | 196 | | { |
| 0 | 197 | | if (i < numberOfDaysInWeek) |
| 0 | 198 | | { |
| 0 | 199 | | int dayDelta = Model.OutsByDay[i].TotalWafers - Model.ScrapByDay[i].TOT_REJ_WFRS - 4500; |
| | 200 | |
|
| 0 | 201 | | if (dayDelta < 0) |
| 0 | 202 | | myClass = "table-danger text-danger"; |
| | 203 | | else |
| 0 | 204 | | myClass = ""; |
| | 205 | |
|
| 0 | 206 | | <td class="text-center @myClass">@dayDelta</td> |
| | 207 | |
|
| 0 | 208 | | deltaToCommit += dayDelta; |
| 0 | 209 | | } |
| | 210 | | else |
| 0 | 211 | | { |
| | 212 | | <td></td> |
| 0 | 213 | | } |
| 0 | 214 | | } |
| 0 | 215 | | <td class="text-center">@deltaToCommit</td> |
| | 216 | | <td>Difference to commitment</td> |
| | 217 | | </tr> |
| | 218 | | <tr> |
| | 219 | | <td scope="row">Delta to the Plan</td> |
| 0 | 220 | | @for (int i = 0; i < 7; i++) |
| 0 | 221 | | { |
| 0 | 222 | | if (i < numberOfDaysInWeek) |
| 0 | 223 | | { |
| 0 | 224 | | int dayDelta = Model.OutsByDay[i].TotalWafers - Model.ScrapByDay[i].TOT_REJ_WFRS - 4500; |
| | 225 | |
|
| 0 | 226 | | if (dayDelta < 0) |
| 0 | 227 | | myClass = "table-danger text-danger"; |
| | 228 | | else |
| 0 | 229 | | myClass = ""; |
| | 230 | |
|
| 0 | 231 | | <td class="text-center @myClass">@dayDelta</td> |
| | 232 | |
|
| 0 | 233 | | deltaToPlan += dayDelta; |
| 0 | 234 | | } |
| | 235 | | else |
| 0 | 236 | | { |
| | 237 | | <td></td> |
| 0 | 238 | | } |
| 0 | 239 | | } |
| 0 | 240 | | <td class="text-center">@deltaToPlan</td> |
| | 241 | | <td>Difference to target</td> |
| | 242 | | </tr> |
| | 243 | | <tr> |
| | 244 | | <td scope="row">Wafers Needed to make QTR</td> |
| | 245 | | <td class="text-center">3,640</td> |
| | 246 | | <td class="text-center">3,640</td> |
| | 247 | | <td class="text-center">3,640</td> |
| | 248 | | <td class="text-center">3,640</td> |
| | 249 | | <td class="text-center">3,640</td> |
| | 250 | | <td class="text-center">3,640</td> |
| | 251 | | <td class="text-center">3,640</td> |
| | 252 | | <td class="text-center">25,480</td> |
| | 253 | | <td>Number updated weekly</td> |
| | 254 | | </tr> |
| | 255 | | </tbody> |
| | 256 | | </table> |