Ejemplo n.º 1
0
        /// <summary>
        /// Function to check existance of account group in DataBase
        /// </summary>
        /// <returns></returns>
        public bool CheckExistanceOfGroupName()
        {
            bool isExist = false;

            try
            {
                //Check whether a group name already exist in DB
                AccountGroupSP spAccountGroup = new AccountGroupSP();
                isExist = spAccountGroup.AccountGroupCheckExistence(txtAccountGroupName.Text.Trim(), 0);
                if (isExist)
                {
                    if (txtAccountGroupName.Text.ToLower() == strAccountGroupName.ToLower())
                    {
                        isExist = false;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("AG5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(isExist);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Function to check existance of account group in DataBase
        /// </summary>
        /// <returns></returns>
        public bool CheckExistanceOfGroupName()
        {
            bool isExist = false;

            try
            {
                //Check whether a group name already exist in DB
                AccountGroupSP spAccountGroup = new AccountGroupSP();
                isExist = spAccountGroup.AccountGroupCheckExistence(txtAccountGroupName.Text.Trim(), 0);
                if (isExist)
                {
                    if (txtAccountGroupName.Text.ToLower() == strAccountGroupName.ToLower())
                    {
                        isExist = false;
                    }
                }
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "AG5:" + ex.Message;
            }
            return(isExist);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Function to check existance of account group in DataBase
 /// </summary>
 /// <returns></returns>
 public bool CheckExistanceOfGroupName()
 {
     bool isExist = false;
     try
     {
         //Check whether a group name already exist in DB
         AccountGroupSP spAccountGroup = new AccountGroupSP();
         isExist = spAccountGroup.AccountGroupCheckExistence(txtAccountGroupName.Text.Trim(), 0);
         if (isExist)
         {
             if (txtAccountGroupName.Text.ToLower() == strAccountGroupName.ToLower())
             {
                 isExist = false;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("AG5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return isExist;
 }