public decimal AccountLedgerIdGetByName(string strLedgerName) { decimal decLedgerId = 0; try { decLedgerId = spAccountLedger.AccountLedgerIdGetByName(strLedgerName); } catch (Exception ex) { MessageBox.Show("AL18:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decLedgerId); }