/// <summary>
        /// Function to check settings of ProductCode generation
        /// </summary>
        /// <returns></returns>
        public bool AutomaticProductCode()
        {

            try
            {
                SettingsSP spSetting = new SettingsSP();
                isAuto = spSetting.AutomaticProductCodeGeneration();

            }
            catch (Exception ex)
            {
                MessageBox.Show("PC:16" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return isAuto;
        }