cnf
2025-03-24 ddbdac2e9cd8258508fb96ca0eb58a9e222b8631
生产制造单修改
已修改11个文件
51 ■■■■ 文件已修改
MES.Service/Dto/webApi/ProductionOrder/ErpProductionOrder.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Debug/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Debug/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/ProductionOrder/ProductionOrderManager.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Controllers/BasicData/SentLaboratoryTestingItemsControllor.cs 21 ●●●● 补丁 | 查看 | 原始文档 | 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 | 历史
MES.Service/Dto/webApi/ProductionOrder/ErpProductionOrder.cs
@@ -3,7 +3,7 @@
    public class ErpProductionOrder
    {
        //public string? Id { get; set; }
        public string? SalesOrder { get; set; }
        public string? SalesOrderNo { get; set; }
        public string? ImageUrl { 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/ProductionOrder/ProductionOrderManager.cs
@@ -263,7 +263,7 @@
        var mesProductionOrders = new ProductionOrders
        {
            ImageUrl = erpProductionOrder.ImageUrl,
            SalesOrder = erpProductionOrder.SalesOrder
            SalesOrder = erpProductionOrder.SalesOrderNo
        };
        return mesProductionOrders;
MES.Service/service/SentLaboratory/SaveLaboratoryManager.cs
@@ -154,4 +154,30 @@
        //}
    }
    public string DeleteLaboratory(string JYDH)
    {
        try
        {
            var db = SqlSugarHelper.GetInstance();
            // 假设 db 是 SQLSugar 的 SqlSugarClient 实例
            var result = db.Deleteable<UpdateMesQmsSample>()
                .Where(t => t.JYDH == JYDH) // 根据 JYDH 删除
                .ExecuteCommand();
            if (result > 0)
            {
                return "删除成功!";
            }
            else
            {
                return "未找到匹配的记录,删除失败。";
            }
        }
        catch (Exception ex)
        {
            return "删除失败,错误信息:" + ex.Message;
        }
    }
}
MESApplication/Controllers/BasicData/SentLaboratoryTestingItemsControllor.cs
@@ -98,10 +98,23 @@
        }
    }
    //[HttpPost("DeleteLaboratoryDetails")]
    //public IActionResult DeleteLaboratoryDetails(string JYDH)
    //{
    [HttpPost("DeleteLaboratoryDetails")]
    public IActionResult DeleteLaboratoryDetails(string JYDH)
    {
        try
        {
    //}
            var result = n.DeleteLaboratory(JYDH);
            //return Ok(result);
            return Ok(result);
        }
        catch (Exception ex)
        {
            // 捕获异常并返回错误信息
            return StatusCode(500, $"{ex.Message}");
        }
    }
}
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