public decimal SalesMasterVoucherMax(decimal decVoucherTypeId) { decimal decCompanyId = 0; try { decCompanyId = SPSalesMaster.SalesMasterVoucherMax(decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("CB:9" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decCompanyId); }