Form1 Form2 Form3 Form4

Transkript

Form1 Form2 Form3 Form4
Form1
Form2
Form3
Form4
Form5
Form6
Form1
using System;
using System.Collections.Generic;
using System.ComponentModel; using
System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;
namespace gelirGider
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
OleDbConnection con;
OleDbCommand cmd;
OleDbDataReader dr;
private void btnGiris_Click(object sender, EventArgs e)
{
string ad = txtKadi.Text;
string sifre = txtSifre.Text;
con = new OleDbConnection("Provider=Microsoft.ACE.Oledb.12.0;Data Source=gelir.mdb");
cmd = new OleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "select* from kullanicilar where kullanici='" + txtKadi.Text + "'AND
sifre='" + txtSifre.Text + "'";
dr = cmd.ExecuteReader();
if (dr.Read())
{
Form2 f2 = new
Form2(); f2.Show();
this.Hide();
}
else
{
MessageBox.Show("Kullanıcı adı veya şifre yanlış", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
con.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Form2
using System;
using System.Collections.Generic;
using System.ComponentModel; using
System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gelirGider
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void btnGelir_Click(object sender, EventArgs e)
{
Form3 f = new Form3();
f.MdiParent =
this.ParentForm; f.Show();
}
private void btnGider_Click(object sender, EventArgs e)
{
Form4 f = new Form4();
f.MdiParent =
this.ParentForm; f.Show();
}
private void btnAdmin_Click(object sender, EventArgs e)
{
Form5 f = new Form5();
f.MdiParent =
this.ParentForm; f.Show();
}
private void button1_Click(object sender, EventArgs e)
{
Form6 f = new Form6();
f.MdiParent =
this.ParentForm; f.Show();
}
private void btnKapat_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form2_Load(object sender, EventArgs e)
{
}
}
}
Form3
using System;
using System.Collections.Generic;
using System.ComponentModel; using
System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gelirGider
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void dgGelir_CellClick(object sender, DataGridViewCellEventArgs e)
{
txtNo.Text = dgGelir.CurrentRow.Cells[0].Value.ToString();
txtGelir.Text = dgGelir.CurrentRow.Cells[1].Value.ToString();
txtMiktar.Text = dgGelir.CurrentRow.Cells[3].Value.ToString();
txtAciklama.Text = dgGelir.CurrentRow.Cells[2].Value.ToString();
dtTarih.Text = dgGelir.CurrentRow.Cells[4].Value.ToString();
}
private void btnTemizle_Click(object sender, EventArgs e)
{
foreach (Control c in Controls)
{
if (c is TextBox)
{
c.Text = "";
}
if (c is DateTimePicker)
{
c.Text = "";
}
if (c is ComboBox)
{
c.Text = "";
}
}
}
public void Goster()
{
DataTable dt = vt.dtGetir("select * from gelir order by gelirAdi");
dgGelir.Rows.Clear();
for (int i = 0; i < dt.Rows.Count; i++)
{
int goster = Convert.ToInt32(dt.Rows[i]["gelirId"].ToString());
dgGelir.Rows.Add(dt.Rows[i]["GelirId"].ToString(),
dt.Rows[i]["gelirAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(),
dt.Rows[i]["miktar"].ToString(), dt.Rows[i]["tarih"].ToString());
}
}
private void btnKapat_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form3_Load(object sender, EventArgs e)
{
DataTable dt = vt.dtGetir("select* from gelir order by
gelirAdi"); for (int i = 0; i < dt.Rows.Count; i++)
{
int personelNo = Convert.ToInt32(dt.Rows[i]["gelirId"].ToString());
dgGelir.Rows.Add(dt.Rows[i]["GelirId"].ToString(),
dt.Rows[i]["gelirAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(),
dt.Rows[i]["miktar"].ToString(), dt.Rows[i]["tarih"].ToString());
Goster();
}
}
private void btnGelir_Click(object sender, EventArgs e)
{
if (txtGelir.Text == "" || txtMiktar.Text == "" || txtAciklama.Text == "" ||
dtTarih.Text == "")
{
MessageBox.Show("Lütfen Tüm Alanları Doldurunuz", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
vt.sqlCalistir("insert into gelir (gelirAdi,aciklama,miktar,tarih) values ('" +
txtGelir.Text + "','" + txtAciklama.Text + "','" + txtMiktar.Text + "','" + dtTarih.Text + "')");
MessageBox.Show("Gelir Eklendi", "İşlem Tamam",
MessageBoxButtons.OK, MessageBoxIcon.Information);
txtGelir.Clear();
txtMiktar.Clear();
txtAciklama.Clear();
Goster();
}
private void btnSil_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(txtNo.Text))
{
MessageBox.Show("Lütfen Silinecek Kaydı Seçiniz!", "Hata", MessageBoxButtons.OK,
MessageBoxIcon.Error);
return;
}
if (MessageBox.Show("Kayıt Silinecek Onaylıyor musunuz?", "İşlem Onayı",
MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
vt.sqlCalistir("delete from gelir where gelirId=" +
Convert.ToInt32(txtNo.Text)); Convert.ToInt32(txtNo.Text);
MessageBox.Show("Kayıt Silindi", "İşlem Tamam",
MessageBoxButtons.OK, MessageBoxIcon.Information);
txtGelir.Clear();
txtMiktar.Clear();
txtAciklama.Clear();
Goster();
}
private void txtAra_TextChanged(object sender, EventArgs e)
{
dgGelir.Rows.Clear();
DataTable dt = vt.dtGetir("select* from gelir where gelirAdi like '%" + txtAra.Text +
"%' or aciklama like '%" + txtAra.Text + "%' or miktar like '%" + txtAra.Text + "%' order by
gelirAdi");
for (int i = 0; i < dt.Rows.Count; i++)
{
int gelir = Convert.ToInt32(dt.Rows[i]["gelirId"].ToString());
dgGelir.Rows.Add(dt.Rows[i]["GelirId"].ToString(),
dt.Rows[i]["gelirAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(), dt.Rows[i]["miktar"].ToString(),
dt.Rows[i]["tarih"].ToString());
Goster();
}
}
private void txtGuncelle_Click(object sender, EventArgs e)
{
if (txtGelir.Text == "" || txtMiktar.Text == "" || txtAciklama.Text == "" ||
dtTarih.Text == "")
{
MessageBox.Show("Lütfen Tüm Alanları Doldurunuz", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
vt.sqlCalistir("update gelir set gelirAdi='" + txtGelir.Text + "',aciklama='" +
txtAciklama.Text + "',miktar='" + txtMiktar.Text + "',tarih='" + dtTarih.Text + "' where gelirId="
+ txtNo.Text + "");
MessageBox.Show("Kayıt Güncellendi", "İşlem Tamam", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtGelir.Clear();
txtMiktar.Clear();
Goster();
}
private void btnCikti_Click(object sender, EventArgs e)
{
Microsoft.Office.Interop.Excel.Application excel = new
Microsoft.Office.Interop.Excel.Application();
excel.Workbooks.Add();
excel.Visible = true;
excel.Cells[1,
excel.Cells[1,
excel.Cells[1,
excel.Cells[1,
excel.Cells[1,
1].value
2].value
3].value
4].value
5].value
=
=
=
=
=
"No";
"Gelir Adi";
"Gelir Açıklama";
"Miktar";
"Tarih";
for (int i = 0; i < dgGelir.RowCount; i++)
{
excel.Cells[i
excel.Cells[i
excel.Cells[i
excel.Cells[i
excel.Cells[i
+ 2, 1].value
+ 2, 2].value
+ 2, 3].value
+ 2, 4].value
+ 2, 5].value =
= dgGelir.Rows[i].Cells[0].Value;
= dgGelir.Rows[i].Cells[1].Value;
= dgGelir.Rows[i].Cells[2].Value;
= dgGelir.Rows[i].Cells[3].Value;
dgGelir.Rows[i].Cells[4].Value;
}
}
private void button1_Click(object sender, EventArgs e)
{
double bakiye = 0;
for (int i = 0; i < dgGelir.RowCount; i++)
{
bakiye += Convert.ToDouble(dgGelir.Rows[i].Cells[3].Value);
}
lblGelir.Text = bakiye.ToString() + "TL";
}
private void label7_Click(object sender, EventArgs e)
{
}
}
}
Form4
using System;
using System.Collections.Generic;
using System.ComponentModel; using
System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gelirGider
{
public partial class Form4 : Form
{
public Form4()
{
InitializeComponent();
}
private void Form4_Load(object sender, EventArgs e)
{
DataTable dt = vt.dtGetir("select* from gider order by
giderAdi"); for (int i = 0; i < dt.Rows.Count; i++)
{
int personelNo = Convert.ToInt32(dt.Rows[i]["giderId"].ToString());
dgGider.Rows.Add(dt.Rows[i]["GiderId"].ToString(),
dt.Rows[i]["giderAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(),
dt.Rows[i]["miktar"].ToString(), dt.Rows[i]["tarih"].ToString());
Goster();
}
}
public void Goster()
{
DataTable dt = vt.dtGetir("select * from gider order by giderAdi");
dgGider.Rows.Clear();
for (int i = 0; i < dt.Rows.Count; i++)
{
int goster = Convert.ToInt32(dt.Rows[i]["giderId"].ToString());
dgGider.Rows.Add(dt.Rows[i]["GiderId"].ToString(),
dt.Rows[i]["giderAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(),
dt.Rows[i]["miktar"].ToString(), dt.Rows[i]["tarih"].ToString());
}
}
private void btnKapat_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnCikti_Click(object sender, EventArgs e)
{
Microsoft.Office.Interop.Excel.Application excel = new
Microsoft.Office.Interop.Excel.Application();
excel.Workbooks.Add();
excel.Visible = true;
excel.Cells[1,
excel.Cells[1,
excel.Cells[1,
excel.Cells[1,
excel.Cells[1,
1].value
2].value
3].value
4].value
5].value
=
=
=
=
=
"No";
"Gider Adi";
"Gider Açıklama";
"Miktar";
"Tarih";
for (int i = 0; i < dgGider.RowCount; i++)
{
excel.Cells[i
excel.Cells[i
excel.Cells[i
excel.Cells[i
excel.Cells[i
+ 2, 1].value
+ 2, 2].value
+ 2, 3].value
+ 2, 4].value
+ 2, 5].value =
= dgGider.Rows[i].Cells[0].Value;
= dgGider.Rows[i].Cells[1].Value;
= dgGider.Rows[i].Cells[2].Value;
= dgGider.Rows[i].Cells[3].Value;
dgGider.Rows[i].Cells[4].Value;
}
}
private void dgGider_CellClick(object sender, DataGridViewCellEventArgs e)
{
txtNo.Text = dgGider.CurrentRow.Cells[0].Value.ToString();
txtGider.Text = dgGider.CurrentRow.Cells[1].Value.ToString();
txtMiktar.Text = dgGider.CurrentRow.Cells[3].Value.ToString();
txtAciklama.Text = dgGider.CurrentRow.Cells[2].Value.ToString();
dtTarih.Text = dgGider.CurrentRow.Cells[4].Value.ToString();
}
private void txtAra_TextChanged(object sender, EventArgs e)
{
dgGider.Rows.Clear();
DataTable dt = vt.dtGetir("select* from gider where giderAdi like '%" + txtAra.Text +
"%' or aciklama like '%" + txtAra.Text + "%' or miktar like '%" + txtAra.Text + "%' order by
giderAdi");
for (int i = 0; i < dt.Rows.Count; i++)
{
int gider = Convert.ToInt32(dt.Rows[i]["giderId"].ToString());
dgGider.Rows.Add(dt.Rows[i]["giderId"].ToString(),
dt.Rows[i]["giderAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(), dt.Rows[i]["miktar"].ToString(),
dt.Rows[i]["tarih"].ToString());
Goster();
}
}
private void btnHesapla_Click(object sender, EventArgs e)
{
double bakiye = 0;
for (int i = 0; i < dgGider.RowCount; i++)
{
bakiye += Convert.ToDouble(dgGider.Rows[i].Cells[3].Value);
}
lblGider.Text = bakiye.ToString() + "TL";
}
private void btnTemizle_Click(object sender, EventArgs e)
{
foreach (Control c in Controls)
{
if (c is TextBox)
{
c.Text = "";
}
if (c is DateTimePicker)
{
c.Text = "";
}
if (c is ComboBox)
{
c.Text = "";
}
}
}
private void btnGider_Click(object sender, EventArgs e)
{
if (txtGider.Text == "" || txtMiktar.Text == "" || txtAciklama.Text == "" ||
dtTarih.Text == "")
{
MessageBox.Show("Lütfen Tüm Alanları Doldurunuz", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
vt.sqlCalistir("insert into gider (giderAdi,aciklama,miktar,tarih) values ('" +
txtGider.Text + "','" + txtAciklama.Text + "','" + txtMiktar.Text + "','" + dtTarih.Text + "')");
MessageBox.Show("Gider Eklendi", "İşlem Tamam",
MessageBoxButtons.OK, MessageBoxIcon.Information);
txtGider.Clear();
txtMiktar.Clear();
txtAciklama.Clear();
Goster();
}
private void btnGuncelle_Click(object sender, EventArgs e)
{
if (txtGider.Text == "" || txtMiktar.Text == "" || txtAciklama.Text == "" ||
dtTarih.Text == "")
{
MessageBox.Show("Lütfen Tüm Alanları Doldurunuz", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
vt.sqlCalistir("update gider set giderAdi='" + txtGider.Text + "',aciklama='" +
txtAciklama.Text + "',miktar='" + txtMiktar.Text + "',tarih='" + dtTarih.Text + "' where giderId="
+ txtNo.Text + "");
MessageBox.Show("Kayıt Güncellendi", "İşlem Tamam", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtGider.Clear();
txtMiktar.Clear();
Goster();
}
private void btnSil_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(txtNo.Text))
{
MessageBox.Show("Lütfen Silinecek Kaydı Seçiniz!", "Hata", MessageBoxButtons.OK,
MessageBoxIcon.Error);
return;
}
if (MessageBox.Show("Kayıt Silinecek Onaylıyor musunuz?", "İşlem Onayı",
MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
vt.sqlCalistir("delete from gider where giderId=" +
Convert.ToInt32(txtNo.Text)); Convert.ToInt32(txtNo.Text);
MessageBox.Show("Kayıt Silindi", "İşlem Tamam",
MessageBoxButtons.OK, MessageBoxIcon.Information);
txtGider.Clear();
txtMiktar.Clear();
txtAciklama.Clear();
Goster();
}
}
}
Form5
using System;
using System.Collections.Generic;
using System.ComponentModel; using
System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gelirGider
{
public partial class Form5 : Form
{
public Form5()
{
InitializeComponent();
}
private void Form5_Load(object sender, EventArgs e)
{
DataTable dt = vt.dtGetir("select* from kullanicilar order by
kullanici"); for (int i = 0; i < dt.Rows.Count; i++)
{
int personelNo = Convert.ToInt32(dt.Rows[i]["kullaniciId"].ToString());
dgUser.Rows.Add(dt.Rows[i]["kullaniciId"].ToString(),
dt.Rows[i]["kullanici"].ToString(),
dt.Rows[i]["sifre"].ToString());
goster();
}
}
public void goster()
{
DataTable dt = vt.dtGetir("select * from kullanicilar order by kullanici");
dgUser.Rows.Clear();
for (int i = 0; i < dt.Rows.Count; i++)
{
int goster = Convert.ToInt32(dt.Rows[i]["kullaniciId"].ToString());
dgUser.Rows.Add(dt.Rows[i]["kullaniciId"].ToString(),
dt.Rows[i]["kullanici"].ToString(),
dt.Rows[i]["sifre"].ToString());
}
}
private void button4_Click(object sender, EventArgs e)
{
this.Close();
}
private void dgUser_CellClick(object sender, DataGridViewCellEventArgs e)
{
txtNo.Text = dgUser.CurrentRow.Cells[0].Value.ToString();
txtKullanici.Text = dgUser.CurrentRow.Cells[1].Value.ToString();
txtSifre.Text = dgUser.CurrentRow.Cells[2].Value.ToString();
}
private void btnEkle_Click(object sender, EventArgs e)
{
if (txtKullanici.Text==""||txtSifre.Text=="")
{
MessageBox.Show("Lütfen Tüm Alanları Doldurunuz", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
vt.sqlCalistir("insert into kullanicilar (kullanici,sifre) values ('"
+ txtKullanici.Text + "','" + txtSifre.Text + "')");
MessageBox.Show("Kullanıcı Eklendi", "İşlem Tamam", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtNo.Clear();
txtKullanici.Clear();
txtSifre.Clear();
goster();
}
private void btnSil_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(txtNo.Text))
{
MessageBox.Show("Lütfen Silinecek Kullanıcıyı Seçiniz!", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (MessageBox.Show("Kullanıcı Silinecek Onaylıyor musunuz?", "İşlem
Onayı",MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
vt.sqlCalistir("delete from kullanicilar where kullaniciId=" +
Convert.ToInt32(txtNo.Text));
Convert.ToInt32(txtNo.Text);
MessageBox.Show("Kullanıcı Silindi", "İşlem Tamam", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtKullanici.Clear();
txtNo.Clear();
txtSifre.Clear();
goster();
}
private void btnGuncelle_Click(object sender, EventArgs e)
{
if (txtKullanici.Text == "" || txtSifre.Text == "")
{
MessageBox.Show("Lütfen Tüm Alanları Doldurunuz", "Hata",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
vt.sqlCalistir("update kullanicilar set kullanici='" +txtKullanici.Text + "',sifre='"
+ txtSifre.Text+"' where kullaniciId=" + txtNo.Text + "");
MessageBox.Show("Kullanıcı Güncellendi", "İşlem Tamam", MessageBoxButtons.OK,
MessageBoxIcon.Information);
txtNo.Clear();
txtKullanici.Clear();
txtSifre.Clear();
goster();
}
}
}
Form6
using System;
using System.Collections.Generic;
using System.ComponentModel; using
System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gelirGider
{
public partial class Form6 : Form
{
public Form6()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void Form6_Load(object sender, EventArgs e)
{
DataTable dt = vt.dtGetir("select* from gider order by
giderAdi"); for (int i = 0; i < dt.Rows.Count; i++)
{
int personelNo = Convert.ToInt32(dt.Rows[i]["giderId"].ToString());
dgGider.Rows.Add(dt.Rows[i]["GiderId"].ToString(),
dt.Rows[i]["giderAdi"].ToString(),
dt.Rows[i]["aciklama"].ToString(),
dt.Rows[i]["miktar"].ToString(), dt.Rows[i]["tarih"].ToString());
}
DataTable dt2 = vt.dtGetir("select* from gelir order by gelirAdi");
for (int i = 0; i < dt2.Rows.Count; i++)
{
int personelNo = Convert.ToInt32(dt2.Rows[i]["gelirId"].ToString());
dgGelir.Rows.Add(dt2.Rows[i]["GelirId"].ToString(),
dt2.Rows[i]["gelirAdi"].ToString(),
dt2.Rows[i]["aciklama"].ToString(),
dt2.Rows[i]["miktar"].ToString(), dt2.Rows[i]["tarih"].ToString());
}
}
private void btnKapat_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnHesapla_Click(object sender, EventArgs e)
{
double gelir = 0;
for (int i = 0; i < dgGelir.RowCount; i++)
{
gelir += Convert.ToDouble(dgGelir.Rows[i].Cells[3].Value);
}
double gider = 0;
for (int i = 0; i < dgGelir.RowCount; i++)
{
gider += Convert.ToDouble(dgGider.Rows[i].Cells[3].Value);
}
double islem = gelir - gider;
lblButce.Text = islem.ToString() + " TL";
; if (islem < 0)
{
lblButce.ForeColor = Color.Red;
}
else
{
lblButce.ForeColor = Color.Green;
}
lblGelir.Text = gelir.ToString()+"TL";
lblGider.Text = gider.ToString()+"TL";
}
}
}
Vt.cs Class Dosyası
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace gelirGider
{
class vt
{
public static OleDbConnection Baglan()
{
OleDbConnection baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=" + Application.StartupPath + "/gelir.mdb");
baglanti.Open();
return baglanti;
}
public static DataTable dtGetir(string sql)
{
OleDbConnection baglanti = Baglan();
OleDbCommand cmd = new
OleDbCommand(); cmd.Connection =
baglanti; cmd.CommandText = sql;
DataTable dt = new DataTable();
OleDbDataAdapter adp = new
OleDbDataAdapter(); adp.SelectCommand = cmd;
adp.Fill(dt);
cmd.Connection.Close();
baglanti.Close();
adp.Dispose();
cmd.Dispose();
return dt;
}
public static bool sqlCalistir(string sql)
{
OleDbConnection baglanti = Baglan();
OleDbCommand cmd = new
OleDbCommand(); cmd.Connection =
baglanti; cmd.CommandText = sql;
cmd.ExecuteNonQuery();
cmd.Connection.Close();
baglanti.Close();
cmd.Dispose();
return true;
}
public static int kayitSayisi(string sql)
{
OleDbConnection baglanti = Baglan();
OleDbCommand cmd = new
OleDbCommand(); cmd.Connection =
baglanti; cmd.CommandText = sql;
DataTable dt = new DataTable();
OleDbDataAdapter adp = new
OleDbDataAdapter(); adp.SelectCommand = cmd;
adp.Fill(dt);
return dt.Rows.Count;
cmd.Connection.Close();
baglanti.Close();
adp.Dispose();
cmd.Dispose();
}
}
}

Benzer belgeler

Untitled

Untitled if (MessageBox.Show("Kayıt Silinecek Onaylıyor musunuz?", "İşlem Onayı", MessageBoxButtons.YesNo) == DialogResult.No)

Detaylı

VERİ TABANI UYGULAMA 1 1. Aşağıdaki URUNLER tablosunu

VERİ TABANI UYGULAMA 1 1. Aşağıdaki URUNLER tablosunu 7. Yukarıdaki 3 tablodan faydalanarak, JAVA kitabını satın alan kişileri ADSOYAD, KULLANICI, ADET, URUNADI şeklinde sütunlar halinde listeleyen bir sorgu yazınız. 8. Yukarıdaki 3 tablodan faydalan...

Detaylı

Program Çalışması

Program Çalışması using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; //using System.Windows.Forms; namespace W...

Detaylı

Ada : Parsel : Yapı Denetim 10% T.C. KONAK BELEDİYESİ İmar ve

Ada : Parsel : Yapı Denetim 10% T.C. KONAK BELEDİYESİ İmar ve Demir İhzarat Tutanağı Demir Numune Alma Tutanağı Çelik Çubuk Çekme Deney Sonuçları 20% Temel Topraklama Tutanağı Temel Kalıp, Demir Kontrol Tutanağı (Ek8 Form6) Temel Beton Döküm Tutanakları ( Ek9...

Detaylı

Tarih - Hasan Karamehmet İlkokulu

Tarih - Hasan Karamehmet İlkokulu https://tefbis.meb.gov.tr/resmi/print/Gideryazdir.aspx?GiderId=57958...

Detaylı