|
|
@@ -1524,6 +1524,7 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+
|
|
|
if (ishaveBu)
|
|
|
{
|
|
|
entity.Update();
|
|
|
@@ -2043,6 +2044,14 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+ if (entity.ProductId > 0)
|
|
|
+ {
|
|
|
+ CeErpProduct ceErpProduct = CeErpProduct.GetById(entity.ProductId);
|
|
|
+ if (ceErpProduct.CreateTime != null && DateTime.Compare(ceErpProduct.CreateTime, DateTime.Now.AddDays(-90)) > 0)
|
|
|
+ {
|
|
|
+ entity.NewProduct = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (isNull)
|
|
|
{
|
|
|
father.create_time = DateTime.Now;
|
|
|
@@ -2218,6 +2227,14 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+ if (entity.ProductId > 0)
|
|
|
+ {
|
|
|
+ CeErpProduct ceErpProduct = CeErpProduct.GetById(entity.ProductId);
|
|
|
+ if (ceErpProduct.CreateTime != null && DateTime.Compare(ceErpProduct.CreateTime, DateTime.Now.AddDays(-90)) > 0)
|
|
|
+ {
|
|
|
+ entity.NewProduct = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (isNull)
|
|
|
{
|
|
|
father.create_time = DateTime.Now;
|
|
|
@@ -2406,6 +2423,14 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+ if (entity.ProductId > 0)
|
|
|
+ {
|
|
|
+ CeErpProduct ceErpProduct = CeErpProduct.GetById(entity.ProductId);
|
|
|
+ if (ceErpProduct.CreateTime != null && DateTime.Compare(ceErpProduct.CreateTime, DateTime.Now.AddDays(-90)) > 0)
|
|
|
+ {
|
|
|
+ entity.NewProduct = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (isNull)
|
|
|
{
|
|
|
father.create_time = DateTime.Now;
|
|
|
@@ -2583,6 +2608,14 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+ if (entity.ProductId > 0)
|
|
|
+ {
|
|
|
+ CeErpProduct ceErpProduct = CeErpProduct.GetById(entity.ProductId);
|
|
|
+ if (ceErpProduct.CreateTime != null && DateTime.Compare(ceErpProduct.CreateTime, DateTime.Now.AddDays(-90)) > 0)
|
|
|
+ {
|
|
|
+ entity.NewProduct = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (isNull)
|
|
|
{
|
|
|
father.create_time = DateTime.Now;
|
|
|
@@ -2969,6 +3002,14 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+ if (entity.ProductId > 0)
|
|
|
+ {
|
|
|
+ CeErpProduct ceErpProduct = CeErpProduct.GetById(entity.ProductId);
|
|
|
+ if (ceErpProduct.CreateTime != null && DateTime.Compare(ceErpProduct.CreateTime, DateTime.Now.AddDays(-90)) > 0)
|
|
|
+ {
|
|
|
+ entity.NewProduct = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (ishave)
|
|
|
{
|
|
|
|
|
|
@@ -3398,6 +3439,14 @@ namespace SiteCore
|
|
|
entity.DesignUserId = 0;
|
|
|
entity.WaitDesignTime = null;
|
|
|
}
|
|
|
+ if (entity.ProductId > 0)
|
|
|
+ {
|
|
|
+ CeErpProduct ceErpProduct = CeErpProduct.GetById(entity.ProductId);
|
|
|
+ if (ceErpProduct.CreateTime != null && DateTime.Compare(ceErpProduct.CreateTime, DateTime.Now.AddDays(-90)) > 0)
|
|
|
+ {
|
|
|
+ entity.NewProduct = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (ishave)
|
|
|
{
|
|
|
entity.Update();
|