예제 #1
0
파일: Clients.cs 프로젝트: khrpnv/Bank
 private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Телефонная книга")
     {
         int    row        = dataGridView1.CurrentRow.Index;
         Delete deleteForm = new Delete();
         deleteForm.ShowDialog();
         if (deleteForm.DialogResult == DialogResult.OK)
         {
             Delete(dataGridView1[0, row].Value.ToString());
         }
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From PhonesBook");
     }
     else if (label1.Text == "Информация о клиентах")
     {
         int    row        = dataGridView1.CurrentRow.Index;
         Delete deleteForm = new Delete();
         deleteForm.ShowDialog();
         if (deleteForm.DialogResult == DialogResult.OK)
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "DELETE Clients WHERE [Идентификационный код]='" + dataGridView1[3, row].Value.ToString() + "';");
         }
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [ФИО],[№_паспорта],[Дата рождения],[Идентификационный код],[Электронная почта] FROM Clients INNER JOIN PhonesBook ON Clients.[№_телефона] = PhonesBook.[Номер_телефона]");
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: khrpnv/Bank
        private void button6_Click(object sender, EventArgs e)
        {
            BuildInQueries buildInQueres = new BuildInQueries();

            buildInQueres.Show();
            this.Hide();
        }
예제 #3
0
파일: Payments.cs 프로젝트: khrpnv/Bank
        private void button4_Click(object sender, EventArgs e)
        {
            NewPayment payment = new NewPayment();

            payment.ShowDialog();
            BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select Payments.[№_договора],[Дата внесения платежа],[Размер ежемесячного платежа],[Размер внесенного платежа],[Дата следующего платежа],[Выплаченная сумма],[Разер кредита]*(Cast((Select [Процент переплат] FROM CreditTypes WHere [Id]=BankCredits.[Id_кредита]) as float)/100+1)-[Выплаченная сумма] as 'Осталось выплатить' From BankCredits JOIN Payments ON BankCredits.[№_договора]=Payments.[№_договора];");
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            string firstParam  = textBox1.Text;
            string secondParam = textBox2.Text;

            if (textBox1.Text.Length == 0)
            {
                firstParam = "0";
            }
            if (textBox2.Text.Length == 0)
            {
                secondParam = "100000000";
            }
            int Num;

            if (!int.TryParse(firstParam, out Num) || !int.TryParse(secondParam, out Num))
            {
                MessageBox.Show("Неправильно введены данные!");
            }
            if (Convert.ToDouble(firstParam) > Convert.ToDouble(secondParam))
            {
                MessageBox.Show("Перваое значение фильтра больше, чем второе!");
            }
            else if (Convert.ToDouble(firstParam) < 0 || Convert.ToDouble(secondParam) < 0)
            {
                MessageBox.Show("Введите положительные значения фильтров!");
            }
            else
            {
                BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankDeposits Where [Размер вклада] BETWEEN '" + firstParam + "' AND '" + secondParam + "'");
            }
        }
예제 #5
0
파일: Cards.cs 프로젝트: khrpnv/Bank
        private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int row = dataGridView1.CurrentRow.Index;

            if (label1.Text == "Доступные виды карт")
            {
                Delete deleteForm = new Delete();
                deleteForm.ShowDialog();
                if (deleteForm.DialogResult == DialogResult.OK)
                {
                    Delete(dataGridView1[0, row].Value.ToString(), "CardTypes");
                    AmountOfRows--;
                }
                BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From CardTypes");
            }
            else if (label1.Text == "Выданные карты")
            {
                Delete deleteForm = new Delete();
                deleteForm.ShowDialog();
                if (deleteForm.DialogResult == DialogResult.OK)
                {
                    BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "DELETE BankCards WHERE [№_карты]='" + dataGridView1[0, row].Value.ToString() + "';");
                }
                BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankCards");
            }
        }
예제 #6
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void button3_Click(object sender, EventArgs e)
 {
     BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM BankCredits;");
     dataGridView1.Height = 330;
     dataGridView1.Top   -= 80;
     panel1.Visible       = false;
     label1.Visible       = true;
 }
예제 #7
0
파일: Cards.cs 프로젝트: khrpnv/Bank
 public Cards()
 {
     InitializeComponent();
     BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From CardTypes");
     if (label1.Text == "Доступные виды карт")
     {
         AmountOfRows = dataGridView1.RowCount;
     }
 }
예제 #8
0
파일: Deposits.cs 프로젝트: khrpnv/Bank
 private void button1_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Вклады клиентов банка")
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankDeposits WHERE [№_счета]='" + textBox1.Text + "';");
     }
     else if (label1.Text == "Доступные виды вкладов")
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From DepositTypes WHERE [Id]='" + textBox1.Text + "';");
     }
 }
예제 #9
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void button1_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Выданные кредиты")
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM BankCredits Where [№_договора]='" + textBox1.Text + "';");
     }
     else if (label1.Text == "Доступные кредитные программы")
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM CreditTypes Where [Id]='" + textBox1.Text + "';");
     }
 }
예제 #10
0
파일: Cards.cs 프로젝트: khrpnv/Bank
 private void button1_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Выданные карты")
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM BankCards WHERE [№_карты]='" + textBox1.Text + "';");
     }
     else if (label1.Text == "Доступные виды карт")
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM CardTypes WHERE [Id]='" + textBox1.Text + "';");
     }
 }
예제 #11
0
파일: Payments.cs 프로젝트: khrpnv/Bank
        private void button2_Click(object sender, EventArgs e)
        {
            if (Convert.ToDouble(dataGridView1[6, dataGridView1.CurrentRow.Index].Value).ToString() == "0")
            {
                MessageBox.Show("Запрещено! Кредит уже погашен.");
                return;
            }
            Pay pay = new Pay();

            NumberOfCredit = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();
            pay.ShowDialog();
            BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select Payments.[№_договора],[Дата внесения платежа],[Размер ежемесячного платежа],[Размер внесенного платежа],[Дата следующего платежа],[Выплаченная сумма],[Разер кредита]*(Cast((Select [Процент переплат] FROM CreditTypes WHere [Id]=BankCredits.[Id_кредита]) as float)/100+1)-[Выплаченная сумма] as 'Осталось выплатить' From BankCredits JOIN Payments ON BankCredits.[№_договора]=Payments.[№_договора];");
        }
예제 #12
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void изменитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Выданные кредиты")
     {
         MessageBox.Show("Запрещено!");
     }
     else if (label1.Text == "Доступные кредитные программы")
     {
         GetData(dataGridView1);
         EditCredits editCredits = new EditCredits();
         editCredits.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM CreditTypes;");
     }
 }
예제 #13
0
        private void button1_Click(object sender, EventArgs e)
        {
            string year = textBox1.Text;
            int    Num;

            if (year.Length == 0 || !int.TryParse(year, out Num))
            {
                MessageBox.Show("Введите год!");
                return;
            }
            string query = "SELECT SUM([Разер кредита]) FROM BankCredits WHERE YEAR([Дата выдачи кредита])=" + textBox1.Text;

            BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, query);
            SaveTableForReport1(dataGridView1, year);
        }
예제 #14
0
        private void button2_Click(object sender, EventArgs e)
        {
            string date1 = dateTimePicker1.Text;
            string date2 = dateTimePicker2.Text;

            if (DateTime.Parse(date1) > DateTime.Parse(date2))
            {
                MessageBox.Show("Первая дата больше чем вторая!");
                return;
            }
            string query = "SELECT COUNT(*) FROM BankCards WHERE [Дата оформления] BETWEEN CONVERT(date, '" + date1 + "', 104) AND CONVERT(date, '" + date2 + "', 104) ";

            BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, query);
            SaveTableForReport2(dataGridView1, date1, date2);
        }
예제 #15
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void button4_Click(object sender, EventArgs e)
 {
     if (!checkBox1.Checked && !checkBox2.Checked)
     {
         MessageBox.Show("Выберите фильтр!");
         return;
     }
     if (checkBox1.Checked && textBox2.Text.Length == 0 && textBox3.Text.Length == 0)
     {
         MessageBox.Show("Введите значение фильтров!");
         return;
     }
     if (checkBox2.Checked && DateTime.Parse(dateTimePicker1.Text) > DateTime.Parse(dateTimePicker2.Text))
     {
         MessageBox.Show("Первая дата больше чем вторая!");
         return;
     }
     if (textBox2.Text.Length == 0)
     {
         textBox2.Text = "0";
     }
     if (checkBox1.Checked && checkBox2.Checked)
     {
         if (textBox3.Text.Length == 0)
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_паспорта],Payments.[№_договора],[Дата выдачи кредита],[Разер кредита],[Статус кредита],[Размер ежемесячного платежа],[Дата внесения платежа] FROM BankCredits JOIN Payments ON Payments.[№_договора]=BankCredits.[№_договора] WHERE [Размер ежемесячного платежа]>'" + textBox2.Text + "' AND [Дата внесения платежа] BETWEEN CONVERT(DATE,'" + dateTimePicker1.Text + "',104) AND CONVERT(DATE,'" + dateTimePicker2.Text + "', 104)");
         }
         else
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_паспорта],Payments.[№_договора],[Дата выдачи кредита],[Разер кредита],[Статус кредита],[Размер ежемесячного платежа],[Дата внесения платежа] FROM BankCredits JOIN Payments ON Payments.[№_договора]=BankCredits.[№_договора] WHERE [Размер ежемесячного платежа] BETWEEN '" + textBox2.Text + "' AND '" + textBox3.Text + "' AND [Дата внесения платежа] BETWEEN CONVERT(DATE,'" + dateTimePicker1.Text + "',104) AND CONVERT(DATE,'" + dateTimePicker2.Text + "', 104)");
         }
     }
     else if (checkBox1.Checked)
     {
         if (textBox3.Text.Length == 0)
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_паспорта],Payments.[№_договора],[Дата выдачи кредита],[Разер кредита],[Статус кредита],[Размер ежемесячного платежа],[Дата внесения платежа] FROM BankCredits JOIN Payments ON Payments.[№_договора]=BankCredits.[№_договора] WHERE [Размер ежемесячного платежа]>'" + textBox2.Text + "'");
         }
         else
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_паспорта],Payments.[№_договора],[Дата выдачи кредита],[Разер кредита],[Статус кредита],[Размер ежемесячного платежа],[Дата внесения платежа] FROM BankCredits JOIN Payments ON Payments.[№_договора]=BankCredits.[№_договора] WHERE [Размер ежемесячного платежа] BETWEEN '" + textBox2.Text + "' AND '" + textBox3.Text + "'");
         }
     }
     else if (checkBox2.Checked)
     {
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_паспорта],Payments.[№_договора],[Дата выдачи кредита],[Разер кредита],[Статус кредита],[Размер ежемесячного платежа],[Дата внесения платежа] FROM BankCredits JOIN Payments ON Payments.[№_договора]=BankCredits.[№_договора] WHERE [Дата внесения платежа] BETWEEN CONVERT(DATE,'" + dateTimePicker1.Text + "',104) AND CONVERT(DATE,'" + dateTimePicker2.Text + "', 104)");
     }
 }
예제 #16
0
파일: Cards.cs 프로젝트: khrpnv/Bank
 private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     edit = false;
     if (label1.Text == "Доступные виды карт")
     {
         EditCards edt = new EditCards();
         edt.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From CardTypes");
     }
     if (label1.Text == "Выданные карты")
     {
         GetCard getCard = new GetCard();
         getCard.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankCards");
     }
 }
예제 #17
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Выданные кредиты")
     {
         GetCredit getForm = new GetCredit();
         getForm.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM BankCredits;");
     }
     else if (label1.Text == "Доступные кредитные программы")
     {
         CreditId = dataGridView1.Rows.Count;
         EditCredits editCredits = new EditCredits();
         editCredits.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM CreditTypes;");
     }
 }
예제 #18
0
파일: Clients.cs 프로젝트: khrpnv/Bank
 private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     edit = false;
     if (label1.Text == "Телефонная книга")
     {
         EditPhonesBook edt = new EditPhonesBook();
         edt.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From PhonesBook");
     }
     else if (label1.Text == "Информация о клиентах")
     {
         EditClient edit = new EditClient();
         edit.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [ФИО],[№_паспорта],[Дата рождения],[Идентификационный код],[Электронная почта], [№_телефона] FROM Clients INNER JOIN PhonesBook ON Clients.[№_телефона] = PhonesBook.[Номер_телефона]");
     }
 }
예제 #19
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Выданные кредиты")
     {
         MessageBox.Show("Запрещено!");
     }
     else if (label1.Text == "Доступные кредитные программы")
     {
         Delete deleteForm = new Delete();
         deleteForm.ShowDialog();
         if (deleteForm.DialogResult == DialogResult.OK)
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "DELETE FROM CreditTypes WHERE [Id]='" + dataGridView1[0, dataGridView1.CurrentRow.Index].Value + "';");
         }
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT * FROM CreditTypes;");
     }
 }
예제 #20
0
파일: Deposits.cs 프로젝트: khrpnv/Bank
 private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     edit = false;
     if (label1.Text == "Доступные виды вкладов")
     {
         IdOfDeposit = dataGridView1.Rows.Count;
         EditDeposits editDeposits = new EditDeposits();
         editDeposits.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From DepositTypes;");
     }
     else if (label1.Text == "Вклады клиентов банка")
     {
         GetDeposit getDeposit = new GetDeposit();
         getDeposit.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankDeposits;");
     }
 }
예제 #21
0
        private void button4_Click(object sender, EventArgs e)
        {
            int Num;

            if (textBox3.Text.Length != 12)
            {
                MessageBox.Show("Неправильно введены данные!");
                return;
            }
            BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_счета], [Дата открытия], [ФИО], [Размер вклада] FROM BankDeposits Inner join Clients on clients.[№_паспорта]=bankdeposits.[№ паспорта] inner join PhonesBook on PhonesBook.[Номер_телефона]=Clients.[№_телефона] WHERE [№_счета]='" + textBox3.Text + "'");
            if (dataGridView1.Rows[0].Cells[0].Value == null)
            {
                MessageBox.Show("Данные отсутствуют!");
            }
            else
            {
                SaveSecondReport(dataGridView1);
            }
        }
예제 #22
0
        private void button3_Click(object sender, EventArgs e)
        {
            int Num;

            if (textBox2.Text.Length != 6 || !int.TryParse(textBox2.Text, out Num))
            {
                MessageBox.Show("Неправильно введены данные!");
                return;
            }
            BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [№_договора], [Расчётная дата], [ФИО] FROM BankCredits Inner join Clients on clients.[№_паспорта]=bankcredits.[№_паспорта] inner join PhonesBook on PhonesBook.[Номер_телефона]=Clients.[№_телефона] Where LEN([Статус кредита])=7 AND BankCredits.[№_договора]='" + textBox2.Text + "'");
            if (dataGridView1.Rows[0].Cells[0].Value == null)
            {
                MessageBox.Show("Данные отсутствуют!");
            }
            else
            {
                SaveFirstReport(dataGridView1);
            }
        }
예제 #23
0
파일: Cards.cs 프로젝트: khrpnv/Bank
 private void изменитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     edit = true;
     if (label1.Text == "Доступные виды карт")
     {
         Id       = Convert.ToInt32(dataGridView1[0, dataGridView1.CurrentRow.Index].Value);
         CardType = dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString();
         Period   = Convert.ToInt32(dataGridView1[2, dataGridView1.CurrentRow.Index].Value);
         Price1   = Convert.ToDouble(dataGridView1[3, dataGridView1.CurrentRow.Index].Value);
         Price2   = Convert.ToDouble(dataGridView1[4, dataGridView1.CurrentRow.Index].Value);
         Amount   = Convert.ToDouble(dataGridView1[5, dataGridView1.CurrentRow.Index].Value);
         EditCards edt = new EditCards();
         edt.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From CardTypes");
     }
     else if (label1.Text == "Выданные карты")
     {
         MessageBox.Show("Запрещено!");
     }
 }
예제 #24
0
파일: Clients.cs 프로젝트: khrpnv/Bank
 private void изменитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     edit = true;
     if (label1.Text == "Телефонная книга")
     {
         PhoneNumber = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();
         FIO         = dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString();
         EditPhonesBook edt = new EditPhonesBook();
         edt.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From PhonesBook");
     }
     else if (label1.Text == "Информация о клиентах")
     {
         ClientsPassport = dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString();
         BirthDate       = dataGridView1[2, dataGridView1.CurrentRow.Index].Value.ToString();
         Code            = dataGridView1[3, dataGridView1.CurrentRow.Index].Value.ToString();
         Mail            = dataGridView1[4, dataGridView1.CurrentRow.Index].Value.ToString();
         Phone           = dataGridView1[5, dataGridView1.CurrentRow.Index].Value.ToString();
         EditClient edit = new EditClient();
         edit.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [ФИО],[№_паспорта],[Дата рождения],[Идентификационный код],[Электронная почта], [№_телефона] FROM Clients INNER JOIN PhonesBook ON Clients.[№_телефона] = PhonesBook.[Номер_телефона]");
     }
 }
예제 #25
0
파일: Deposits.cs 프로젝트: khrpnv/Bank
 private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (label1.Text == "Доступные виды вкладов")
     {
         Delete delete = new Delete();
         delete.ShowDialog();
         if (delete.DialogResult == DialogResult.OK)
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "DELETE FROM DepositTypes WHERE [Id]='" + dataGridView1[0, dataGridView1.CurrentRow.Index].Value + "';");
         }
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From DepositTypes;");
     }
     else if (label1.Text == "Вклады клиентов банка")
     {
         Delete delete = new Delete();
         delete.ShowDialog();
         if (delete.DialogResult == DialogResult.OK)
         {
             BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "DELETE FROM BankDeposits WHERE [№_счета]='" + dataGridView1[0, dataGridView1.CurrentRow.Index].Value + "';");
         }
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankDeposits;");
     }
 }
예제 #26
0
파일: Deposits.cs 프로젝트: khrpnv/Bank
 private void изменитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     edit = true;
     if (label1.Text == "Доступные виды вкладов")
     {
         DepositId      = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();
         DepositName    = dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString();
         DepositPercent = dataGridView1[2, dataGridView1.CurrentRow.Index].Value.ToString();
         EditDeposits editDeposits = new EditDeposits();
         editDeposits.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From DepositTypes;");
     }
     else if (label1.Text == "Вклады клиентов банка")
     {
         AccountNumber  = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();
         AccountAmount  = Convert.ToDouble(dataGridView1[3, dataGridView1.CurrentRow.Index].Value).ToString();
         PassportNumber = dataGridView1[4, dataGridView1.CurrentRow.Index].Value.ToString();
         AccountType    = dataGridView1[5, dataGridView1.CurrentRow.Index].Value.ToString();
         GetDeposit getDeposit = new GetDeposit();
         getDeposit.ShowDialog();
         BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankDeposits;");
     }
 }
예제 #27
0
파일: Clients.cs 프로젝트: khrpnv/Bank
 private void телефоннаяКнигаToolStripMenuItem_Click(object sender, EventArgs e)
 {
     label1.Text = "Телефонная книга";
     BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From PhonesBook");
 }
예제 #28
0
파일: Clients.cs 프로젝트: khrpnv/Bank
 private void доступныеВидыКартToolStripMenuItem_Click(object sender, EventArgs e)
 {
     label1.Text = "Информация о клиентах";
     BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [ФИО],[№_паспорта],[Дата рождения],[Идентификационный код],[Электронная почта], [№_телефона] FROM Clients INNER JOIN PhonesBook ON Clients.[№_телефона] = PhonesBook.[Номер_телефона]");
 }
예제 #29
0
파일: Clients.cs 프로젝트: khrpnv/Bank
 public Clients()
 {
     InitializeComponent();
     BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "SELECT [ФИО],[№_паспорта],[Дата рождения],[Идентификационный код],[Электронная почта], [№_телефона] FROM Clients INNER JOIN PhonesBook ON Clients.[№_телефона] = PhonesBook.[Номер_телефона]");
 }
예제 #30
0
파일: Credits.cs 프로젝트: khrpnv/Bank
 private void выданныеКартыToolStripMenuItem_Click(object sender, EventArgs e)
 {
     label1.Text = "Выданные кредиты";
     BuildInQueries.SQLQuery(bindingNavigator1, dataGridView1, "Select * From BankCredits");
 }