///// <summary> ///// Sevk irsaliyesi (Despatch Advice) UBL'inin DespatchSupplierParty alanını oluşturma ///// </summary> ///// <returns>DespatchSupplierParty Alanı</returns> //public SupplierPartyType GetSupplierParty(string vknTckn, string parametre) //{ // var despatchSupplierParty = new SupplierPartyType //Sevk İrsaliyesindeki Malların Sevkiyatını Sağlayan Tarafın Bilgileri // { // Party = new PartyType // { // WebsiteURI = new WebsiteURIType { Value = "web sitesi" }, // PartyIdentification = new[] // { // new PartyIdentificationType // { // ID= new IDType {schemeID=parametre,Value=vknTckn } // } // }, // // Sevkiyatı sağlayan tarafın VKN si yazılırsa bu alan kullanılmak zorundadır. // PartyName = new PartyNameType // { // Name = new NameType1 { Value = "Kurum Adı" } // }, // PostalAddress = new AddressType // { // ID = new IDType { Value = "123" }, // StreetName = new StreetNameType { Value = "Cadde" }, // BuildingName = new BuildingNameType { Value = "Bina" }, // BuildingNumber = new BuildingNumberType { Value = "Bina No" }, // CitySubdivisionName = new CitySubdivisionNameType { Value = "İlçe/Semt" }, // CityName = new CityNameType { Value = "Sehir" }, // PostalZone = new PostalZoneType { Value = "Posta Kodu" }, // Country = new CountryType { Name = new NameType1 { Value = "Ülke" } } // }, // PhysicalLocation = new LocationType1 // { // ID = new IDType { Value = "Depo Şube" }, // Address = new AddressType // { // ID = new IDType { Value = "12345" }, // StreetName = new StreetNameType { Value = "Cadde" }, // BuildingName = new BuildingNameType { Value = "Bina" }, // BuildingNumber = new BuildingNumberType { Value = "Bina no" }, // CitySubdivisionName = new CitySubdivisionNameType { Value = "İlçe/Semt" }, // CityName = new CityNameType { Value = "Sehir" }, // PostalZone = new PostalZoneType { Value = "Posta Kodu" }, // Country = new CountryType // { // Name = new NameType1 { Value = "Ülke" } // } // } // }, // PartyTaxScheme = new PartyTaxSchemeType // { // TaxScheme = new TaxSchemeType { Name = new NameType1 { Value = "Vergi Dairesi" } } // }, // Contact = new ContactType // { // Telephone = new TelephoneType { Value = "Telefon" }, // Telefax = new TelefaxType { Value = "Fax" }, // ElectronicMail = new ElectronicMailType { Value = "Mail" } // }, // // Sevkiyatı sağlayan tarafın TCKN si yazılırsa bu alan kullanılmak zorundadır. // Person = new PersonType // { // FirstName = new FirstNameType { Value = "İsim" }, // FamilyName = new FamilyNameType { Value = "Soyisim" }, // } // } // }; // return despatchSupplierParty; //} ///// <summary> ///// Sevk irsaliyesi (Despatch Advice) UBL'inin DeliveryCustomerParty alanını oluşturma ///// </summary> ///// <returns>DeliveryCustomerParty Alanı</returns> //public CustomerPartyType GetCustomerParty(string vknTckn, string parametre) //{ // var deliveryCustomerParty = new CustomerPartyType //Sevk İrsaliyesindeki Malların Sevkiyatını Teslim Alan Tarafın Bilgileri // { // Party = new PartyType // { // WebsiteURI = new WebsiteURIType { Value = "web sitesi" }, // PartyIdentification = new[] // { // new PartyIdentificationType // { // ID= new IDType {schemeID=parametre,Value=vknTckn } // }, // new PartyIdentificationType // { // ID=new IDType {schemeID="MUSTERINO",Value="1123" } // } // }, // // Sevkiyatı alan tarafın VKN si yazılırsa bu alan kullanılmak zorundadır. // PartyName = new PartyNameType // { // Name = new NameType1 { Value = "Kurum Adı" } // }, // PostalAddress = new AddressType // { // ID = new IDType { Value = "123" }, // StreetName = new StreetNameType { Value = "Cadde" }, // BuildingName = new BuildingNameType { Value = "Bina" }, // BuildingNumber = new BuildingNumberType { Value = "Bina No" }, // CitySubdivisionName = new CitySubdivisionNameType { Value = "İlçe/Semt" }, // CityName = new CityNameType { Value = "Şehir" }, // PostalZone = new PostalZoneType { Value = "Posta Kodu" }, // Country = new CountryType { Name = new NameType1 { Value = "Ülke" } } // }, // PhysicalLocation = new LocationType1 // { // ID = new IDType { Value = "Depo Şube" }, // Address = new AddressType // { // ID = new IDType { Value = "111" }, // StreetName = new StreetNameType { Value = "Cadde" }, // BuildingName = new BuildingNameType { Value = "Bina" }, // BuildingNumber = new BuildingNumberType { Value = "Bina no" }, // CitySubdivisionName = new CitySubdivisionNameType { Value = "İlçe/Semt" }, // CityName = new CityNameType { Value = "Sehir" }, // PostalZone = new PostalZoneType { Value = "Posta Kodu" }, // Country = new CountryType // { // Name = new NameType1 { Value = "Ülke" } // } // } // }, // PartyTaxScheme = new PartyTaxSchemeType // { // TaxScheme = new TaxSchemeType { Name = new NameType1 { Value = "Vergi Dairesi" } } // }, // Contact = new ContactType // { // Telephone = new TelephoneType { Value = "Telefon" }, // Telefax = new TelefaxType { Value = "Fax" }, // ElectronicMail = new ElectronicMailType { Value = "Mail" } // }, // // Sevkiyatı alan tarafın TCKN si yazılırsa bu alan kullanılmak zorundadır. // Person = new PersonType // { // FirstName = new FirstNameType { Value = "İsim" }, // FamilyName = new FamilyNameType { Value = "Soyisim" }, // } // } // }; // return deliveryCustomerParty; //} public void SetSupplierParty(PartyType supplierParty) { var despatchSupplierParty = new SupplierPartyType //göndericinin fatura üzerindeki bilgileri { Party = supplierParty }; baseDespatchUbl.DespatchSupplierParty = despatchSupplierParty; }
public void SetSupplierParty(PartyType supplierParty) { var accountingSupplierParty = new SupplierPartyType //göndericinin fatura üzerindeki bilgileri { Party = supplierParty }; baseInvoiceUBL.AccountingSupplierParty = accountingSupplierParty; }