示例#1
0
        private void btn_entekhabeCodeBank_Click(object sender, RoutedEventArgs e)
        {
            // check bank

            var bc = ak.Funds.ToList();

            if (bc.Count != 0)
            {
                frm_entekhabe_bank eb = new frm_entekhabe_bank();
                eb.ShowDialog();


                code_bank = Class.Variable.Variables.idFunds;
                Guid        gg = Guid.Parse(code_bank);
                List <Fund> get_all_from_funds_table = ak.Funds.Where(i => i.ID == gg).ToList();
                bank_name    = get_all_from_funds_table[0].FBank;
                shomare_bank = get_all_from_funds_table[0].FBankNO;

                txt_nameBank.Text = bank_name;
                txt_codeBank.Text = shomare_bank;
            }
            else
            {
                MessageBox.Show("رکوردی در بانک وجود ندارد");
            }
        }
        private void txt_entekhabe_sandogh_Click(object sender, RoutedEventArgs e)
        {
            pass_data.get_fund = "1";
            frm_entekhabe_bank eb = new frm_entekhabe_bank();

            eb.ShowDialog();
            pass_data.get_fund = "0";

            if (Class.Variable.Variables.idFunds != "")
            {
                ID_sandogh       = Guid.Parse(Class.Variable.Variables.idFunds);
                txt_sandogh.Text = get_bank_number(ID_sandogh);
                sandogh_selected = 1;
            }
        }
        private void btn_entekhabe_banke_hesab_Click(object sender, RoutedEventArgs e)
        {
            pass_data.get_bank = "1";
            frm_entekhabe_bank eb = new frm_entekhabe_bank();

            eb.ShowDialog();
            pass_data.get_bank = "0";

            if (Class.Variable.Variables.idFunds != "")
            {
                ID_bank = Guid.Parse(Class.Variable.Variables.idFunds);
                txt_banke_hesab.Text = get_bank_name(ID_bank);
                bank_name            = get_bank_name(ID_bank);
                bank_selected        = 1;
            }
        }
示例#4
0
        private void btn_entekhabeCodeBank_Click(object sender, RoutedEventArgs e)
        {
            frm_entekhabe_bank eb = new frm_entekhabe_bank();

            eb.ShowDialog();

            code_bank = Class.Variable.Variables.idFunds;
            Guid        gg = Guid.Parse(code_bank);
            List <Fund> get_all_from_funds_table = ak.Funds.Where(i => i.ID == gg).ToList();

            bank_name    = get_all_from_funds_table[0].FBank;
            shomare_bank = get_all_from_funds_table[0].FBankNO;

            txt_nameBank.Text = bank_name;
            txt_codeBank.Text = shomare_bank;
        }