From 16a9837daaab7c23834e2f280489c361d4d3ff12 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 28 Mar 2022 10:49:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=AD=A3=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E7=B6=AD=E8=AD=B7=E4=BA=BA=E5=93=A1Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/PCSController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index c436f769..d0c9eff4 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -1533,13 +1533,17 @@ namespace AMESCoreStudio.Web.Controllers model.wipBoard = await _pcsApi.GetWipBoard(model.wipInfo.WipNO); if (model.wipBoard != null) { - model.wipBoard.Engineer_Name = _sysApi.GetUserInfoByUserNo(model.wipBoard.Engineer).InvokeAsync().Result.UserName; + var UserInof = _sysApi.GetUserInfoByUserNo(model.wipBoard.Engineer).InvokeAsync().Result; + if (UserInof != null) + model.wipBoard.Engineer_Name = UserInof.UserName; } model.wipSystem = await _pcsApi.GetWipSystem(model.wipInfo.WipNO); if (model.wipSystem != null) { - model.wipSystem.Engineer_Name = _sysApi.GetUserInfoByUserNo(model.wipSystem.Engineer).InvokeAsync().Result.UserName; + var UserInof = _sysApi.GetUserInfoByUserNo(model.wipSystem.Engineer).InvokeAsync().Result; + if (UserInof != null) + model.wipSystem.Engineer_Name = UserInof.UserName; } model.wipMAC = await _pcsApi.GetWipMAC(model.wipInfo.WipNO);