/// <summary>
        /// 获取一条数据
        /// </summary>
        /// <returns></returns>
        public ActionResult GetDemoByID()
        {
            string UserCode = "";
            if (Request["UserCode"] != null)
            {
                UserCode = Request["UserCode"].ToString();
            }
            BLL.Sys_OperatorBLL pb = new Sys_OperatorBLL();
            Model.Sys_Operator p = new TDTK.PlatForm.MVC4.Model.Sys_Operator();
            p.UserCode = UserCode;
            Model.Sys_Operator pp = new TDTK.PlatForm.MVC4.Model.Sys_Operator();
            if (!string.IsNullOrEmpty(UserCode))
            {
                pp = pb.GetModel(p);
            }
            return Json(pp, JsonRequestBehavior.AllowGet);

        }
        public ActionResult IsForbid()
        {
            //IsForbid PositionCode
            string UserCode = "";
            if (Request["UserCode"] != null)
            {
                UserCode = Request["UserCode"].ToString();
            }
            else
            {
                return Content("no:数据异常!");
            }
            #region 数据禁用、启用
            if (!string.IsNullOrEmpty(UserCode))
            {
                BLL.Sys_OperatorBLL pbl = new Sys_OperatorBLL();
                Model.Sys_Operator p = new TDTK.PlatForm.MVC4.Model.Sys_Operator();
                p.UserCode = UserCode;
                p = pbl.GetModel(p);
                string IsForbid = p.IsForbid;
                if (IsForbid == "1")
                {
                    p.IsForbid = "0";
                }
                else
                {
                    p.IsForbid = "1";
                }
                if (pbl.Update(p))
                {
                    if (IsForbid == "0")
                    {
                        return Content("ok:禁用成功!");
                    }
                    else
                    {
                        return Content("ok:启用成功!");
                    }
                }
                else
                {
                    return Content("no:操作失败!");
                }

            }
            #endregion
            else
            {
                return Content("no:操作有误!");
            }
        }