forked from ddrilling/AsbCloudServer
Мини-правки
This commit is contained in:
parent
4bc299dd77
commit
e12c0b7256
@ -59,25 +59,25 @@ namespace AsbCloudInfrastructure.Services.WellOperationService
|
||||
.Select(t => t.Plan!)
|
||||
.OrderBy(t => t.DateStart)
|
||||
.ToList();
|
||||
FillCurrentScheduleSheetToWorkbook(workbook, plans, sheetNameSchedulePlan);
|
||||
FillCurrentScheduleSheet(workbook, plans, sheetNameSchedulePlan);
|
||||
|
||||
var facts = tvd
|
||||
.Where(t => t.Fact is not null)
|
||||
.Select(t => t.Fact!)
|
||||
.OrderBy(t => t.DateStart)
|
||||
.ToList();
|
||||
FillCurrentScheduleSheetToWorkbook(workbook, facts, sheetNameScheduleFact);
|
||||
FillCurrentScheduleSheet(workbook, facts, sheetNameScheduleFact);
|
||||
|
||||
var predictions = tvd
|
||||
.Where(t => t.Predict is not null)
|
||||
.Select(t => t.Predict!)
|
||||
.OrderBy(t => t.DateStart)
|
||||
.ToList();
|
||||
FillCurrentScheduleSheetToWorkbook(workbook, predictions, sheetNameSchedulePrediction);
|
||||
FillCurrentScheduleSheet(workbook, predictions, sheetNameSchedulePrediction);
|
||||
|
||||
}
|
||||
|
||||
private static void FillCurrentScheduleSheetToWorkbook(XLWorkbook workbook, List<WellOperationDto> tvdList, string sheetName)
|
||||
private static void FillCurrentScheduleSheet(XLWorkbook workbook, List<WellOperationDto> tvdList, string sheetName)
|
||||
{
|
||||
var sheet = workbook.Worksheets.FirstOrDefault(ws => ws.Name == sheetName);
|
||||
if (sheet is null)
|
||||
|
@ -7,10 +7,10 @@
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Host=localhost;Database=postgres3;Username=postgres;Password=q;Persist Security Info=True",
|
||||
"DebugConnection": "Host=localhost;Database=postgres3;Username=postgres;Password=q;Persist Security Info=True;Include Error Detail=True",
|
||||
"DefaultConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True",
|
||||
"DebugConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True;Include Error Detail=True",
|
||||
"ServerConnection": "Host=192.168.1.70;Database=postgres;Username=postgres;Password=q;Persist Security Info=True",
|
||||
"LocalConnection": "Host=localhost;Database=postgres3;Username=postgres;Password=q;Persist Security Info=True"
|
||||
"LocalConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True"
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
//"userLimits": {
|
||||
|
Loading…
Reference in New Issue
Block a user