From 51f63090e620b6ae60305a53cddcb5bcb4000291 Mon Sep 17 00:00:00 2001 From: liangjunyu <13726812+shifang-tianhua_0@user.noreply.gitee.com> Date: Fri, 31 Oct 2025 09:13:33 +0800 Subject: [PATCH] 1 --- Controllers/EnpowerApiController.cs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/Controllers/EnpowerApiController.cs b/Controllers/EnpowerApiController.cs index dd582f3..f308ee8 100644 --- a/Controllers/EnpowerApiController.cs +++ b/Controllers/EnpowerApiController.cs @@ -11361,33 +11361,6 @@ namespace RB_MES_API.Controllers }; }).ToList(); - ////添加单据体,按订单号找到它的明细数据 - //List entries = (from a in head - // join b in R011cs on a.TRX_DATE equals b.TRX_DATE - // join c in marylist on b.MTRL_ID equals c.FNumber - // join d in units on c.FStoreUnitID equals d.FUNITID - // join e in units on c.FBaseUnitId equals e.FUNITID - // select new STK_TransferDirect.BillEntry - // { - // FMaterialId = new Dictionary() { { "FNumber", b.MTRL_ID } }, - // FNoteEntry = b.REMARK, - // FLot = new Dictionary() { { "FNumber", b.ERP_LOTNO } }, - // FDestLot = new Dictionary() { { "FNumber", b.ERP_LOTNO } }, - // FQty = decimal.Parse(b.QUANTITY), - // FDestStockId = new Dictionary() { { "FNumber", b.TOSTORE_ID } }, - // FUnitID = new Dictionary() { { "FNumber", c.FUnitNumber } }, - // FBaseUnitId = new Dictionary() { { "FNumber", c.FBaseUnitNumber } }, - // FSrcStockId = new Dictionary() { { "FNumber", b.STORE_ID } }, - // FSaleQty = decimal.Parse(b.QUANTITY), - // FSaleUnitId = new Dictionary() { { "FNumber", c.FUnitNumber } }, - // FActQty = decimal.Parse(b.QUANTITY), - // FSalBaseQty = Math.Round(decimal.Parse(b.QUANTITY) / (d.FConvertNumerator / d.FConvertDenominator), d.FPrecision), - // FBaseQty = Math.Round(decimal.Parse(b.QUANTITY) / (d.FConvertNumerator / d.FConvertDenominator), d.FPrecision), - // FOwnerOutId = new Dictionary() { { "FNumber", LocalStaticRequest.DefaultOrg } }, - // FAuxPropId = string.IsNullOrEmpty(b.MTRL_VER) ? null : new STK_TransferDirect.BillEntry.AuxpropId() { FAUXPROPID__FF100001 = new Dictionary() { { "FNumber", b.MTRL_VER } } } - // } - // ).Distinct().ToList() - // ; var q = entries.Where(s => s.FQty <= 0).ToList(); if (q.Count > 0) {