Exemple #1
0
 private void toolStripTextBox3_Click(object sender, EventArgs e)
 {
     //Fatura sayılarının gösterilmesi:
     DatasetTableAdapters.faturaTableAdapter adaptor = new DatasetTableAdapters.faturaTableAdapter();
     dataGridRapor.DataSource = adaptor.faturaGetir();
     labelBilgi.Text          = Convert.ToString(adaptor.faturaSayilar());
 }
        private void kesilmişFaturalarButonu_Click(object sender, EventArgs e)
        {
            //Kesilmiş tüm faturaların görüntülenmesi:
            Kesilmiş_Faturalar f = new Kesilmiş_Faturalar();

            DatasetTableAdapters.faturaTableAdapter adaptor = new DatasetTableAdapters.faturaTableAdapter();
            f.dataGridView1.DataSource = adaptor.faturaGetir();
            f.ShowDialog();
        }
Exemple #3
0
 private void onaylaButonu_Click(object sender, EventArgs e)
 {
     //Seçilen siparişe fatura kesilmesi:
     DatasetTableAdapters.faturaTableAdapter adaptor = new DatasetTableAdapters.faturaTableAdapter();
     adaptor.faturaEkle(Convert.ToInt32(label15.Text), label6.Text, label14.Text, label16.Text, label17.Text,
                        label18.Text, label19.Text, Convert.ToInt32(label20.Text), Convert.ToInt32(label23.Text),
                        Convert.ToInt32(label22.Text), Convert.ToInt32(label21.Text));
     DatasetTableAdapters.siparisTableAdapter adaptor2 = new DatasetTableAdapters.siparisTableAdapter();
     adaptor2.tamamlandıYap(Convert.ToInt32(label15.Text));
     MessageBox.Show("Fatura Kesildi!");
     this.Close();
 }