jquery 图片添加标注 点击标注弹窗

前台:

@model List
@{
    Layout = null;
}



   
   
   
   
   
   
    @Styles.Render("~/Content/ListPage_Css")
    @Styles.Render("~/Content/EditPage_Css")


   
   
   
   
   
   
   
   

    安全区域
   
    @Scripts.Render("~/bundles/ListPage_JS")
   

           


               
           

      
   


 

后台:

 

  ///


        /// Ajax获取标注
        ///

        ///

        public string BiaoZhuList()
        {
            Expression> whereLamdba = null;
            int s = Enum是否.否.GetHashCode();
            whereLamdba = whereExpression.And(whereLamdba, x => x.ShanChuBiaoJi == s);
            List list_bianzhu = TBS_AnQuanBiaoZhuService.FindList(whereLamdba).ToList();
            return JsonHelp.SerializeObject(list_bianzhu);
        }

 

#region 展示某个标注信息
        ///


        /// 某个标注信息
        ///

        ///
        ///
        public string PartialAction(Guid id)
        {
            StringBuilder str = new StringBuilder();
            var bumen = TBS_AnQuanBiaoZhuService.GetEntity(id);
            if (bumen != null)
            {
                str.Append("
");
                str.Append("

名 称:" + bumen.MingCheng + "

");
                str.Append("

负责人:" + bumen.FuZeRen + "

");
                str.Append("

备 注:" + bumen.Remark + "

");
                str.Append("
");
            }
            return str.ToString();
        }
        #endregion

 


        public ActionResult QuYuEdit(Guid? id, string msg = "")
        {
            ViewData["result"] = msg;
            Expression> whereLamdba = null;

            Action> orderBy = query => query.Desc(j => j.XiuGaiShiJian);
            List list = TBS_AnQuanBiaoZhuService.GetListAll().OrderByDescending(j => j.XiuGaiShiJian).ToList();
            int s = Enum是否.否.GetHashCode();
            whereLamdba = whereExpression.And(whereLamdba, x => x.ShanChuBiaoJi == s && x.ID_Type == 3);
            List list_logo = Service.FindList(whereLamdba).ToList();
            if (list_logo.Count > 0)
            {
                ViewBag.imgsrcList = list_logo[0].LogoUrl;
            }
            else
            {
                ViewBag.imgsrcList = "";
            }

            return View(list);
        }

 

  [HttpPost]
        public string SaveBiaoZhu(string[] id, string[] left, string[] top)
        {
            TBS_AnQuanBiaoZhu tbs_gerenyonghu = null;
            try
            {
                for (int i = 0; i < id.Length; i++)
                {
                    tbs_gerenyonghu = TBS_AnQuanBiaoZhuService.GetEntity(Guid.Parse(id[i]));
                    if (tbs_gerenyonghu != null)
                    {
                        tbs_gerenyonghu.Lx = left[i];
                        tbs_gerenyonghu.Ly = top[i];
                        TBS_AnQuanBiaoZhuService.Update(tbs_gerenyonghu);
                    }
                }
            }
            catch (Exception ex)
            {

                return ex.Message;
            }


            return "";
        }

 

你可能感兴趣的:(Js)