wbc
2025-02-12 b2bc0cccd77524b3ba1f05d5f7854324ce62ba2e
泰莱姆首检巡检添加
已添加7个文件
已修改15个文件
190 ■■■■ 文件已修改
MES.Service/Dto/service/QsItem.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/MesQa.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/MesQualityStandard.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Debug/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Debug/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/QC/SJService.cs 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/QC/XJService.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/util/UserUtil.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Controllers/QC/SJController.cs 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Controllers/QC/XJController.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Properties/launchSettings.json 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.exe 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025021016.log 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025021017.log 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025021213.log 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025021214.log 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025021215.log 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025021217.log 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Dto/service/QsItem.cs
@@ -23,4 +23,6 @@
    public string? StatusUser { get; set; }
    public SJPageResult? Result { get; set; }
    public string? userNo { get; set; }
}
MES.Service/Modes/MesQa.cs
@@ -70,4 +70,11 @@
    [SugarColumn(ColumnName = "QS_TYPE")] //用于SqlSugar
    [StringLength(1, ErrorMessage = "1为首检,2为巡检,3为入库检长度不能超出1")]
    public string? QsType { get; set; }
    /// <summary>
    ///    ç‰©æ–™id
    /// </summary>
    [Column("ITEM_ID")]
    [SugarColumn(ColumnName = "ITEM_ID")] //用于SqlSugar
    public decimal? ItemId { get; set; }
}
MES.Service/Modes/MesQualityStandard.cs
@@ -201,4 +201,10 @@
    [SugarColumn(ColumnName = "USING_INSTRUMENTS")] //用于SqlSugar
    [StringLength(50, ErrorMessage = "使用仪表长度不能超出50")]
    public string UsingInstruments { get; set; }
    /// <summary>
    /// ç‰©æ–™id
    ///</summary>
    [SugarColumn(ColumnName = "ITEM_ID")]
    public decimal? ItemId { get; set; }
}
MES.Service/bin/Debug/net8.0/MES.Service.dll
Binary files differ
MES.Service/bin/Debug/net8.0/MES.Service.pdb
Binary files differ
MES.Service/service/QC/SJService.cs
@@ -1,8 +1,10 @@
using MES.Service.DB;
using System.Data;
using MES.Service.DB;
using MES.Service.Dto.service;
using MES.Service.Modes;
using MES.Service.util;
using SqlSugar;
using DbType = System.Data.DbType;
namespace MES.Service.service.QC;
@@ -455,4 +457,48 @@
        return withOracle;
    }
    public bool SJQaSubmit(QsItem item)
    {
        var (factory, company) = UserUtil.GetFactory(item.userNo);
        try
        {
            // å®šä¹‰è¾“出参数
            var outputResult = new SugarParameter("o_Result", null, DbType.Int32, ParameterDirection.Output,
                4000);
            var outputMessage = new SugarParameter("o_Msg", null, DbType.String, ParameterDirection.Output, 4000);
            // å®šä¹‰è¾“入参数
            var parameters = new List<SugarParameter>
         {
             new("p_Id", item.gid, DbType.Int32,ParameterDirection.Input),
             new("p_Flag", 1, DbType.Int32,ParameterDirection.Input),
             new("p_User", item.userNo, DbType.String, ParameterDirection.Input),
             outputResult,
             outputMessage
         };
            var db = SqlSugarHelper.GetInstance();
            // ä½¿ç”¨ SqlSugar æ‰§è¡Œå­˜å‚¨è¿‡ç¨‹
            db.Ado.ExecuteCommand(
                "BEGIN PRC_WOMDAA_SJ_UPDATE_RES(:p_Id,:p_Flag,:p_User,:o_Result, :o_Msg); END;",
                parameters.ToArray());
            // èŽ·å–è¾“å‡ºå‚æ•°çš„å€¼
            var resultValue = outputResult.Value?.ToString();
            var messageValue = outputMessage.Value?.ToString();
            if ("1".Equals(resultValue)) { throw new Exception(messageValue); }
            if ("0".Equals(resultValue)) { throw new Exception(messageValue); }
            return true;
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }
}
MES.Service/service/QC/XJService.cs
@@ -47,7 +47,7 @@
        return db.Queryable<Womdaa>()
            .Where(a =>
                a.Daa001 == daa001 &&
                statusArray.Contains(a.Daa018))
                a.Daa018 != "完工")
            .ToList();
    }
@@ -58,7 +58,7 @@
        return db.Queryable<Womdaa, MesLine>((a, b) =>
                new JoinQueryInfos(JoinType.Left, a.Daa015 == b.LineNo))
            .Where((a, b) => b.LineName != null &&
                             statusArray.Contains(a.Daa018))
                             a.Daa018 != "完工")
            .GroupBy((a, b) => new
            {
                b.LineNo, b.LineName
@@ -78,7 +78,7 @@
            .Where((a, b) =>
                a.Daa015 == daa020 &&
                b.ItemNo == item &&
                statusArray.Contains(a.Daa018))
                a.Daa018 != "完工")
            .Select<Womdaa>(a => new Womdaa
            {
                Id = a.Id,
@@ -93,13 +93,13 @@
        var db = SqlSugarHelper.GetInstance();
        return db.Queryable<Womdaa, MesItems>((a, b) =>
                new JoinQueryInfos(JoinType.Inner, a.Daa002 == b.Id.ToString()))
            .Where((a, b) => statusArray.Contains(a.Daa018) &&
            .Where((a, b) => a.Daa018 != "完工" &&
                             a.Daa015 == lineNo)
            .OrderBy((a, b) => b.ItemName)
            .Select<MesItems>((a, b) =>
                new MesItems
                {
                    Id = b.Id,
                    ItemId = b.ItemId,
                    ItemNo = b.ItemNo,
                    ItemName = b.ItemName,
                    ItemModel = b.ItemModel
@@ -157,19 +157,19 @@
    }
    public List<QsQaItemXj01> setJYItem(string itemNo)
    public List<QsQaItemXj01> setJYItem(decimal itemId)
    {
        var db = SqlSugarHelper.GetInstance();
        var count = db.Queryable<MesQa>().Where(s => s.QsType == "2"
            && s.ItemNo == itemNo && s.Fsubmit == 1).Count();
            && s.ItemId == itemId && s.Fsubmit == 1).Count();
        if (count <= 0) return new List<QsQaItemXj01>();
        return db
            .Queryable<MesQualityStandard>()
            .Where(b => b.QsType == "2"
                        && b.ItemNo == itemNo).Select(
                        && b.ItemId == itemId).Select(
                b => new QsQaItemXj01
                {
                    ProjName = b.ProjName,
MES.Service/util/UserUtil.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,17 @@
using MES.Service.DB;
namespace MES.Service.util;
public class UserUtil : RepositoryNoEntity
{
    public static (string factory, string company) GetFactory(string user)
    {
        var sql =
            "select t.Ffactory factory, t.Fcompany company from sys_user t where t.fcode = upper(trim('" +
            user + "'))";
        var sqlQuerySingle = Db.Ado.SqlQuerySingle<dynamic>(sql);
        return (sqlQuerySingle.FACTORY, sqlQuerySingle.COMPANY);
    }
}
MESApplication/Controllers/QC/SJController.cs
@@ -62,9 +62,10 @@
    [HttpPost("SetQSItems")]
    public ResponseResult SetQSItems([FromBody] JObject data)
    {
        var itemNo = data["itemNo"].ToString();
        var itemNo = data["itemId"].ToString();
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList = new SJService();
            var detail021 = tbBillList.SetQSItems(itemNo);
@@ -82,6 +83,30 @@
        }
    }
    [HttpPost("SJQaSubmit")]
    public ResponseResult SJQaSubmit([FromBody] QsItem item)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList = new SJService();
            var detail021 = tbBillList.SJQaSubmit(item);
            resultInfos.tbBillList = detail021;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    [HttpPost("Save")]
    public ResponseResult Save([FromBody] QsItem item)
    {
MESApplication/Controllers/QC/XJController.cs
@@ -4,6 +4,7 @@
using MES.Service.service.QC;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Data.SqlClient.Server;
using Newtonsoft.Json.Linq;
namespace MESApplication.Controllers.QC;
@@ -164,12 +165,13 @@
    [HttpPost("setJYItem")]
    public ResponseResult setJYItem([FromBody] JObject data)
    {
        var itemNo = data["itemNo"].ToString();
        var itemId = Convert.ToDecimal(data["itemId"].ToString());
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList =
                new XJService().setJYItem(itemNo);
                new XJService().setJYItem(itemId);
            resultInfos.tbBillList = tbBillList;
            return new ResponseResult
            {
MESApplication/Properties/launchSettings.json
@@ -1,23 +1,14 @@
{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:10054",
      "sslPort": 0
    }
  },
{
  "profiles": {
    "http": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "launchUrl": "swagger",
      "applicationUrl": "http://localhost:5184",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
      },
      "dotnetRunMessages": true,
      "applicationUrl": "http://localhost:5184"
    },
    "IIS Express": {
      "commandName": "IISExpress",
@@ -27,5 +18,14 @@
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  },
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:10056",
      "sslPort": 0
    }
  }
}
}
MESApplication/bin/Debug/net8.0/MES.Service.dll
Binary files differ
MESApplication/bin/Debug/net8.0/MES.Service.pdb
Binary files differ
MESApplication/bin/Debug/net8.0/MESApplication.dll
Binary files differ
MESApplication/bin/Debug/net8.0/MESApplication.exe
Binary files differ
MESApplication/bin/Debug/net8.0/MESApplication.pdb
Binary files differ
MESApplication/bin/Debug/net8.0/log/2025021016.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
2025-02-10 16:36:40:779 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.getDaa001(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 92\r\n   at lambda_method102(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-10 16:36:40:799 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
MESApplication/bin/Debug/net8.0/log/2025021017.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
2025-02-10 17:02:00:298 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.SetQSItems(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\SJController.cs:line 65\r\n   at lambda_method158(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-10 17:02:00:317 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
MESApplication/bin/Debug/net8.0/log/2025021213.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
2025-02-12 13:13:45:516 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method206(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-12 13:13:45:536 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
MESApplication/bin/Debug/net8.0/log/2025021214.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
2025-02-12 14:09:48:129 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method206(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-12 14:09:48:141 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
2025-02-12 14:37:08:660 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method154(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-12 14:37:08:678 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
MESApplication/bin/Debug/net8.0/log/2025021215.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,9 @@
2025-02-12 15:04:16:163 æŽ¥å£å¼‚常:{"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method60(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
2025-02-12 15:04:16:182 å¼‚常提示信息:"The input string '' was not in a correct format."
==================================================================================================================================
2025-02-12 15:04:47:748 æŽ¥å£å¼‚常:{"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 167\r\n   at lambda_method60(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
2025-02-12 15:04:47:759 å¼‚常提示信息:"The input string '' was not in a correct format."
==================================================================================================================================
2025-02-12 15:10:22:915 æŽ¥å£å¼‚常:{"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data)\r\n   at lambda_method60(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
2025-02-12 15:10:22:933 å¼‚常提示信息:"The input string '' was not in a correct format."
==================================================================================================================================
MESApplication/bin/Debug/net8.0/log/2025021217.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,9 @@
2025-02-12 17:09:46:409 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.SetQSItems(JObject data)\r\n   at lambda_method320(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-12 17:09:46:425 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
2025-02-12 17:18:16:148 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.SetQSItems(JObject data)\r\n   at lambda_method446(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-02-12 17:18:16:167 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
2025-02-12 17:22:05:925 æŽ¥å£å¼‚常:{"ClassName":"System.FormatException","Message":"The input string '' was not in a correct format.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at System.Number.ParseDecimal[TChar](ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)\r\n   at System.Convert.ToDecimal(String value)\r\n   at MESApplication.Controllers.QC.XJController.setJYItem(JObject data) in C:\\Users\\Administrator\\Desktop\\TLM\\MESApplication\\Controllers\\QC\\XJController.cs:line 168\r\n   at lambda_method258(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233033,"Source":"System.Private.CoreLib","WatsonBuckets":null}
2025-02-12 17:22:05:941 å¼‚常提示信息:"The input string '' was not in a correct format."
==================================================================================================================================