Example #1
0
 public static string haritaGuncelle(string lat, string lut, string id)
 {
     donus = "";
     musteri ms = new musteri();
     ms.LAT = lat;
     ms.LUT = lut;
     ms.ID = id;
     donus = musteri.haritaGuncelle(ms);
     return donus;
 }
Example #2
0
 public static string musteriEkle(string adi, string soyadi, string adres, string telefon, string email)
 {
     musteri ms = new musteri();
     ms.AD = adi;
     ms.SOYAD = soyadi;
     ms.ADRES = adres;
     ms.TELEFON = telefon;
     ms.EMAIL = email;
     donus = musteri.musteriEkle(ms);
     return donus;
 }
Example #3
0
 public static string haritaGuncelle(musteri Bilgiler)
 {
     donus = "";
     try
     {
         VeriIslemleri.sorguCalistir("UPDATE [musteriler] SET [LAT] = '" + Bilgiler.LAT + "',[LUT] = '" + Bilgiler.LUT + "' WHERE ID = '" + Bilgiler.ID + "'", CommandType.Text);
         donus = "Kişi Adresi Başarı ile Güncellenmiştir";
     }
     catch (Exception)
     {
         donus = "Kişi Adresi Güncellenirken Bir Hata Oluştu";
     }
     return donus;
 }
Example #4
0
 public static string musteriSil(string id)
 {
     musteri ms = new musteri();
     ms.ID = id;
     return musteri.musteriSil(ms);
 }
Example #5
0
 public static string musteriSil(musteri Bilgiler)
 {
     donus = "";
     try
     {
         VeriIslemleri.sorguCalistir("delete musteriler where ID ='"+Bilgiler.ID+"'", CommandType.Text);
         donus = "Müşteri Başarı İle Silindi";
     }
     catch (Exception)
     {
         donus = "Müşteri Silinirken Bir Hata Oluştu";
     }
     return donus;
 }
Example #6
0
 public static string musteriGuncelle(musteri Bilgiler)
 {
     donus = "";
     try
     {
         VeriIslemleri.sorguCalistir("UPDATE [musteriler] SET [AD] = '"+Bilgiler.AD+"',[SOYAD] = '"+Bilgiler.SOYAD+"',[ADRES] = '"+Bilgiler.ADRES+"',[TELEFON] = '"+Bilgiler.TELEFON+"',[EMAIL] = '"+Bilgiler.EMAIL+"' WHERE ID = '"+Bilgiler.ID+"'", CommandType.Text);
         donus = "Kişi Bilgileri Başarı ile Güncellenmiştir";
     }
     catch (Exception)
     {
         donus = "Kişi Bilgileri Güncellenirken Bir Hata Oluştu";
     }
     return donus;
 }
Example #7
0
        public static string musteriEkle(musteri Bilgiler)
        {
            string a ="";
            try
            {
                try
                {
                    a = VeriIslemleri.tekSatirVeriSorgula("select TELEFON from musteriler where TELEFON = '" + Bilgiler.TELEFON + "'", CommandType.Text).ToString();
                    donus = "Bu Telefon Numarasına Ait Bilgiler Bulunmakta";

                }
                catch (Exception)
                {
                    VeriIslemleri.sorguCalistir("INSERT INTO [musteriler]([AD],[SOYAD],[ADRES],[TELEFON],[EMAIL])VALUES('" + Bilgiler.AD + "','" + Bilgiler.SOYAD + "','" + Bilgiler.ADRES + "','" + Bilgiler.TELEFON + "','" + Bilgiler.EMAIL + "')", CommandType.Text);
                        donus = "Kayıt Başarılı";

                }

            }
            catch (Exception)
            {
                donus = "Kayıt Başarısız";
            }
            return donus;
        }