Ejemplo n.º 1
0
        private void btnEdit_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (DGvTransView.FocusedRowHandle < 0)
            {
                return;
            }

            if (BsfGlobal.FindPermission("Bank-Modify") == false)
            {
                MessageBox.Show("You don't have Rights to Bank-Modify");
                return;
            }

            int           iBranchId = Convert.ToInt32(DGvTransView.GetFocusedRowCellValue("BranchId"));
            frmBankMaster frmBank   = new frmBankMaster();

            //frmBank.Execute(iBranchId, "E");
            //fillData();
            if (frmBank.Execute(iBranchId) == true)
            {
                dt = BankBL.GetBankBranchReg(iBranchId);
                if (dt.Rows.Count > 0)
                {
                    DGvTransView.SetRowCellValue(DGvTransView.FocusedRowHandle, "BankName", dt.Rows[0]["BankName"].ToString());
                    DGvTransView.SetRowCellValue(DGvTransView.FocusedRowHandle, "Branch", dt.Rows[0]["Branch"].ToString());
                    DGvTransView.SetRowCellValue(DGvTransView.FocusedRowHandle, "IFSCCode", dt.Rows[0]["IFSCCode"].ToString());
                    DGvTransView.SetRowCellValue(DGvTransView.FocusedRowHandle, "IntRate", dt.Rows[0]["IntRate"].ToString());
                }
                dt.Dispose();
            }
        }
Ejemplo n.º 2
0
        private void btnBank_Click(object sender, EventArgs e)
        {
            frmBankMaster frm = new frmBankMaster();

            frm.Execute(0);
            FillBranch();
            //frm.Execute(m_iBranchId);
        }
Ejemplo n.º 3
0
        private void btnAdd_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (BsfGlobal.FindPermission("Bank-Add") == false)
            {
                MessageBox.Show("You don't have Rights to Bank-Add");
                return;
            }

            frmBankMaster frmBank = new frmBankMaster();

            if (frmBank.Execute(0) == true)
            {
                fillData();
            }
            //frmBank.Execute(0,"A");
            //fillData();
        }