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 = "