Example #1
0
 public Client(PersonalData name, Address lok)
 {
     if (!name.Type.Equals(Typ.KlientPrywatny))
     {
         throw new Exception("Niezgode dane.");
     }
     ClientCreate(name, lok);
 }
Example #2
0
 private void ClientCreate(PersonalData name, Address lok)
 {
     IdClient       = -1;
     Data           = name;
     Localisation   = lok;
     Regon          = null;
     Nip            = null;
     ListOfDiscount = new HashedSet <Discount>();
 }
Example #3
0
 public Client(PersonalData name, Address lok, Regon reg, NIP nip)
 {
     if (!name.Type.Equals(Typ.Firma))
     {
         throw new Exception("Niezgode dane.");
     }
     ClientCreate(name, lok);
     Regon = reg;
     Nip   = nip;
 }
Example #4
0
 public Client()
 {
     IdClient       = 1;
     Data           = new PersonalData();
     Localisation   = new Address();
     Regon          = new Regon();
     Nip            = new NIP();
     NumberOfPhone  = new Phone();
     MailToClient   = new Mail();
     ListOfDiscount = new HashedSet <Discount>();
 }