commit 9851a98065ffd9579b11a14df543faf452b03ea0 Author: Chika Date: Mon May 17 19:01:00 2021 +0300 init diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3729ff0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,25 @@ +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/azds.yaml +**/bin +**/charts +**/docker-compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +LICENSE +README.md \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a437a65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +*.swp +*.*~ +project.lock.json +.DS_Store +*.pyc +nupkg/ + +# Visual Studio Code +.vscode + +# Rider +.idea + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +msbuild.log +msbuild.err +msbuild.wrn + +# Visual Studio 2015 +.vs/ diff --git a/_1C.Gateway.Managers/Connected Services/LeasingTrial/ConnectedService.json b/_1C.Gateway.Managers/Connected Services/LeasingTrial/ConnectedService.json new file mode 100644 index 0000000..ab4fdaf --- /dev/null +++ b/_1C.Gateway.Managers/Connected Services/LeasingTrial/ConnectedService.json @@ -0,0 +1,23 @@ +{ + "ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf", + "Version": "15.0.40203.910", + "GettingStartedDocument": { + "Uri": "https://go.microsoft.com/fwlink/?linkid=858517" + }, + "ExtendedData": { + "inputs": [ + "http://1c-dev.evoleasing.ru/1c_leasing_trial/ws/wsmd_exch.1cws?wsdl" + ], + "collectionTypes": [ + "System.Array", + "System.Collections.Generic.Dictionary`2" + ], + "messageContract": true, + "namespaceMappings": [ + "*, LeasingTrial" + ], + "sync": true, + "targetFramework": "netcoreapp3.1", + "typeReuseMode": "All" + } +} \ No newline at end of file diff --git a/_1C.Gateway.Managers/Connected Services/LeasingTrial/Reference.cs b/_1C.Gateway.Managers/Connected Services/LeasingTrial/Reference.cs new file mode 100644 index 0000000..371bcbf --- /dev/null +++ b/_1C.Gateway.Managers/Connected Services/LeasingTrial/Reference.cs @@ -0,0 +1,2904 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace LeasingTrial +{ + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.ServiceContractAttribute(Namespace="http://localhost/wsmd_exch", ConfigurationName="LeasingTrial.md_exchPortType")] + public interface md_exchPortType + { + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:uploadMessage", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + LeasingTrial.uploadMessageResponse uploadMessage(LeasingTrial.uploadMessageRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:uploadMessage", ReplyAction="*")] + System.Threading.Tasks.Task uploadMessageAsync(LeasingTrial.uploadMessageRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:ReceiveReport", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + LeasingTrial.ReceiveReportResponse ReceiveReport(LeasingTrial.ReceiveReportRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:ReceiveReport", ReplyAction="*")] + System.Threading.Tasks.Task ReceiveReportAsync(LeasingTrial.ReceiveReportRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:TransTax", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + LeasingTrial.TransTaxResponse TransTax(LeasingTrial.TransTaxRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:TransTax", ReplyAction="*")] + System.Threading.Tasks.Task TransTaxAsync(LeasingTrial.TransTaxRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:LoadPartner", ReplyAction="*")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + LeasingTrial.LoadPartnerResponse LoadPartner(LeasingTrial.LoadPartnerRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://localhost/wsmd_exch#md_exch:LoadPartner", ReplyAction="*")] + System.Threading.Tasks.Task LoadPartnerAsync(LeasingTrial.LoadPartnerRequest request); + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class message + { + + private Partner partnerField; + + private Contract contractField; + + private Car carField; + + private Lease leaseField; + + private Finance financeField; + + private Ins insField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public Partner Partner + { + get + { + return this.partnerField; + } + set + { + this.partnerField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public Contract Contract + { + get + { + return this.contractField; + } + set + { + this.contractField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public Car Car + { + get + { + return this.carField; + } + set + { + this.carField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public Lease Lease + { + get + { + return this.leaseField; + } + set + { + this.leaseField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public Finance Finance + { + get + { + return this.financeField; + } + set + { + this.financeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=5)] + public Ins Ins + { + get + { + return this.insField; + } + set + { + this.insField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Partner + { + + private string partnerCRMIDField; + + private string partnerParentsField; + + private string partnerNameField; + + private string partnerFullNameField; + + private string partnerUFLField; + + private string partnerINNField; + + private string partnerKPPField; + + private PartnerAccount partnerMainBankAccountField; + + private string partnerCommentField; + + private System.Nullable partnerRegistrationDateField; + + private bool partnerRegistrationDateFieldSpecified; + + private PartnerPartnerAdress[] partnerAdressesField; + + private PartnerPartnerAccounts partnerAccountsField; + + private System.Nullable partnerNKOField; + + private bool partnerNKOFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string PartnerCRMID + { + get + { + return this.partnerCRMIDField; + } + set + { + this.partnerCRMIDField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string PartnerParents + { + get + { + return this.partnerParentsField; + } + set + { + this.partnerParentsField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string PartnerName + { + get + { + return this.partnerNameField; + } + set + { + this.partnerNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public string PartnerFullName + { + get + { + return this.partnerFullNameField; + } + set + { + this.partnerFullNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public string PartnerUFL + { + get + { + return this.partnerUFLField; + } + set + { + this.partnerUFLField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=5)] + public string PartnerINN + { + get + { + return this.partnerINNField; + } + set + { + this.partnerINNField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public string PartnerKPP + { + get + { + return this.partnerKPPField; + } + set + { + this.partnerKPPField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=7)] + public PartnerAccount PartnerMainBankAccount + { + get + { + return this.partnerMainBankAccountField; + } + set + { + this.partnerMainBankAccountField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=8)] + public string PartnerComment + { + get + { + return this.partnerCommentField; + } + set + { + this.partnerCommentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=9)] + public System.Nullable PartnerRegistrationDate + { + get + { + return this.partnerRegistrationDateField; + } + set + { + this.partnerRegistrationDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool PartnerRegistrationDateSpecified + { + get + { + return this.partnerRegistrationDateFieldSpecified; + } + set + { + this.partnerRegistrationDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=10)] + [System.Xml.Serialization.XmlArrayItemAttribute("PartnerAdress")] + public PartnerPartnerAdress[] PartnerAdresses + { + get + { + return this.partnerAdressesField; + } + set + { + this.partnerAdressesField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=11)] + public PartnerPartnerAccounts PartnerAccounts + { + get + { + return this.partnerAccountsField; + } + set + { + this.partnerAccountsField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=12)] + public System.Nullable PartnerNKO + { + get + { + return this.partnerNKOField; + } + set + { + this.partnerNKOField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool PartnerNKOSpecified + { + get + { + return this.partnerNKOFieldSpecified; + } + set + { + this.partnerNKOFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class PartnerAccount + { + + private string partnerAccountBICField; + + private string partnerAccountNumberField; + + private string partnerAccountCurrencyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string PartnerAccountBIC + { + get + { + return this.partnerAccountBICField; + } + set + { + this.partnerAccountBICField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string PartnerAccountNumber + { + get + { + return this.partnerAccountNumberField; + } + set + { + this.partnerAccountNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string PartnerAccountCurrency + { + get + { + return this.partnerAccountCurrencyField; + } + set + { + this.partnerAccountCurrencyField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class result + { + + private string errorCodeField; + + private string errorDescriptionField; + + private string resultDescriptionField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string errorCode + { + get + { + return this.errorCodeField; + } + set + { + this.errorCodeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string errorDescription + { + get + { + return this.errorDescriptionField; + } + set + { + this.errorDescriptionField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string resultDescription + { + get + { + return this.resultDescriptionField; + } + set + { + this.resultDescriptionField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Ins + { + + private string contractNumberField; + + private InsInses insesField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string ContractNumber + { + get + { + return this.contractNumberField; + } + set + { + this.contractNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public InsInses Inses + { + get + { + return this.insesField; + } + set + { + this.insesField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class InsInses + { + + private InsInsesStrIns[] itemsField; + + /// + [System.Xml.Serialization.XmlElementAttribute("strIns", IsNullable=true, Order=0)] + public InsInsesStrIns[] Items + { + get + { + return this.itemsField; + } + set + { + this.itemsField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class InsInsesStrIns + { + + private string insSideField; + + private Partner insPartnerField; + + private Contract insContractField; + + private string insTypeField; + + private System.Nullable insDateBeginField; + + private System.Nullable insDateEndField; + + private bool insDateEndFieldSpecified; + + private System.Nullable insSumField; + + private bool insSumFieldSpecified; + + private System.Nullable insTarifField; + + private bool insTarifFieldSpecified; + + private System.Nullable insCostField; + + private bool insCostFieldSpecified; + + private System.Nullable insFileField; + + private bool insFileFieldSpecified; + + private System.Nullable insOrigField; + + private bool insOrigFieldSpecified; + + private System.Nullable insСommissionField; + + private bool insСommissionFieldSpecified; + + private System.Nullable insСommissionPercentField; + + private bool insСommissionPercentFieldSpecified; + + private string iDSTRField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string InsSide + { + get + { + return this.insSideField; + } + set + { + this.insSideField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public Partner InsPartner + { + get + { + return this.insPartnerField; + } + set + { + this.insPartnerField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public Contract InsContract + { + get + { + return this.insContractField; + } + set + { + this.insContractField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public string InsType + { + get + { + return this.insTypeField; + } + set + { + this.insTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=4)] + public System.Nullable InsDateBegin + { + get + { + return this.insDateBeginField; + } + set + { + this.insDateBeginField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=5)] + public System.Nullable InsDateEnd + { + get + { + return this.insDateEndField; + } + set + { + this.insDateEndField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsDateEndSpecified + { + get + { + return this.insDateEndFieldSpecified; + } + set + { + this.insDateEndFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public System.Nullable InsSum + { + get + { + return this.insSumField; + } + set + { + this.insSumField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsSumSpecified + { + get + { + return this.insSumFieldSpecified; + } + set + { + this.insSumFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=7)] + public System.Nullable InsTarif + { + get + { + return this.insTarifField; + } + set + { + this.insTarifField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsTarifSpecified + { + get + { + return this.insTarifFieldSpecified; + } + set + { + this.insTarifFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=8)] + public System.Nullable InsCost + { + get + { + return this.insCostField; + } + set + { + this.insCostField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsCostSpecified + { + get + { + return this.insCostFieldSpecified; + } + set + { + this.insCostFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=9)] + public System.Nullable InsFile + { + get + { + return this.insFileField; + } + set + { + this.insFileField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsFileSpecified + { + get + { + return this.insFileFieldSpecified; + } + set + { + this.insFileFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=10)] + public System.Nullable InsOrig + { + get + { + return this.insOrigField; + } + set + { + this.insOrigField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsOrigSpecified + { + get + { + return this.insOrigFieldSpecified; + } + set + { + this.insOrigFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=11)] + public System.Nullable InsСommission + { + get + { + return this.insСommissionField; + } + set + { + this.insСommissionField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsСommissionSpecified + { + get + { + return this.insСommissionFieldSpecified; + } + set + { + this.insСommissionFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=12)] + public System.Nullable InsСommissionPercent + { + get + { + return this.insСommissionPercentField; + } + set + { + this.insСommissionPercentField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool InsСommissionPercentSpecified + { + get + { + return this.insСommissionPercentFieldSpecified; + } + set + { + this.insСommissionPercentFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=13)] + public string IDSTR + { + get + { + return this.iDSTRField; + } + set + { + this.iDSTRField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Contract + { + + private string contractTypeField; + + private string contractNumberField; + + private System.Nullable contractDateField; + + private bool contractDateFieldSpecified; + + private Partner contractOwnerField; + + private System.Nullable contractBalanceField; + + private bool contractBalanceFieldSpecified; + + private string contractCommentField; + + private string contractCurrencyField; + + private System.Nullable contractDateEndField; + + private bool contractDateEndFieldSpecified; + + private string contractIDField; + + private string contractEmailField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string ContractType + { + get + { + return this.contractTypeField; + } + set + { + this.contractTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string ContractNumber + { + get + { + return this.contractNumberField; + } + set + { + this.contractNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=2)] + public System.Nullable ContractDate + { + get + { + return this.contractDateField; + } + set + { + this.contractDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool ContractDateSpecified + { + get + { + return this.contractDateFieldSpecified; + } + set + { + this.contractDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public Partner ContractOwner + { + get + { + return this.contractOwnerField; + } + set + { + this.contractOwnerField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public System.Nullable ContractBalance + { + get + { + return this.contractBalanceField; + } + set + { + this.contractBalanceField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool ContractBalanceSpecified + { + get + { + return this.contractBalanceFieldSpecified; + } + set + { + this.contractBalanceFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=5)] + public string ContractComment + { + get + { + return this.contractCommentField; + } + set + { + this.contractCommentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public string ContractCurrency + { + get + { + return this.contractCurrencyField; + } + set + { + this.contractCurrencyField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=7)] + public System.Nullable ContractDateEnd + { + get + { + return this.contractDateEndField; + } + set + { + this.contractDateEndField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool ContractDateEndSpecified + { + get + { + return this.contractDateEndFieldSpecified; + } + set + { + this.contractDateEndFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=8)] + public string ContractID + { + get + { + return this.contractIDField; + } + set + { + this.contractIDField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=9)] + public string ContractEmail + { + get + { + return this.contractEmailField; + } + set + { + this.contractEmailField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Finance + { + + private FinanceFinances financesField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public FinanceFinances Finances + { + get + { + return this.financesField; + } + set + { + this.financesField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class FinanceFinances + { + + private FinanceFinancesStrFinance[] itemsField; + + /// + [System.Xml.Serialization.XmlElementAttribute("strFinance", IsNullable=true, Order=0)] + public FinanceFinancesStrFinance[] Items + { + get + { + return this.itemsField; + } + set + { + this.itemsField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class FinanceFinancesStrFinance + { + + private Partner financePartnerField; + + private Contract financeContractField; + + private System.Nullable financeDatePlanField; + + private bool financeDatePlanFieldSpecified; + + private System.Nullable financeSumWithoutNDSField; + + private bool financeSumWithoutNDSFieldSpecified; + + private System.Nullable financeVATField; + + private bool financeVATFieldSpecified; + + private string financeCostItemField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public Partner FinancePartner + { + get + { + return this.financePartnerField; + } + set + { + this.financePartnerField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public Contract FinanceContract + { + get + { + return this.financeContractField; + } + set + { + this.financeContractField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=2)] + public System.Nullable FinanceDatePlan + { + get + { + return this.financeDatePlanField; + } + set + { + this.financeDatePlanField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool FinanceDatePlanSpecified + { + get + { + return this.financeDatePlanFieldSpecified; + } + set + { + this.financeDatePlanFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public System.Nullable FinanceSumWithoutNDS + { + get + { + return this.financeSumWithoutNDSField; + } + set + { + this.financeSumWithoutNDSField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool FinanceSumWithoutNDSSpecified + { + get + { + return this.financeSumWithoutNDSFieldSpecified; + } + set + { + this.financeSumWithoutNDSFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public System.Nullable FinanceVAT + { + get + { + return this.financeVATField; + } + set + { + this.financeVATField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool FinanceVATSpecified + { + get + { + return this.financeVATFieldSpecified; + } + set + { + this.financeVATFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=5)] + public string FinanceCostItem + { + get + { + return this.financeCostItemField; + } + set + { + this.financeCostItemField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Graf + { + + private System.Nullable grafDateApproveField; + + private bool grafDateApproveFieldSpecified; + + private GrafGrafPayments grafPaymentsField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public System.Nullable GrafDateApprove + { + get + { + return this.grafDateApproveField; + } + set + { + this.grafDateApproveField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool GrafDateApproveSpecified + { + get + { + return this.grafDateApproveFieldSpecified; + } + set + { + this.grafDateApproveFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public GrafGrafPayments GrafPayments + { + get + { + return this.grafPaymentsField; + } + set + { + this.grafPaymentsField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class GrafGrafPayments + { + + private GrafGrafPaymentsGrafPayment[] itemsField; + + /// + [System.Xml.Serialization.XmlElementAttribute("GrafPayment", IsNullable=true, Order=0)] + public GrafGrafPaymentsGrafPayment[] Items + { + get + { + return this.itemsField; + } + set + { + this.itemsField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class GrafGrafPaymentsGrafPayment + { + + private System.Nullable grafPaymentNumberField; + + private bool grafPaymentNumberFieldSpecified; + + private System.Nullable grafPaymentDateField; + + private bool grafPaymentDateFieldSpecified; + + private System.Nullable grafPaymentSumField; + + private bool grafPaymentSumFieldSpecified; + + private System.Nullable grafPaymentVATField; + + private bool grafPaymentVATFieldSpecified; + + private string grafPaymentCostItemField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public System.Nullable GrafPaymentNumber + { + get + { + return this.grafPaymentNumberField; + } + set + { + this.grafPaymentNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool GrafPaymentNumberSpecified + { + get + { + return this.grafPaymentNumberFieldSpecified; + } + set + { + this.grafPaymentNumberFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=1)] + public System.Nullable GrafPaymentDate + { + get + { + return this.grafPaymentDateField; + } + set + { + this.grafPaymentDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool GrafPaymentDateSpecified + { + get + { + return this.grafPaymentDateFieldSpecified; + } + set + { + this.grafPaymentDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public System.Nullable GrafPaymentSum + { + get + { + return this.grafPaymentSumField; + } + set + { + this.grafPaymentSumField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool GrafPaymentSumSpecified + { + get + { + return this.grafPaymentSumFieldSpecified; + } + set + { + this.grafPaymentSumFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public System.Nullable GrafPaymentVAT + { + get + { + return this.grafPaymentVATField; + } + set + { + this.grafPaymentVATField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool GrafPaymentVATSpecified + { + get + { + return this.grafPaymentVATFieldSpecified; + } + set + { + this.grafPaymentVATFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public string GrafPaymentCostItem + { + get + { + return this.grafPaymentCostItemField; + } + set + { + this.grafPaymentCostItemField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Lease + { + + private Partner leaseLesseeField; + + private Contract leaseContractField; + + private string leaseCommentField; + + private System.Nullable leaseSideReplField; + + private bool leaseSideReplFieldSpecified; + + private string leaseNMPERField; + + private System.Nullable leaseDateBeginField; + + private bool leaseDateBeginFieldSpecified; + + private System.Nullable leaseDateEndField; + + private bool leaseDateEndFieldSpecified; + + private Graf grafField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public Partner LeaseLessee + { + get + { + return this.leaseLesseeField; + } + set + { + this.leaseLesseeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public Contract LeaseContract + { + get + { + return this.leaseContractField; + } + set + { + this.leaseContractField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string LeaseComment + { + get + { + return this.leaseCommentField; + } + set + { + this.leaseCommentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public System.Nullable LeaseSideRepl + { + get + { + return this.leaseSideReplField; + } + set + { + this.leaseSideReplField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool LeaseSideReplSpecified + { + get + { + return this.leaseSideReplFieldSpecified; + } + set + { + this.leaseSideReplFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="integer", IsNullable=true, Order=4)] + public string LeaseNMPER + { + get + { + return this.leaseNMPERField; + } + set + { + this.leaseNMPERField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=5)] + public System.Nullable LeaseDateBegin + { + get + { + return this.leaseDateBeginField; + } + set + { + this.leaseDateBeginField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool LeaseDateBeginSpecified + { + get + { + return this.leaseDateBeginFieldSpecified; + } + set + { + this.leaseDateBeginFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=6)] + public System.Nullable LeaseDateEnd + { + get + { + return this.leaseDateEndField; + } + set + { + this.leaseDateEndField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool LeaseDateEndSpecified + { + get + { + return this.leaseDateEndFieldSpecified; + } + set + { + this.leaseDateEndFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=7)] + public Graf Graf + { + get + { + return this.grafField; + } + set + { + this.grafField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://localhost/md_exch")] + public partial class Car + { + + private string contractNumberField; + + private Partner carSupplierField; + + private Contract carSupplyContractField; + + private System.Nullable carSumField; + + private bool carSumFieldSpecified; + + private System.Nullable carDeliveryDateField; + + private bool carDeliveryDateFieldSpecified; + + private string carDeliveryCurrencyField; + + private System.Nullable carSumWithoutNDSField; + + private bool carSumWithoutNDSFieldSpecified; + + private System.Nullable carVATField; + + private bool carVATFieldSpecified; + + private System.Nullable currencyPriceField; + + private bool currencyPriceFieldSpecified; + + private System.Nullable carPriceField; + + private bool carPriceFieldSpecified; + + private System.Nullable carRedemptionValueField; + + private bool carRedemptionValueFieldSpecified; + + private System.Nullable carDateOfRedemptionField; + + private bool carDateOfRedemptionFieldSpecified; + + private System.Nullable carReplacementDateField; + + private bool carReplacementDateFieldSpecified; + + private string carYearField; + + private System.Nullable carPTSDateField; + + private bool carPTSDateFieldSpecified; + + private string carVINField; + + private string carBrandField; + + private string carDeprecationGroupField; + + private string iDNOMField; + + private string commentField; + + private string carTypeField; + + private string carEngineTypeField; + + private System.Nullable carEngineCapacityField; + + private bool carEngineCapacityFieldSpecified; + + private System.Nullable carMaxPermissibleMassField; + + private bool carMaxPermissibleMassFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string ContractNumber + { + get + { + return this.contractNumberField; + } + set + { + this.contractNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public Partner CarSupplier + { + get + { + return this.carSupplierField; + } + set + { + this.carSupplierField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public Contract CarSupplyContract + { + get + { + return this.carSupplyContractField; + } + set + { + this.carSupplyContractField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public System.Nullable CarSum + { + get + { + return this.carSumField; + } + set + { + this.carSumField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarSumSpecified + { + get + { + return this.carSumFieldSpecified; + } + set + { + this.carSumFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=4)] + public System.Nullable CarDeliveryDate + { + get + { + return this.carDeliveryDateField; + } + set + { + this.carDeliveryDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarDeliveryDateSpecified + { + get + { + return this.carDeliveryDateFieldSpecified; + } + set + { + this.carDeliveryDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=5)] + public string CarDeliveryCurrency + { + get + { + return this.carDeliveryCurrencyField; + } + set + { + this.carDeliveryCurrencyField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public System.Nullable CarSumWithoutNDS + { + get + { + return this.carSumWithoutNDSField; + } + set + { + this.carSumWithoutNDSField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarSumWithoutNDSSpecified + { + get + { + return this.carSumWithoutNDSFieldSpecified; + } + set + { + this.carSumWithoutNDSFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=7)] + public System.Nullable CarVAT + { + get + { + return this.carVATField; + } + set + { + this.carVATField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarVATSpecified + { + get + { + return this.carVATFieldSpecified; + } + set + { + this.carVATFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=8)] + public System.Nullable CurrencyPrice + { + get + { + return this.currencyPriceField; + } + set + { + this.currencyPriceField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CurrencyPriceSpecified + { + get + { + return this.currencyPriceFieldSpecified; + } + set + { + this.currencyPriceFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=9)] + public System.Nullable CarPrice + { + get + { + return this.carPriceField; + } + set + { + this.carPriceField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarPriceSpecified + { + get + { + return this.carPriceFieldSpecified; + } + set + { + this.carPriceFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=10)] + public System.Nullable CarRedemptionValue + { + get + { + return this.carRedemptionValueField; + } + set + { + this.carRedemptionValueField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarRedemptionValueSpecified + { + get + { + return this.carRedemptionValueFieldSpecified; + } + set + { + this.carRedemptionValueFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=11)] + public System.Nullable CarDateOfRedemption + { + get + { + return this.carDateOfRedemptionField; + } + set + { + this.carDateOfRedemptionField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarDateOfRedemptionSpecified + { + get + { + return this.carDateOfRedemptionFieldSpecified; + } + set + { + this.carDateOfRedemptionFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=12)] + public System.Nullable CarReplacementDate + { + get + { + return this.carReplacementDateField; + } + set + { + this.carReplacementDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarReplacementDateSpecified + { + get + { + return this.carReplacementDateFieldSpecified; + } + set + { + this.carReplacementDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=13)] + public string CarYear + { + get + { + return this.carYearField; + } + set + { + this.carYearField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true, Order=14)] + public System.Nullable CarPTSDate + { + get + { + return this.carPTSDateField; + } + set + { + this.carPTSDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarPTSDateSpecified + { + get + { + return this.carPTSDateFieldSpecified; + } + set + { + this.carPTSDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=15)] + public string CarVIN + { + get + { + return this.carVINField; + } + set + { + this.carVINField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=16)] + public string CarBrand + { + get + { + return this.carBrandField; + } + set + { + this.carBrandField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=17)] + public string CarDeprecationGroup + { + get + { + return this.carDeprecationGroupField; + } + set + { + this.carDeprecationGroupField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=18)] + public string IDNOM + { + get + { + return this.iDNOMField; + } + set + { + this.iDNOMField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=19)] + public string Comment + { + get + { + return this.commentField; + } + set + { + this.commentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="integer", IsNullable=true, Order=20)] + public string CarType + { + get + { + return this.carTypeField; + } + set + { + this.carTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="integer", IsNullable=true, Order=21)] + public string CarEngineType + { + get + { + return this.carEngineTypeField; + } + set + { + this.carEngineTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=22)] + public System.Nullable CarEngineCapacity + { + get + { + return this.carEngineCapacityField; + } + set + { + this.carEngineCapacityField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarEngineCapacitySpecified + { + get + { + return this.carEngineCapacityFieldSpecified; + } + set + { + this.carEngineCapacityFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=23)] + public System.Nullable CarMaxPermissibleMass + { + get + { + return this.carMaxPermissibleMassField; + } + set + { + this.carMaxPermissibleMassField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool CarMaxPermissibleMassSpecified + { + get + { + return this.carMaxPermissibleMassFieldSpecified; + } + set + { + this.carMaxPermissibleMassFieldSpecified = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class PartnerPartnerAdress + { + + private string partnerAdressTypeField; + + private string partnerAdressCityField; + + private string partnerAdressStreetField; + + private string partnerAdressAds1Field; + + private string partnerAdressAds2Field; + + private string partnerAdressAds3Field; + + private string partnerAdressIndexField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string PartnerAdressType + { + get + { + return this.partnerAdressTypeField; + } + set + { + this.partnerAdressTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string PartnerAdressCity + { + get + { + return this.partnerAdressCityField; + } + set + { + this.partnerAdressCityField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string PartnerAdressStreet + { + get + { + return this.partnerAdressStreetField; + } + set + { + this.partnerAdressStreetField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public string PartnerAdressAds1 + { + get + { + return this.partnerAdressAds1Field; + } + set + { + this.partnerAdressAds1Field = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public string PartnerAdressAds2 + { + get + { + return this.partnerAdressAds2Field; + } + set + { + this.partnerAdressAds2Field = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=5)] + public string PartnerAdressAds3 + { + get + { + return this.partnerAdressAds3Field; + } + set + { + this.partnerAdressAds3Field = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public string PartnerAdressIndex + { + get + { + return this.partnerAdressIndexField; + } + set + { + this.partnerAdressIndexField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class PartnerPartnerAccounts + { + + private PartnerPartnerAccountsPartnerAccount[] itemsField; + + /// + [System.Xml.Serialization.XmlElementAttribute("PartnerAccount", IsNullable=true, Order=0)] + public PartnerPartnerAccountsPartnerAccount[] Items + { + get + { + return this.itemsField; + } + set + { + this.itemsField = value; + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://localhost/md_exch")] + public partial class PartnerPartnerAccountsPartnerAccount + { + + private string partnerAccountBICField; + + private string partnerAccountNumberField; + + private string partnerAccountCurrencyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string PartnerAccountBIC + { + get + { + return this.partnerAccountBICField; + } + set + { + this.partnerAccountBICField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string PartnerAccountNumber + { + get + { + return this.partnerAccountNumberField; + } + set + { + this.partnerAccountNumberField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string PartnerAccountCurrency + { + get + { + return this.partnerAccountCurrencyField; + } + set + { + this.partnerAccountCurrencyField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="uploadMessage", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class uploadMessageRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public LeasingTrial.message message; + + public uploadMessageRequest() + { + } + + public uploadMessageRequest(LeasingTrial.message message) + { + this.message = message; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="uploadMessageResponse", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class uploadMessageResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + public LeasingTrial.result @return; + + public uploadMessageResponse() + { + } + + public uploadMessageResponse(LeasingTrial.result @return) + { + this.@return = @return; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="ReceiveReport", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class ReceiveReportRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + public string ContractNumber; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=1)] + [System.Xml.Serialization.XmlElementAttribute(DataType="date")] + public System.DateTime ReportDate; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=2)] + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true)] + public System.Nullable DateBegin; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=3)] + [System.Xml.Serialization.XmlElementAttribute(DataType="date", IsNullable=true)] + public System.Nullable DateEnd; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=4)] + public string ReportType; + + public ReceiveReportRequest() + { + } + + public ReceiveReportRequest(string ContractNumber, System.DateTime ReportDate, System.Nullable DateBegin, System.Nullable DateEnd, string ReportType) + { + this.ContractNumber = ContractNumber; + this.ReportDate = ReportDate; + this.DateBegin = DateBegin; + this.DateEnd = DateEnd; + this.ReportType = ReportType; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="ReceiveReportResponse", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class ReceiveReportResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public string @return; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=1)] + [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", IsNullable=true)] + public byte[] BinaryData; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=2)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public string Error; + + public ReceiveReportResponse() + { + } + + public ReceiveReportResponse(string @return, byte[] BinaryData, string Error) + { + this.@return = @return; + this.BinaryData = BinaryData; + this.Error = Error; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="TransTax", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class TransTaxRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + [System.Xml.Serialization.XmlElementAttribute(DataType="date")] + public System.DateTime CalcDate {get;set;} + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=1)] + public string OKTMO {get;set;} + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=2)] + public string CarCategory {get;set;} + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=3)] + public float Power {get;set;} + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=4)] + public int Year {get;set;} + + public TransTaxRequest() + { + + } + + public TransTaxRequest(System.DateTime CalcDate, string OKTMO, string CarCategory, float Power, int Year) + { + this.CalcDate = CalcDate; + this.OKTMO = OKTMO; + this.CarCategory = CarCategory; + this.Power = Power; + this.Year = Year; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="TransTaxResponse", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class TransTaxResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] + public string @return; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=1)] + public float Tax; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=2)] + public string Error; + + public TransTaxResponse() + { + } + + public TransTaxResponse(string @return, float Tax, string Error) + { + this.@return = @return; + this.Tax = Tax; + this.Error = Error; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="LoadPartner", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class LoadPartnerRequest + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + public LeasingTrial.Partner Partner; + + public LoadPartnerRequest() + { + } + + public LoadPartnerRequest(LeasingTrial.Partner Partner) + { + this.Partner = Partner; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + [System.ServiceModel.MessageContractAttribute(WrapperName="LoadPartnerResponse", WrapperNamespace="http://localhost/wsmd_exch", IsWrapped=true)] + public partial class LoadPartnerResponse + { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://localhost/wsmd_exch", Order=0)] + public LeasingTrial.result @return; + + public LoadPartnerResponse() + { + } + + public LoadPartnerResponse(LeasingTrial.result @return) + { + this.@return = @return; + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + public interface md_exchPortTypeChannel : LeasingTrial.md_exchPortType, System.ServiceModel.IClientChannel + { + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")] + public partial class md_exchPortTypeClient : System.ServiceModel.ClientBase, LeasingTrial.md_exchPortType + { + + /// + /// Implement this partial method to configure the service endpoint. + /// + /// The endpoint to configure + /// The client credentials + static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); + + public md_exchPortTypeClient(EndpointConfiguration endpointConfiguration) : + base(md_exchPortTypeClient.GetBindingForEndpoint(endpointConfiguration), md_exchPortTypeClient.GetEndpointAddress(endpointConfiguration)) + { + this.Endpoint.Name = endpointConfiguration.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public md_exchPortTypeClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : + base(md_exchPortTypeClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) + { + this.Endpoint.Name = endpointConfiguration.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public md_exchPortTypeClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : + base(md_exchPortTypeClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) + { + this.Endpoint.Name = endpointConfiguration.ToString(); + ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + } + + public md_exchPortTypeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + public LeasingTrial.uploadMessageResponse uploadMessage(LeasingTrial.uploadMessageRequest request) + { + return base.Channel.uploadMessage(request); + } + + public System.Threading.Tasks.Task uploadMessageAsync(LeasingTrial.uploadMessageRequest request) + { + return base.Channel.uploadMessageAsync(request); + } + + public LeasingTrial.ReceiveReportResponse ReceiveReport(LeasingTrial.ReceiveReportRequest request) + { + return base.Channel.ReceiveReport(request); + } + + public System.Threading.Tasks.Task ReceiveReportAsync(LeasingTrial.ReceiveReportRequest request) + { + return base.Channel.ReceiveReportAsync(request); + } + + public LeasingTrial.TransTaxResponse TransTax(LeasingTrial.TransTaxRequest request) + { + return base.Channel.TransTax(request); + } + + public System.Threading.Tasks.Task TransTaxAsync(LeasingTrial.TransTaxRequest request) + { + return base.Channel.TransTaxAsync(request); + } + + public LeasingTrial.LoadPartnerResponse LoadPartner(LeasingTrial.LoadPartnerRequest request) + { + return base.Channel.LoadPartner(request); + } + + public System.Threading.Tasks.Task LoadPartnerAsync(LeasingTrial.LoadPartnerRequest request) + { + return base.Channel.LoadPartnerAsync(request); + } + + public virtual System.Threading.Tasks.Task OpenAsync() + { + return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen)); + } + + public virtual System.Threading.Tasks.Task CloseAsync() + { + return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndClose)); + } + + private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) + { + if ((endpointConfiguration == EndpointConfiguration.md_exchSoap)) + { + System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding(); + result.MaxBufferSize = int.MaxValue; + result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; + result.MaxReceivedMessageSize = int.MaxValue; + result.AllowCookies = true; + return result; + } + if ((endpointConfiguration == EndpointConfiguration.md_exchSoap12)) + { + System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding(); + System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); + textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); + result.Elements.Add(textBindingElement); + System.ServiceModel.Channels.HttpTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpTransportBindingElement(); + httpBindingElement.AllowCookies = true; + httpBindingElement.MaxBufferSize = int.MaxValue; + httpBindingElement.MaxReceivedMessageSize = int.MaxValue; + result.Elements.Add(httpBindingElement); + return result; + } + throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); + } + + private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) + { + if ((endpointConfiguration == EndpointConfiguration.md_exchSoap)) + { + return new System.ServiceModel.EndpointAddress("http://1c-dev.evoleasing.ru/1c_leasing_trial/ws/wsmd_exch.1cws"); + } + if ((endpointConfiguration == EndpointConfiguration.md_exchSoap12)) + { + return new System.ServiceModel.EndpointAddress("http://1c-dev.evoleasing.ru/1c_leasing_trial/ws/wsmd_exch.1cws"); + } + throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); + } + + public enum EndpointConfiguration + { + + md_exchSoap, + + md_exchSoap12, + } + } +} diff --git a/_1C.Gateway.Managers/LeasingTrialManager.cs b/_1C.Gateway.Managers/LeasingTrialManager.cs new file mode 100644 index 0000000..f4e576f --- /dev/null +++ b/_1C.Gateway.Managers/LeasingTrialManager.cs @@ -0,0 +1,35 @@ +using LeasingTrial; +using System.ServiceModel; + +namespace _1C.Gateway.Managers +{ + public class LeasingTrialManager + { + private readonly md_exchPortTypeClient _mdExchPortTypeClient; + + public LeasingTrialManager() + { + var binding = new BasicHttpBinding + { + MaxReceivedMessageSize = int.MaxValue, + Security = + { + Mode = BasicHttpSecurityMode.TransportCredentialOnly, + Transport = {ClientCredentialType = HttpClientCredentialType.Basic} + } + }; + + var address = new EndpointAddress("http://1c-dev.evoleasing.ru/1c_leasing_trial/ws/wsmd_exch.1cws"); + + _mdExchPortTypeClient = new md_exchPortTypeClient(binding, address); + _mdExchPortTypeClient.ClientCredentials.UserName.UserName = "ws"; + _mdExchPortTypeClient.ClientCredentials.UserName.Password = "123"; + } + + public TransTaxResponse TransTax(TransTaxRequest transTaxRequest) + { + var res = _mdExchPortTypeClient.TransTax(transTaxRequest); + return res; + } + } +} \ No newline at end of file diff --git a/_1C.Gateway.Managers/_1C.Gateway.Managers.csproj b/_1C.Gateway.Managers/_1C.Gateway.Managers.csproj new file mode 100644 index 0000000..e41ae92 --- /dev/null +++ b/_1C.Gateway.Managers/_1C.Gateway.Managers.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp3.1 + + + + + + + + + + + + + + + diff --git a/_1C.Gateway.sln b/_1C.Gateway.sln new file mode 100644 index 0000000..81f843d --- /dev/null +++ b/_1C.Gateway.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31229.75 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "_1C.Gateway", "_1C.Gateway\_1C.Gateway.csproj", "{0D296610-1E78-4CC9-8199-75F75C03B021}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "_1C.Gateway.Managers", "_1C.Gateway.Managers\_1C.Gateway.Managers.csproj", "{83412C70-4360-41BC-836D-788BCB76F551}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0D296610-1E78-4CC9-8199-75F75C03B021}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D296610-1E78-4CC9-8199-75F75C03B021}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D296610-1E78-4CC9-8199-75F75C03B021}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D296610-1E78-4CC9-8199-75F75C03B021}.Release|Any CPU.Build.0 = Release|Any CPU + {83412C70-4360-41BC-836D-788BCB76F551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {83412C70-4360-41BC-836D-788BCB76F551}.Debug|Any CPU.Build.0 = Debug|Any CPU + {83412C70-4360-41BC-836D-788BCB76F551}.Release|Any CPU.ActiveCfg = Release|Any CPU + {83412C70-4360-41BC-836D-788BCB76F551}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A34563C0-6B48-45FE-BBCC-E755351B3E14} + EndGlobalSection +EndGlobal diff --git a/_1C.Gateway/Controllers/LeasingTrialController.cs b/_1C.Gateway/Controllers/LeasingTrialController.cs new file mode 100644 index 0000000..3b8bc6a --- /dev/null +++ b/_1C.Gateway/Controllers/LeasingTrialController.cs @@ -0,0 +1,18 @@ +using _1C.Gateway.Managers; +using LeasingTrial; +using Microsoft.AspNetCore.Mvc; + +namespace _1C.Gateway.Controllers +{ + [ApiController] + [Route("[controller]")] + public class LeasingTrialController : ControllerBase + { + [HttpPost("[action]")] + public ActionResult TransTax(TransTaxRequest transTaxRequest) + { + var res = new LeasingTrialManager().TransTax(transTaxRequest); + return res; + } + } +} diff --git a/_1C.Gateway/Dockerfile b/_1C.Gateway/Dockerfile new file mode 100644 index 0000000..029d120 --- /dev/null +++ b/_1C.Gateway/Dockerfile @@ -0,0 +1,21 @@ +#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base +WORKDIR /app +EXPOSE 80 + +FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build +WORKDIR /src +COPY ["_1C.Gateway/_1C.Gateway.csproj", "_1C.Gateway/"] +RUN dotnet restore "_1C.Gateway/_1C.Gateway.csproj" +COPY . . +WORKDIR "/src/_1C.Gateway" +RUN dotnet build "_1C.Gateway.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "_1C.Gateway.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "_1C.Gateway.dll"] \ No newline at end of file diff --git a/_1C.Gateway/Program.cs b/_1C.Gateway/Program.cs new file mode 100644 index 0000000..4c59297 --- /dev/null +++ b/_1C.Gateway/Program.cs @@ -0,0 +1,26 @@ +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace _1C.Gateway +{ + public class Program + { + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + } +} diff --git a/_1C.Gateway/Properties/launchSettings.json b/_1C.Gateway/Properties/launchSettings.json new file mode 100644 index 0000000..bc4da5b --- /dev/null +++ b/_1C.Gateway/Properties/launchSettings.json @@ -0,0 +1,36 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:61784", + "sslPort": 0 + } + }, + "$schema": "http://json.schemastore.org/launchsettings.json", + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "weatherforecast", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "_1C.Gateway": { + "commandName": "Project", + "launchBrowser": true, + "launchUrl": "weatherforecast", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "http://localhost:5000" + }, + "Docker": { + "commandName": "Docker", + "launchBrowser": true, + "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/weatherforecast", + "publishAllPorts": true + } + } +} \ No newline at end of file diff --git a/_1C.Gateway/Startup.cs b/_1C.Gateway/Startup.cs new file mode 100644 index 0000000..b4942e4 --- /dev/null +++ b/_1C.Gateway/Startup.cs @@ -0,0 +1,48 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace _1C.Gateway +{ + public class Startup + { + public Startup(IConfiguration configuration) + { + Configuration = configuration; + } + + public IConfiguration Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + services.AddControllers().AddNewtonsoftJson(); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseRouting(); + + app.UseAuthorization(); + + app.UseEndpoints(endpoints => + { + endpoints.MapControllers(); + }); + } + } +} diff --git a/_1C.Gateway/_1C.Gateway.csproj b/_1C.Gateway/_1C.Gateway.csproj new file mode 100644 index 0000000..cf4bb5d --- /dev/null +++ b/_1C.Gateway/_1C.Gateway.csproj @@ -0,0 +1,18 @@ + + + + netcoreapp3.1 + Linux + + + + + + + + + + + + + diff --git a/_1C.Gateway/appsettings.Development.json b/_1C.Gateway/appsettings.Development.json new file mode 100644 index 0000000..8983e0f --- /dev/null +++ b/_1C.Gateway/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/_1C.Gateway/appsettings.json b/_1C.Gateway/appsettings.json new file mode 100644 index 0000000..d9d9a9b --- /dev/null +++ b/_1C.Gateway/appsettings.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*" +}