Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Power("supplier_servicepanel_list", "客服面板"))
            {
                WindowNoPower();
            }
            model = B_Lebi_Supplier.GetModel(CurrentSupplier.id);
            if (model == null)
            {
                model = new Lebi_Supplier();
            }
            string con = model.ServicePanel;

            sp = B_ServicePanel.GetModel(con);

            //===================================
            //这么取数据
            //string con = "[{\"x\":\"111\",\"y\":\"112\".....}]";
            //Shop.Model.ServicePanel sp = B_ServicePanel.GetModel(con);

            //这个sp里面就有你要的数据了
            //例如   sp.x


            //保存的话,可以把以上的sp直接转化为json格式的字符串
            //如
            //Model.ServicePanel sp = new Model.ServicePanel();
            //sp.x = "";
            //sp.y = "";
            //sp.theme = "";

            //string json = B_ServicePanel.ToJson(sp);
            //=====================================
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("servicepanel_config", "编辑客服面板配置"))
            {
                WindowNoPower();
            }
            B_ServicePanel config = new B_ServicePanel();

            model = ShopCache.GetBaseConfig();

            string con = model.ServicePanel;

            sp = B_ServicePanel.GetModel(con);

            //===================================
            //这么取数据
            //string con = "[{\"x\":\"111\",\"y\":\"112\".....}]";
            //Shop.Model.ServicePanel sp = B_ServicePanel.GetModel(con);

            //这个sp里面就有你要的数据了
            //例如   sp.x


            //保存的话,可以把以上的sp直接转化为json格式的字符串
            //如
            //Model.ServicePanel sp = new Model.ServicePanel();
            //sp.x = "";
            //sp.y = "";
            //sp.theme = "";

            //string json = B_ServicePanel.ToJson(sp);
            //=====================================
        }
Esempio n. 3
0
        public ShopPage()
        {
            pageindex = RequestTool.RequestInt("pageindex", 0);
            string servicepannelcon = SYS.ServicePanel;

            servicepannel     = B_ServicePanel.GetModel(servicepannelcon);
            CurrentUser_      = EX_User.CurrentUser();
            CurrentUserLevel_ = B_Lebi_UserLevel.GetModel("id=" + CurrentUser_.UserLevel_id + "");

            if (CurrentUserLevel_ == null)
            {
                CurrentUserLevel_ = B_Lebi_UserLevel.GetList("Grade=0", "Grade asc").FirstOrDefault();
                if (CurrentUserLevel_ == null)
                {
                    CurrentUserLevel_ = new Lebi_UserLevel();
                    Log.Add("会员分组有误", "User_id=" + CurrentUser_.id.ToString());
                }
            }
            DT_id     = GetDT();
            Currencys = B_Lebi_Currency.GetList("1=1", "Sort desc");
        }