Exemplo n.º 1
0
        public DataInit()
        {
            TabsBLL.updateSystem_updatetabs();
            RolesBLL.init();
            UsersBLL.InitUsers(null);

            TabsBLL.updateSystem_updatetabs();
            //初始化广告位
            AdPositionBLL.init();
            //商品分类初始化
            //ProductTypeBLL.init();
            memberBLL.init();
        }
Exemplo n.º 2
0
        public static void init()
        {
            //初始化广告位
            AdPositionInfo adinfo = new AdPositionInfo()
            {
                name = "首页幻灯片", width = 480, height = 160, filetype = "", call_index = "index_hdp"
            };

            AdPositionBLL.Add(adinfo);
            adinfo = new AdPositionInfo()
            {
                name = "首页内容栏1张", width = 180, height = 180, filetype = "", call_index = "index_ad1"
            };
            AdPositionBLL.Add(adinfo);
            adinfo = new AdPositionInfo()
            {
                name = "首页内容栏2张", width = 180, height = 90, filetype = "", call_index = "index_ad2"
            };
            AdPositionBLL.Add(adinfo);
            //==========================商城
            //adinfo = new AdPositionInfo() { name = "商城首页幻灯片", width = 480, height = 160, filetype = "", call_index = "mall_hdp" };
            //AdPositionBLL.Add(adinfo);
            //==========================
        }