private void Save() { WorkflowNodeInstanceDAL insdal = new WorkflowNodeInstanceDAL(); AjaxResult result = new AjaxResult(); result.IsSuccess = false; result.Msg = "保存失败!"; var planid = Guid.Parse(Request.Form["id"]); try { var instance = insdal.GetNodeInstance(User.ID, (int)TWFTypeEnum.FlightPlan, planid); if (instance != null) { if (insdal.UpdateComment(instance.ID, Request.Form["Comments"] ?? "")) { result.IsSuccess = true; result.Msg = "保存成功!"; } } } catch (Exception) { } Response.Clear(); Response.Write(result.ToJsonString()); Response.ContentType = "application/json"; Response.End(); }