From f71a02229c1ba00fbecaead19256593ffb052753 Mon Sep 17 00:00:00 2001 From: duan <dante@isaints.net> Date: 星期三, 21 八月 2024 17:18:40 +0800 Subject: [PATCH] 1 --- src/DIXWeb.Web/Areas/GlobalM/Controllers/Workflow/WorkListController.cs | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/src/DIXWeb.Web/Areas/GlobalM/Controllers/Workflow/WorkListController.cs b/src/DIXWeb.Web/Areas/GlobalM/Controllers/Workflow/WorkListController.cs index de542eb..3ee3e98 100644 --- a/src/DIXWeb.Web/Areas/GlobalM/Controllers/Workflow/WorkListController.cs +++ b/src/DIXWeb.Web/Areas/GlobalM/Controllers/Workflow/WorkListController.cs @@ -9,6 +9,7 @@ using System.IO; using System.Web; using System.Web.Mvc; +using System.Web.Script.Serialization; namespace DIXWeb.Web { @@ -137,7 +138,7 @@ { UserInfo ui = Util.SessionHelper.Session["UserInfo"] as UserInfo; Receive receive = this._workListBusiness.GetMyNeedDealt(Code, ui.Id, page, rows); - return Json(receive); + return GetResultMax(receive); } public ActionResult ApproveAgree(int[] BillflowIdArr, string Remark,string AppendixUrl = "") { @@ -158,6 +159,27 @@ } return Json(record); } + + public ActionResult ApproveAgreeAll(string Remark, string AppendixUrl = "") + { + Receive record = null; + try + { + DateTime now = DateTime.Now; + UserInfo ui = Util.SessionHelper.Session["UserInfo"] as UserInfo; + record = this._workListBusiness.ApproveAgreeAll(ui.Id, Remark, AppendixUrl); + } + catch (Exception ex) + { + record = new Receive() + { + Code = 500, + Message = ex.Message + }; + } + return Json(record); + } + public ActionResult ApproveRefuse(int[] BillflowIdArr, string Remark) { Receive record = null; @@ -323,6 +345,17 @@ } return Json(receive); } + + private ContentResult GetResultMax(Receive receive) { + JavaScriptSerializer serializer = new JavaScriptSerializer(); + serializer.MaxJsonLength = Int32.MaxValue; + ContentResult result = new ContentResult + { + Content = serializer.Serialize(receive), + ContentType = "application/json" + }; + return result; + } } } //5105955045 张小东 5105955047 \ No newline at end of file -- Gitblit v1.8.0