This commit is contained in:
Loretta 2024-06-25 18:06:08 +02:00
parent 99d705d044
commit 5839195469
3 changed files with 11 additions and 6 deletions

View File

@ -303,6 +303,10 @@
<Name>RegisterDataTierApplication</Name> <Name>RegisterDataTierApplication</Name>
<Value>False</Value> <Value>False</Value>
</PropertyElementName> </PropertyElementName>
<PropertyElementName>
<Name>PerformIndexOperationsOnline</Name>
<Value>False</Value>
</PropertyElementName>
<PropertyElementName> <PropertyElementName>
<Name>RebuildIndexesOfflineForDataPhase</Name> <Name>RebuildIndexesOfflineForDataPhase</Name>
<Value>False</Value> <Value>False</Value>

View File

@ -320,6 +320,7 @@
var company = _productDetailGridComponent!.ParentData as Company; var company = _productDetailGridComponent!.ParentData as Company;
if (company == null || company.OwnerId.IsNullOrEmpty()) if (company == null || company.OwnerId.IsNullOrEmpty())
{ {
e.Cancel = true;
_logger.Error($"OnProductGridItemSaving; company == null || company.OwnerId.IsNullOrEmpty(); company.OwnerId: {company?.OwnerId}"); _logger.Error($"OnProductGridItemSaving; company == null || company.OwnerId.IsNullOrEmpty(); company.OwnerId: {company?.OwnerId}");
return; return;
} }

View File

@ -137,13 +137,13 @@
{ {
_logger.Debug($"DataItemSaving"); _logger.Debug($"DataItemSaving");
var profileId = Guid.NewGuid(); // var profileId = Guid.NewGuid();
product.Profile = new Profile(profileId, product.Name); // product.Profile = new Profile(profileId, product.Name);
product.ProfileId = profileId; // product.ProfileId = profileId;
var addressId = Guid.NewGuid(); // var addressId = Guid.NewGuid();
product.Profile.Address = new Address(addressId); // product.Profile.Address = new Address(addressId);
product.Profile.AddressId = addressId; // product.Profile.AddressId = addressId;
//((Product)e.EditModel).UserProductMappings.Add(new UserProductMapping(Guid.NewGuid, ParentData.)); //((Product)e.EditModel).UserProductMappings.Add(new UserProductMapping(Guid.NewGuid, ParentData.));
} }