This commit is contained in:
2024-09-14 10:43:53 +08:00
parent b641001593
commit ab74ee1d46

View File

@@ -2500,7 +2500,7 @@ namespace Tnb.ProductionMgr
.ToListAsync(); .ToListAsync();
List<string> erpExtendIds = new List<string>(); List<string> erpExtendIds = new List<string>();
erpExtendIds.Add(_userManager.UserId); erpExtendIds.Add(report.create_id);
erpExtendIds.Add(WmsWareHouseConst.AdministratorOrgId); erpExtendIds.Add(WmsWareHouseConst.AdministratorOrgId);
erpExtendIds.Add(report.material_id); erpExtendIds.Add(report.material_id);
// erpExtendIds.Add(report.unit_id); // erpExtendIds.Add(report.unit_id);
@@ -2508,7 +2508,7 @@ namespace Tnb.ProductionMgr
List<ErpExtendField> erpExtendFields = await _db.Queryable<ErpExtendField>() List<ErpExtendField> erpExtendFields = await _db.Queryable<ErpExtendField>()
.Where(x => erpExtendIds.Contains(x.table_id)).ToListAsync(); .Where(x => erpExtendIds.Contains(x.table_id)).ToListAsync();
string erpCreateId = erpExtendFields.Find(x => x.table_id == _userManager.UserId)?.user_id ?? ""; string erpCreateId = erpExtendFields.Find(x => x.table_id == report.create_id)?.user_id ?? "";
ErpExtendField erpOrg = ErpExtendField erpOrg =
erpExtendFields.Find(x => x.table_id == (WmsWareHouseConst.AdministratorOrgId)); erpExtendFields.Find(x => x.table_id == (WmsWareHouseConst.AdministratorOrgId));
string nowStr = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); string nowStr = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");