diff --git a/AMESCoreStudio.Web/AMESCoreStudio.Web.csproj.user b/AMESCoreStudio.Web/AMESCoreStudio.Web.csproj.user index 350985af..6d9a54bb 100644 --- a/AMESCoreStudio.Web/AMESCoreStudio.Web.csproj.user +++ b/AMESCoreStudio.Web/AMESCoreStudio.Web.csproj.user @@ -11,5 +11,6 @@ MvcControllerEmptyScaffolder root/Common/MVC/Controller true + C:\Users\USER\Desktop\MES\AMES0916\AMESCoreStudio.Web\Properties\PublishProfiles\FolderProfile.pubxml \ No newline at end of file diff --git a/AMESCoreStudio.Web/Models/LoginViewModel.cs b/AMESCoreStudio.Web/Models/LoginViewModel.cs index f46d9bf3..0945dbd6 100644 --- a/AMESCoreStudio.Web/Models/LoginViewModel.cs +++ b/AMESCoreStudio.Web/Models/LoginViewModel.cs @@ -12,9 +12,9 @@ namespace AMESCoreStudio.Web public class LoginViewModel { [Required] - public string LoginNo { get; set; } + public string LoginNo { get; set; } = "admin"; [Required] - public string LoginPassword { get; set; } + public string LoginPassword { get; set; }="admin"; public string Language { get; set; } } diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll index 7dd907b5..98ed8996 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb index 79a660a7..53f848c8 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.deps.json b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.deps.json index 19ed2a0a..c25eaa43 100644 --- a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.deps.json +++ b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.deps.json @@ -40,6 +40,7 @@ "Microsoft.VisualStudio.Web.CodeGeneration.Design": "3.1.5", "System.CodeDom": "6.0.0", "System.Data.SqlClient": "4.8.3", + "System.IO.Packaging": "5.0.0", "System.Text.Encoding.CodePages": "6.0.0", "WebApiClient.JIT": "1.1.4", "Microsoft.AspNetCore.Antiforgery": "3.1.0.0", @@ -403,7 +404,7 @@ "DocumentFormat.OpenXml/2.7.2": { "dependencies": { "NETStandard.Library": "1.6.1", - "System.IO.Packaging": "4.0.0" + "System.IO.Packaging": "5.0.0" }, "runtime": { "lib/netstandard1.3/DocumentFormat.OpenXml.dll": { @@ -861,15 +862,15 @@ "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll": {} } }, - "Microsoft.EntityFrameworkCore.SqlServer/3.1.23": { + "Microsoft.EntityFrameworkCore.SqlServer/3.1.30": { "dependencies": { "Microsoft.Data.SqlClient": "1.1.3", "Microsoft.EntityFrameworkCore.Relational": "5.0.1" }, "runtime": { "lib/netstandard2.0/Microsoft.EntityFrameworkCore.SqlServer.dll": { - "assemblyVersion": "3.1.23.0", - "fileVersion": "3.100.2322.12304" + "assemblyVersion": "3.1.30.0", + "fileVersion": "3.100.3022.47610" } }, "compile": { @@ -2082,29 +2083,15 @@ "System.Runtime": "4.3.0" } }, - "System.IO.Packaging/4.0.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - }, + "System.IO.Packaging/5.0.0": { "runtime": { - "lib/netstandard1.3/System.IO.Packaging.dll": { - "assemblyVersion": "4.0.0.0", - "fileVersion": "1.0.24212.1" + "lib/netstandard2.0/System.IO.Packaging.dll": { + "assemblyVersion": "5.0.0.0", + "fileVersion": "5.0.20.51904" } }, "compile": { - "ref/netstandard1.3/System.IO.Packaging.dll": {} + "ref/netstandard2.0/System.IO.Packaging.dll": {} } }, "System.Linq/4.3.0": { @@ -2802,7 +2789,7 @@ "Microsoft.AspNetCore.Mvc.NewtonsoftJson": "3.1.20", "Microsoft.EntityFrameworkCore": "5.0.8", "Microsoft.EntityFrameworkCore.Proxies": "5.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "3.1.23", + "Microsoft.EntityFrameworkCore.SqlServer": "3.1.30", "Microsoft.VisualStudio.Web.CodeGeneration.Design": "3.1.5", "Oracle.EntityFrameworkCore": "5.21.1", "Swashbuckle.AspNetCore": "6.1.4" @@ -4613,12 +4600,12 @@ "path": "microsoft.entityframeworkcore.relational/5.0.1", "hashPath": "microsoft.entityframeworkcore.relational.5.0.1.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.SqlServer/3.1.23": { + "Microsoft.EntityFrameworkCore.SqlServer/3.1.30": { "type": "package", "serviceable": true, - "sha512": "sha512-jfTL7M74a1TCrg6+BgUnWDz6gd2ouXeAqJO84ILb1AUUQVVDScJFJpAjJcY7AqkAW1VinL4TYfSiNSfX1AhUsg==", - "path": "microsoft.entityframeworkcore.sqlserver/3.1.23", - "hashPath": "microsoft.entityframeworkcore.sqlserver.3.1.23.nupkg.sha512" + "sha512": "sha512-ylH8ha+qNDxPY5swU700ChdvrkC4CDnSif7GW8we9MNwKULsqnC0C/ufOHtIvIUHF+fFdM4GQM32HwxvBzVbLw==", + "path": "microsoft.entityframeworkcore.sqlserver/3.1.30", + "hashPath": "microsoft.entityframeworkcore.sqlserver.3.1.30.nupkg.sha512" }, "Microsoft.Extensions.ApiDescription.Server/3.0.0": { "type": "package", @@ -5362,12 +5349,12 @@ "path": "system.io.filesystem.primitives/4.3.0", "hashPath": "system.io.filesystem.primitives.4.3.0.nupkg.sha512" }, - "System.IO.Packaging/4.0.0": { + "System.IO.Packaging/5.0.0": { "type": "package", "serviceable": true, - "sha512": "sha512-taPqPWcAj/h6e/c+zIWIVe1ddJtpV6acC6g9GpolxUcIwUaH6zc0ZbFS8kkVzBkuWv76pMalKeTzfmHtfT1pXA==", - "path": "system.io.packaging/4.0.0", - "hashPath": "system.io.packaging.4.0.0.nupkg.sha512" + "sha512": "sha512-ebfUwKsgZF4HTwaRUj67SrJdsM4O62Fxsd6u1bSk3MNgvU8yjyfEK0xQmUFUqOYJi1IcL4HENoccl4SKVPndYw==", + "path": "system.io.packaging/5.0.0", + "hashPath": "system.io.packaging.5.0.0.nupkg.sha512" }, "System.Linq/4.3.0": { "type": "package", diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll index e0c65212..f2c42d45 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.exe b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.exe index 4d9bdef4..54632062 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.exe and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.exe differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb index 0f1de341..8cf62526 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll index 5c5e5ee0..ad7c17cb 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb index 3a6d9fef..522a7a0a 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json index 399fa13a..974eb8d6 100644 --- a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json +++ b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json @@ -36,8 +36,8 @@ "Microsoft.EntityFrameworkCore": "5.0.8", "Microsoft.EntityFrameworkCore.Design": "5.0.8", "Microsoft.EntityFrameworkCore.Proxies": "5.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "3.1.23", - "Microsoft.EntityFrameworkCore.Tools": "3.1.23", + "Microsoft.EntityFrameworkCore.SqlServer": "3.1.30", + "Microsoft.EntityFrameworkCore.Tools": "3.1.30", "Microsoft.VisualStudio.Web.CodeGeneration.Design": "3.1.5", "Oracle.EntityFrameworkCore": "5.21.1", "Swashbuckle.AspNetCore": "6.1.4", @@ -766,22 +766,22 @@ "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll": {} } }, - "Microsoft.EntityFrameworkCore.SqlServer/3.1.23": { + "Microsoft.EntityFrameworkCore.SqlServer/3.1.30": { "dependencies": { "Microsoft.Data.SqlClient": "1.1.3", "Microsoft.EntityFrameworkCore.Relational": "5.0.8" }, "runtime": { "lib/netstandard2.0/Microsoft.EntityFrameworkCore.SqlServer.dll": { - "assemblyVersion": "3.1.23.0", - "fileVersion": "3.100.2322.12304" + "assemblyVersion": "3.1.30.0", + "fileVersion": "3.100.3022.47610" } }, "compile": { "lib/netstandard2.0/Microsoft.EntityFrameworkCore.SqlServer.dll": {} } }, - "Microsoft.EntityFrameworkCore.Tools/3.1.23": { + "Microsoft.EntityFrameworkCore.Tools/3.1.30": { "dependencies": { "Microsoft.EntityFrameworkCore.Design": "5.0.8" } @@ -4274,19 +4274,19 @@ "path": "microsoft.entityframeworkcore.relational/5.0.8", "hashPath": "microsoft.entityframeworkcore.relational.5.0.8.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.SqlServer/3.1.23": { + "Microsoft.EntityFrameworkCore.SqlServer/3.1.30": { "type": "package", "serviceable": true, - "sha512": "sha512-jfTL7M74a1TCrg6+BgUnWDz6gd2ouXeAqJO84ILb1AUUQVVDScJFJpAjJcY7AqkAW1VinL4TYfSiNSfX1AhUsg==", - "path": "microsoft.entityframeworkcore.sqlserver/3.1.23", - "hashPath": "microsoft.entityframeworkcore.sqlserver.3.1.23.nupkg.sha512" + "sha512": "sha512-ylH8ha+qNDxPY5swU700ChdvrkC4CDnSif7GW8we9MNwKULsqnC0C/ufOHtIvIUHF+fFdM4GQM32HwxvBzVbLw==", + "path": "microsoft.entityframeworkcore.sqlserver/3.1.30", + "hashPath": "microsoft.entityframeworkcore.sqlserver.3.1.30.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.Tools/3.1.23": { + "Microsoft.EntityFrameworkCore.Tools/3.1.30": { "type": "package", "serviceable": true, - "sha512": "sha512-1RRy8gGH4x7gFH6S6WqTXMfN3wyhjUWsfqglzl4wI9of3p9QV55Y2tikoSY7G1NbFWFfvCfiaTFZz2P1BAJcTQ==", - "path": "microsoft.entityframeworkcore.tools/3.1.23", - "hashPath": "microsoft.entityframeworkcore.tools.3.1.23.nupkg.sha512" + "sha512": "sha512-8rLsh7pjMhthwRDnwrwmwSMALhLSi+tOcCxSCdPH0CpoJLijb3GhZJQMpkjaUnjjUf64DDPW9COhRfzzfHutEw==", + "path": "microsoft.entityframeworkcore.tools/3.1.30", + "hashPath": "microsoft.entityframeworkcore.tools.3.1.30.nupkg.sha512" }, "Microsoft.Extensions.ApiDescription.Server/3.0.0": { "type": "package", diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll index 0eb7ee80..3f5dbe64 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe index 76055799..87c4046e 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb index 27b48985..d30c0247 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml index eeed1eb3..f1699ddf 100644 --- a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml +++ b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml @@ -179,6 +179,18 @@ 工單ID + + + 條碼批次查詢 + + 工單號碼 + 料號 + 生產單位 + 線別 + 頁數 + 筆數 + + 更新條碼资料 @@ -243,7 +255,7 @@ 用barcodeID獲取資料 By生產履歷 - barcodeID + id @@ -335,6 +347,18 @@ barcodeID + + + + + 工單號料 + 內部條碼 + 組件編號 + 內部條碼List + 頁數 + 筆數 + + 用barcode獲取資料 @@ -372,6 +396,13 @@ + + + 新增條碼资料 + + + + 删除條碼资料 @@ -429,19 +460,98 @@ + + + 條碼報廢轉出資料檔 + + + + + + + + + + + 獲取全部報廢轉出資料 + + + + + + 根據ID獲取單一報廢轉出資料 + + + + + + + + + + + + + + 報廢資料查詢 + + + + + + + + + + + + + 轉出資料查詢 + + + + + + + + + + + + + 根據ID修改單一筆報廢轉出資料 + + + + + + + + 新增報廢轉出資料 + + + + + + + 根據ID刪除單一筆報廢轉出資料 + + + + 條碼過站資料檔 - + 內務條碼ID 工單ID - 流程站別ID - + 流程站別ID + 流程ID @@ -457,12 +567,18 @@ + + + 查詢工單站別條碼資料 By 條碼批次查詢 + + + 查詢 已過站數量 工單ID - 站別ID + 站別ID @@ -1123,6 +1239,18 @@ + + + 異常工時查詢QuerybyWHS009 + + + + + + + + + FQC條碼資料檔 @@ -1147,6 +1275,12 @@ + + + FQC細項資料(全部) + + + 新增檢驗單明細資料檔 @@ -1204,6 +1338,13 @@ + + + 更新入庫單 抽驗係數標準 + + + + 新增入庫單 @@ -1239,6 +1380,49 @@ FQC檢驗結果ID + + + FQC報表自動派送維護 + + + + + 建構式 + + + + + + FQC報表自動派送維護 by Table + + 料號 + 檢驗結果 + 狀態 + 頁數 + 筆數 + + + + + 更新FQC 報表自動派送維護 + + + + + + + 新增FQC 報表自動派送維護 + + + + + + + 刪除FQC 報表自動派送維護 + + ID + + 檢驗结果維護資料檔 @@ -1615,7 +1799,7 @@ - + 用FormID获取该巡檢結果资料 @@ -1628,7 +1812,12 @@ v - + + + 用FormID获取该巡檢結果资料 + + + @@ -1909,6 +2098,13 @@ 料號 + + + 料號基本資料檔 to ItemNO + + 料號 + + 新增料號基本資料檔 @@ -1981,6 +2177,13 @@ + + + 刪除料號KP By 料號ID + + 料號ID + + 料號治具資訊資料檔 @@ -2334,6 +2537,15 @@ + + + + + + + + + @@ -2521,7 +2733,7 @@ - + 維修資料統計 @@ -2534,6 +2746,7 @@ + @@ -2550,7 +2763,7 @@ - + 維修資料統計by不良代碼 @@ -2563,9 +2776,10 @@ + - + 維修資料統計by維修代碼 @@ -2578,9 +2792,10 @@ + - + 維修資料統計by維修位置 @@ -2593,9 +2808,10 @@ + - + 維修資料統計by責任單位 @@ -2608,6 +2824,7 @@ + @@ -2618,6 +2835,20 @@ + + + + + + + + + + + + + + @@ -2686,6 +2917,93 @@ + + + 工作群組維護 + + + + + + + + + + + + + + + + + + + + + + + + By 廠別代碼 查詢 + + 廠別代碼 + + + + + + + + + + + + + 新增资料 + + + + + + + + + + + + + + 設備上傳圖檔資料表 + + + + + 設備上傳圖檔資料表 By OutfitID + + OutfitID + + + + + 更新上傳圖檔資料 + + + + + + + + 新增 設備上傳圖檔資料表 + + + + + + + 刪除 設備上上傳圖檔資料表 + + + + 工作群組維護 @@ -3078,6 +3396,17 @@ 抽驗數量 + + + 查詢抽驗標準維護 + + 抽驗係數ID + AQL類型 + 批量 + 頁數 + + + 更新抽驗標準 @@ -3283,6 +3612,13 @@ + + + + + + + @@ -3566,10 +3902,12 @@ - + - 查詢出貨序號編碼規則資料檔 + + + @@ -3579,11 +3917,13 @@ SerialRuleID - + - 料號基本資料檔 to ItemNo + - ItemNo + + + @@ -3630,6 +3970,13 @@ + + + 删除料號基本資料檔 + + + + 外包機種資料維護 @@ -3690,6 +4037,18 @@ 錫膏基本資料檔 + + + 錫膏資料查詢 + + 錫膏編號 + PCB板號 + 正背面 + 狀態 + 頁數 + 筆數 + + 更新錫膏基本資料檔 @@ -3878,7 +4237,14 @@ 鋼板基本資料檔 - + + + By 鋼板編號 查詢 + + 鋼板編號 + + + 鋼板資料查詢 @@ -3909,6 +4275,15 @@ 鋼板量測記錄資料檔 + + + 鋼板編號紀錄 By 鋼板編號 + + + + + + 更新鋼板量測記錄資料檔 @@ -3916,11 +4291,11 @@ - + 新增鋼板量測記錄資料檔 - + @@ -3980,6 +4355,65 @@ + + + 解除綁定出貨序號箱號資料檔 + + + + + 更新解除綁定出貨序號箱號資料檔 + + + + + + + 新增解除綁定出貨序號箱號資料檔 + + + + + + yiru add + + 檢驗單明細資料檔 + + + + + 完工入庫資料 + + + + + + 查詢所有已入庫資料 + + + + + + 查詢完工入庫資料 By 送驗單號、序號 + + 入庫單號 + 序號 + + + + + 修改完工入庫資料 + + + + + + + 新增完入工庫資料檔 + + + + 工單警報資料 @@ -3997,6 +4431,16 @@ + + + 根據警報類型ID查詢警報資料 + + + + + + + 根據警報類型ID查詢警報資料 @@ -4255,6 +4699,13 @@ + + + 自動裝箱 + + BarcodeNO + + 工單資訊確認 @@ -4429,6 +4880,12 @@ + + + 查詢工單資料QRS014 + + + 查詢工單資料 by SelectParameter @@ -4814,7 +5271,7 @@ 基本查詢 工單ID - 流程ID + 流程ID @@ -4822,7 +5279,7 @@ 基本查詢 工單ID - 流程ID + 流程ID @@ -4839,6 +5296,13 @@ + + + + + + + 工單狀態維護 @@ -4938,6 +5402,60 @@ + + + 生產工時報工資料 + + + + + + + + + + + 獲取全部生產報工工時資料 + + + + + + 查詢生產工時報工資料 + + + + + + 根據ID查詢某一筆生產報工工時 + + + + + + + + + 修改生產工時報工資料 + + + + + + + + 新增生產工時報工資料 + + + + + + + + + + + 工作群組維護 @@ -5236,7 +5754,7 @@ BurnInfo-燒入資料檔 - + @@ -5289,6 +5807,13 @@ 內部序號 Success:true or false + + + 查詢序號是否有在該工單 條碼區間內 + + 內部序號 + 工單號碼 + 內部序號查詢目前生產單位 @@ -5324,7 +5849,7 @@ 工單號碼 內部條碼 生產單位編號 - 作業站編號 + 作業站編號 @@ -5335,7 +5860,7 @@ 生產單位 流程 線別 - 作業站 + 作業站 @@ -5390,7 +5915,7 @@ 料號 0:找不到 - + 取得上一個作業站RuleStationID @@ -5398,7 +5923,6 @@ BarCodeID 目前作業站ID 工單流程ID - 目前作業站ID(RuleStation) true:false @@ -5425,7 +5949,7 @@ 工單號碼 生產單位ID - ruleStationID + StationID @@ -5590,7 +6114,7 @@ - + 根据製程單位代碼NO獲取該製程流程資料 @@ -6145,6 +6669,12 @@ + + + 获取全部F/T站別资料 + + + 根据單位ID获取该站別资料 @@ -6185,7 +6715,7 @@ - + 获取全部單位资料 @@ -6302,6 +6832,70 @@ + + + Mail 寄信 + + + + + 建構式 + + + + + + Mail 寄信 + + Mail主旨 + Mail內容 + 群組(,區分多組) + EMail(,區分多組) + 是否為密件 + 附件 + + + + + 用ID获取该單位资料 + + + + + + 標準SOP路徑 + + + + + + + + + + + Get標準SOP路徑 + + + + + + Get標準SOP路徑 By documentNo + + 編號 + + + + + 標準SOP路徑 + + + + + + + + @@ -6824,6 +7418,91 @@ + + + 條碼資料 DTO + + + + + 内部條碼ID + + + + + 内部條碼 + + + + + 工單ID + + + + + 工單號碼 + + + + + 料號 + + + + + 工單數量 + + + + + 流程站 + + + + + 流程站ID + + + + + 生產單位 + + + + + 生產單位名稱 + + + + + 線別ID + + + + + 線別名稱 + + + + + 數量 + + + + + 建立者Name + + + + + 建立時間 + + + + + 修改時間 + + 條碼组件變更資料檔 DTO @@ -6859,7 +7538,7 @@ 组件代碼Name - + 流程站别ID @@ -6899,26 +7578,46 @@ 條碼组件資料檔 DTO + + + 條碼組件ID + + 内部條碼ID + + + 内部條碼 + + 工單ID + + + 工單 + + 流程站 - + 流程站ID + + + 组件代碼 + + 组件代碼Name @@ -6954,27 +7653,217 @@ 修改時間 - + - 條碼變更資料表 + 異常工時資料 - + - 條碼置換ID + 異常工時ID - + - 條碼ID + 廠別 - + - 舊條碼序號 + 制程代碼 - + + + 線別 + + + + + 線別 desc + + + + + 異常日期 + + + + + 異常班別 + + + + + 異常代碼 + + + + + 歸屬工單 + + + + + 機種 + + + + + 異常工時(Min) + + + + + 歸屬部門 + + + + + 異常備註 + + + + + 站別ID + + + + + T2站點姓名 + + + + + 起始時間 + + + + + 結束時間 + + + + + 判定單位 + + + + + 判定負責人 + + + + + 責任單位(回覆) + + + + + 回覆: 回覆對策 + + + + + 異常人數 + + + + + 回覆: 判定描述 + + + + + 回覆: 判定類別 + + + + + 回覆: 回覆日期 + + + + + 回覆: 回覆備註 + + + + + 判定單位ID + + + + + 判定負責人ID + + + + + 判定負責人姓名 + + + + + 責任單位ID + + + + + 責任單位(回覆) + + + + + 責任人ID + + + + + 責任人工號 + + + + + 建立者 + + + + + 建立日期 + + + + + 修改者 + + + + + 修改日期 + + + + + 條碼變更資料表 + + + + + 條碼置換ID + + + + + 條碼ID + + + + + 舊條碼序號 + + + 新條碼序號 @@ -7054,7 +7943,7 @@ 存放位置ID - + 條碼過站位置 @@ -7104,7 +7993,7 @@ 工單資料 - + 流程站別資料 @@ -7129,10 +8018,9 @@ 工單ID - + 流程站别ID - 改抓StationID 20220418 @@ -7215,7 +8103,7 @@ 组件代碼 - + 流程站别ID @@ -7365,6 +8253,111 @@ 工作站基本資料 + + + 報廢轉出資料檔 + + + + + 報廢轉出序號ID + + + + + 條碼ID + + + + + 工單ID + + + + + 流程站別ID + + + + + 生產單位 + + + + + 責任部門ID + + + + + 作業人員ID + + + + + 作業時間 + + + + + 作業原因 + + + + + 根本原因預防處理 + + + + + 預防措施 + + + + + 預防處理 + + + + + 流程狀態 + + + + + IPQA UserID + + + + + PE UserID + + + + + 主管ID + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新UserID + + + + + 更新日期 + + 條碼過站資料檔 @@ -7380,7 +8373,12 @@ 工單ID - + + + 流程ID + + + 流程站別ID @@ -8120,7 +9118,7 @@ 異常人數 - + 回覆: 判定描述 @@ -8555,6 +9553,61 @@ 更新日期 + + + FQC報表自動派送維護 + + + + + FQC通知MAIL_ID + + + + + 料號ID + + + + + Mail群組ID + + + + + FQC抽驗結果 P:允收 R:拒收 + + + + + 狀態 Y:啟用 N:停用 + + + + + 備註 + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新UserID + + + + + 更新日期 + + 檢驗结果維護資料檔 @@ -8782,37 +9835,72 @@ - OS + OS + + + + + CPU test + + + + + RAM test + + + + + BIOS + + + + + 檢驗儀器編號 + + + + + 單位主管 + + + + + Proved + + + + + 抽樣允收標準 - + - CPU test + Major - + - RAM test + Minor - + - BIOS + NOTE - + - 檢驗儀器編號 + ECN_MEMO - + - 單位主管 + PLM_ECN - + - Proved + 檢驗地方 A:廠驗 B:委外 C:免驗 @@ -9168,7 +10256,7 @@ - 生產序號 + 抽驗號碼 @@ -9291,6 +10379,16 @@ 訂單NO + + + 組件類型 + + + + + 組件料號(廠內) + + 建立者 @@ -10234,7 +11332,7 @@ - 組件料號 + 維修料號 @@ -10429,6 +11527,51 @@ 更新日期 + + + 設備廠別資料檔 + + + + + 廠別ID + + + + + 廠別名稱 + + + + + 廠別代碼 + + + + + 廠別狀態 + + + + + 建立者 + + + + + 創建日期 + + + + + 更新者ID + + + + + 更新日期 + + 設備資料檔 @@ -10514,7 +11657,7 @@ 標識(0-設備;1-料件;2-儀器) - + 廠別代碼 @@ -10644,6 +11787,61 @@ 更新日期 + + + 變更狀態備註(啟用/停用) + + + + + 設備圖 + + + + + 治具ID + + + + + 檔名 + + + + + 新檔名 + + + + + 圖檔 + + + + + 儲存路徑 + + + + + 創建者ID + + + + + 創建日期 + + + + + 更新者ID + + + + + 更新日期 + + 層別資料檔 @@ -10826,7 +12024,7 @@ - 預警提前天數 + 預警提前次數 yiru modify 2022/11/14 @@ -11235,6 +12433,11 @@ 檢驗項目英文 + + + 類型 + + 建立UserID @@ -11275,14 +12478,19 @@ 抽驗係数名稱 - + - 是否AQL標準 + 描述 - AQL類型 + AQL類型 成品:半成品 + + + + + AQL @@ -11340,7 +12548,7 @@ 箱號 - + 流程站別ID @@ -12330,6 +13538,41 @@ 修改日期 + + + 解除綁定出貨序號箱號資料檔 + + + + + 解除綁定ID + + + + + 起始生產條碼 + + + + + 結束生產條碼 + + + + + 解除綁定備註 + + + + + 建立UserID + + + + + 建立日期 + + 工單條碼起迄資料檔 @@ -12855,6 +14098,21 @@ 更新日期 + + + 自動裝箱 + + + + + 裝箱出貨序號 + + + + + 是否關箱 + + 工單資訊確認 @@ -12905,7 +14163,7 @@ 工單ID - + 流程站別ID @@ -13365,6 +14623,11 @@ 備註 + + + 非標96工單說明 + + 建立UserID @@ -13625,12 +14888,12 @@ 工單號碼 - + 指定過站 RuleStation - + 返回過站 RuleStation @@ -13665,7 +14928,7 @@ 工單號碼 - + 站別ID @@ -13755,7 +15018,7 @@ 工單ID - + 流程站?ID @@ -13950,124 +15213,249 @@ DMI燒入 + + + DMI燒入說明 + + JUMPER設定 - + - 備註 + 組裝備註 + + + + + 測試備註 + + + + + 包裝備註 + + + + + 創建者ID + + + + + 創建日期 + + + + + 更新者ID + + + + + 更新日期 + + + + + PowerMode_Desc + + + + + BIOS_Desc + + + + + EC_Desc + + + + + FW_Desc + + + + + FW1_Desc + + + + + FW2_Desc + + + + + OS_Desc + + + + + PE工程師姓名 Engineer + + + + + 工單各站數量資料檔 – By TIME + + + + + 工單ID + + + + + 流程站別ID + + + + + 過站狀態 + + + + + 時段 + + + + + 第一次過站數量 + + + + + 生產過站數量 + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新日期 - + - 創建者ID + 生產工時報工資料 - + - 創建日期 + 生產工時ID - + - 更新者ID + 制程代碼 - + - 更新日期 + 線別 - + - PowerMode_Desc + 站別ID - + - BIOS_Desc + 正背面 - + - EC_Desc + 工單號碼 - + - FW_Desc + 作業人數 - + - FW1_Desc + 開工時間 - + - FW2_Desc + 投入站採集傳感器 - + - OS_Desc + 產出站採集傳感器 - + - PE工程師姓名 Engineer + 生產數量 - + - 工單各站數量資料檔 – By TIME + 總工時 - + - 工單ID + 完工時間 - + - 流程站別ID + 備註 - + - 過站狀態 + 工程編號 - + - 時段 + 組合機種數量 - + - 第一次過站數量 + 扣除時間(Min) - + - 生產過站數量 + 建立者 - + - 建立UserID + 建立日期 - + - 建立日期 + 修改者 - + - 更新日期 + 修改日期 @@ -14875,7 +16263,12 @@ 流程規則編號 - + + + 流程編號 + + + 流程站別編號 @@ -15198,6 +16591,16 @@ 結束時間 + + + 安勤標準SOP路徑 + + + + + 安勤標準SOP路徑 + + @@ -15790,12 +17193,17 @@ - 生產單位 + 工單-生產單位 + + + + + 作業站-生產單位 - List + List BarCodeCheckDto.inputItem @@ -15900,7 +17308,7 @@ 工單號碼 - + 流程 @@ -15937,12 +17345,12 @@ - + 批量 - + 醫療機種 @@ -15952,7 +17360,7 @@ - + 抽樣 @@ -15960,9 +17368,9 @@ - + - 抽驗標準 + 抽驗係數名稱 @@ -15972,12 +17380,12 @@ - 產線 + 產線備註 - + 入庫庫別 @@ -15985,9 +17393,44 @@ - + - 成品99 + AQL 類型 + + + + + AQL 描述 + + + + + 抽驗數 + + + + + 允收數 + + + + + 不良數 + + + + + 檢驗結果Judgment Quantity + + + + + Major + + + + + Minor @@ -15995,6 +17438,96 @@ 特採單 + + + 判斷結果 + + + + + 缺點描述 + + + + + 委外廠 Name + + + + + 檢驗儀器編號 + + + + + 檢驗項目 OS CPU RAM + + + + + 抽驗人員 + + + + + 主管 + + + + + 抽驗人員簽名檔 + + + + + 主管簽名檔 + + + + + 檢驗工項 + + + + + + + + + + 檢驗工項名稱 + + + + + 檢驗類型 + + + + + 檢驗 + + + + + 出貨序號 + + + + + 生產序號 + + + + + 是否抽驗 + + + + + 檢驗結果 + + 入庫單資料檔 Dto @@ -16050,6 +17583,11 @@ 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + + + 檢驗時間 + + 抽驗數量 @@ -16065,6 +17603,31 @@ 不良數 + + + CritID + + + + + AQL + + + + + AQL 描述 + + + + + 抽驗係數名稱 + + + + + AQL類型 + + 允收數量 @@ -16075,6 +17638,11 @@ 拒收數量 + + + 特採單 + + 判定備註 @@ -16165,11 +17733,61 @@ 檢驗者姓名 Engineer + + + 抽樣允收標準 + + + + + 抽樣允收標準 名稱 + + + + + Major Qty + + + + + Minor Qty + + + + + Wip_ECN + + + + + PLM_ECN + + + + + ECN_Memo + + + + + NOTE + + + + + 檢驗地方 A:廠驗 B:委外 C:免驗 + + 附件檔案 + + + 檢驗 + + 檢查工項 @@ -16315,54 +17933,99 @@ 品名/機種 - + + + 箱號/條碼 + + + + + 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + + + + + 產品類別 STANDARD(標準品),Order(訂單) + + + + + 結束抽驗時間 + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新UserID + + + + + 更新日期 + + + + + 入庫單號 + + + - 箱號/條碼 + Record日期 - + - 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + FQC 報表自動派送維護 Dto - + - 產品類別 STANDARD(標準品),Order(訂單) + FQC通知MAIL_ID - + - 結束抽驗時間 + 料號ID - + - 建立UserID + 料號名稱 - + - 建立日期 + Mail群組ID - + - 更新UserID + Mail群組名稱 - + - 更新日期 + FQC抽驗結果 P:允收 R:拒收 - + - 入庫單號 + 狀態 Y:啟用 N:停用 - + - Record日期 + 備註 @@ -16397,7 +18060,7 @@ - 外部序號 + 出貨序號 @@ -16405,11 +18068,21 @@ 狀態 P-PASS;F-FAIL;C-CPN + + + IsSample + + 不良代碼 + + + 不良現象 + + 不良備註 @@ -16527,6 +18200,16 @@ 更新日期 + + + 回覆結果 + + + + + 檢驗表頭資料檔DTO + + MaterialKpDtp Select Dto @@ -16777,19 +18460,49 @@ 抽驗標準ID + + + 抽驗係数ID + + 係數名稱 + + + 描述 + + + + + AQL類型 成品:半成品 + + + + + AQL + + 抽樣代碼 + + + 抽樣_起始數量 + + + + + 抽樣_結束數量 + + - 抽樣點數 + 抽樣點數 起始數量 ~ 結束數量 @@ -16857,6 +18570,16 @@ 檢驗項目英文 + + + 檢驗項目類型 + + + + + 檢驗項目類型 名稱 + + 建立UserID @@ -16962,7 +18685,7 @@ 有效日期 - + 狀態 0=失效 ; 1=有效 @@ -17062,6 +18785,81 @@ 更新日期 + + + SteelPlateInfoDto 鋼板紀錄資料檔Dto + + + + + 鋼板量測記錄ID + + + + + 鋼板ID + + + + + 鋼板編號 + + + + + 張力_1 + + + + + 張力_2 + + + + + 張力_3 + + + + + 張力_4 + + + + + 張力_5 + + + + + 檢查狀態 + + + + + 備註 + + + + + 判定結果 P=PASS ; F=FAIL ; N=未量測 + + + + + 建立UserID + + + + + 建立User + + + + + 建立日期 + + WipInfo Select Dto @@ -17212,6 +19010,11 @@ 鎖定原因類別(0-3C認證工單;1-驗證工單;3-維修換料待分析) + + + 鎖定原因類別名稱(0-3C認證工單;1-驗證工單;3-維修換料待分析) + + 鎖定人員 @@ -17467,6 +19270,11 @@ 生產單位 + + + 更新時間 + + WorkingHoursCollectionDtp Select Dtos @@ -17644,16 +19452,11 @@ 流程ID - + 作業站 - - - RuleStationID - - 線別站 @@ -17884,6 +19687,115 @@ 內部異常 + + + + + + + + 抽樣計畫允收標準 + + + + + First Insp. + + + + + Minor + + + + + 檢驗項目_類型 + + + + + Major + + + + + Minor + + + + + AQL_類型 + + + + + 成品99 + + + + + 半成品96 + + + + + 檢驗地點 + + + + + 廠驗 + + + + + 委外 + + + + + 免驗 + + + + + Get Enum Display + + + + + + + + + + + + 鋼板量測狀態 + + + + + 上線前 + + + + + 清洗後 + + + + + 每周點檢 + + + + + Get Enum Display + + + + @@ -17924,6 +19836,11 @@ FCC + + + CE/FCC + + ROHS @@ -18578,6 +20495,11 @@ 機種C/T資料 + + + 不良現象原因代碼資料 + + 問題類別資料 @@ -18618,6 +20540,11 @@ SOP文件維護 + + + 料號基本資料檔 + + @@ -18943,6 +20870,16 @@ 設備種類資料檔 + + + 設備規格資料檔 + + + + + 廠商資料檔 + + 治具資料檔 @@ -19028,7 +20965,16 @@ 檢驗單明細資料檔 - + + + 生產工時報工資料檔 + + + + + 鋼板基本資料檔 + + 鋼板量測記錄資料檔 @@ -19044,6 +20990,47 @@ 錫膏使用紀錄資料檔 + + + 條碼報廢轉出資料檔 + + + + Yiru add --------------------------------------------------- + 設備廠別資料檔 + + + + yiru 2022-09-20 --------------------------------------------------- + 治具ID圖檔 + + + + + FQC 報表自動派送維護 + + + + + 解除綁定出貨序號箱號資料檔 + + + + + + + + + + + + + + + + DocEsopView + + diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll index e5391437..dd54ce5e 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/appsettings.json b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/appsettings.json index 51b4cf49..a45e4292 100644 --- a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/appsettings.json +++ b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/appsettings.json @@ -11,6 +11,17 @@ } }, "AllowedHosts": "*", - // ww u򥻸ƲΤ@}u{T - "WipSpecial": "Y" + "WipSpecial": "Y", + // 虛擬路徑設定 + "VirtualPath": [ + //{ + // "RealPath": "//qasrv-n/Web/ISOZone/", //真實路徑 + // "RequestPath": "/DocEsop" // 虛擬路徑名稱 + //} + //{ + // "RealPath": "//10.1.8.1/sop/機種", //真實路徑 + // "RequestPath": "/test" + // //"Alias": "second" + //} + ] } diff --git a/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj b/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj index 89ea82d4..9427d5e0 100644 --- a/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj +++ b/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj @@ -38,8 +38,8 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj.user b/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj.user index 4d3e0e03..1b1471ab 100644 --- a/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj.user +++ b/AMESCoreStudio.WebApi/AMESCoreStudio.WebApi.csproj.user @@ -1,7 +1,7 @@  - 650 + 650.4 ApiControllerWithContextScaffolder root/Common/Api True @@ -12,6 +12,6 @@ False false True - D:\jh-ames-git\AMESCoreStudio.WebApi\Properties\PublishProfiles\FolderProfile.pubxml + C:\Users\USER\Desktop\MES\AMES0916\AMESCoreStudio.WebApi\Properties\PublishProfiles\FolderProfile.pubxml \ No newline at end of file diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/UnbindExtraBarcodeController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/UnbindExtraBarcodeController.cs new file mode 100644 index 00000000..d1d040fb --- /dev/null +++ b/AMESCoreStudio.WebApi/Controllers/AMES/UnbindExtraBarcodeController.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; +using AMESCoreStudio.WebApi; +using AMESCoreStudio.WebApi.Models.AMES; +using AMESCoreStudio.WebApi.DTO.AMES; +using AMESCoreStudio.CommonTools.Result; +using AMESCoreStudio.WebApi.Enum; + +namespace AMESCoreStudio.WebApi.Controllers.AMES +{ + /// + /// 解除綁定出貨序號箱號資料檔 + /// + [Route("api/[controller]")] + [ApiController] + public class UnbindExtraBarcodeController : ControllerBase + { + private readonly AMESContext _context; + + public UnbindExtraBarcodeController(AMESContext context) + { + _context = context; + } + + [HttpGet] + public async Task>> GetUnbindExtraBarcode() + { + return await _context.UnbindExtraBarcodes.ToListAsync(); + } + + [HttpGet("{id}")] + public async Task> GetUnbindExtraBarcode(int id) + { + var unbindExtraBarcode = await _context.UnbindExtraBarcodes.FindAsync(id); + + if (unbindExtraBarcode == null) + { + return NotFound(); + } + + return unbindExtraBarcode; + } + + /// + /// 更新解除綁定出貨序號箱號資料檔 + /// + /// + /// + [HttpPut] + public async Task> PutUnbindExtraBarcode(UnbindExtraBarcode unbindExtraBarcode) + { + ResultModel result = new ResultModel(); + _context.Entry(unbindExtraBarcode).State = EntityState.Modified; + + try + { + await _context.SaveChangesAsync(); + result.Success = true; + result.Msg = "OK"; + } + catch (Exception ex) + { + result.Success = false; + result.Msg = ex.InnerException.Message; + } + return result; + } + + /// + /// 新增解除綁定出貨序號箱號資料檔 + /// + /// + /// + [HttpPost] + public async Task> PostUnbindExtraBarcode(UnbindExtraBarcode unbindExtraBarcode) + { + ResultModel result = new ResultModel(); + Helper helper = new Helper(_context); + unbindExtraBarcode.UnbindBarcodeId = helper.GetIDKey("UNBIND_BARCODE_ID").Result; + _context.UnbindExtraBarcodes.Add(unbindExtraBarcode); + try + { + await _context.SaveChangesAsync(); + result.Success = true; + result.Msg = "OK"; + } + catch (Exception ex) + { + result.Success = false; + result.Msg = ex.InnerException.Message; + } + return result; + } + + // DELETE: api/FqcItem/5 + [HttpDelete("{id}")] + public async Task> DeleteUnbindExtraBarcode(int id) + { + var unbindExtraBarcode = await _context.UnbindExtraBarcodes.FindAsync(id); + if (unbindExtraBarcode == null) + { + return NotFound(); + } + + _context.UnbindExtraBarcodes.Remove(unbindExtraBarcode); + await _context.SaveChangesAsync(); + + return unbindExtraBarcode; + } + } +} diff --git a/AMESCoreStudio.WebApi/Models/AMES/UnbindExtraBarcode.cs b/AMESCoreStudio.WebApi/Models/AMES/UnbindExtraBarcode.cs new file mode 100644 index 00000000..6bea93ac --- /dev/null +++ b/AMESCoreStudio.WebApi/Models/AMES/UnbindExtraBarcode.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; +using System.Runtime.Serialization; + +#nullable disable + +namespace AMESCoreStudio.WebApi.Models.AMES +{ + /// + /// 解除綁定出貨序號箱號資料檔 + /// + [Table("UNBIND_EXTRA_BARCODE", Schema = "JHAMES")] + public partial class UnbindExtraBarcode + { + /// + /// 解除綁定ID + /// + [Key] + [Column("UNBIND_BARCODE_ID")] + [DataMember] + public int UnbindBarcodeId { get; set; } + + /// + /// 起始生產條碼 + /// + [Display(Name = "起始生產條碼")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("START_BARCODE_NO")] + [StringLength(30)] + [DataMember] + public string StartBarcodeNo { get; set; } + + /// + /// 結束生產條碼 + /// + [Display(Name = "結束生產條碼")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("END_BARCODE_NO")] + [StringLength(30)] + [DataMember] + public string EndBarcodeNo { get; set; } + + /// + /// 解除綁定備註 + /// + [Display(Name = "解除綁定備註")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("UNBIND_REASON")] + [StringLength(100)] + [DataMember] + public string UnbindReason { get; set; } + + /// + /// 建立UserID + /// + [Column("CREATE_USERID")] + [Required] + [DataMember] + public int CreateUserID { get; set; } = 0; + + /// + /// 建立日期 + /// + [Required] + [Column("CREATE_DATE")] + [DataMember] + public DateTime CreateDate { get; set; } = DateTime.Now; + } +} diff --git a/AMESCoreStudio.WebApi/appsettings.json b/AMESCoreStudio.WebApi/appsettings.json index d13695a2..ecf04970 100644 --- a/AMESCoreStudio.WebApi/appsettings.json +++ b/AMESCoreStudio.WebApi/appsettings.json @@ -7,17 +7,15 @@ } }, "ConnectionStrings": { - "AMESContext2": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=gdb)));User Id=JHAMES;Password=AMES666;", + //"AMESContext1": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe)));User Id=JHAMES;Password=JHAMES;", "AMESContext": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=61.216.68.18)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=jhdb)));User Id=JHSYS;Password=ASYS666;" //"AMESContext": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=61.216.68.18)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=jhdb)));User Id=system;Password=admin;" //"AMESContextO": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=61.216.68.18)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=cpadb)));User Id=JHSYS;Password=ASYS666;" }, - "WebSiteUrl": "", - "MailSmtpServer": "", + "MailSmtpServer": "smtp.topviewcorp.com", "MailSmtpPort": "25", - "MailFrom": "", - "MailUser": "", - "MailUserPassword": "", - //"MailTo": "", + "MailFrom": "BB.Wang@Topviewcorp.com", + "MailUser": "BB.Wang", + "MailUserPassword": "BBWang22", "AllowedHosts": "*" } diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll index 5c5e5ee0..ad7c17cb 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb index 3a6d9fef..522a7a0a 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json index 399fa13a..974eb8d6 100644 --- a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json +++ b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.deps.json @@ -36,8 +36,8 @@ "Microsoft.EntityFrameworkCore": "5.0.8", "Microsoft.EntityFrameworkCore.Design": "5.0.8", "Microsoft.EntityFrameworkCore.Proxies": "5.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "3.1.23", - "Microsoft.EntityFrameworkCore.Tools": "3.1.23", + "Microsoft.EntityFrameworkCore.SqlServer": "3.1.30", + "Microsoft.EntityFrameworkCore.Tools": "3.1.30", "Microsoft.VisualStudio.Web.CodeGeneration.Design": "3.1.5", "Oracle.EntityFrameworkCore": "5.21.1", "Swashbuckle.AspNetCore": "6.1.4", @@ -766,22 +766,22 @@ "lib/netstandard2.1/Microsoft.EntityFrameworkCore.Relational.dll": {} } }, - "Microsoft.EntityFrameworkCore.SqlServer/3.1.23": { + "Microsoft.EntityFrameworkCore.SqlServer/3.1.30": { "dependencies": { "Microsoft.Data.SqlClient": "1.1.3", "Microsoft.EntityFrameworkCore.Relational": "5.0.8" }, "runtime": { "lib/netstandard2.0/Microsoft.EntityFrameworkCore.SqlServer.dll": { - "assemblyVersion": "3.1.23.0", - "fileVersion": "3.100.2322.12304" + "assemblyVersion": "3.1.30.0", + "fileVersion": "3.100.3022.47610" } }, "compile": { "lib/netstandard2.0/Microsoft.EntityFrameworkCore.SqlServer.dll": {} } }, - "Microsoft.EntityFrameworkCore.Tools/3.1.23": { + "Microsoft.EntityFrameworkCore.Tools/3.1.30": { "dependencies": { "Microsoft.EntityFrameworkCore.Design": "5.0.8" } @@ -4274,19 +4274,19 @@ "path": "microsoft.entityframeworkcore.relational/5.0.8", "hashPath": "microsoft.entityframeworkcore.relational.5.0.8.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.SqlServer/3.1.23": { + "Microsoft.EntityFrameworkCore.SqlServer/3.1.30": { "type": "package", "serviceable": true, - "sha512": "sha512-jfTL7M74a1TCrg6+BgUnWDz6gd2ouXeAqJO84ILb1AUUQVVDScJFJpAjJcY7AqkAW1VinL4TYfSiNSfX1AhUsg==", - "path": "microsoft.entityframeworkcore.sqlserver/3.1.23", - "hashPath": "microsoft.entityframeworkcore.sqlserver.3.1.23.nupkg.sha512" + "sha512": "sha512-ylH8ha+qNDxPY5swU700ChdvrkC4CDnSif7GW8we9MNwKULsqnC0C/ufOHtIvIUHF+fFdM4GQM32HwxvBzVbLw==", + "path": "microsoft.entityframeworkcore.sqlserver/3.1.30", + "hashPath": "microsoft.entityframeworkcore.sqlserver.3.1.30.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.Tools/3.1.23": { + "Microsoft.EntityFrameworkCore.Tools/3.1.30": { "type": "package", "serviceable": true, - "sha512": "sha512-1RRy8gGH4x7gFH6S6WqTXMfN3wyhjUWsfqglzl4wI9of3p9QV55Y2tikoSY7G1NbFWFfvCfiaTFZz2P1BAJcTQ==", - "path": "microsoft.entityframeworkcore.tools/3.1.23", - "hashPath": "microsoft.entityframeworkcore.tools.3.1.23.nupkg.sha512" + "sha512": "sha512-8rLsh7pjMhthwRDnwrwmwSMALhLSi+tOcCxSCdPH0CpoJLijb3GhZJQMpkjaUnjjUf64DDPW9COhRfzzfHutEw==", + "path": "microsoft.entityframeworkcore.tools/3.1.30", + "hashPath": "microsoft.entityframeworkcore.tools.3.1.30.nupkg.sha512" }, "Microsoft.Extensions.ApiDescription.Server/3.0.0": { "type": "package", diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll index 0eb7ee80..3f5dbe64 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe index 76055799..87c4046e 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.exe differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb index 27b48985..d30c0247 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml index eeed1eb3..f1699ddf 100644 --- a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml +++ b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml @@ -179,6 +179,18 @@ 工單ID + + + 條碼批次查詢 + + 工單號碼 + 料號 + 生產單位 + 線別 + 頁數 + 筆數 + + 更新條碼资料 @@ -243,7 +255,7 @@ 用barcodeID獲取資料 By生產履歷 - barcodeID + id @@ -335,6 +347,18 @@ barcodeID + + + + + 工單號料 + 內部條碼 + 組件編號 + 內部條碼List + 頁數 + 筆數 + + 用barcode獲取資料 @@ -372,6 +396,13 @@ + + + 新增條碼资料 + + + + 删除條碼资料 @@ -429,19 +460,98 @@ + + + 條碼報廢轉出資料檔 + + + + + + + + + + + 獲取全部報廢轉出資料 + + + + + + 根據ID獲取單一報廢轉出資料 + + + + + + + + + + + + + + 報廢資料查詢 + + + + + + + + + + + + + 轉出資料查詢 + + + + + + + + + + + + + 根據ID修改單一筆報廢轉出資料 + + + + + + + + 新增報廢轉出資料 + + + + + + + 根據ID刪除單一筆報廢轉出資料 + + + + 條碼過站資料檔 - + 內務條碼ID 工單ID - 流程站別ID - + 流程站別ID + 流程ID @@ -457,12 +567,18 @@ + + + 查詢工單站別條碼資料 By 條碼批次查詢 + + + 查詢 已過站數量 工單ID - 站別ID + 站別ID @@ -1123,6 +1239,18 @@ + + + 異常工時查詢QuerybyWHS009 + + + + + + + + + FQC條碼資料檔 @@ -1147,6 +1275,12 @@ + + + FQC細項資料(全部) + + + 新增檢驗單明細資料檔 @@ -1204,6 +1338,13 @@ + + + 更新入庫單 抽驗係數標準 + + + + 新增入庫單 @@ -1239,6 +1380,49 @@ FQC檢驗結果ID + + + FQC報表自動派送維護 + + + + + 建構式 + + + + + + FQC報表自動派送維護 by Table + + 料號 + 檢驗結果 + 狀態 + 頁數 + 筆數 + + + + + 更新FQC 報表自動派送維護 + + + + + + + 新增FQC 報表自動派送維護 + + + + + + + 刪除FQC 報表自動派送維護 + + ID + + 檢驗结果維護資料檔 @@ -1615,7 +1799,7 @@ - + 用FormID获取该巡檢結果资料 @@ -1628,7 +1812,12 @@ v - + + + 用FormID获取该巡檢結果资料 + + + @@ -1909,6 +2098,13 @@ 料號 + + + 料號基本資料檔 to ItemNO + + 料號 + + 新增料號基本資料檔 @@ -1981,6 +2177,13 @@ + + + 刪除料號KP By 料號ID + + 料號ID + + 料號治具資訊資料檔 @@ -2334,6 +2537,15 @@ + + + + + + + + + @@ -2521,7 +2733,7 @@ - + 維修資料統計 @@ -2534,6 +2746,7 @@ + @@ -2550,7 +2763,7 @@ - + 維修資料統計by不良代碼 @@ -2563,9 +2776,10 @@ + - + 維修資料統計by維修代碼 @@ -2578,9 +2792,10 @@ + - + 維修資料統計by維修位置 @@ -2593,9 +2808,10 @@ + - + 維修資料統計by責任單位 @@ -2608,6 +2824,7 @@ + @@ -2618,6 +2835,20 @@ + + + + + + + + + + + + + + @@ -2686,6 +2917,93 @@ + + + 工作群組維護 + + + + + + + + + + + + + + + + + + + + + + + + By 廠別代碼 查詢 + + 廠別代碼 + + + + + + + + + + + + + 新增资料 + + + + + + + + + + + + + + 設備上傳圖檔資料表 + + + + + 設備上傳圖檔資料表 By OutfitID + + OutfitID + + + + + 更新上傳圖檔資料 + + + + + + + + 新增 設備上傳圖檔資料表 + + + + + + + 刪除 設備上上傳圖檔資料表 + + + + 工作群組維護 @@ -3078,6 +3396,17 @@ 抽驗數量 + + + 查詢抽驗標準維護 + + 抽驗係數ID + AQL類型 + 批量 + 頁數 + + + 更新抽驗標準 @@ -3283,6 +3612,13 @@ + + + + + + + @@ -3566,10 +3902,12 @@ - + - 查詢出貨序號編碼規則資料檔 + + + @@ -3579,11 +3917,13 @@ SerialRuleID - + - 料號基本資料檔 to ItemNo + - ItemNo + + + @@ -3630,6 +3970,13 @@ + + + 删除料號基本資料檔 + + + + 外包機種資料維護 @@ -3690,6 +4037,18 @@ 錫膏基本資料檔 + + + 錫膏資料查詢 + + 錫膏編號 + PCB板號 + 正背面 + 狀態 + 頁數 + 筆數 + + 更新錫膏基本資料檔 @@ -3878,7 +4237,14 @@ 鋼板基本資料檔 - + + + By 鋼板編號 查詢 + + 鋼板編號 + + + 鋼板資料查詢 @@ -3909,6 +4275,15 @@ 鋼板量測記錄資料檔 + + + 鋼板編號紀錄 By 鋼板編號 + + + + + + 更新鋼板量測記錄資料檔 @@ -3916,11 +4291,11 @@ - + 新增鋼板量測記錄資料檔 - + @@ -3980,6 +4355,65 @@ + + + 解除綁定出貨序號箱號資料檔 + + + + + 更新解除綁定出貨序號箱號資料檔 + + + + + + + 新增解除綁定出貨序號箱號資料檔 + + + + + + yiru add + + 檢驗單明細資料檔 + + + + + 完工入庫資料 + + + + + + 查詢所有已入庫資料 + + + + + + 查詢完工入庫資料 By 送驗單號、序號 + + 入庫單號 + 序號 + + + + + 修改完工入庫資料 + + + + + + + 新增完入工庫資料檔 + + + + 工單警報資料 @@ -3997,6 +4431,16 @@ + + + 根據警報類型ID查詢警報資料 + + + + + + + 根據警報類型ID查詢警報資料 @@ -4255,6 +4699,13 @@ + + + 自動裝箱 + + BarcodeNO + + 工單資訊確認 @@ -4429,6 +4880,12 @@ + + + 查詢工單資料QRS014 + + + 查詢工單資料 by SelectParameter @@ -4814,7 +5271,7 @@ 基本查詢 工單ID - 流程ID + 流程ID @@ -4822,7 +5279,7 @@ 基本查詢 工單ID - 流程ID + 流程ID @@ -4839,6 +5296,13 @@ + + + + + + + 工單狀態維護 @@ -4938,6 +5402,60 @@ + + + 生產工時報工資料 + + + + + + + + + + + 獲取全部生產報工工時資料 + + + + + + 查詢生產工時報工資料 + + + + + + 根據ID查詢某一筆生產報工工時 + + + + + + + + + 修改生產工時報工資料 + + + + + + + + 新增生產工時報工資料 + + + + + + + + + + + 工作群組維護 @@ -5236,7 +5754,7 @@ BurnInfo-燒入資料檔 - + @@ -5289,6 +5807,13 @@ 內部序號 Success:true or false + + + 查詢序號是否有在該工單 條碼區間內 + + 內部序號 + 工單號碼 + 內部序號查詢目前生產單位 @@ -5324,7 +5849,7 @@ 工單號碼 內部條碼 生產單位編號 - 作業站編號 + 作業站編號 @@ -5335,7 +5860,7 @@ 生產單位 流程 線別 - 作業站 + 作業站 @@ -5390,7 +5915,7 @@ 料號 0:找不到 - + 取得上一個作業站RuleStationID @@ -5398,7 +5923,6 @@ BarCodeID 目前作業站ID 工單流程ID - 目前作業站ID(RuleStation) true:false @@ -5425,7 +5949,7 @@ 工單號碼 生產單位ID - ruleStationID + StationID @@ -5590,7 +6114,7 @@ - + 根据製程單位代碼NO獲取該製程流程資料 @@ -6145,6 +6669,12 @@ + + + 获取全部F/T站別资料 + + + 根据單位ID获取该站別资料 @@ -6185,7 +6715,7 @@ - + 获取全部單位资料 @@ -6302,6 +6832,70 @@ + + + Mail 寄信 + + + + + 建構式 + + + + + + Mail 寄信 + + Mail主旨 + Mail內容 + 群組(,區分多組) + EMail(,區分多組) + 是否為密件 + 附件 + + + + + 用ID获取该單位资料 + + + + + + 標準SOP路徑 + + + + + + + + + + + Get標準SOP路徑 + + + + + + Get標準SOP路徑 By documentNo + + 編號 + + + + + 標準SOP路徑 + + + + + + + + @@ -6824,6 +7418,91 @@ + + + 條碼資料 DTO + + + + + 内部條碼ID + + + + + 内部條碼 + + + + + 工單ID + + + + + 工單號碼 + + + + + 料號 + + + + + 工單數量 + + + + + 流程站 + + + + + 流程站ID + + + + + 生產單位 + + + + + 生產單位名稱 + + + + + 線別ID + + + + + 線別名稱 + + + + + 數量 + + + + + 建立者Name + + + + + 建立時間 + + + + + 修改時間 + + 條碼组件變更資料檔 DTO @@ -6859,7 +7538,7 @@ 组件代碼Name - + 流程站别ID @@ -6899,26 +7578,46 @@ 條碼组件資料檔 DTO + + + 條碼組件ID + + 内部條碼ID + + + 内部條碼 + + 工單ID + + + 工單 + + 流程站 - + 流程站ID + + + 组件代碼 + + 组件代碼Name @@ -6954,27 +7653,217 @@ 修改時間 - + - 條碼變更資料表 + 異常工時資料 - + - 條碼置換ID + 異常工時ID - + - 條碼ID + 廠別 - + - 舊條碼序號 + 制程代碼 - + + + 線別 + + + + + 線別 desc + + + + + 異常日期 + + + + + 異常班別 + + + + + 異常代碼 + + + + + 歸屬工單 + + + + + 機種 + + + + + 異常工時(Min) + + + + + 歸屬部門 + + + + + 異常備註 + + + + + 站別ID + + + + + T2站點姓名 + + + + + 起始時間 + + + + + 結束時間 + + + + + 判定單位 + + + + + 判定負責人 + + + + + 責任單位(回覆) + + + + + 回覆: 回覆對策 + + + + + 異常人數 + + + + + 回覆: 判定描述 + + + + + 回覆: 判定類別 + + + + + 回覆: 回覆日期 + + + + + 回覆: 回覆備註 + + + + + 判定單位ID + + + + + 判定負責人ID + + + + + 判定負責人姓名 + + + + + 責任單位ID + + + + + 責任單位(回覆) + + + + + 責任人ID + + + + + 責任人工號 + + + + + 建立者 + + + + + 建立日期 + + + + + 修改者 + + + + + 修改日期 + + + + + 條碼變更資料表 + + + + + 條碼置換ID + + + + + 條碼ID + + + + + 舊條碼序號 + + + 新條碼序號 @@ -7054,7 +7943,7 @@ 存放位置ID - + 條碼過站位置 @@ -7104,7 +7993,7 @@ 工單資料 - + 流程站別資料 @@ -7129,10 +8018,9 @@ 工單ID - + 流程站别ID - 改抓StationID 20220418 @@ -7215,7 +8103,7 @@ 组件代碼 - + 流程站别ID @@ -7365,6 +8253,111 @@ 工作站基本資料 + + + 報廢轉出資料檔 + + + + + 報廢轉出序號ID + + + + + 條碼ID + + + + + 工單ID + + + + + 流程站別ID + + + + + 生產單位 + + + + + 責任部門ID + + + + + 作業人員ID + + + + + 作業時間 + + + + + 作業原因 + + + + + 根本原因預防處理 + + + + + 預防措施 + + + + + 預防處理 + + + + + 流程狀態 + + + + + IPQA UserID + + + + + PE UserID + + + + + 主管ID + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新UserID + + + + + 更新日期 + + 條碼過站資料檔 @@ -7380,7 +8373,12 @@ 工單ID - + + + 流程ID + + + 流程站別ID @@ -8120,7 +9118,7 @@ 異常人數 - + 回覆: 判定描述 @@ -8555,6 +9553,61 @@ 更新日期 + + + FQC報表自動派送維護 + + + + + FQC通知MAIL_ID + + + + + 料號ID + + + + + Mail群組ID + + + + + FQC抽驗結果 P:允收 R:拒收 + + + + + 狀態 Y:啟用 N:停用 + + + + + 備註 + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新UserID + + + + + 更新日期 + + 檢驗结果維護資料檔 @@ -8782,37 +9835,72 @@ - OS + OS + + + + + CPU test + + + + + RAM test + + + + + BIOS + + + + + 檢驗儀器編號 + + + + + 單位主管 + + + + + Proved + + + + + 抽樣允收標準 - + - CPU test + Major - + - RAM test + Minor - + - BIOS + NOTE - + - 檢驗儀器編號 + ECN_MEMO - + - 單位主管 + PLM_ECN - + - Proved + 檢驗地方 A:廠驗 B:委外 C:免驗 @@ -9168,7 +10256,7 @@ - 生產序號 + 抽驗號碼 @@ -9291,6 +10379,16 @@ 訂單NO + + + 組件類型 + + + + + 組件料號(廠內) + + 建立者 @@ -10234,7 +11332,7 @@ - 組件料號 + 維修料號 @@ -10429,6 +11527,51 @@ 更新日期 + + + 設備廠別資料檔 + + + + + 廠別ID + + + + + 廠別名稱 + + + + + 廠別代碼 + + + + + 廠別狀態 + + + + + 建立者 + + + + + 創建日期 + + + + + 更新者ID + + + + + 更新日期 + + 設備資料檔 @@ -10514,7 +11657,7 @@ 標識(0-設備;1-料件;2-儀器) - + 廠別代碼 @@ -10644,6 +11787,61 @@ 更新日期 + + + 變更狀態備註(啟用/停用) + + + + + 設備圖 + + + + + 治具ID + + + + + 檔名 + + + + + 新檔名 + + + + + 圖檔 + + + + + 儲存路徑 + + + + + 創建者ID + + + + + 創建日期 + + + + + 更新者ID + + + + + 更新日期 + + 層別資料檔 @@ -10826,7 +12024,7 @@ - 預警提前天數 + 預警提前次數 yiru modify 2022/11/14 @@ -11235,6 +12433,11 @@ 檢驗項目英文 + + + 類型 + + 建立UserID @@ -11275,14 +12478,19 @@ 抽驗係数名稱 - + - 是否AQL標準 + 描述 - AQL類型 + AQL類型 成品:半成品 + + + + + AQL @@ -11340,7 +12548,7 @@ 箱號 - + 流程站別ID @@ -12330,6 +13538,41 @@ 修改日期 + + + 解除綁定出貨序號箱號資料檔 + + + + + 解除綁定ID + + + + + 起始生產條碼 + + + + + 結束生產條碼 + + + + + 解除綁定備註 + + + + + 建立UserID + + + + + 建立日期 + + 工單條碼起迄資料檔 @@ -12855,6 +14098,21 @@ 更新日期 + + + 自動裝箱 + + + + + 裝箱出貨序號 + + + + + 是否關箱 + + 工單資訊確認 @@ -12905,7 +14163,7 @@ 工單ID - + 流程站別ID @@ -13365,6 +14623,11 @@ 備註 + + + 非標96工單說明 + + 建立UserID @@ -13625,12 +14888,12 @@ 工單號碼 - + 指定過站 RuleStation - + 返回過站 RuleStation @@ -13665,7 +14928,7 @@ 工單號碼 - + 站別ID @@ -13755,7 +15018,7 @@ 工單ID - + 流程站?ID @@ -13950,124 +15213,249 @@ DMI燒入 + + + DMI燒入說明 + + JUMPER設定 - + - 備註 + 組裝備註 + + + + + 測試備註 + + + + + 包裝備註 + + + + + 創建者ID + + + + + 創建日期 + + + + + 更新者ID + + + + + 更新日期 + + + + + PowerMode_Desc + + + + + BIOS_Desc + + + + + EC_Desc + + + + + FW_Desc + + + + + FW1_Desc + + + + + FW2_Desc + + + + + OS_Desc + + + + + PE工程師姓名 Engineer + + + + + 工單各站數量資料檔 – By TIME + + + + + 工單ID + + + + + 流程站別ID + + + + + 過站狀態 + + + + + 時段 + + + + + 第一次過站數量 + + + + + 生產過站數量 + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新日期 - + - 創建者ID + 生產工時報工資料 - + - 創建日期 + 生產工時ID - + - 更新者ID + 制程代碼 - + - 更新日期 + 線別 - + - PowerMode_Desc + 站別ID - + - BIOS_Desc + 正背面 - + - EC_Desc + 工單號碼 - + - FW_Desc + 作業人數 - + - FW1_Desc + 開工時間 - + - FW2_Desc + 投入站採集傳感器 - + - OS_Desc + 產出站採集傳感器 - + - PE工程師姓名 Engineer + 生產數量 - + - 工單各站數量資料檔 – By TIME + 總工時 - + - 工單ID + 完工時間 - + - 流程站別ID + 備註 - + - 過站狀態 + 工程編號 - + - 時段 + 組合機種數量 - + - 第一次過站數量 + 扣除時間(Min) - + - 生產過站數量 + 建立者 - + - 建立UserID + 建立日期 - + - 建立日期 + 修改者 - + - 更新日期 + 修改日期 @@ -14875,7 +16263,12 @@ 流程規則編號 - + + + 流程編號 + + + 流程站別編號 @@ -15198,6 +16591,16 @@ 結束時間 + + + 安勤標準SOP路徑 + + + + + 安勤標準SOP路徑 + + @@ -15790,12 +17193,17 @@ - 生產單位 + 工單-生產單位 + + + + + 作業站-生產單位 - List + List BarCodeCheckDto.inputItem @@ -15900,7 +17308,7 @@ 工單號碼 - + 流程 @@ -15937,12 +17345,12 @@ - + 批量 - + 醫療機種 @@ -15952,7 +17360,7 @@ - + 抽樣 @@ -15960,9 +17368,9 @@ - + - 抽驗標準 + 抽驗係數名稱 @@ -15972,12 +17380,12 @@ - 產線 + 產線備註 - + 入庫庫別 @@ -15985,9 +17393,44 @@ - + - 成品99 + AQL 類型 + + + + + AQL 描述 + + + + + 抽驗數 + + + + + 允收數 + + + + + 不良數 + + + + + 檢驗結果Judgment Quantity + + + + + Major + + + + + Minor @@ -15995,6 +17438,96 @@ 特採單 + + + 判斷結果 + + + + + 缺點描述 + + + + + 委外廠 Name + + + + + 檢驗儀器編號 + + + + + 檢驗項目 OS CPU RAM + + + + + 抽驗人員 + + + + + 主管 + + + + + 抽驗人員簽名檔 + + + + + 主管簽名檔 + + + + + 檢驗工項 + + + + + + + + + + 檢驗工項名稱 + + + + + 檢驗類型 + + + + + 檢驗 + + + + + 出貨序號 + + + + + 生產序號 + + + + + 是否抽驗 + + + + + 檢驗結果 + + 入庫單資料檔 Dto @@ -16050,6 +17583,11 @@ 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + + + 檢驗時間 + + 抽驗數量 @@ -16065,6 +17603,31 @@ 不良數 + + + CritID + + + + + AQL + + + + + AQL 描述 + + + + + 抽驗係數名稱 + + + + + AQL類型 + + 允收數量 @@ -16075,6 +17638,11 @@ 拒收數量 + + + 特採單 + + 判定備註 @@ -16165,11 +17733,61 @@ 檢驗者姓名 Engineer + + + 抽樣允收標準 + + + + + 抽樣允收標準 名稱 + + + + + Major Qty + + + + + Minor Qty + + + + + Wip_ECN + + + + + PLM_ECN + + + + + ECN_Memo + + + + + NOTE + + + + + 檢驗地方 A:廠驗 B:委外 C:免驗 + + 附件檔案 + + + 檢驗 + + 檢查工項 @@ -16315,54 +17933,99 @@ 品名/機種 - + + + 箱號/條碼 + + + + + 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + + + + + 產品類別 STANDARD(標準品),Order(訂單) + + + + + 結束抽驗時間 + + + + + 建立UserID + + + + + 建立日期 + + + + + 更新UserID + + + + + 更新日期 + + + + + 入庫單號 + + + - 箱號/條碼 + Record日期 - + - 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + FQC 報表自動派送維護 Dto - + - 產品類別 STANDARD(標準品),Order(訂單) + FQC通知MAIL_ID - + - 結束抽驗時間 + 料號ID - + - 建立UserID + 料號名稱 - + - 建立日期 + Mail群組ID - + - 更新UserID + Mail群組名稱 - + - 更新日期 + FQC抽驗結果 P:允收 R:拒收 - + - 入庫單號 + 狀態 Y:啟用 N:停用 - + - Record日期 + 備註 @@ -16397,7 +18060,7 @@ - 外部序號 + 出貨序號 @@ -16405,11 +18068,21 @@ 狀態 P-PASS;F-FAIL;C-CPN + + + IsSample + + 不良代碼 + + + 不良現象 + + 不良備註 @@ -16527,6 +18200,16 @@ 更新日期 + + + 回覆結果 + + + + + 檢驗表頭資料檔DTO + + MaterialKpDtp Select Dto @@ -16777,19 +18460,49 @@ 抽驗標準ID + + + 抽驗係数ID + + 係數名稱 + + + 描述 + + + + + AQL類型 成品:半成品 + + + + + AQL + + 抽樣代碼 + + + 抽樣_起始數量 + + + + + 抽樣_結束數量 + + - 抽樣點數 + 抽樣點數 起始數量 ~ 結束數量 @@ -16857,6 +18570,16 @@ 檢驗項目英文 + + + 檢驗項目類型 + + + + + 檢驗項目類型 名稱 + + 建立UserID @@ -16962,7 +18685,7 @@ 有效日期 - + 狀態 0=失效 ; 1=有效 @@ -17062,6 +18785,81 @@ 更新日期 + + + SteelPlateInfoDto 鋼板紀錄資料檔Dto + + + + + 鋼板量測記錄ID + + + + + 鋼板ID + + + + + 鋼板編號 + + + + + 張力_1 + + + + + 張力_2 + + + + + 張力_3 + + + + + 張力_4 + + + + + 張力_5 + + + + + 檢查狀態 + + + + + 備註 + + + + + 判定結果 P=PASS ; F=FAIL ; N=未量測 + + + + + 建立UserID + + + + + 建立User + + + + + 建立日期 + + WipInfo Select Dto @@ -17212,6 +19010,11 @@ 鎖定原因類別(0-3C認證工單;1-驗證工單;3-維修換料待分析) + + + 鎖定原因類別名稱(0-3C認證工單;1-驗證工單;3-維修換料待分析) + + 鎖定人員 @@ -17467,6 +19270,11 @@ 生產單位 + + + 更新時間 + + WorkingHoursCollectionDtp Select Dtos @@ -17644,16 +19452,11 @@ 流程ID - + 作業站 - - - RuleStationID - - 線別站 @@ -17884,6 +19687,115 @@ 內部異常 + + + + + + + + 抽樣計畫允收標準 + + + + + First Insp. + + + + + Minor + + + + + 檢驗項目_類型 + + + + + Major + + + + + Minor + + + + + AQL_類型 + + + + + 成品99 + + + + + 半成品96 + + + + + 檢驗地點 + + + + + 廠驗 + + + + + 委外 + + + + + 免驗 + + + + + Get Enum Display + + + + + + + + + + + + 鋼板量測狀態 + + + + + 上線前 + + + + + 清洗後 + + + + + 每周點檢 + + + + + Get Enum Display + + + + @@ -17924,6 +19836,11 @@ FCC + + + CE/FCC + + ROHS @@ -18578,6 +20495,11 @@ 機種C/T資料 + + + 不良現象原因代碼資料 + + 問題類別資料 @@ -18618,6 +20540,11 @@ SOP文件維護 + + + 料號基本資料檔 + + @@ -18943,6 +20870,16 @@ 設備種類資料檔 + + + 設備規格資料檔 + + + + + 廠商資料檔 + + 治具資料檔 @@ -19028,7 +20965,16 @@ 檢驗單明細資料檔 - + + + 生產工時報工資料檔 + + + + + 鋼板基本資料檔 + + 鋼板量測記錄資料檔 @@ -19044,6 +20990,47 @@ 錫膏使用紀錄資料檔 + + + 條碼報廢轉出資料檔 + + + + Yiru add --------------------------------------------------- + 設備廠別資料檔 + + + + yiru 2022-09-20 --------------------------------------------------- + 治具ID圖檔 + + + + + FQC 報表自動派送維護 + + + + + 解除綁定出貨序號箱號資料檔 + + + + + + + + + + + + + + + + DocEsopView + + diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll index e5391437..dd54ce5e 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/Microsoft.EntityFrameworkCore.SqlServer.dll differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/appsettings.json b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/appsettings.json index 32d48456..ecf04970 100644 --- a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/appsettings.json +++ b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/appsettings.json @@ -7,16 +7,15 @@ } }, "ConnectionStrings": { - "AMESContext2": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=gdb)));User Id=JHAMES;Password=AMES666;", + //"AMESContext1": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe)));User Id=JHAMES;Password=JHAMES;", "AMESContext": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=61.216.68.18)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=jhdb)));User Id=JHSYS;Password=ASYS666;" //"AMESContext": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=61.216.68.18)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=jhdb)));User Id=system;Password=admin;" //"AMESContextO": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=61.216.68.18)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=cpadb)));User Id=JHSYS;Password=ASYS666;" }, - "MailSmtpServer": "", + "MailSmtpServer": "smtp.topviewcorp.com", "MailSmtpPort": "25", - "MailForm": "", - "MailUser": "", - "MailUserPassword": "", - //"MailTo": "", + "MailFrom": "BB.Wang@Topviewcorp.com", + "MailUser": "BB.Wang", + "MailUserPassword": "BBWang22", "AllowedHosts": "*" } diff --git a/其他專案資料/Oracle EF Core.docx b/其他專案資料/Oracle EF Core.docx new file mode 100644 index 00000000..3381fa7b --- /dev/null +++ b/其他專案資料/Oracle EF Core.docx @@ -0,0 +1,23 @@ +套件管理器主控台(檢視>其他視窗>套件管理器主控台)下以下指令 PS.記得選指定專案 +PM 下指令 +Scaffold-DbContext "Data Source=10.0.123.30:1521/shop.aten.com.tw;Password=s20f07s28;User Id=sfs;" +Oracle.EntityFrameworkCore -OutputDir Models -Force -Context "AppDBContext" + +-OutputDir 資料夾名稱 +-Context Context名稱 +-Force 覆寫現有檔案 +-NoOnConfiguring 不要產生 DbContext.OnConfiguring +-Tables 不設定參數,預設全部table + +Scaffold-DbContext "Data Source=10.0.123.30:1521/shop.aten.com.tw;Password=s20f07s28;User Id=sfs;" Oracle.EntityFrameworkCore -OutputDir Models/test -Force -Context "AppDBContext" -NoOnConfiguring -DataAnnotations + +詳細參數說明 +https://docs.microsoft.com/zh-tw/ef/core/cli/powershell#common-parameters + + +AMES 專案測試 +在Models/aaa 建立Model 跟 DBconntext +Scaffold-DbContext "Data Source=61.216.68.18:1521/JHDB;Password=AMES666;User Id=JHAMES;" Oracle.EntityFrameworkCore -OutputDir Models/aaa -DataAnnotations -Tables "Table名稱" -ContextNamespace "DB" + +DBconntext 所產生的ModelBuilder(功能跟DataAnnotations一樣,但ModelBuilder優先度高 可設定一個以上主key) 可以剪貼放到AMESContext.cs +