Exemplo n.º 1
0
 public override void Persist()
 {
     populateNeighbours <PX.SM.Users>(Users);
     populateNeighbours <Customer>(Customer);
     populateNeighbours <PX.SM.Users>(Users);
     base.Persist();
     PXSelectorAttribute.ClearGlobalCache <PX.SM.Users>();
     PXSelectorAttribute.ClearGlobalCache <PX.Objects.AR.Customer>();
 }
Exemplo n.º 2
0
 public override void Persist()
 {
     populateNeighbours <PX.SM.Users>(Users);
     populateNeighbours <INSite>(Site);
     populateNeighbours <PX.SM.Users>(Users);
     base.Persist();
     PXSelectorAttribute.ClearGlobalCache <PX.SM.Users>();
     PXSelectorAttribute.ClearGlobalCache <PX.Objects.IN.INSite>();
     PXDimensionAttribute.Clear();
 }
 public override void Persist()
 {
     populateNeighbours <PX.SM.Users>(Users);
     populateNeighbours <PMProject>(Project);
     populateNeighbours <PX.SM.Users>(Users);
     base.Persist();
     PXSelectorAttribute.ClearGlobalCache <PX.SM.Users>();
     PXSelectorAttribute.ClearGlobalCache <PMProject>();
     PXDimensionAttribute.Clear();
 }
Exemplo n.º 4
0
 public override void Persist()
 {
     if (itemclass.Current != null && Groups.Cache.IsDirty)
     {
         PX.SM.UserAccess.PopulateNeighbours <INItemClass>(itemclass, Groups, typeof(SegmentValue));
         PXSelectorAttribute.ClearGlobalCache <INItemClass>();
     }
     base.Persist();
     Groups.Cache.Clear();
     GroupHelper.Clear();
 }
Exemplo n.º 5
0
 public override void Persist()
 {
     if (Site.Current != null)
     {
         PopulateNeighbours <INSite>(Site, Groups);
         PXSelectorAttribute.ClearGlobalCache <PX.Objects.GL.Account>();
     }
     else
     {
         return;
     }
     base.Persist();
 }
Exemplo n.º 6
0
 public override void Persist()
 {
     populateNeighbours <PX.SM.Users>(Users);
     populateNeighbours <InventoryItem>(Item);
     populateNeighbours <INItemClass>(Class);
     populateNeighbours <InventoryItem>(Item);
     populateNeighbours <PX.SM.Users>(Users);
     base.Persist();
     PXSelectorAttribute.ClearGlobalCache <PX.SM.Users>();
     PXSelectorAttribute.ClearGlobalCache <PX.Objects.IN.INItemClass>();
     PXSelectorAttribute.ClearGlobalCache <PX.Objects.IN.InventoryItem>();
     PXDimensionAttribute.Clear();
 }
Exemplo n.º 7
0
        public override void Persist()
        {
            if (itemclass.Current != null && string.IsNullOrEmpty(itemclass.Current.LotSerClassID) && !PXAccess.FeatureInstalled <FeaturesSet.lotSerialTracking>())
            {
                itemclass.Current.LotSerClassID = INLotSerClass.GetDefaultLotSerClass(this);
            }

            if (itemclass.Current != null && Groups.Cache.IsDirty)
            {
                PX.SM.UserAccess.PopulateNeighbours <INItemClass>(itemclass, Groups, typeof(SegmentValue));
                PXSelectorAttribute.ClearGlobalCache <INItemClass>();
            }
            base.Persist();
            Groups.Cache.Clear();
            GroupHelper.Clear();
        }
Exemplo n.º 8
0
 public override void Persist()
 {
     if (Item.Current != null)
     {
         PopulateNeighbours <InventoryItem>(Item, Groups);
         PXSelectorAttribute.ClearGlobalCache <PX.Objects.IN.InventoryItem>();
     }
     else if (Class.Current != null)
     {
         PopulateNeighbours <INItemClass>(Class, Groups);
         PXSelectorAttribute.ClearGlobalCache <PX.Objects.IN.INItemClass>();
     }
     else
     {
         return;
     }
     base.Persist();
 }
 public override void Persist()
 {
     if (User.Current != null)
     {
         PopulateNeighbours <PX.SM.Users>(User, Groups);
         PXSelectorAttribute.ClearGlobalCache <PX.SM.Users>();
     }
     else if (Project.Current != null)
     {
         PopulateNeighbours <PMProject>(Project, Groups);
         PXSelectorAttribute.ClearGlobalCache <PMProject>();
     }
     else
     {
         return;
     }
     base.Persist();
 }
 public override void Persist()
 {
     if (User.Current != null)
     {
         PopulateNeighbours <PX.SM.Users>(User, Groups);
         PXSelectorAttribute.ClearGlobalCache <PX.SM.Users>();
     }
     else if (Vendor.Current != null)
     {
         PopulateNeighbours <Vendor>(Vendor, Groups);
         PXSelectorAttribute.ClearGlobalCache <PX.Objects.AP.Vendor>();
     }
     else
     {
         return;
     }
     base.Persist();
 }