南骏 池
19 小时以前 3a6f7cb36dff0ec99edddbb53078947fcf08a47e
1.用料清单变更
已修改2个文件
19 ■■■■■ 文件已修改
MES.Service/service/WomcaaManager.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/appsettings.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/WomcaaManager.cs
@@ -68,8 +68,24 @@
            .IgnoreColumnsNull()
            .ExecuteCommand() > 0;
        if (orUpdate && baOrUpdate) return true;
        // if (orUpdate && baOrUpdate)
        // throw new NotImplementedException("插入或更新失败");
        if (orUpdate && baOrUpdate)
        {
            // 调用存储过程更新用料清单
            db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid",
                new {
                    outMsg = (string)null,  // 输出参数
                    outSum = (int?)null,     // 输出参数
                    inEdtUserGuid = new Guid("11111111-1111-1111-1111-111111111111"),
                    inCaaGuid = new Guid(mesWomcaa.Guid.ToString())
                });
            return true;
        }
        throw new NotImplementedException("插入或更新失败");
    }
    private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa,
MESApplication/appsettings.json
@@ -11,5 +11,6 @@
    "TestErpUrl": "http://192.168.0.208:8066/WebService1.asmx/MesToErpinfoTest",
    "ProductionErpUrl": "http://192.168.0.208:8066/WebService1.asmx/MesToErpinfoTest",
    "DataBaseConn": "Data Source=192.168.1.146;Initial Catalog=GS_MES;User ID=mesUser;Password =mesUser123;Encrypt=True;TrustServerCertificate=True;"
    //"DataBaseConn": "Data Source=192.168.1.146;Initial Catalog=TEST_MES;User ID=testUser;Password =testUser123;Encrypt=True;TrustServerCertificate=True;"
  }
}