Ejemplo n.º 1
0
        public virtual void LoadPartidasByProducto(long oid, bool childs)
        {
            if (Partidas.GetItemByProducto(oid) == null)
            {
                Batchs partidas = Batchs.GetChildListByProducto(this, oid, childs);

                foreach (Batch item in partidas)
                {
                    if ((Partidas.GetItem(item.Oid) == null) && (!Partidas.ContainsDeleted(item.Oid)))
                    {
                        Partidas.AddItem(item);
                    }
                }
            }
        }