From 6a14b6ea1c240e9b52380c6447904cb755d5d842 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 14 Feb 2023 15:57:47 +0800 Subject: [PATCH] =?UTF-8?q?1.=20Post=E5=82=B3=E9=80=81=E9=95=B7=E5=BA=A6?= =?UTF-8?q?=E8=88=87=E7=AD=86=E6=95=B8=E6=94=BE=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Startup.cs | 14 ++++++++++++++ AMESCoreStudio.Web/Views/PCS/PCS003.cshtml | 6 ++---- AMESCoreStudio.WebApi/Startup.cs | 14 ++++++++++++++ 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/AMESCoreStudio.Web/Startup.cs b/AMESCoreStudio.Web/Startup.cs index 7a8b2cab..2cf35026 100644 --- a/AMESCoreStudio.Web/Startup.cs +++ b/AMESCoreStudio.Web/Startup.cs @@ -15,6 +15,7 @@ using System.Globalization; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.AspNetCore.Localization; using AMESCoreStudio.Web.Code; +using Microsoft.AspNetCore.Http.Features; namespace AMESCoreStudio.Web { @@ -33,6 +34,19 @@ namespace AMESCoreStudio.Web // 擴充JSON services.AddControllers().AddNewtonsoftJson(); + // FormPost數量上限 + services.Configure(options => + { + options.ValueLengthLimit = 209715200; + options.ValueCountLimit = int.MaxValue; + }); + + // ModelBinding筆數上限 + services.AddMvc(options => + { + options.MaxModelBindingCollectionSize = int.MaxValue; + }); + // 檔案目錄 //Add our IFileServerProvider implementation as a singleton //services.AddSingleton(new FileServerProvider( diff --git a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml index 203c48ff..8343fff0 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml @@ -1230,7 +1230,6 @@ return; } - console.log(wipShcDate); if (lotNo == '' || !lotNo) { lotNo = getLotNo(); @@ -1431,7 +1430,6 @@ var Path = $(obj).closest("TR").find('span[id*=Filepath]').text(); var FileName = $(obj).closest("TR").find('span[id*=FileName]').text(); filePath = `/PCS/FileDownload?Path=${Path}&FileName=${FileName}`; - console.log(filePath); $(obj).attr("href", filePath); }; @@ -1823,7 +1821,7 @@ if (result.success) { let No = 0; var Unit = getFactoryUnitByWipNoList(); - var item = getItemsList(); + var Kpitem = getItemsList(); $("#KPTable").find("tr:not(:first)").remove(); $.each(result.data, function (index, item) { var FactoryUnit = Unit; @@ -1834,7 +1832,7 @@ } }); Select += ''; - var Items = item; + var Items = Kpitem; var SelectKPNo = "