CS2-54: Fixed default well operations in Db

This commit is contained in:
KharchenkoVV 2021-08-19 14:31:02 +05:00
parent aa87cb1c35
commit e45a693c92
2 changed files with 109 additions and 128 deletions

View File

@ -226,73 +226,54 @@ namespace AsbCloudDb.Model
new WellOperationCategory {Id = 16, Name = "Вращение без циркуляции", Code = 0 },
new WellOperationCategory {Id = 17, Name = "На поверхности", Code = 0 },
// Операции ручного ввода
new WellOperationCategory {Id = 1018, Name = "Бурение", Code = 0 },
new WellOperationCategory {Id = 1019, Name = "Бурение в интервале", Code = 0 },
new WellOperationCategory {Id = 1020, Name = "Бурение до глубины", Code = 0 },
new WellOperationCategory {Id = 1021, Name = "Бурение под направление", Code = 0 },
new WellOperationCategory {Id = 1022, Name = "ГИС (инклиметрия)", Code = 0 },
new WellOperationCategory {Id = 1023, Name = "ГИС (инклинометрия)", Code = 0 },
new WellOperationCategory {Id = 1024, Name = "ГФР - АМАК, АКЦ кондуктора", Code = 0 },
new WellOperationCategory {Id = 1025, Name = "Демонтаж ПВО, Установка ФА", Code = 0 },
new WellOperationCategory {Id = 1026, Name = "Оборудование устья", Code = 0 },
new WellOperationCategory {Id = 1027, Name = "ОЗЦ", Code = 0 },
new WellOperationCategory {Id = 1028, Name = "ГИС", Code = 0 },
new WellOperationCategory {Id = 1029, Name = "Окончание цикла бурения", Code = 0 },
new WellOperationCategory {Id = 1030, Name = "Опрессовка ПВО", Code = 0 },
new WellOperationCategory {Id = 1031, Name = "Опресовка Ц.К.", Code = 0 },
new WellOperationCategory {Id = 1032, Name = "Опрессовка ВЗД", Code = 0 },
new WellOperationCategory {Id = 1033, Name = "Перевод скв на KCL", Code = 0 },
new WellOperationCategory {Id = 1034, Name = "Перезапись гаммы", Code = 0 },
new WellOperationCategory {Id = 1035, Name = "Перезапись ГК", Code = 0 },
new WellOperationCategory {Id = 1036, Name = "Перетяжка тальканата", Code = 0 },
new WellOperationCategory {Id = 1037, Name = "Подъем", Code = 0 },
new WellOperationCategory {Id = 1038, Name = "Подъем ЛБТ", Code = 0 },
new WellOperationCategory {Id = 1039, Name = "Подъем инструмента", Code = 0 },
new WellOperationCategory {Id = 1040, Name = "ПР и Сборка КНБК", Code = 0 },
new WellOperationCategory {Id = 1041, Name = "ПР к бурению и сборке КНБК", Code = 0 },
new WellOperationCategory {Id = 1042, Name = "ПР к промывке", Code = 0 },
new WellOperationCategory {Id = 1043, Name = "ПР к спуску кондуктора", Code = 0 },
new WellOperationCategory {Id = 1044, Name = "ПР к спуску направления", Code = 0 },
new WellOperationCategory {Id = 1045, Name = "ПР к спуску ОК", Code = 0 },
new WellOperationCategory {Id = 1046, Name = "ПР к спуску ЭК-146", Code = 0 },
new WellOperationCategory {Id = 1047, Name = "ПР к цементажу", Code = 0 },
new WellOperationCategory {Id = 1048, Name = "ПР к цементированию кондуктора", Code = 0 },
new WellOperationCategory {Id = 1049, Name = "ПР к цементированию направления", Code = 0 },
new WellOperationCategory {Id = 1050, Name = "ПР к цементированию ЭК", Code = 0 },
new WellOperationCategory {Id = 1051, Name = "ПР. Спуск направления", Code = 0 },
new WellOperationCategory {Id = 1052, Name = "ПР. цементаж направления", Code = 0 },
new WellOperationCategory {Id = 1053, Name = "Промывка", Code = 0 },
new WellOperationCategory {Id = 1054, Name = "Промежуточная промывка", Code = 0 },
new WellOperationCategory {Id = 1055, Name = "Промывка на забое", Code = 0 },
new WellOperationCategory {Id = 1056, Name = "Промывка перед бурением", Code = 0 },
new WellOperationCategory {Id = 1057, Name = "Промывка перед ГИС", Code = 0 },
new WellOperationCategory {Id = 1058, Name = "Промывка перед подъемом", Code = 0 },
new WellOperationCategory {Id = 1059, Name = "Промывка перед цементажем", Code = 0 },
new WellOperationCategory {Id = 1060, Name = "Промывка перед цементированием", Code = 0 },
new WellOperationCategory {Id = 1061, Name = "Промывка прокачка", Code = 0 },
new WellOperationCategory {Id = 1062, Name = "Промывка с прокачкой", Code = 0 },
new WellOperationCategory {Id = 1063, Name = "Разборка КНБК", Code = 0 },
new WellOperationCategory {Id = 1064, Name = "Разбуривание тех.оснастки", Code = 0 },
new WellOperationCategory {Id = 1065, Name = "Разбурка ЦКОДа", Code = 0 },
new WellOperationCategory {Id = 1066, Name = "Ремонт наг.линии подпорного насоса", Code = 0 },
new WellOperationCategory {Id = 1067, Name = "Сборка КНБК", Code = 0 },
new WellOperationCategory {Id = 1068, Name = "Сборка роторной КНБК", Code = 0 },
new WellOperationCategory {Id = 1069, Name = "Спуск инструмента", Code = 0 },
new WellOperationCategory {Id = 1070, Name = "Спуск КНБК", Code = 0 },
new WellOperationCategory {Id = 1071, Name = "Подъем КНБК", Code = 0 },
new WellOperationCategory {Id = 1072, Name = "Спуск ЛБТ", Code = 0 },
new WellOperationCategory {Id = 1073, Name = "Спуск ОК", Code = 0 },
new WellOperationCategory {Id = 1074, Name = "Спуск ЭК", Code = 0 },
new WellOperationCategory {Id = 1075, Name = "Тех СПО", Code = 0 },
new WellOperationCategory {Id = 1076, Name = "Тех СПО-подъем", Code = 0 },
new WellOperationCategory {Id = 1077, Name = "Тех СПО-спуск", Code = 0 },
new WellOperationCategory {Id = 1078, Name = "ТО СВП", Code = 0 },
new WellOperationCategory {Id = 1079, Name = "Цементаж", Code = 0 },
new WellOperationCategory {Id = 1080, Name = "Цементаж кондуктора", Code = 0 },
new WellOperationCategory {Id = 1081, Name = "Цементаж направления", Code = 0 },
new WellOperationCategory {Id = 1082, Name = "Цементаж ЭК", Code = 0 },
new WellOperationCategory {Id = 1083, Name = "Шаблонировка ствола", Code = 0 },
new WellOperationCategory {Id = 1084, Name = "Cпуск направления", Code = 0 }
new WellOperationCategory {Id = 1001, Name = "Бурение в интервале", Code = 0 },
new WellOperationCategory {Id = 1002, Name = "ГИС", Code = 0 },
new WellOperationCategory {Id = 1003, Name = "ГФР", Code = 0 },
new WellOperationCategory {Id = 1004, Name = "Монтаж ПВО", Code = 0 },
new WellOperationCategory {Id = 1005, Name = "Демонтаж ПВО", Code = 0 },
new WellOperationCategory {Id = 1006, Name = "Установка ФА", Code = 0 },
new WellOperationCategory {Id = 1007, Name = "Оборудование устья", Code = 0 },
new WellOperationCategory {Id = 1008, Name = "ОЗЦ", Code = 0 },
new WellOperationCategory {Id = 1009, Name = "Оборудование устья", Code = 0 },
new WellOperationCategory {Id = 1010, Name = "ОЗЦ", Code = 0 },
new WellOperationCategory {Id = 1011, Name = "Начало цикла строительства скважины", Code = 0 },
new WellOperationCategory {Id = 1012, Name = "Окончание цикла строительства скважины", Code = 0 },
new WellOperationCategory {Id = 1013, Name = "Опрессовка ПВО", Code = 0 },
new WellOperationCategory {Id = 1014, Name = "Опресовка Ц.К.", Code = 0 },
new WellOperationCategory {Id = 1015, Name = "Опрессовка ВЗД", Code = 0 },
new WellOperationCategory {Id = 1016, Name = "Перевод скв на другой тип промывочной жидкости", Code = 0 },
new WellOperationCategory {Id = 1017, Name = "Перезапись каротажа", Code = 0 },
new WellOperationCategory {Id = 1018, Name = "Перетяжка талевого каната", Code = 0 },
new WellOperationCategory {Id = 1019, Name = "Перетяжка тальканата", Code = 0 },
new WellOperationCategory {Id = 1020, Name = "Подъем инструмента", Code = 0 },
new WellOperationCategory {Id = 1021, Name = "Подъем инструмента с промывкой", Code = 0 },
new WellOperationCategory {Id = 1022, Name = "Обратная проработка", Code = 0 },
new WellOperationCategory {Id = 1023, Name = "Сборка инструмента", Code = 0 },
new WellOperationCategory {Id = 1024, Name = "Подготовительные работы", Code = 0 },
new WellOperationCategory {Id = 1025, Name = "Сборка КНБК", Code = 0 },
new WellOperationCategory {Id = 1026, Name = "Разборка КНБК", Code = 0 },
new WellOperationCategory {Id = 1027, Name = "Промывка", Code = 0 },
new WellOperationCategory {Id = 1028, Name = "Промежуточная промывка", Code = 0 },
new WellOperationCategory {Id = 1029, Name = "Прокачка пачек", Code = 0 },
new WellOperationCategory {Id = 1030, Name = "Разбуривание тех.оснастки", Code = 0 },
new WellOperationCategory {Id = 1031, Name = "Ремонт", Code = 0 },
new WellOperationCategory {Id = 1032, Name = "Спуск инструмента", Code = 0 },
new WellOperationCategory {Id = 1033, Name = "Спуск инструмента с промывкой", Code = 0 },
new WellOperationCategory {Id = 1034, Name = "Прямая проработка", Code = 0 },
new WellOperationCategory {Id = 1035, Name = "Принудительная проработка", Code = 0 },
new WellOperationCategory {Id = 1036, Name = "Спуск обсадной колонны", Code = 0 },
new WellOperationCategory {Id = 1037, Name = "Тех СПО-подъем", Code = 0 },
new WellOperationCategory {Id = 1038, Name = "Тех СПО-спуск", Code = 0 },
new WellOperationCategory {Id = 1039, Name = "Техническое обслуживание", Code = 0 },
new WellOperationCategory {Id = 1040, Name = "Цементаж", Code = 0 },
new WellOperationCategory {Id = 1041, Name = "Шаблонировка ствола", Code = 0 },
new WellOperationCategory {Id = 1042, Name = "Геологическое осложнение", Code = 0 },
new WellOperationCategory {Id = 1043, Name = "НПВ", Code = 0 },
new WellOperationCategory {Id = 1044, Name = "ВМР", Code = 0 },
new WellOperationCategory {Id = 1045, Name = "Прочее", Code = 0 },
new WellOperationCategory {Id = 1046, Name = "Спуск КНБК", Code = 0 },
new WellOperationCategory {Id = 1047, Name = "Подъем КНБК", Code = 0 },
new WellOperationCategory {Id = 1048, Name = "Спуск ОК", Code = 0 }
});
});
@ -412,152 +393,152 @@ namespace AsbCloudDb.Model
{
entity.HasData(new List<WellOperation> {
new WellOperation{ Id = 1, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1018, IdType = 0,
IdCategory = 1001, IdType = 0,
WellDepth = 200, StartDate = DateTime.Now.AddHours(1),
DurationHours = 1.2},
new WellOperation{ Id = 2, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1018, IdType = 0,
IdCategory = 1001, IdType = 0,
WellDepth = 300, StartDate = DateTime.Now.AddHours(2.5),
DurationHours = 1.5},
new WellOperation{ Id = 3, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1018, IdType = 1,
IdCategory = 1001, IdType = 1,
WellDepth = 210, StartDate = DateTime.Now.AddHours(1.5),
DurationHours = 1},
new WellOperation{ Id = 4, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1018, IdType = 1,
IdCategory = 1001, IdType = 1,
WellDepth = 310, StartDate = DateTime.Now.AddHours(2),
DurationHours = 1.5},
new WellOperation{ Id = 5, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1018, IdType = 0,
IdCategory = 1001, IdType = 0,
WellDepth = 200, StartDate = DateTime.Now.AddHours(1),
DurationHours = 1.2},
new WellOperation{ Id = 6, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1018, IdType = 0,
IdCategory = 1001, IdType = 0,
WellDepth = 300, StartDate = DateTime.Now.AddHours(2.5),
DurationHours = 1.5},
new WellOperation{ Id = 7, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1018, IdType = 1,
IdCategory = 1001, IdType = 1,
WellDepth = 210, StartDate = DateTime.Now.AddHours(1.5),
DurationHours = 1},
new WellOperation{ Id = 8, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1018, IdType = 1,
IdCategory = 1001, IdType = 1,
WellDepth = 310, StartDate = DateTime.Now.AddHours(2),
DurationHours = 1.5},
new WellOperation{ Id = 9, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1018, IdType = 0,
IdCategory = 1001, IdType = 0,
WellDepth = 500, StartDate = DateTime.Now.AddHours(1),
DurationHours = 1.2},
new WellOperation{ Id = 10, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1018, IdType = 0,
IdCategory = 1001, IdType = 0,
WellDepth = 510, StartDate = DateTime.Now.AddHours(2),
DurationHours = 1.2},
new WellOperation{ Id = 11, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1018, IdType = 1,
IdCategory = 1001, IdType = 1,
WellDepth = 510, StartDate = DateTime.Now.AddHours(1.5),
DurationHours = 1},
new WellOperation{ Id = 12, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1018, IdType = 1,
IdCategory = 1001, IdType = 1,
WellDepth = 520, StartDate = DateTime.Now.AddHours(2),
DurationHours = 1.5},
new WellOperation{ Id = 13, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1071, IdType = 0,
IdCategory = 1046, IdType = 0,
WellDepth = 200, StartDate = DateTime.Now.AddHours(2.5),
DurationHours = 15.5},
new WellOperation{ Id = 14, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1071, IdType = 0,
IdCategory = 1046, IdType = 0,
WellDepth = 210, StartDate = DateTime.Now.AddHours(3),
DurationHours = 17.2},
new WellOperation{ Id = 15, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1071, IdType = 1,
IdCategory = 1046, IdType = 1,
WellDepth = 220, StartDate = DateTime.Now.AddHours(2.7),
DurationHours = 15.2},
new WellOperation{ Id = 16, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1071, IdType = 1,
IdCategory = 1046, IdType = 1,
WellDepth = 230, StartDate = DateTime.Now.AddHours(3.1),
DurationHours = 17.8},
new WellOperation{ Id = 17, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1071, IdType = 0,
IdCategory = 1046, IdType = 0,
WellDepth = 200, StartDate = DateTime.Now.AddHours(2.5),
DurationHours = 15.5},
new WellOperation{ Id = 18, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1071, IdType = 0,
IdCategory = 1046, IdType = 0,
WellDepth = 210, StartDate = DateTime.Now.AddHours(3),
DurationHours = 17.2},
new WellOperation{ Id = 19, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1071, IdType = 1,
IdCategory = 1046, IdType = 1,
WellDepth = 220, StartDate = DateTime.Now.AddHours(2.7),
DurationHours = 15.2},
new WellOperation{ Id = 20, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1071, IdType = 1,
IdCategory = 1046, IdType = 1,
WellDepth = 230, StartDate = DateTime.Now.AddHours(3.1),
DurationHours = 17.8},
new WellOperation{ Id = 21, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1071, IdType = 0,
IdCategory = 1046, IdType = 0,
WellDepth = 700, StartDate = DateTime.Now.AddHours(2.5),
DurationHours = 16.2},
new WellOperation{ Id = 22, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1071, IdType = 0,
IdCategory = 1046, IdType = 0,
WellDepth = 720, StartDate = DateTime.Now.AddHours(3.5),
DurationHours = 17.2},
new WellOperation{ Id = 23, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1071, IdType = 1,
IdCategory = 1046, IdType = 1,
WellDepth = 715, StartDate = DateTime.Now.AddHours(2.7),
DurationHours = 15.2},
new WellOperation{ Id = 24, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1071, IdType = 1,
IdCategory = 1046, IdType = 1,
WellDepth = 720, StartDate = DateTime.Now.AddHours(3),
DurationHours = 18.2},
new WellOperation{ Id = 25, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1072, IdType = 0,
IdCategory = 1047, IdType = 0,
WellDepth = 600, StartDate = DateTime.Now.AddHours(4),
DurationHours = 5},
new WellOperation{ Id = 26, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1072, IdType = 0,
IdCategory = 1047, IdType = 0,
WellDepth = 650, StartDate = DateTime.Now.AddHours(4.5),
DurationHours = 5.5},
new WellOperation{ Id = 27, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1072, IdType = 1,
IdCategory = 1047, IdType = 1,
WellDepth = 700, StartDate = DateTime.Now.AddHours(5.5),
DurationHours = 8},
new WellOperation{ Id = 28, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1072, IdType = 1,
IdCategory = 1047, IdType = 1,
WellDepth = 710, StartDate = DateTime.Now.AddHours(5.7),
DurationHours = 7.2},
new WellOperation{ Id = 29, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1072, IdType = 0,
IdCategory = 1047, IdType = 0,
WellDepth = 600, StartDate = DateTime.Now.AddHours(4),
DurationHours = 5},
new WellOperation{ Id = 30, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1072, IdType = 0,
IdCategory = 1047, IdType = 0,
WellDepth = 650, StartDate = DateTime.Now.AddHours(4.5),
DurationHours = 5.5},
new WellOperation{ Id = 31, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1072, IdType = 1,
IdCategory = 1047, IdType = 1,
WellDepth = 700, StartDate = DateTime.Now.AddHours(5.5),
DurationHours = 8},
new WellOperation{ Id = 32, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1072, IdType = 1,
IdCategory = 1047, IdType = 1,
WellDepth = 710, StartDate = DateTime.Now.AddHours(5.7),
DurationHours = 7.2},
new WellOperation{ Id = 33, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1072, IdType = 0,
IdCategory = 1047, IdType = 0,
WellDepth = 1000, StartDate = DateTime.Now.AddHours(5.25),
DurationHours = 2.1},
new WellOperation{ Id = 34, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1072, IdType = 0,
IdCategory = 1047, IdType = 0,
WellDepth = 1100, StartDate = DateTime.Now.AddHours(7.5),
DurationHours = 2},
new WellOperation{ Id = 35, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1072, IdType = 1,
IdCategory = 1047, IdType = 1,
WellDepth = 1000, StartDate = DateTime.Now.AddHours(5.15),
DurationHours = 2.75},
new WellOperation{ Id = 36, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1072, IdType = 1,
IdCategory = 1047, IdType = 1,
WellDepth = 1250, StartDate = DateTime.Now.AddHours(6.5),
DurationHours = 3.5},
@ -565,55 +546,55 @@ namespace AsbCloudDb.Model
new WellOperation{ Id = 37, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 600, StartDate = DateTime.Now.AddHours(4),
DurationHours = 5},
new WellOperation{ Id = 38, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 650, StartDate = DateTime.Now.AddHours(4.2),
DurationHours = 5.5},
new WellOperation{ Id = 39, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1074, IdType = 1,
IdCategory = 1048, IdType = 1,
WellDepth = 700, StartDate = DateTime.Now.AddHours(5.5),
DurationHours = 7},
new WellOperation{ Id = 40, IdWell = 1, IdWellSectionType = 1,
IdCategory = 1074, IdType = 1,
IdCategory = 1048, IdType = 1,
WellDepth = 710, StartDate = DateTime.Now.AddHours(5.7),
DurationHours = 7.5},
new WellOperation{ Id = 41, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 600, StartDate = DateTime.Now.AddHours(4),
DurationHours = 5},
new WellOperation{ Id = 42, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 650, StartDate = DateTime.Now.AddHours(4.2),
DurationHours = 5.5},
new WellOperation{ Id = 43, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1074, IdType = 1,
IdCategory = 1048, IdType = 1,
WellDepth = 700, StartDate = DateTime.Now.AddHours(5.5),
DurationHours = 7},
new WellOperation{ Id = 44, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1074, IdType = 1,
IdCategory = 1048, IdType = 1,
WellDepth = 710, StartDate = DateTime.Now.AddHours(5.7),
DurationHours = 7.5},
new WellOperation{ Id = 48, IdWell = 1, IdWellSectionType = 2,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 910, StartDate = DateTime.Now.AddHours(5),
DurationHours = 12},
new WellOperation{ Id = 49, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 910, StartDate = DateTime.Now.AddHours(5),
DurationHours = 2},
new WellOperation{ Id = 50, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1074, IdType = 0,
IdCategory = 1048, IdType = 0,
WellDepth = 950, StartDate = DateTime.Now.AddHours(7.5),
DurationHours = 2},
new WellOperation{ Id = 51, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1074, IdType = 1,
IdCategory = 1048, IdType = 1,
WellDepth = 980, StartDate = DateTime.Now.AddHours(5),
DurationHours = 2.5},
new WellOperation{ Id = 52, IdWell = 1, IdWellSectionType = 3,
IdCategory = 1074, IdType = 1,
IdCategory = 1048, IdType = 1,
WellDepth = 1010, StartDate = DateTime.Now.AddHours(6.5),
DurationHours = 2.5},

View File

@ -217,7 +217,7 @@ namespace AsbCloudInfrastructure.Services
private static IEnumerable<(double MechSpeedPlan, double MechSpeedFact)> GetWellMechSpeedPlanFact(
IEnumerable<IGrouping<int, WellOperation>> groupedOperations)
{
var mechSpeedBase = GetParams(groupedOperations, 1018);
var mechSpeedBase = GetParams(groupedOperations, 1001);
return CalculateResult(mechSpeedBase);
}
@ -225,7 +225,7 @@ namespace AsbCloudInfrastructure.Services
private static IEnumerable<(double BhaDownSpeedPlan, double BhaDownSpeedFact)> GetWellBhaDownSpeedPlanFact(
IEnumerable<IGrouping<int, WellOperation>> groupedOperations)
{
var bhaDownSpeedBase = GetParams(groupedOperations, 1071);
var bhaDownSpeedBase = GetParams(groupedOperations, 1046);
return CalculateResult(bhaDownSpeedBase);
}
@ -233,7 +233,7 @@ namespace AsbCloudInfrastructure.Services
private static IEnumerable<(double BhaUpSpeedPlan, double BhaUpSpeedFact)> GetWellBhaUpSpeedPlanFact(
IEnumerable<IGrouping<int, WellOperation>> groupedOperations)
{
var bhaUpSpeedBase = GetParams(groupedOperations, 1072);
var bhaUpSpeedBase = GetParams(groupedOperations, 1047);
return CalculateResult(bhaUpSpeedBase);
}
@ -241,7 +241,7 @@ namespace AsbCloudInfrastructure.Services
private static IEnumerable<(double CasingDownSpeedPlan, double CasingDownSpeedFact)> GetWellCasingDownPlanFact(
IEnumerable<IGrouping<int, WellOperation>> groupedOperations)
{
var casingDownBase = GetParams(groupedOperations, 1074);
var casingDownBase = GetParams(groupedOperations, 1048);
return CalculateResult(casingDownBase);
}
@ -256,20 +256,20 @@ namespace AsbCloudInfrastructure.Services
foreach (var group in groupedOperations)
{
var firstBhaPositionDecreasePlan = group.Any(o => o.IdCategory == 1071 && o.IdType == 0)
? group.First(o => o.IdCategory == 1071 && o.IdType == 0)
var firstBhaPositionDecreasePlan = group.Any(o => o.IdCategory == 1046 && o.IdType == 0)
? group.First(o => o.IdCategory == 1046 && o.IdType == 0)
: null;
var lastBhaPositionIncreasePlan = group.Any(o => o.IdCategory == 1072 && o.IdType == 0)
? group.Last(o => o.IdCategory == 1072 && o.IdType == 0)
var lastBhaPositionIncreasePlan = group.Any(o => o.IdCategory == 1047 && o.IdType == 0)
? group.Last(o => o.IdCategory == 1047 && o.IdType == 0)
: null;
var firstBhaPositionDecreaseFact = group.Any(o => o.IdCategory == 1071 && o.IdType == 1)
? group.First(o => o.IdCategory == 1071 && o.IdType == 1)
var firstBhaPositionDecreaseFact = group.Any(o => o.IdCategory == 1046 && o.IdType == 1)
? group.First(o => o.IdCategory == 1046 && o.IdType == 1)
: null;
var lastBhaPositionIncreaseFact = group.Any(o => o.IdCategory == 1072 && o.IdType == 1)
? group.Last(o => o.IdCategory == 1072 && o.IdType == 1)
var lastBhaPositionIncreaseFact = group.Any(o => o.IdCategory == 1047 && o.IdType == 1)
? group.Last(o => o.IdCategory == 1047 && o.IdType == 1)
: null;
bhaRaiseDecreaseCollection.Add((firstBhaPositionDecreasePlan,