天天看點

答網友:如何在Sbo Add-on中激活或者禁止系統增加、查找和導航按鈕?

    /// <summary>

        /// 允許或者禁止窗體使用系統查找按鈕

        /// </summary>

        /// <param name="bEnable">允許使用:真;禁止使用:假</param>

        public void EnableSearchMenu(Boolean bEnable)

        {

            oForm.EnableMenu("1281", bEnable);

        }

        /// <summary>

        /// 允許或者禁止窗體使用系統新增按鈕

        public void EnableAddMenu(Boolean bEnable)

            oForm.EnableMenu("1282", bEnable);

        /// 允許或者禁止窗體使用系統導航按鈕

        public void EnableNavigatorMenu(Boolean bEnable)

            oForm.EnableMenu("1283", bEnable);

            oForm.EnableMenu("1284", bEnable);

            oForm.EnableMenu("1285", bEnable);

            oForm.EnableMenu("1286", bEnable);

本文轉自foresun  51CTO部落格,原文連結:http://blog.51cto.com/foresun/49801,如需轉載請自行聯系原作者

繼續閱讀