fixes
This commit is contained in:
parent
99d705d044
commit
5839195469
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue