City düzenlemesi

This commit is contained in:
Sedat ÖZTÜRK 2026-01-27 13:29:34 +03:00
parent f9efd0a145
commit d2e0c07a19
6 changed files with 4513 additions and 6008 deletions

View file

@ -137,7 +137,7 @@ public static class LookupQueryValues
public static string CityValues = public static string CityValues =
$"SELECT " + $"SELECT " +
$"\"Id\" AS \"Key\", " + $"\"Name\" AS \"Key\", " +
$"\"Name\" AS \"Name\" " + $"\"Name\" AS \"Name\" " +
$"FROM \"{FullNameTable(TableNameEnum.City)}\" " + $"FROM \"{FullNameTable(TableNameEnum.City)}\" " +
$"WHERE " + $"WHERE " +

View file

@ -3,7 +3,7 @@ using Volo.Abp.Application.Dtos;
namespace Erp.Platform.Public; namespace Erp.Platform.Public;
public class CityDto : AuditedEntityDto<string> public class CityDto : AuditedEntityDto<Guid>
{ {
public string Name { get; set; } public string Name { get; set; }
public string PlateCode { get; set; } public string PlateCode { get; set; }

File diff suppressed because it is too large Load diff

View file

@ -153,7 +153,7 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
private readonly IRepository<Currency, string> _currencyRepository; private readonly IRepository<Currency, string> _currencyRepository;
private readonly IRepository<CountryGroup, string> _countryGroupRepository; private readonly IRepository<CountryGroup, string> _countryGroupRepository;
private readonly IRepository<Country, string> _countryRepository; private readonly IRepository<Country, string> _countryRepository;
private readonly IRepository<City, string> _cityRepository; private readonly IRepository<City, Guid> _cityRepository;
private readonly IRepository<District, Guid> _districtRepository; private readonly IRepository<District, Guid> _districtRepository;
private readonly IRepository<ContactTag, Guid> _contactTagRepository; private readonly IRepository<ContactTag, Guid> _contactTagRepository;
private readonly IRepository<ContactTitle, Guid> _contactTitleRepository; private readonly IRepository<ContactTitle, Guid> _contactTitleRepository;
@ -173,7 +173,7 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
IRepository<Currency, string> currencyRepository, IRepository<Currency, string> currencyRepository,
IRepository<CountryGroup, string> countryGroupRepository, IRepository<CountryGroup, string> countryGroupRepository,
IRepository<Country, string> countryRepository, IRepository<Country, string> countryRepository,
IRepository<City, string> cityRepository, IRepository<City, Guid> cityRepository,
IRepository<District, Guid> districtRepository, IRepository<District, Guid> districtRepository,
IRepository<ContactTag, Guid> contactTagRepository, IRepository<ContactTag, Guid> contactTagRepository,
IRepository<ContactTitle, Guid> contactTitleRepository, IRepository<ContactTitle, Guid> contactTitleRepository,
@ -350,7 +350,7 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
if (existingSet.Contains(key)) continue; // duplicate kontrolü if (existingSet.Contains(key)) continue; // duplicate kontrolü
buffer.Add(new City( buffer.Add(new City(
item.Id, Guid.NewGuid(),
item.Country, item.Country,
item.Name, item.Name,
item.PlateCode item.PlateCode

View file

@ -1,9 +1,10 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing; using Volo.Abp.Domain.Entities.Auditing;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class City : FullAuditedEntity<string> public class City : FullAuditedEntity<Guid>
{ {
public string Country { get; set; } public string Country { get; set; }
public string Name { get; set; } public string Name { get; set; }
@ -13,7 +14,7 @@ public class City : FullAuditedEntity<string>
protected City() { } protected City() { }
public City(string id, string country, string name, string plateCode) public City(Guid id, string country, string name, string plateCode)
: base(id) : base(id)
{ {
Country = country; Country = country;

View file

@ -2829,7 +2829,7 @@
"gender": "Male", "gender": "Male",
"maritalStatus": "Married", "maritalStatus": "Married",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.34", "city": "İstanbul",
"district": "Ümraniye", "district": "Ümraniye",
"township": "Esenşehir", "township": "Esenşehir",
"postalCode": "34771", "postalCode": "34771",
@ -2869,7 +2869,7 @@
"gender": "Female", "gender": "Female",
"maritalStatus": "Single", "maritalStatus": "Single",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.06", "city": "Ankara",
"district": "Güdül", "district": "Güdül",
"township": "Güdül", "township": "Güdül",
"postalCode": "6840", "postalCode": "6840",
@ -2909,7 +2909,7 @@
"gender": "Male", "gender": "Male",
"maritalStatus": "Married", "maritalStatus": "Married",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.11", "city": "Bilecik",
"district": "Merkez", "district": "Merkez",
"township": "Merkezköyler", "township": "Merkezköyler",
"postalCode": "34000", "postalCode": "34000",
@ -2989,7 +2989,7 @@
"gender": "Male", "gender": "Male",
"maritalStatus": "Married", "maritalStatus": "Married",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.34", "city": "İstanbul",
"district": "Kadıköy", "district": "Kadıköy",
"township": "Bostancı", "township": "Bostancı",
"postalCode": "34728", "postalCode": "34728",
@ -3029,7 +3029,7 @@
"gender": "Female", "gender": "Female",
"maritalStatus": "Single", "maritalStatus": "Single",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.35", "city": "İzmir",
"district": "Kemalpaşa", "district": "Kemalpaşa",
"township": "Ören", "township": "Ören",
"postalCode": "35000", "postalCode": "35000",
@ -3069,7 +3069,7 @@
"gender": "Male", "gender": "Male",
"maritalStatus": "Married", "maritalStatus": "Married",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.06", "city": "Ankara",
"district": "Altındağ", "district": "Altındağ",
"township": "Telsizler", "township": "Telsizler",
"postalCode": "16000", "postalCode": "16000",
@ -3109,7 +3109,7 @@
"gender": "Female", "gender": "Female",
"maritalStatus": "Married", "maritalStatus": "Married",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.11", "city": "Bilecik",
"district": "Osmaneli", "district": "Osmaneli",
"township": "Merkezköyler", "township": "Merkezköyler",
"postalCode": "35220", "postalCode": "35220",
@ -3149,7 +3149,7 @@
"gender": "Female", "gender": "Female",
"maritalStatus": "Single", "maritalStatus": "Single",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.45", "city": "Manisa",
"district": "Demirci", "district": "Demirci",
"township": "Durhasan", "township": "Durhasan",
"postalCode": "06490", "postalCode": "06490",
@ -3189,7 +3189,7 @@
"gender": "Male", "gender": "Male",
"maritalStatus": "Married", "maritalStatus": "Married",
"country": "Türkiye", "country": "Türkiye",
"city": "TR.34", "city": "İstanbul",
"district": "Beykoz", "district": "Beykoz",
"township": "Polonezköy", "township": "Polonezköy",
"postalCode": "34360", "postalCode": "34360",
@ -4440,7 +4440,7 @@
"TaxNumber": 1234567890, "TaxNumber": 1234567890,
"TaxOffice": "İstanbul Vergi Dairesi", "TaxOffice": "İstanbul Vergi Dairesi",
"country": "Türkiye", "country": "Türkiye",
"City": "TR.34", "city": "İstanbul",
"District": "Beykoz", "District": "Beykoz",
"Township": "Çubuklu", "Township": "Çubuklu",
"Address1": null, "Address1": null,
@ -4478,7 +4478,7 @@
"TaxNumber": 987654321, "TaxNumber": 987654321,
"TaxOffice": null, "TaxOffice": null,
"country": "Türkiye", "country": "Türkiye",
"City": "TR.34", "city": "İstanbul",
"District": "Çekmeköy", "District": "Çekmeköy",
"Township": "Taşdelen", "Township": "Taşdelen",
"Address1": null, "Address1": null,
@ -4516,7 +4516,7 @@
"TaxNumber": 1122334455, "TaxNumber": 1122334455,
"TaxOffice": null, "TaxOffice": null,
"country": "Türkiye", "country": "Türkiye",
"City": "TR.34", "city": "İstanbul",
"District": "Eyüp", "District": "Eyüp",
"Township": "Rami", "Township": "Rami",
"Address1": null, "Address1": null,
@ -4554,7 +4554,7 @@
"TaxNumber": 6677889900, "TaxNumber": 6677889900,
"TaxOffice": null, "TaxOffice": null,
"country": "Türkiye", "country": "Türkiye",
"City": "TR.06", "city": "Ankara",
"District": "Kızılcahamam", "District": "Kızılcahamam",
"Township": "Kızılcahamam", "Township": "Kızılcahamam",
"Address1": null, "Address1": null,
@ -4592,7 +4592,7 @@
"TaxNumber": 987654321, "TaxNumber": 987654321,
"TaxOffice": null, "TaxOffice": null,
"country": "Türkiye", "country": "Türkiye",
"City": "TR.06", "city": "Ankara",
"District": "Yenimahalle", "District": "Yenimahalle",
"Township": "Ostim", "Township": "Ostim",
"Address1": null, "Address1": null,
@ -4630,7 +4630,7 @@
"TaxNumber": 1234567890, "TaxNumber": 1234567890,
"TaxOffice": null, "TaxOffice": null,
"country": "Türkiye", "country": "Türkiye",
"City": "TR.34", "city": "İstanbul",
"District": "Beyoğlu", "District": "Beyoğlu",
"Township": "Cihangir", "Township": "Cihangir",
"Address1": null, "Address1": null,