Example #1
0
        private void label9_Click(object sender, EventArgs e)
        {
            Installments f = new Installments();

            f.Id1 = Guid.Parse(dataGridView1.SelectedRows[0].Cells["Id"].Value.ToString());
            f.ShowDialog();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            LoanTransactionsService.LoanTransactionsServiceClient a = new LoanTransactionsService.LoanTransactionsServiceClient();
            Guid g = Guid.NewGuid();

            a.InsertLoanTransactions(g, DateTime.Now, Decimal.Parse(Amount.Text), BankFollowUp.Text, true, Data.NationalCode, NationalCode1, true, false);
            MessageBox.Show("وام با موفقیت ایجاد شد");
            InstallementsService.InstallementsServiceClient b = new InstallementsService.InstallementsServiceClient();
            b.AutomaticInstallement(g, int.Parse(countInstallment.Text));
            MessageBox.Show("اقساط با موفقیت ایجاد شد");
            Installments f = new Installments();

            f.Id1 = g;
            f.ShowDialog();
            this.Close();
        }