예제 #1
0
        public JsonResult EditAuditDealSend(string Id, string repairtime, string content, string url)
        {
            var    reid       = new Guid(Id);
            string statuscode = "1";
            string msg        = "";

            if (ModelState.IsValid)
            {
                try
                {
                    var spurl   = "";
                    var urlname = "";
                    if (!String.IsNullOrEmpty(url))
                    {
                        url     = url.Substring(0, url.Length - 1);
                        urlname = url;
                        string HonorImageUrl = ConfigurationManager.AppSettings["HonorImageUrl"];

                        var sp = url.Split(';');
                        for (int i = 0; i < sp.Length; i++)
                        {
                            spurl += (HonorImageUrl + sp[i]) + ";";
                        }
                        if (spurl.Length > 0)
                        {
                            spurl = spurl.Substring(0, spurl.Length - 1);
                        }
                    }
                    rp.EditDealRepairPeopleSend(reid, repairtime, content, spurl, urlname);
                }
                catch (Exception ex)
                {
                    statuscode = "0";
                    msg        = ex.ToString();
                }
            }

            JsonResult rlt = new JsonResult {
                Data = new { statuscode, msg }
            };

            return(Json(rlt, JsonRequestBehavior.AllowGet));
        }