示例#1
0
 public Hammadde(int tdrkcid, int maddenumara)
 {
     MaddeAdi     = hammaddeIsimleri[maddenumara];
     TedarikciId  = tdrkcid;
     Miktari      = RastgeleSayi.SayiUret(50, 100);
     MinSiparis   = RastgeleSayi.SayiUret(1, 10);
     AdetFiyat    = RastgeleSayi.SayiUret(1, 10);
     AlinmaTarihi = new Tarih();
     BarkodNo     = new Barkod();
 }
示例#2
0
 public Musteri()
 {
     Id               = adet;
     Ad               = isimler[RastgeleSayi.SayiUret(0, isimler.Length)];
     Adres            = adres[RastgeleSayi.SayiUret(0, adres.Length)];
     Telefon          = TelBaslangic[RastgeleSayi.SayiUret(0, TelBaslangic.Length)] + RastgeleSayi.SayiUret(1000000, 9999999);
     Fax              = "";
     Gsm              = "";
     Web              = "";
     Mail             = Ad + mailuzanti[RastgeleSayi.SayiUret(0, mailuzanti.Length)];
     VergiNo          = "";
     Bakiye           = RastgeleSayi.SayiUret(50, 250);
     SonAlinanSiparis = new Tarih();
     SonAlinanSiparis.YilAta();
     SonVerilenSiparis = new Tarih();
     SonVerilenSiparis.YilAta();
 }