SLLTools.json file and DailyReportInfo.json file automatically clear the first time it runs on Monday, and fixed bug when scrap is resolved as null.
This commit is contained in:
@ -52,6 +52,8 @@ public class ProductionReportController : Controller
|
||||
[HttpPost]
|
||||
public IActionResult EditDailyReport(ManualReportEntries rpt)
|
||||
{
|
||||
rpt.Date = DateTime.Now.Date;
|
||||
|
||||
JsonFileHandler.SaveJSONFile(rpt, _dailyRptFilePath);
|
||||
|
||||
return RedirectToAction("DailyReport");
|
||||
|
@ -417,7 +417,7 @@
|
||||
<td></td>
|
||||
}
|
||||
}
|
||||
<td>@(ASMSLL / numberOfDaysInWeek)</td>
|
||||
<td>@(Math.Round((double)ASMSLL / (double)numberOfDaysInWeek))</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -437,7 +437,7 @@
|
||||
<td></td>
|
||||
}
|
||||
}
|
||||
<td>@(HTRSLL / numberOfDaysInWeek)</td>
|
||||
<td>@(Math.Round((double)HTRSLL / (double)numberOfDaysInWeek))</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -455,7 +455,7 @@
|
||||
<td></td>
|
||||
}
|
||||
}
|
||||
<td>@(ASMUnloadTemps / numberOfDaysInWeek)</td>
|
||||
<td>@(Math.Round((double)ASMUnloadTemps / (double)numberOfDaysInWeek))</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -473,7 +473,7 @@
|
||||
<td></td>
|
||||
}
|
||||
}
|
||||
<td>@(HTRUnloadTemps / numberOfDaysInWeek)</td>
|
||||
<td>@(Math.Round((double)HTRUnloadTemps / (double)numberOfDaysInWeek))</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -1 +1 @@
|
||||
{"OperatorHeadcountDays":0,"OperatorHeadcountNights":0,"OperatorCallOutsDays":0,"OperatorCallOutsNights":0,"EngineeringHeadcountDays":0,"EngineeringHeadcountNights":0,"EngineeringCallOutsDays":0,"EngineeringCallOutsNights":0,"MaintenanceHeadcountDays":0,"MaintenanceHeadcountNights":0,"MaintenanceCallOutsDays":0,"MaintenanceCallOutsNights":0,"BottleChanges":null,"DailyPartChanges":null,"WeeklyPartChanges":null}
|
||||
{"Date":"2023-01-15T00:00:00-07:00","OperatorHeadcountDays":14,"OperatorHeadcountNights":12,"OperatorCallOutsDays":0,"OperatorCallOutsNights":1,"EngineeringHeadcountDays":1,"EngineeringHeadcountNights":1,"EngineeringCallOutsDays":0,"EngineeringCallOutsNights":0,"MaintenanceHeadcountDays":3,"MaintenanceHeadcountNights":3,"MaintenanceCallOutsDays":0,"MaintenanceCallOutsNights":0,"BottleChanges":"R22","DailyPartChanges":"R23,R25","WeeklyPartChanges":"R23,R25,R27,R29,R36,R37"}
|
@ -1 +1,37 @@
|
||||
[{"Date":"2023-01-09T00:00:00-07:00","ASM":8,"HTR":16},{"Date":"2023-01-10T00:00:00-07:00","ASM":8,"HTR":16},{"Date":"2023-01-11T00:00:00-07:00","ASM":8,"HTR":16},{"Date":"2023-01-12T00:00:00-07:00","ASM":7,"HTR":16},{"Date":"2023-01-13T00:00:00-07:00","ASM":7,"HTR":15}]
|
||||
[
|
||||
{
|
||||
"Date": "2023-01-09T00:00:00-07:00",
|
||||
"ASM": 8,
|
||||
"HTR": 16
|
||||
},
|
||||
{
|
||||
"Date": "2023-01-10T00:00:00-07:00",
|
||||
"ASM": 8,
|
||||
"HTR": 16
|
||||
},
|
||||
{
|
||||
"Date": "2023-01-11T00:00:00-07:00",
|
||||
"ASM": 8,
|
||||
"HTR": 16
|
||||
},
|
||||
{
|
||||
"Date": "2023-01-12T00:00:00-07:00",
|
||||
"ASM": 7,
|
||||
"HTR": 16
|
||||
},
|
||||
{
|
||||
"Date": "2023-01-13T00:00:00-07:00",
|
||||
"ASM": 7,
|
||||
"HTR": 15
|
||||
},
|
||||
{
|
||||
"Date": "2023-01-14T00:00:00-07:00",
|
||||
"ASM": 8,
|
||||
"HTR": 15
|
||||
},
|
||||
{
|
||||
"Date": "2023-01-15T00:00:00-07:00",
|
||||
"ASM": 9,
|
||||
"HTR": 15
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user