Beispiel #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\"}");
            }
        }
Beispiel #2
0
        public string Save()
        {
            string data = System.Web.HttpContext.Current.Request.Form["data"];
            //string userid = System.Web.HttpContext.Current.Request.Form["userid"];
            long userid = AppInfoBase.UserID;
            bool iret   = proxy.Save(userid.ToString(), data);

            if (iret)
            {
                return("{status : \"ok\"}");
            }
            else
            {
                return("{status : \"error\"}");
            }
        }