/// <summary> /// Function to get Declaration And Heading based on parameter /// </summary> /// <param name="decVoucherTypeId"></param> /// <returns></returns> public DataTable DeclarationAndHeadingGetByVoucherTypeId(decimal decVoucherTypeId) { DataTable dtbl = new DataTable(); List <DataTable> listObj = new List <DataTable>(); try { listObj = spVoucherType.DeclarationAndHeadingGetByVoucherTypeId(decVoucherTypeId); dtbl = listObj[0]; } catch (Exception ex) { MessageBox.Show("VT8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(dtbl); }