diff --git a/ReportingServices.UI/Controllers/ProductionReportController.cs b/ReportingServices.UI/Controllers/ProductionReportController.cs index fa3a908..2459f8f 100644 --- a/ReportingServices.UI/Controllers/ProductionReportController.cs +++ b/ReportingServices.UI/Controllers/ProductionReportController.cs @@ -15,7 +15,7 @@ namespace ReportingServices.UI.Controllers public ProductionReportController(ILogger logger) { _logger = logger; - _baseDBUrl = "http://localhost:50201/api/"; + _baseDBUrl = "https://localhost:7196/api/"; _logger.LogInformation("Base Database Address: {baseUrl}", _baseDBUrl); } diff --git a/ReportingServices.UI/Views/ProductionReport/EditDailyReport.cshtml b/ReportingServices.UI/Views/ProductionReport/EditDailyReport.cshtml index bce7bd7..aed0660 100644 --- a/ReportingServices.UI/Views/ProductionReport/EditDailyReport.cshtml +++ b/ReportingServices.UI/Views/ProductionReport/EditDailyReport.cshtml @@ -160,7 +160,7 @@ @for (int i = 20; i < 80; i++) { string isMatching = ""; - string[] bottleChanges = Model.BottleChanges.Split(','); + string[] bottleChanges = !string.IsNullOrEmpty(Model.BottleChanges) ? Model.BottleChanges.Split(',') : new string[0]; for (int j = 0; j < bottleChanges.Length; j++) { @@ -191,7 +191,7 @@ @for (int i = 20; i < 80; i++) { string isMatching = ""; - string[] dailyPartChanges = Model.DailyPartChanges.Split(','); + string[] dailyPartChanges = !string.IsNullOrEmpty(Model.DailyPartChanges) ? Model.DailyPartChanges.Split(',') : new string[0]; for (int j = 0; j < dailyPartChanges.Length; j++) { @@ -222,7 +222,7 @@ @for (int i = 20; i < 80; i++) { string isMatching = ""; - string[] weeklyPartChanges = Model.WeeklyPartChanges.Split(','); + string[] weeklyPartChanges = !string.IsNullOrEmpty(Model.WeeklyPartChanges) ? Model.WeeklyPartChanges.Split(',') : new string[0]; for (int j = 0; j < weeklyPartChanges.Length; j++) { diff --git a/ReportingServices.UI/wwwroot/Assets/DailyReportInfo.json b/ReportingServices.UI/wwwroot/Assets/DailyReportInfo.json index ece5c52..09ce689 100644 --- a/ReportingServices.UI/wwwroot/Assets/DailyReportInfo.json +++ b/ReportingServices.UI/wwwroot/Assets/DailyReportInfo.json @@ -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":"R22,R23,R25","WeeklyPartChanges":"R21,R23,R29,R30"} \ No newline at end of file +{"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} \ No newline at end of file