예제 #1
0
 protected PozycjaRelacjiHandlowej(RelacjaHandlowa relacja, int nadrzednaident, int podrzednaident, DokumentHandlowy podrzednydok, bool dodatkowa)
 {
     this.groupStawka = new StawkaVat();
     this.groupSuma   = new BruttoNetto();
     if (relacja == null)
     {
         throw new RequiredException(this, "Relacja");
     }
     //base.CheckAccessDenied(relacja);
     if (nadrzednaident == 0)
     {
         throw new RequiredException(this, "NadrzednaIdent");
     }
     if (podrzednaident == 0)
     {
         throw new RequiredException(this, "PodrzednaIdent");
     }
     if (podrzednydok == null)
     {
         throw new RequiredException(this, "PodrzednyDok");
     }
     this.initializer();
     this.Relacja        = relacja;
     this.NadrzednaIdent = nadrzednaident;
     this.PodrzednaIdent = podrzednaident;
     this.PodrzednyDok   = podrzednydok;
     this.Dodatkowa      = dodatkowa;
 }
예제 #2
0
        protected RelacjaHandlowa(DefRelacjiHandlowej definicja, TypRelacjiHandlowej typ, DokumentHandlowy podrzedny)
        {
            this.groupSuma = new BruttoNetto();
            if (definicja == null)
            {
                throw new RequiredException(this, "Definicja");
            }
            if (typ == ((TypRelacjiHandlowej)0))
            {
                throw new RequiredException(this, "Typ");
            }
            if (podrzedny == null)
            {
                throw new RequiredException(this, "Podrzedny");
            }
            //base.CheckAccessDenied(podrzedny);
            this.initializer();
            //base.GetRecord();
            //this.record.Definicja = definicja;
            //this.record.Typ = typ;
            //this.record.Podrzedny = podrzedny;

            this.Definicja = definicja;
            this.Typ       = typ;
            this.Podrzedny = podrzedny;
        }
예제 #3
0
 public RelacjaHandlowa()
 {
     this.groupSuma = new BruttoNetto();
     this.initializer();
 }
예제 #4
0
 public PozycjaRelacjiHandlowej()
 {
     this.groupStawka = new StawkaVat();
     this.groupSuma   = new BruttoNetto();
     this.initializer();
 }