Пример #1
0
        public string Save()
        {
            string data = System.Web.HttpContext.Current.Request.Form["data"];
            string isDockControlString = System.Web.HttpContext.Current.Request.Form["isDockControl"];

            long userid = AppInfoBase.UserID;

            bool iret  = proxy.Save(userid, data);
            bool iret2 = true;

            //保存管理对象要刷新左侧面板,所有要同时保存锚定状态
            if (isDockControlString != "" && isDockControlString != null)
            {
                int isDockControl;
                if (isDockControlString == "true")
                {
                    isDockControl = 1;
                }
                else
                {
                    isDockControl = 0;
                }
                iret2 = proxy.SaveDockControl(isDockControl, userid);
            }

            if (iret && iret2)
            {
                return("{status : \"ok\"}");
            }
            else
            {
                return("{status : \"error\"}");
            }
        }
Пример #2
0
        /// <summary>
        /// 保存左侧树是否隐藏标记
        /// </summary>
        public bool SaveDockControll()
        {
            string isDockControlString = System.Web.HttpContext.Current.Request.Params["isDockControl"];
            int    isDockControl       = int.Parse(isDockControlString);
            long   userid = AppInfoBase.UserID;

            return(MenuConfigProxy.SaveDockControl(isDockControl, userid));
        }