duan
2024-08-21 22bd5bc1ce2b49284cc2f042c7f4f48619fcf85b
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