cdk
3 天以前 1cd4e66b490e4b6cc3368771cdff164990e152e7
接口增加单位换算,dab增加两个字段
已修改5个文件
50 ■■■■■ 文件已修改
MES.Service/Modes/Womcab.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesRohInManager.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/ProductionOrderManager.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/SalesOrderManager.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/WomcaaManager.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/Womcab.cs
@@ -258,4 +258,17 @@
    /// </summary>
    [SugarColumn(ColumnName = "F_UNW_QTY_YFSL")]
    public string? F_UNW_QTY_YFSL { get; set; }
    /// <summary>
    ///     是否加锁erp不能进行用料清单变更
    /// </summary>
    [SugarColumn(ColumnName = "IS_LOCK")]
    public bool? IS_LOCK { get; set; }
    /// <summary>
    ///     加锁时间
    /// </summary>
    [SugarColumn(ColumnName = "IS_LOCK_DATE")]
    public DateTime? IS_LOCK_DATE { get; set; }
}
MES.Service/service/BasicData/MesRohInManager.cs
@@ -83,7 +83,14 @@
            .IgnoreColumnsNull()
            .ExecuteCommand() > 0;
        if (orUpdate && baOrUpdate) return true;
        if (orUpdate && baOrUpdate)
        {
            if (!string.IsNullOrEmpty(mesRohIn.BillNo))
            {
                db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @BillNo, '采购'", new { BillNo = mesRohIn.BillNo });
            }
            return true;
        }
        throw new NotImplementedException("插入或更新失败");
    }
MES.Service/service/BasicData/ProductionOrderManager.cs
@@ -96,9 +96,14 @@
        var baOrUpdate = db.Insertable(mesRohInDatas).PageSize(1)
            .IgnoreColumnsNull()
            .ExecuteCommand() > 0;
        if (orUpdate && baOrUpdate) return true;
        if (orUpdate && baOrUpdate)
        {
            db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @billno, @ModuleType",
                new { billno = mesRohIn.OrderNo, ModuleType = "委外工单" });
            return true;
        }
        throw new NotImplementedException("插入或更新失败");
    }
MES.Service/service/BasicData/SalesOrderManager.cs
@@ -112,7 +112,13 @@
        var baOrUpdate = db.Insertable(mesSalesOrderDatas).PageSize(1)
            .IgnoreColumnsNull()
            .ExecuteCommand() > 0;
        if (orUpdate && baOrUpdate) return true;
        if (orUpdate && baOrUpdate)
        {
            db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @billno, @ModuleType",
                 new { billno = mesSalesOrder.BillNo, ModuleType = "销售订单" });
            return true;
        }
        throw new NotImplementedException("插入或更新失败");
    }
MES.Service/service/WomcaaManager.cs
@@ -84,6 +84,10 @@
        if (orUpdate && baOrUpdate) 
        {
            db.Ado.ExecuteCommand("exec [dbo].[prc_unit_check] @billno, @ModuleType",
                new { billno = mesWomcaa.Caa001, ModuleType = "生产工单" });
            // 调用存储过程更新用料清单
            db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid",
                new {
@@ -246,7 +250,12 @@
            var entity = Db.Queryable<Womcab>()
                .Where(s => s.Eid == womcab.Eid).Single();
            if (entity != null) womcab.Guid = entity.Guid;
            if (entity != null) {
                womcab.Guid = entity.Guid;
                womcab.IS_LOCK = entity.IS_LOCK;
                womcab.IS_LOCK_DATE = entity.IS_LOCK_DATE;
            }
            womcabList.Add(womcab);
        }