Exemplo n.º 1
0
 private void Check(RelacjeHandlowe lrn, PozycjeDokHan lpd)
 {
     if (!lrn.IsEmpty && !lpd.IsEmpty)
     {
         foreach (PozycjaDokHandlowego handlowego in lpd)
         {
             var relations = this.GetRelations(handlowego);
             if (relations.IsEmpty)
             {
                 this._restore.Enqueue(handlowego);
             }
             else
             {
                 foreach (PozycjaRelacjiHandlowej handlowej in relations)
                 {
                     if ((handlowej.Relacja.Typ == TypRelacjiHandlowej.Kopiowania) && (handlowego.Towar != handlowej.Nadrzedna.Towar))
                     {
                         this._remove.Enqueue(handlowej);
                     }
                 }
                 this._restore.Enqueue(handlowego);
             }
         }
     }
 }
Exemplo n.º 2
0
 private void Check(RelacjeHandlowe lrn)
 {
     if (!lrn.IsEmpty)
     {
         foreach (RelacjaHandlowa handlowa in lrn)
         {
             if (handlowa.Definicja.Zachowanie.UsuwajAutomatycznie && handlowa.Pozycje.IsEmpty)
             {
                 this._split.Enqueue(handlowa);
             }
         }
     }
 }
Exemplo n.º 3
0
        public HandelModule(Session session)
            : base(session, "Handel")
        {
            this.defDokHandlowychTable    = new DefDokHandlowych();
            this.relacjeHandloweTable     = new RelacjeHandlowe();
            this.defRelHandlowychTable    = new DefRelHandlowych();
            this.pozRelacjiHandlowejTable = new PozRelHandlowej();
            this.pozycjeDokHanTable       = new PozycjeDokHan();
            this.dokHandloweTable         = new DokHandlowe();

            this.AddTable(this.defDokHandlowychTable);
            this.AddTable(this.relacjeHandloweTable);
            this.AddTable(this.defRelHandlowychTable);
            this.AddTable(this.pozRelacjiHandlowejTable);
            this.AddTable(this.pozycjeDokHanTable);
            this.AddTable(this.dokHandloweTable);
        }