private void button1_Click(object sender, EventArgs e)
        {
            Musteri M;

            M = BLL.Musteri_KayitGetir(TC);

            double islem = float.Parse(M.Bakiye) - float.Parse(textBox1.Text);

            if (islem < 0)
            {
                MessageBox.Show("Hesabnızdaki limit kadar çekim yapabilirsiniz..");
            }
            else
            {
                int result = BLL.Para_Cekim(TC, islem);
                if (result == -1)
                {
                    MessageBox.Show("Beklenmedik Hata Oluştu..");
                }
                else
                {
                    MessageBox.Show("Faturanız Ödendi..");
                    ANASAYFA ana = new ANASAYFA();
                    ana.TC = TC;
                    ana.Show();
                    this.Hide();
                }
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            double islem = float.Parse(label2.Text) + float.Parse(textBox1.Text);

            if (float.Parse(textBox1.Text) < 0)
            {
                MessageBox.Show("Yanlış Tutar Girdiniz");
            }
            else
            {
                int result = BLL.Para_Cekim(TC, islem);
                if (result == -1)
                {
                    MessageBox.Show("Beklenmedik Hata Oluştu..");
                }
                else
                {
                    MessageBox.Show("Paranızı Yatırıldı....");
                    ANASAYFA ana = new ANASAYFA();
                    ana.TC = TC;
                    ana.Show();
                    this.Hide();
                }
            }
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            double islem = float.Parse(label2.Text) - float.Parse(textBox1.Text);

            if (islem < 0)
            {
                MessageBox.Show("Hesabnızdaki limit kadar çekim yapabilirsiniz..");
            }
            else
            {
                int result = BLL.Para_Cekim(TC, islem);
                if (result == -1)
                {
                    MessageBox.Show("Beklenmedik Hata Oluştu..");
                }
                else
                {
                    MessageBox.Show("Paranızı Alabilirsiniz....");
                    ANASAYFA ana = new ANASAYFA();
                    ana.TC = TC;
                    ana.Show();
                    this.Hide();
                }
            }
        }
Exemplo n.º 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            ANASAYFA ana = new ANASAYFA();

            ana.TC = TC;
            ana.Show();
            this.Hide();
        }
Exemplo n.º 5
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txt_HesapTutar.Text))
            {
                MessageBox.Show("TUTAR GİRİN");
                return;
            }

            double kalan = ((bakiye) - int.Parse(txt_HesapTutar.Text));


            if (kalan < 0)
            {
                MessageBox.Show("Limit Uygun Değil..");
            }
            else
            {
                if (txt_HesapNo.Text.Trim().Length == 11)
                {
                    int sonuc = BLL.HESAP_ARA(txt_HesapNo.Text.Trim());
                    if (sonuc > 0)
                    {
                        int yatirmasonuc = BLL.HESAP_YATIR(txt_HesapNo.Text, int.Parse(txt_HesapTutar.Text));
                        if (yatirmasonuc == -1)
                        {
                            MessageBox.Show("HATA");
                        }
                        else
                        {
                            MessageBox.Show("YATIRILDI...");
                            int      result = BLL.Para_Cekim(TC, kalan);
                            ANASAYFA ANA    = new ANASAYFA();
                            ANA.TC = TC;
                            ANA.Show();
                            this.Hide();
                        }
                    }
                    else
                    {
                        MessageBox.Show("HESAP TANIMSIZ..");
                    }
                }
                else
                {
                    MessageBox.Show("HESAP GEÇERSİZ");
                }
            }
        }
Exemplo n.º 6
0
        private void button1_Click(object sender, EventArgs e)
        {
            int result = BLL.Kullanici_Giris(textBox1.Text, textBox2.Text);

            if (result > 0)
            {
                ANASAYFA ana = new ANASAYFA();
                ana.TC = textBox1.Text;
                ana.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Giriş Hatalı.");
            }
        }
Exemplo n.º 7
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(textBox1.Text))
            {
                MessageBox.Show("TUTAR GİRİN");
                return;
            }

            float kalan = ((bakiye) - float.Parse(textBox1.Text));

            if (kalan < 0)
            {
                MessageBox.Show("Limit Uygun Değil..");
            }
            else
            {
                if (maskedTextBox1.TextLength == 33)
                {
                    int sonuc = BLL.IBAN_ARA(maskedTextBox1.Text);
                    if (sonuc > 0)
                    {
                        int yatirmasonuc = BLL.IBAN_YATIR(maskedTextBox1.Text, float.Parse(textBox1.Text));
                        if (yatirmasonuc == -1)
                        {
                            MessageBox.Show("HATA");
                        }
                        else
                        {
                            MessageBox.Show("YATIRILDI...");
                            int      result = BLL.Para_Cekim(TC, kalan);
                            ANASAYFA ANA    = new ANASAYFA();
                            ANA.TC = TC;
                            ANA.Show();
                            this.Hide();
                        }
                    }
                    else
                    {
                        MessageBox.Show("IBAN TANIMSIZ..");
                    }
                }
                else
                {
                    MessageBox.Show("IBAN GEÇERSİZ");
                }
            }
        }