南骏 池
2025-09-10 eb7aabaca44f5be20ad9fa533f130c96a7342a51
1.生产、委外订单新增单据状态字段
2.反审核单据编号+'F'
已修改8个文件
41 ■■■■■ 文件已修改
MES.Service/Dto/webApi/ErpCAA.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Dto/webApi/ErpProductionOrderDto.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/ProductionOrder.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/Womcaa.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesRohInManager.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/ProductionOrderManager.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/SalesOrderManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/WomcaaManager.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Dto/webApi/ErpCAA.cs
@@ -46,4 +46,6 @@
    public string? Btbz { get; set; }
    public string? TypeA { get; set; }
    public string? FDocumentStatus { get; set; }
}
MES.Service/Dto/webApi/ErpProductionOrderDto.cs
@@ -46,5 +46,7 @@
    public string? SrcSplitSeq { get; set; } //源拆分订单行号
    public string? TypeA { get; set; } //单据状态
    public string? FDocumentStatus { get; set; }
    // public string? FSUPPLIERID { get; set; } // 供应商ID
}
MES.Service/Modes/ProductionOrder.cs
@@ -351,4 +351,10 @@
    /// </summary>
    [SugarColumn(ColumnName = "TYPEA")]
    public string? Typea { get; set; }
    /// <summary>
    ///     单据状态
    /// </summary>
    [SugarColumn(ColumnName = "DOCUMENT_STATUS")]
    public string? DocumentStatus { get; set; }
}
MES.Service/Modes/Womcaa.cs
@@ -426,4 +426,11 @@
    /// </summary>
    [SugarColumn(ColumnName = "SYNCHRONOUS_DATE")]
    public DateTime? SynchronousDate { get; set; }
    /// <summary>
    ///     单据状态
    /// </summary>
    [SugarColumn(ColumnName = "DOCUMENT_STATUS")]
    public string? DocumentStatus { get; set; }
}
MES.Service/service/BasicData/MesRohInManager.cs
@@ -24,11 +24,11 @@
            return rohInErpRohIn.Type switch
            {
                "2" or "4" or "5" => SaveOrUpdateData(db, mesRohIn,
                    mesRohInDatas)
                    mesRohInDatas, rohInErpRohIn.Type)
                    ? 1
                    : 0,
                "3" => SaveOrUpdateData(db, mesRohIn,
                    mesRohInDatas)
                    mesRohInDatas, rohInErpRohIn.Type)
                    ? 1
                    : 0, //UpdateData(db, mesRohIn, mesRohInDatas) ? 1 : 0,//反审核不删除,做update。
                _ => throw new NotImplementedException(
@@ -59,8 +59,14 @@
    // 插入或更新数据的方法
    private bool SaveOrUpdateData(SqlSugarScope db, MesRohIn mesRohIn,
        List<MesRohInData> mesRohInDatas)
        List<MesRohInData> mesRohInDatas, string type)
    {
        if (type == "3")
        {
            mesRohIn.BillNo = mesRohIn.BillNo + "F";
        }
        if (mesRohIn.Guid != null)
            db.Deleteable<MesRohIn>().Where(s => s.Guid == mesRohIn.Guid)
                .ExecuteCommand();
MES.Service/service/BasicData/ProductionOrderManager.cs
@@ -77,6 +77,7 @@
        if(type == "3")
        {
            mesRohIn.Typea = "3";  // 新增字段赋值
            mesRohIn.OrderNo = mesRohIn.OrderNo + "F";
        }
        if (StringUtil.CheckGuid(mesRohIn.Guid))
@@ -173,6 +174,8 @@
            ReqSrc = erpDto.FReqSrc,
            SrcSplitSeq = erpDto.SrcSplitSeq,
            Typea = erpDto.TypeA,
            DocumentStatus = erpDto.FDocumentStatus
        };
        var single = base.GetSingle(it => it.ErpProductionEntryCode == erpDto.FSUBENTRYID);
MES.Service/service/BasicData/SalesOrderManager.cs
@@ -88,6 +88,11 @@
    {
        //if (mesSalesOrder.Id != null) base.DeleteById(mesSalesOrder.Id);
        if (type == "3")
        {
            mesSalesOrder.BillNo = mesSalesOrder.BillNo + "F";
        }
        if (mesSalesOrder.ErpID != null)
            db.Deleteable<SalesOrder>()
                .Where(s => s.ErpID == mesSalesOrder.ErpID).ExecuteCommand();
MES.Service/service/WomcaaManager.cs
@@ -57,6 +57,7 @@
        if(type == "3")
        {
            mesWomcaa.Typea = "3";  // 新增字段赋值
            mesWomcaa.Caa001 = mesWomcaa.Caa001 + "F";
        }
@@ -177,7 +178,8 @@
            Caa0111 = dto.FPlanFinishDate, ///     预计完工时间备份
            Typea = dto.TypeA, ///     预计完工时间备份
            //Typeb = dto.TypeB ///     预计完工时间备份
            SynchronousDate = DateTime.Now
            SynchronousDate = DateTime.Now,
            DocumentStatus = dto.FDocumentStatus
        };
        var single = base.GetSingle(it => it.Erpid == entity.Erpid);