// container.RegisterInstance(typeof(RDnLManager), new RDnLManager("OpcenterRDnL", "scCreate").Initialize(), lifetimeManager: new TransientLifetimeManager());
$"Не удалось определить вид контроля: LO: {plant.LO}, InspectonType: {request.Document.InspectonType}, FrameId: {frameId}";
Logger.Error(message);
returnBadRequest(message);
$"Не удалось определить вид контроля: Локация: {plant.LO} / {plant.SHORT_DESC}, InspectonType: {request?.Document?.InspectonType}, FrameId: {frameId}";
varmessage=$@"Для вида контроля S4 ""{request.Document.InspectonType}"" не удалось определить упаковку, не удалось получить числовое значение InspLotSize";
Logger.Error(message);
returnBadRequest(message);
varmessage=
$@"Для вида контроля S4 ""{request.Document.InspectonType}"" не удалось определить упаковку, т.к. не удалось получить числовое значение InspLotSize, ожидалось число с плавающей точкой, фактическое значение: '{request?.Document?.InspLotSize}'";
$"Не удалось определить SampleType, ProductCode: {customSampleCreateDto.ProductCode}, OperationControlName: {customSampleCreateDto.OperationControlName}, Упаковка: \"{customSampleCreateDto.Package}\", Стадия: \"{mappedControl.Stage}\"";
Logger.Error(message);
returnBadRequest(message);
$"Не удалось определить SampleType, ProductCode: {customSampleCreateDto.ProductCode}, OperationControlName: {customSampleCreateDto.OperationControlName}, Упаковка: \"{customSampleCreateDto.Package}\", Стадия: \"{mappedControl.Stage}\", возможно отсутствует ";
// Если мы нашли только один SampleType по количеству переданных атрибутов
if(groupingSampleTypes.Count==1)
returngroupingSampleTypes.Single().SampleType;
Logger.Error(
$"В результате получения SampleType было получено несколько возможных вариантов: {string.Join(",",sampleTypes.Select(c=>$"{c.SampleType.ST} / {c.SampleType.SHORT_DESC_MAIN}"))}");
$"В результате получения SampleType было получено несколько возможных вариантов: {string.Join(",",groupingSampleTypes.Select(c=>$"{c.SampleType.ST} / {c.SampleType.SHORT_DESC_MAIN}"))}");
varmappedPack=_databaseContext.Database.SqlQuery<RndtpackMapObject>("SELECT * FROM [RndSuite].[RndtpackKSSSMap] WHERE PackKSSS = @packName AND LocationId = @location",newSqlParameter("packName",package),newSqlParameter("location",plantId)).FirstOrDefault();
if(mappedPack!=null)
{
opCenterPackageName=mappedPack.Pack;
returntrue;
#regionoldCode
// var rndtPackOriginal = _databaseContext.Database.SqlQuery<Rndtpack>("SELECT * FROM [RndSuite].[Rndtpack] WHERE pack = @packName", new SqlParameter("packName", package)).FirstOrDefault();
$"Не удалось определить вид контроля: Локация: {plant.LO} / {plant.SHORT_DESC}, InspectonType: {request?.Document?.InspectonType}, FrameId: {frameId}";
$@"Для вида контроля S4 ""{request.Document.InspectonType}"" не удалось определить упаковку, т.к. не удалось получить числовое значение InspLotSize, ожидалось число с плавающей точкой, фактическое значение: '{request?.Document?.InspLotSize}'";
$"Не удалось определить SampleType, ProductCode: {customSampleCreateDto.ProductCode}, OperationControlName: {customSampleCreateDto.OperationControlName}, Упаковка: \"{customSampleCreateDto.Package}\", Стадия: \"{mappedControl.Stage}\", возможно отсутствует ";
// var request = await client.PostAsync("/XISOAPAdapter/MessageServlet?senderParty=&senderService=BSP_OPCENTER&receiverParty=&receiverService=&interface=SI_OpCenterSend_AO&interfaceNamespace=http://lukoil.ru/opcenter/ORM", new StringContent(xmlString, Encoding.UTF8, "text/xml"));
//Test
// var request = await client.PostAsync("/MessageServlet?senderParty=&senderService=BST_OPCENTER&receiverParty=&receiverService=&interface=SI_OpCenterSend_AO&interfaceNamespace=http%3A%2F%2Flukoil.ru%2Fopcenter%2FORM", new StringContent(xmlString, Encoding.UTF8, "text/xml"));
$@"Переданный атрибут '{infoFieldInfo.Name}' не был никуда записан. Не нашлось ни одной инфокарты и соответствующего инфополя из настроек appsettings.json");
//Logger.Error($@"Переданный атрибут '{infoFieldInfo.Name}' не был никуда записан. Не нашлось ни одной инфокарты и соответствующего инфополя из настроек Appsetting.json");
continue;
}
}
}
// foreach (var infoFieldInfo in infoFieldInfoElements)