Exemple #1
0
        private List <Musteri> GetAllCustomers()
        {
            musteriBusiness = new MusteriBusiness();
            var musteriler = musteriBusiness.GetAllCustomers();

            return(musteriler);
        }
Exemple #2
0
 public frmMusteri()
 {
     InitializeComponent();
     musteriBusiness    = new MusteriBusiness();
     musteriTurBusiness = new MusteriTurBusiness();
     degiscekMusteri    = new Musteri();
 }
Exemple #3
0
 private bool UpdateMusteri(int id, string ad, string soyad, int yas, string parola, double kimlikno, int maas, byte ehliyet)
 {
     try
     {
         using (var musteriBussines = new MusteriBusiness())
         {
             return(musteriBussines.UpdateMusteri(new Musteri()
             {
                 KullaniciID = id,
                 Ad = ad,
                 Soyad = soyad,
                 Yas = yas,
                 Parola = parola,
                 KimlikNo = kimlikno,
                 Maas = maas,
                 Ehliyet = ehliyet
             }));
         }
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Musteri doesn't exists.");
     }
 }
 public frmIslem()
 {
     InitializeComponent();
     evBusiness        = new EvBusiness();
     kiralananBusiness = new KiralananBusiness();
     musteriBusiness   = new MusteriBusiness();
     satilanBusiness   = new SatilanBusiness();
 }
Exemple #5
0
 private void AddCustomer()
 {
     musteriBusiness      = new MusteriBusiness();
     musteri              = new Musteri();
     musteri.Ad           = txtMAd.Text;
     musteri.Soyad        = txtMSoyad.Text;
     musteri.TelNo        = masktxtTel.Text;
     musteri.MusteriTurId = int.Parse(cmboxMTur.SelectedValue.ToString());
     musteriBusiness.AddCustomer(musteri);
 }
Exemple #6
0
 private Musteri SelectMusteriByID(int ID)
 {
     try
     {
         using (var musteriBussines = new MusteriBusiness())
         {
             return(musteriBussines.SelectMusteriById(ID));
         }
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Musteri doesn't exists.");
     }
 }
Exemple #7
0
 private List <Musteri> ListAllMusteri()
 {
     try
     {
         using (var musteriBussines = new MusteriBusiness())
         {
             List <Musteri> musteri = musteriBussines.SelectAllMusteri();
             return(musteri);
         }
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Musteri doesn't exists.");
     }
 }
Exemple #8
0
 private void Update_Datagridview_()
 {
     musteriBusiness          = new MusteriBusiness();
     dataGridView1.DataSource = musteriBusiness.GetAllCustomersDTO();
     dataGridView1.Columns["MusteriTur"].Visible = false;
 }