/// <summary>
        ///
        /// </summary>
        /// <param name="strAccountGroupName"></param>
        /// <param name="strGroupUnder"></param>
        /// <returns></returns>
        public List <DataTable> AccountGroupSearch(string strAccountGroupName, string strGroupUnder)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spAccountGroup.AccountGroupSearch(strAccountGroupName, strGroupUnder);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
Example #2
0
 /// <summary>
 /// Function to fill master grid
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable      dtblAccountName = new DataTable();
         AccountGroupSP spAccountGroup  = new AccountGroupSP();
         if (cmbGroupUnderSearch.Text.Trim() == string.Empty)
         {
             cmbGroupUnderSearch.Text = "All";
         }
         dtblAccountName            = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text);
         dgvAccountGroup.DataSource = dtblAccountName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("AG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #3
0
        /// <summary>
        /// Function to fill the grid with values from the accountGrroupTable
        /// </summary>

        public void FillDgvAccountGroup()
        {
            try
            {
                AccountGroupSP spAccountGroup = new AccountGroupSP();
                DataTable      dtbl           = new DataTable();
                if (cmbGroupUnderSearch.Text.Trim() == string.Empty)
                {
                    cmbGroupUnderSearch.Text = "All";
                }

                dtbl = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text);
                dgvAccountGroup.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }