Initial commit

parent d1e6729c
This diff is collapsed.
using IntegrationS4.RDnL.Services;
using RnD.API;
using RnD.Attributes;
using RnD.Common.Enums;
using RnD.Common.Model.ActionBarButtons;
using RnD.CustomFunctionTypes;
using RnD.Model;
using System.Collections.Generic;
using System.Linq;
namespace IntegrationS4.RDnL.Buttons
{
[CustomFunction("IntegrationS4CustomActionBar")]
public class IntegrationS4Button : AdvancedCustomFunction, ICustomActionBarButton
{
public IntegrationS4Button(IAPI aAPI) : base(aAPI)
{
}
public ActionBarButtonResult Execute(List<ICustomizationObject> aCustomisationObject)
{
var userId = API.CustomizationSession.User.ID;
//if(userId != 449 || userId != 450)
//{
// return new ActionBarButtonResult { Message = "Invalid user", MessageType = MessageType.Error };
//}
var specification = aCustomisationObject.FirstOrDefault(c => c is ISpecification) as ISpecification;
if (specification is null)
{
Log.Error("Specification for sending is null");
return new ActionBarButtonResult { Message = "Specification for sending is null", MessageType = MessageType.Error };
}
var request = IntegrationS4Service.ExportS4(specification);
return request;
}
public ActionBarButtonMetadata GetActionBarButtonMetadata() => new ActionBarButtonMetadata
{
Description = "Передать в S4",
Position = 5,
IconClass = "icon-cmdXml24",
DropdownIdentifier = "",
IsVisibleWhen = new List<ActionBarButtonVisibility> { ActionBarButtonVisibility.Specification },
};
}
}
using IntegrationS4.RDnL.Services;
using RnD.API;
using RnD.Attributes;
using RnD.Messages.Client;
using RnD.Model;
namespace IntegrationS4.RDnL.CustomActions
{
[CustomFunction("IntegrationS4CustomAction", RnD.Common.Enums.CustomFunctionType.CustomAction)]
public class IntegrationS4CustomAction : AdvancedCustomFunction, ICustomAction<ICustomContext>
{
public IntegrationS4CustomAction(IAPI aAPI) : base(aAPI) { }
public void Execute(ICustomContext aContext)
{
var specification = aContext.Entity as ISpecification;
if (specification is null)
{
Log.Error("Specification for sending is null");
return;
}
var requiredStatus = 1000021; //Status;
if (specification.Status != requiredStatus)
{
Log.Error("The status of the specification has an invalid value for the transition");
return;
}
dynamic request = IntegrationS4Service.ExportS4(specification);
var userId = (decimal)aContext.Event.UserName;
var user = API.User.GetUser(userId).UserName;
var connectionName = API.CustomizationSession.ConnectionName;
var browserGuid = API.CustomizationSession.BrowserGuid;
var notificationClient = new NotificationClient();
MessageService.SendMessage(request.Message, request.Type, notificationClient, user, connectionName, browserGuid);
Log.Info(request.Message);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{3192BB20-8D81-4DE9-874C-6D2E1C8DC6DA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IntegrationS4.RDnL</RootNamespace>
<AssemblyName>IntegrationS4.RDnL</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="NLog">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\NLog.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RDnL.Logger">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RDnL.Logger.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.BusinessLayer.EF">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.BusinessLayer.EF.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.BusinessLayer.Interfaces">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.BusinessLayer.Interfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Common">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.Common.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Customizations.API">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.Customizations.API.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Customizations.Interfaces">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.Customizations.Interfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Messages.Client">
<HintPath>..\..\..\..\..\..\inetpub\wwwroot\OpcenterRDnLBackEnd\bin\RnD.Messages.Client.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Messages.Interfaces">
<HintPath>..\..\..\..\..\..\inetpub\wwwroot\OpcenterRDnLBackEnd\bin\RnD.Messages.Interfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Model.EF">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.Model.EF.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.SubstitutionSyntax">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.SubstitutionSyntax.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnD.Uniconnect">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnD.Uniconnect.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RnDSuiteBackend">
<HintPath>..\..\..\..\..\..\Distr\OpcenterRDnL_9.1.0.0.3\Implementation\ABP\Opcenter_RDnL_V9.1.0.3_applied_best_practices\OpcenterRDnLLibrary_Builds\Siemens.OpcenterRDnLLibrary.Dependencies\RnDSuiteBackend.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ServiceModel">
<Private>True</Private>
</Reference>
<Reference Include="System.ServiceModel.Web">
<Private>True</Private>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Buttons\IntegrationS4Button.cs" />
<Compile Include="CustomActions\IntegrationS4CustomAction.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\IntegrationS4Service.cs" />
<Compile Include="Services\MessageService.cs" />
<Compile Include="Services\SerializationService.cs" />
<Compile Include="Services\Soap\BOMCreate.cs" />
<Compile Include="Services\Soap\Confirmation.cs" />
<Compile Include="Services\Soap\DTBOMCreate.cs" />
<Compile Include="Services\Soap\DTBOMCreateDocument.cs" />
<Compile Include="Services\Soap\DTBOMCreateDocumentItem.cs" />
<Compile Include="Services\Soap\DTConfirmation.cs" />
<Compile Include="Services\Soap\DTConfirmationConfirmation.cs" />
<Compile Include="Services\Soap\DTInspM.cs" />
<Compile Include="Services\Soap\DTInspMDocument.cs" />
<Compile Include="Services\Soap\DTMIC.cs" />
<Compile Include="Services\Soap\DTMICDocument.cs" />
<Compile Include="Services\Soap\DTPass.cs" />
<Compile Include="Services\Soap\DTPassDocument.cs" />
<Compile Include="Services\Soap\DTProbe.cs" />
<Compile Include="Services\Soap\DTProbeD.cs" />
<Compile Include="Services\Soap\DTProbeDDocument.cs" />
<Compile Include="Services\Soap\DTProbeDocument.cs" />
<Compile Include="Services\Soap\DTQmResult.cs" />
<Compile Include="Services\Soap\DTQmResultDocument.cs" />
<Compile Include="Services\Soap\DTQmResultDocumentItem.cs" />
<Compile Include="Services\Soap\EndpointConfiguration.cs" />
<Compile Include="Services\Soap\InspM.cs" />
<Compile Include="Services\Soap\ISIOpCenterSendAO.cs" />
<Compile Include="Services\Soap\ISIOpCenterSendAOChannel.cs" />
<Compile Include="Services\Soap\MIC.cs" />
<Compile Include="Services\Soap\Pass.cs" />
<Compile Include="Services\Soap\Probe.cs" />
<Compile Include="Services\Soap\ProbeD.cs" />
<Compile Include="Services\Soap\QmResult.cs" />
<Compile Include="Services\Soap\SIOpCenterSendAOClient.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Models\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ProjectFiles</ProjectView>
</PropertyGroup>
</Project>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("IntegrationS4.RDnL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("IntegrationS4.RDnL")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3192bb20-8d81-4de9-874c-6d2e1c8dc6da")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
using IntegrationS4.RDnL.Services.Soap;
using RnD.Common.Enums;
using RnD.Common.Model.ActionBarButtons;
using RnD.Model;
using System;
using System.ServiceModel.Channels;
using System.ServiceModel;
using System.Threading.Tasks;
using System.ServiceModel.Web;
using System.Net;
namespace IntegrationS4.RDnL.Services
{
public static class IntegrationS4Service
{
public static ActionBarButtonResult ExportS4(ISpecification specification)
{
try
{
SIOpCenterSendAOClient sIOpCenterSendAOClient = new SIOpCenterSendAOClient(EndpointConfiguration.HttpPort);
using (var context = new OperationContextScope(sIOpCenterSendAOClient.InnerChannel))
{
HttpRequestMessageProperty requestMessage = new HttpRequestMessageProperty();
requestMessage.Headers["Authorization"] = "Basic RVNCX09QQ0VOVEVSOk9ZMSQlOWdj";
OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = requestMessage;
var dtBOMCreate = new DTBOMCreate
{
SystemReceiver = "S4",
SystemSender = "Opcenter RDnL",
GuidMsgExt = Guid.NewGuid().ToString(),
Document = new DTBOMCreateDocument[]
{
new DTBOMCreateDocument
{
ID = "1141",
STLAL = "1",
STLST = "33",
WERKS = "2420",
AENNR = "1",
BMEIN = "кг",
BMENG = "100,000",
DATUB = "31.12.9999",
DATUV = "04.04.2023",
MATNR = "1440405",
Item = new DTBOMCreateDocumentItem[]
{
new DTBOMCreateDocumentItem
{
MEINS = "кг",
POSNR = "10",
FMENG = "B",
IDNRK = "3142093",
MENGE = "80.000000",
POTX1 = "0-0",
},
new DTBOMCreateDocumentItem
{
MEINS = "кг",
POSNR = "20",
FMENG = "B",
IDNRK = "1678971",
MENGE = "20.000000",
POTX1 = "0-0",
}
}
}
},
};
sIOpCenterSendAOClient.BOMCreateAsync(dtBOMCreate).Wait();
}
}
catch (Exception ex)
{
return new ActionBarButtonResult { Message = $"{ex.Message}", MessageType = MessageType.Error };
}
return new ActionBarButtonResult { Message = $"Успешная отправка", MessageType = MessageType.Information };
}
}
}
using RnD.Messages.Client;
using RnD.Messages.Interfaces.Data;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace IntegrationS4.RDnL.Services
{
/// <summary>
/// Service for send message on frontend
/// </summary>
public static class MessageService
{
#region Methods
/// <summary>
/// Send message to user(s) on RDnL frontend
/// </summary>
/// <param name="message">Message for send</param>
/// <param name="notificationType"></param>
/// <param name="notificationClient"></param>
/// <param name="userName"></param>
/// <param name="db"></param>
/// <param name="guid"></param>
public static void SendMessage(in string message, in NotificationType notificationType, in NotificationClient notificationClient,
in string userName, in string db, in Guid guid)
{
var notificationMessage = new { Message = message, Arguments = new List<string>() };
var notification = new Notification
{
Data = RuntimeHelpers.GetObjectValue(notificationMessage),
NotificationType = notificationType
};
notificationClient.SendTo(notification, db, userName, guid);
}
#endregion
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IntegrationS4.RDnL.Services
{
public static class SerializationService
{
//public static File Xml(string filePath)
//{
//}
//public static File Json(string filePath)
//{
//}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class BOMCreate
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTBOMCreate MT_BOMCreate;
public BOMCreate()
{
}
public BOMCreate(DTBOMCreate MT_BOMCreate)
{
this.MT_BOMCreate = MT_BOMCreate;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class Confirmation
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTConfirmation MT_Confirmation;
public Confirmation()
{
}
public Confirmation(DTConfirmation MT_Confirmation)
{
this.MT_Confirmation = MT_Confirmation;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTBOMCreate
{
private DTBOMCreateDocument[] documentField;
private string guidMsgExtField;
private string systemReceiverField;
private string systemSenderField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTBOMCreateDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuidMsgExt
{
get
{
return this.guidMsgExtField;
}
set
{
this.guidMsgExtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTBOMCreateDocument
{
private DTBOMCreateDocumentItem[] itemField;
private string idField;
private string mATNRField;
private string wERKSField;
private string sTLALField;
private string bMENGField;
private string bMEINField;
private string sTLSTField;
private string dATUVField;
private string dATUBField;
private string aENNRField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTBOMCreateDocumentItem[] Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ID
{
get
{
return this.idField;
}
set
{
this.idField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string MATNR
{
get
{
return this.mATNRField;
}
set
{
this.mATNRField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string WERKS
{
get
{
return this.wERKSField;
}
set
{
this.wERKSField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string STLAL
{
get
{
return this.sTLALField;
}
set
{
this.sTLALField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string BMENG
{
get
{
return this.bMENGField;
}
set
{
this.bMENGField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string BMEIN
{
get
{
return this.bMEINField;
}
set
{
this.bMEINField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string STLST
{
get
{
return this.sTLSTField;
}
set
{
this.sTLSTField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string DATUV
{
get
{
return this.dATUVField;
}
set
{
this.dATUVField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string DATUB
{
get
{
return this.dATUBField;
}
set
{
this.dATUBField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string AENNR
{
get
{
return this.aENNRField;
}
set
{
this.aENNRField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTBOMCreateDocumentItem
{
private string iDNRKField;
private string pOSNRField;
private string mENGEField;
private string mEINSField;
private string pOTX1Field;
private string fMENGField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string IDNRK
{
get
{
return this.iDNRKField;
}
set
{
this.iDNRKField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string POSNR
{
get
{
return this.pOSNRField;
}
set
{
this.pOSNRField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string MENGE
{
get
{
return this.mENGEField;
}
set
{
this.mENGEField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string MEINS
{
get
{
return this.mEINSField;
}
set
{
this.mEINSField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string POTX1
{
get
{
return this.pOTX1Field;
}
set
{
this.pOTX1Field = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string FMENG
{
get
{
return this.fMENGField;
}
set
{
this.fMENGField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTConfirmation
{
private DTConfirmationConfirmation[] confirmationField;
private string guidMsgExtField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Confirmation", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTConfirmationConfirmation[] Confirmation
{
get
{
return this.confirmationField;
}
set
{
this.confirmationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuidMsgExt
{
get
{
return this.guidMsgExtField;
}
set
{
this.guidMsgExtField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTConfirmationConfirmation
{
private string idField;
private string statusCodeField;
private string statusTextField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ID
{
get
{
return this.idField;
}
set
{
this.idField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string StatusCode
{
get
{
return this.statusCodeField;
}
set
{
this.statusCodeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string StatusText
{
get
{
return this.statusTextField;
}
set
{
this.statusTextField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTInspM
{
private DTInspMDocument[] documentField;
private string guigMsgOutbField;
private string systemSenderField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTInspMDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuigMsgOutb
{
get
{
return this.guigMsgOutbField;
}
set
{
this.guigMsgOutbField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTInspMDocument
{
private string posnrField;
private string plantMethodField;
private string methodField;
private string versionField;
private string validFromField;
private string sortFieldField;
private string authorField;
private string createDateField;
private string changeAuthorField;
private string changeDateField;
private string statusField;
private string lIMS_IDField;
private string languageField;
private string langIsoField;
private string shortTextField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Posnr
{
get
{
return this.posnrField;
}
set
{
this.posnrField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string PlantMethod
{
get
{
return this.plantMethodField;
}
set
{
this.plantMethodField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Method
{
get
{
return this.methodField;
}
set
{
this.methodField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Version
{
get
{
return this.versionField;
}
set
{
this.versionField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ValidFrom
{
get
{
return this.validFromField;
}
set
{
this.validFromField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SortField
{
get
{
return this.sortFieldField;
}
set
{
this.sortFieldField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Author
{
get
{
return this.authorField;
}
set
{
this.authorField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string CreateDate
{
get
{
return this.createDateField;
}
set
{
this.createDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ChangeAuthor
{
get
{
return this.changeAuthorField;
}
set
{
this.changeAuthorField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ChangeDate
{
get
{
return this.changeDateField;
}
set
{
this.changeDateField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Status
{
get
{
return this.statusField;
}
set
{
this.statusField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string LIMS_ID
{
get
{
return this.lIMS_IDField;
}
set
{
this.lIMS_IDField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Language
{
get
{
return this.languageField;
}
set
{
this.languageField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string LangIso
{
get
{
return this.langIsoField;
}
set
{
this.langIsoField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string ShortText
{
get
{
return this.shortTextField;
}
set
{
this.shortTextField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTMIC
{
private DTMICDocument[] documentField;
private string guigMsgOutbField;
private string systemSenderField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTMICDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuigMsgOutb
{
get
{
return this.guigMsgOutbField;
}
set
{
this.guigMsgOutbField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
This diff is collapsed.
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTPass
{
private DTPassDocument[] documentField;
private string guigMsgOutbField;
private string systemSenderField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTPassDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuigMsgOutb
{
get
{
return this.guigMsgOutbField;
}
set
{
this.guigMsgOutbField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTPassDocument
{
private string posNrField;
private string inspectionLotField;
private string passNumberField;
private string passLinkField;
private string passNumberVKField;
private string passLinkVKField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string PosNr
{
get
{
return this.posNrField;
}
set
{
this.posNrField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string InspectionLot
{
get
{
return this.inspectionLotField;
}
set
{
this.inspectionLotField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string PassNumber
{
get
{
return this.passNumberField;
}
set
{
this.passNumberField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string PassLink
{
get
{
return this.passLinkField;
}
set
{
this.passLinkField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string PassNumberVK
{
get
{
return this.passNumberVKField;
}
set
{
this.passNumberVKField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string PassLinkVK
{
get
{
return this.passLinkVKField;
}
set
{
this.passLinkVKField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTProbe
{
private DTProbeDocument[] documentField;
private string guigMsgOutbField;
private string systemSenderField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTProbeDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuigMsgOutb
{
get
{
return this.guigMsgOutbField;
}
set
{
this.guigMsgOutbField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTProbeD
{
private DTProbeDDocument[] documentField;
private string guigMsgOutbField;
private string systemSenderField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTProbeDDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuigMsgOutb
{
get
{
return this.guigMsgOutbField;
}
set
{
this.guigMsgOutbField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTProbeDDocument
{
private string posnrField;
private string inspectionLotField;
private string materialField;
private string batchField;
private string mengeField;
private string unitField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Posnr
{
get
{
return this.posnrField;
}
set
{
this.posnrField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string InspectionLot
{
get
{
return this.inspectionLotField;
}
set
{
this.inspectionLotField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Material
{
get
{
return this.materialField;
}
set
{
this.materialField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Batch
{
get
{
return this.batchField;
}
set
{
this.batchField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Menge
{
get
{
return this.mengeField;
}
set
{
this.mengeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Unit
{
get
{
return this.unitField;
}
set
{
this.unitField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTProbeDocument
{
private string posnrField;
private string inspectionUnitField;
private string materialField;
private string batchField;
private string mengeField;
private string unitField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Posnr
{
get
{
return this.posnrField;
}
set
{
this.posnrField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string InspectionUnit
{
get
{
return this.inspectionUnitField;
}
set
{
this.inspectionUnitField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Material
{
get
{
return this.materialField;
}
set
{
this.materialField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Batch
{
get
{
return this.batchField;
}
set
{
this.batchField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Menge
{
get
{
return this.mengeField;
}
set
{
this.mengeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Unit
{
get
{
return this.unitField;
}
set
{
this.unitField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTQmResult
{
private DTQmResultDocument[] documentField;
private string guigMsgOutbField;
private string systemSenderField;
private string systemReceiverField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Document", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTQmResultDocument[] Document
{
get
{
return this.documentField;
}
set
{
this.documentField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string GuigMsgOutb
{
get
{
return this.guigMsgOutbField;
}
set
{
this.guigMsgOutbField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemSender
{
get
{
return this.systemSenderField;
}
set
{
this.systemSenderField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string SystemReceiver
{
get
{
return this.systemReceiverField;
}
set
{
this.systemReceiverField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTQmResultDocument
{
private DTQmResultDocumentItem[] itemField;
private string posnrField;
private string inspectionLotField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Item", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
public DTQmResultDocumentItem[] Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Posnr
{
get
{
return this.posnrField;
}
set
{
this.posnrField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string InspectionLot
{
get
{
return this.inspectionLotField;
}
set
{
this.inspectionLotField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://lukoil.ru/opcenter/ORM")]
public partial class DTQmResultDocumentItem
{
private string pOSNR_MICField;
private string numberCharField;
private string upperLimitField;
private string lowerLimitField;
private string decimalField;
private string evaluationField;
private string valueField;
private string lIMS_IDField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string POSNR_MIC
{
get
{
return this.pOSNR_MICField;
}
set
{
this.pOSNR_MICField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string NumberChar
{
get
{
return this.numberCharField;
}
set
{
this.numberCharField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string UpperLimit
{
get
{
return this.upperLimitField;
}
set
{
this.upperLimitField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string LowerLimit
{
get
{
return this.lowerLimitField;
}
set
{
this.lowerLimitField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Decimal
{
get
{
return this.decimalField;
}
set
{
this.decimalField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Evaluation
{
get
{
return this.evaluationField;
}
set
{
this.evaluationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string Value
{
get
{
return this.valueField;
}
set
{
this.valueField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string LIMS_ID
{
get
{
return this.lIMS_IDField;
}
set
{
this.lIMS_IDField = value;
}
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
public enum EndpointConfiguration
{
HttpPort,
HttpsPort,
}
}
using System.Threading.Tasks;
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCode("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ServiceModel.ServiceContract(Namespace = "http://lukoil.ru/opcenter/ORM", ConfigurationName = "SI_OpCenterSend_AO")]
public interface ISIOpCenterSendAO
{
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task QmResultAsync(QmResult request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task InspMAsync(InspM request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task PassAsync(Pass request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task MICAsync(MIC request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task BOMCreateAsync(BOMCreate request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task ProbeDAsync(ProbeD request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task ConfirmationAsync(Confirmation request);
[System.ServiceModel.OperationContract(IsOneWay = true, Action = "http://sap.com/xi/WebService/soap1.1")]
[System.ServiceModel.XmlSerializerFormat(SupportFaults = true)]
Task ProbeAsync(Probe request);
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace IntegrationS4.RDnL.Services.Soap
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
public interface ISIOpCenterSendAOChannel : ISIOpCenterSendAO, System.ServiceModel.IClientChannel
{
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class InspM
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTInspM MT_InspM;
public InspM()
{
}
public InspM(DTInspM MT_InspM)
{
this.MT_InspM = MT_InspM;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class MIC
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTMIC MT_MIC;
public MIC()
{
}
public MIC(DTMIC MT_MIC)
{
this.MT_MIC = MT_MIC;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class Pass
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTPass MT_Pass;
public Pass()
{
}
public Pass(DTPass MT_Pass)
{
this.MT_Pass = MT_Pass;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class Probe
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTProbe MT_Probe;
public Probe()
{
}
public Probe(DTProbe MT_Probe)
{
this.MT_Probe = MT_Probe;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class ProbeD
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTProbeD MT_ProbeD;
public ProbeD()
{
}
public ProbeD(DTProbeD MT_ProbeD)
{
this.MT_ProbeD = MT_ProbeD;
}
}
}
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class QmResult
{
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://lukoil.ru/opcenter/ORM", Order = 0)]
public DTQmResult MT_QmResult;
public QmResult()
{
}
public QmResult(DTQmResult MT_QmResult)
{
this.MT_QmResult = MT_QmResult;
}
}
}
using System;
using System.ComponentModel;
using System.Net;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.Threading.Tasks;
using System.Xml;
namespace IntegrationS4.RDnL.Services.Soap
{
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
public partial class SIOpCenterSendAOClient : ClientBase<ISIOpCenterSendAO>, ISIOpCenterSendAO
{
/// <summary>
/// Implement this partial method to configure the service endpoint.
/// </summary>
/// <param name="serviceEndpoint">The endpoint to configure</param>
/// <param name="clientCredentials">The client credentials</param>
static partial void ConfigureEndpoint(ServiceEndpoint serviceEndpoint, ClientCredentials clientCredentials);
public SIOpCenterSendAOClient(EndpointConfiguration endpointConfiguration) :
base(SIOpCenterSendAOClient.GetBindingForEndpoint(endpointConfiguration), SIOpCenterSendAOClient.GetEndpointAddress(endpointConfiguration))
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SIOpCenterSendAOClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
base(SIOpCenterSendAOClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SIOpCenterSendAOClient(EndpointConfiguration endpointConfiguration, EndpointAddress remoteAddress) :
base(SIOpCenterSendAOClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SIOpCenterSendAOClient(Binding binding, EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.QmResultAsync(QmResult request)
{
return base.Channel.QmResultAsync(request);
}
public Task QmResultAsync(DTQmResult MT_QmResult)
{
QmResult inValue = new QmResult();
inValue.MT_QmResult = MT_QmResult;
return ((ISIOpCenterSendAO)(this)).QmResultAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.InspMAsync(InspM request)
{
return base.Channel.InspMAsync(request);
}
public Task InspMAsync(DTInspM MT_InspM)
{
InspM inValue = new InspM();
inValue.MT_InspM = MT_InspM;
return ((ISIOpCenterSendAO)(this)).InspMAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.PassAsync(Pass request)
{
return base.Channel.PassAsync(request);
}
public Task PassAsync(DTPass MT_Pass)
{
Pass inValue = new Pass();
inValue.MT_Pass = MT_Pass;
return ((ISIOpCenterSendAO)(this)).PassAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.MICAsync(MIC request)
{
return base.Channel.MICAsync(request);
}
public Task MICAsync(DTMIC MT_MIC)
{
MIC inValue = new MIC();
inValue.MT_MIC = MT_MIC;
return ((ISIOpCenterSendAO)(this)).MICAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.BOMCreateAsync(BOMCreate request)
{
return base.Channel.BOMCreateAsync(request);
}
public Task BOMCreateAsync(DTBOMCreate MT_BOMCreate)
{
BOMCreate inValue = new BOMCreate();
inValue.MT_BOMCreate = MT_BOMCreate;
return ((ISIOpCenterSendAO)(this)).BOMCreateAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.ProbeDAsync(ProbeD request)
{
return base.Channel.ProbeDAsync(request);
}
public Task ProbeDAsync(DTProbeD MT_ProbeD)
{
ProbeD inValue = new ProbeD();
inValue.MT_ProbeD = MT_ProbeD;
return ((ISIOpCenterSendAO)(this)).ProbeDAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.ConfirmationAsync(Confirmation request)
{
return base.Channel.ConfirmationAsync(request);
}
public Task ConfirmationAsync(DTConfirmation MT_Confirmation)
{
Confirmation inValue = new Confirmation();
inValue.MT_Confirmation = MT_Confirmation;
return ((ISIOpCenterSendAO)(this)).ConfirmationAsync(inValue);
}
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
Task ISIOpCenterSendAO.ProbeAsync(Probe request)
{
return base.Channel.ProbeAsync(request);
}
public Task ProbeAsync(DTProbe MT_Probe)
{
Probe inValue = new Probe();
inValue.MT_Probe = MT_Probe;
return ((ISIOpCenterSendAO)(this)).ProbeAsync(inValue);
}
public virtual Task OpenAsync()
{
return Task.Factory.FromAsync(((ICommunicationObject)(this)).BeginOpen(null, null), new Action<IAsyncResult>(((ICommunicationObject)(this)).EndOpen));
}
private static Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.HttpPort))
{
BasicHttpBinding result = new BasicHttpBinding();
result.MaxBufferSize = int.MaxValue;
result.ReaderQuotas = XmlDictionaryReaderQuotas.Max;
result.MaxReceivedMessageSize = int.MaxValue;
result.AllowCookies = true;
return result;
}
if ((endpointConfiguration == EndpointConfiguration.HttpsPort))
{
BasicHttpBinding result = new BasicHttpBinding();
result.MaxBufferSize = int.MaxValue;
result.ReaderQuotas = XmlDictionaryReaderQuotas.Max;
result.MaxReceivedMessageSize = int.MaxValue;
result.AllowCookies = true;
result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;
return result;
}
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
}
private static EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.HttpPort))
{
return new EndpointAddress("http://sapx62cidb.srv.lukoil.com/XISOAPAdapter/MessageServlet?senderParty=&sende" +
"rService=BSD_OPCENTER&receiverParty=&receiverService=&interface=SI_OpCenterSend_" +
"AO&interfaceNamespace=http%3A%2F%2Flukoil.ru%2Fopcenter%2FORM");
}
if ((endpointConfiguration == EndpointConfiguration.HttpsPort))
{
return new EndpointAddress("https://sapx62cidb.srv.lukoil.com/XISOAPAdapter/MessageServlet?senderParty=&sende" +
"rService=BSD_OPCENTER&receiverParty=&receiverService=&interface=SI_OpCenterSend_" +
"AO&interfaceNamespace=http%3A%2F%2Flukoil.ru%2Fopcenter%2FORM");
}
throw new InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
}
}
}
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\obj\Debug\IntegrationS4.RDnL.csproj.AssemblyReference.cache
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\obj\Debug\IntegrationS4.RDnL.csproj.CoreCompileInputs.cache
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\bin\Debug\IntegrationS4.RDnL.dll
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\bin\Debug\IntegrationS4.RDnL.pdb
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\obj\Debug\IntegrationS4.RDnL.dll
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\obj\Debug\IntegrationS4.RDnL.pdb
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\bin\Debug\System.ServiceModel.dll
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\bin\Debug\System.ServiceModel.Web.dll
C:\Users\SergeyR\source\repos\IntegrationS4\IntegrationS4.RDnL\obj\Debug\IntegrationS4.RDnL.csproj.CopyComplete
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.4" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="System.ServiceModel.Duplex" Version="4.10.*" />
<PackageReference Include="System.ServiceModel.Federation" Version="4.10.*" />
<PackageReference Include="System.ServiceModel.Http" Version="4.10.*" />
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.10.*" />
<PackageReference Include="System.ServiceModel.Security" Version="4.10.*" />
</ItemGroup>
<ItemGroup>
<Folder Include="Connected Services\" />
<Folder Include="Infrastructure\Data\" />
<Folder Include="Infrastructure\Models\" />
<Folder Include="Infrastructure\Configurations\" />
<Folder Include="Infrastructure\RouteHandelrs\" />
<Folder Include="Infrastructure\RequestHandlers\" />
<Folder Include="Infrastructure\Repositories\" />
</ItemGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>https</ActiveDebugProfile>
</PropertyGroup>
</Project>
\ No newline at end of file
using IntegrationS4.WebService.Infrastructure.SoapService;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
try
{
SIOpCenterSendAOClient sIOpCenterSendAOClient = new SIOpCenterSendAOClient(EndpointConfiguration.HttpsPort);
DTBOMCreate dTBOMCreate = new DTBOMCreate();
await sIOpCenterSendAOClient.BOMCreateAsync(dTBOMCreate);
}
catch (Exception)
{
throw;
}
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
var summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
app.MapGet("/weatherforecast", () =>
{
var forecast = Enumerable.Range(1, 5).Select(index =>
new WeatherForecast
(
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
Random.Shared.Next(-20, 55),
summaries[Random.Shared.Next(summaries.Length)]
))
.ToArray();
return forecast;
})
.WithName("GetWeatherForecast")
.WithOpenApi();
app.Run();
internal record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)
{
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:23569",
"sslPort": 44325
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:5218",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:7036;http://localhost:5218",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}
{
"ExtendedData": {
"inputs": [
"../../../../../../Desktop/DataTypes/Send/SI_OpCenterSend_AOService.wsdl"
],
"collectionTypes": [
"System.Array",
"System.Collections.Generic.Dictionary`2"
],
"namespaceMappings": [
"*, SoapService"
],
"references": [
"Microsoft.AspNetCore.OpenApi, {Microsoft.AspNetCore.OpenApi, 7.0.4}",
"Microsoft.OpenApi, {Microsoft.OpenApi, 1.4.3}",
"Swashbuckle.AspNetCore.Swagger, {Swashbuckle.AspNetCore.Swagger, 6.4.0}",
"Swashbuckle.AspNetCore.SwaggerGen, {Swashbuckle.AspNetCore.SwaggerGen, 6.4.0}",
"Swashbuckle.AspNetCore.SwaggerUI, {Swashbuckle.AspNetCore.SwaggerUI, 6.4.0}"
],
"targetFramework": "net7.0",
"typeReuseMode": "Specified"
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment