Ejemplo n.º 1
0
        /// <summary>
        /// 更新页面主题(字典表)
        /// </summary>
        public static void UpdateStorePageTheme(StorePageTheme entity)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("UpdateStorePageTheme");

            cmd.SetParameterValue <StorePageTheme>(entity);
            cmd.ExecuteNonQuery();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 加载页面主题(字典表)
        /// </summary>
        public static StorePageTheme LoadStorePageTheme(int SysNo)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("LoadStorePageTheme");

            cmd.SetParameterValue("@SysNo", SysNo);
            StorePageTheme result = cmd.ExecuteEntity <StorePageTheme>();

            return(result);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 创建页面主题(字典表)
        /// </summary>
        public static int InsertStorePageTheme(StorePageTheme entity)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("InsertStorePageTheme");

            cmd.SetParameterValue <StorePageTheme>(entity);
            cmd.ExecuteNonQuery();
            int sysNo = (int)cmd.GetParameterValue("@SysNo");

            return(sysNo);
        }